第一基准为顶部平面,第二基准为直线,中心圆心投影点为原点。平面 (平面 1) 测量顶部平面。直线 (直线 1) 从左至右在前平面采集直线。圆 (圆 2) 测量如下所示的孔。
$$ NET_DMIS_20160720
$$ MADE IN DE 2023-2-11 9:47:28
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,2.0000
SNSET/SEARCH,5.0000
SNSET/APPRCH,2.0000
DMESW/COMAND,'SNSET/MANRETRCT,2.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)
GEOALG/PLANE,LSTSQR
F(平面1)=FEAT/PLANE,CART,0.2255,4.9202,0,0,0,1.00000000
MEAS/PLANE,F(平面1),4
PTMEAS/CART,-28.2941,28.4025,0,0,0,1.00000000
PTMEAS/CART,-28.3688,-25.4282,0,0,0,1.00000000
PTMEAS/CART,28.0303,-25.7222,0,0,0,1.00000000
PTMEAS/CART,29.5346,42.4288,0,0,0,1.00000000
ENDMES
SNSET/DEPTH,0
DMESW/COMAND,'CONST/SET_PROJ_VEC,FA(平面1),1'
F(直线1)=FEAT/LINE,UNBND,CART,-26.8759,-31.5000,-1.7873,0.99998472,0,-0.00552813,0,-1.00000000,0
MEAS/LINE,F(直线1),2
PTMEAS/CART,-26.8759,-31.5000,-1.9495,0,-1.00000000,0
PTMEAS/CART,31.8100,-31.5000,-1.9495,0,-1.00000000,0
ENDMES
SNSET/DEPTH,0
GEOALG/CIRCLE,LSTSQR
DMESW/COMAND,'CONST/SET_PROJ_VEC,FA(平面1),1'
F(圆1)=FEAT/CIRCLE,INNER,CART,0,0,-0.9319,0.02006043,-0.00397404,0.99979087,20.0000
MEAS/CIRCLE,F(圆1),4
PTMEAS/CART,-1.1584,9.9327,-0.9319,0.11584260,-0.99326758,0
PTMEAS/CART,9.9831,-0.5819,-0.9319,-0.99830580,0.05818527,0
PTMEAS/CART,0.7385,-9.9727,-0.9319,-0.07384847,0.99726947,0
PTMEAS/CART,-9.8080,-1.9500,-0.9319,0.98080286,0.19500191,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/XORIG,FA(圆1),YORIG,FA(圆1)
D(坐标系1_T)=TRANS/ZORIG,FA(平面1)
SAVE/DA(坐标系1)