1.准备工作:
1)工件、图纸分析
2)工件清洁
3)工件装夹
4)测头校验
2.执行程序
(测量程序已编辑完成)执行程序检测
3.生成报告
输出结果,判断工件尺寸是否合格。
$$ NET_DMIS_20160720
$$ MADE IN DE 2023-2-9 12:59:58
INCLUD/DMIS,'NET_DMIS_DEFINES.DMI'
INCLUD/DMIS,'VARDEFINE'
DMESW/COMAND,'PROBE_VAL/INIT'
UNITS/MM,ANGDEC
D(MACHINE)=DATSET/MCS
DMESW/COMAND,'COORDSYS/ALIGN'
WKPLAN/XYPLAN
PRCOMP/ON
PRCOMP/ON
FEDRAT/POSVEL,MMPS,300.0000
ACLRAT/POSACL,MMPSS,100.0000
FEDRAT/MESVEL,MMPS,20.0000
ACLRAT/MESACL,MMPSS,100.0000
SNSET/RETRCT,1.0000
SNSET/SEARCH,5.0000
SNSET/APPRCH,1.0000
DMESW/COMAND,'SNSET/MANRETRCT,1.0000'
DMESW/COMAND,'REPORT/CLEAR'
MODE/MAN
DID(D2L40)=DEVICE/STOR,'D2L40'
OPEN/DID(D2L40),SNS
S(A0B0)=SNSDEF/PROBE,INDEX,POL,0.0,0.0,0.0000,0.0000,1.0000,189.6500,2.0000
SNSLCT/SA(A0B0)
DMESW/COMAND,'SNSET/MANRETRCT,2.0000'
GEOALG/PLANE,LSTSQR
F(平面1)=FEAT/PLANE,CART,22.2558,23.4569,0,0,0,1.00000000
MEAS/PLANE,F(平面1),3
PTMEAS/CART,2.6750,58.8009,0,0,0,1.00000000
PTMEAS/CART,3.3043,7.0519,0,0,0,1.00000000
PTMEAS/CART,60.7882,4.5178,0,0,0,1.00000000
ENDMES
SNSET/DEPTH,0
DMESW/COMAND,'CONST/SET_PROJ_VEC,FA(平面1),1'
F(直线1)=FEAT/LINE,UNBND,CART,4.9240,0,-2.5596,0.99999500,0,0.00316146,0,-1.00000000,0
MEAS/LINE,F(直线1),2
PTMEAS/CART,4.9240,0,-2.4684,0,-1.00000000,0
PTMEAS/CART,62.6713,0,-2.4684,0,-1.00000000,0
ENDMES
F(点1)=FEAT/POINT,CART,0,5.9455,-1.6132,-1.00000000,0,0
MEAS/POINT,COMP,DME,F(点1),1
PTMEAS/CART,0,5.9455,-1.6132,-1.00000000,0,0
ENDMES
DATDEF/F(平面1),DAT(A_平面1)
D(坐标系1_S)=DATSET/DAT(A_平面1),ZDIR
D(坐标系1_R)=ROTATE/ZAXIS,FA(直线1),XDIR
D(坐标系1_T)=TRANS/ZORIG,FA(平面1)
D(坐标系1_T)=TRANS/YORIG,FA(直线1)
D(坐标系1_T)=TRANS/XORIG,FA(点1)
DMESW/COMAND,'COORDSYS/CAD=PART'
SAVE/DA(坐标系1)
MODE/AUTO,PROG,MAN
DMESW/COMAND,'CLEARP/ZDIR,10.0000,ZDIR,10.0000,ON'
F(圆1)=FEAT/CIRCLE,INNER,CART,31.5000,31.5000,0,0,0,1.00000000,20.0000
CALL/EXTERN,DMIS,M(NETDMIS_AUTO_CIRCLE_1007),AUTOFIGURE,F(圆1),CIRCLE,INNER,CART,LSTSQR,31.5000,31.5000,$
0,0,0,1.00000000,20.0000,-1.00000000,0,0,5,-3.0000,0,0,0,0,360.0000,TOUCH,CIRCLE,0.3000,0,FALSE,FALSE,$
FALSE,10.0000,"CUR",TRUE,FALSE,0,FA(VECBLD),10.0000,2.5000,3,XYPLAN,"",'7,0,0,0,0,3.0000,0,10','0,1,0,$
5.0000',"EXT3",ENDCAL
DMESW/COMAND,'OUTPUT/NOM,FEAT/圆1,X/31.5000,Y/31.5000,DIA/20.0000'
T(X轴坐标)=TOL/CORTOL,XAXIS,-0.0500,0.0500
T(Y轴坐标)=TOL/CORTOL,YAXIS,-0.0500,0.0500
T(直径)=TOL/DIAM,-0.0200,0.0200
DMESW/COMAND,'OUTPUT/UNIT,DIMENSION/MM'
DMESW/COMAND,'OUTPUT/UNIT,ANGLE/ANGDEC'
DMESW/COMAND,'OUTPUT/VECTOR,OFF'
OUTPUT/FA(圆1),TA(X轴坐标),TA(Y轴坐标),TA(直径)