建立零件坐标系有以下三个功能:
1.准确测量二维和一维元素:
2.方便进行尺寸评价:
3.实现批量自动测量:
在测量机过程中,我们往往需要利用零件的基准建立坐标系来评价公差、进行辅助测量指定零件位置等,这个坐标系称“零件坐标系”。建立零件坐标系要根据零件图纸指定的A、B、C基准的顺序指定第一轴、第二轴和坐标零点。顺序不能颠倒。零件坐标系的使用非常灵活、方便,可以为我们提供很多方便。甚至可以利用零件坐标系生成我们测不到元素。
建立零件坐标系,实际上就是建立被测零件和测量机之间的坐标系矩阵关系:在导入了CAD模型进行测量的时候,同时也建立了被测零件、CAD模型、测量机三者之间的坐标系矩阵关系。
按照坐标系执行的方式又分为:手动坐标系和自动坐标系:
手动坐标系的目的是确定零件的位置,为后面程序自动运行做准备,所以通常会测量最少的测量点数,又称粗建坐标系:
自动坐标系的目的是准确测量先关基准元素,作为后续尺寸评价的基准,所以通常会测量更多的点数,又称精建坐标系,由于自动坐标系在执行时是自动运行的,所以测量元素间需要加上安全移动点:
$$ 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.9719,23.7046,0,0,0,1.00000000
MEAS/PLANE,F(平面1),3
PTMEAS/CART,5.2859,57.3207,0,0,0,1.00000000
PTMEAS/CART,4.3656,8.4812,0,0,0,1.00000000
PTMEAS/CART,59.2643,5.3118,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.9682,0,-1.9878,0.99990592,0,-0.01371702,0,-1.00000000,0
MEAS/LINE,F(直线1),2
PTMEAS/CART,4.9682,0,-2.3813,0,-1.00000000,0
PTMEAS/CART,62.3350,0,-2.3813,0,-1.00000000,0
ENDMES
F(点1)=FEAT/POINT,CART,0,4.5623,-2.6752,-1.00000000,0,0
MEAS/POINT,COMP,DME,F(点1),1
PTMEAS/CART,0,4.5623,-2.6752,-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
SNSET/RETRCT,2.0000
SNSET/APPRCH,2.0000
DMESW/COMAND,'CLEARP/ZDIR,10.0000,ZDIR,10.0000,ON'
F(平面2)=FEAT/PLANE,CART,35.8127,45.3482,0,0,0,1.00000000
CALL/EXTERN,DMIS,M(NETDMIS_AUTO_PLANEPOINTS_1006),AUTOFIGURE,F(平面2),PLANE,CART,LSTSQR,35.8127,45.3482,$
0,0,0,1.00000000,FALSE,FALSE,FALSE,10.0000,"CUR",TRUE,FALSE,POINTS,'8,3.7312,7.5341,0,0,0,1.00000000,$
5.0198,60.1642,0,0,0,1.00000000,20.0200,91.7019,0,0,0,1.00000000,58.0609,95.1634,0,0,0,1.00000000,60.5032,$
64.6631,0,0,0,1.00000000,60.0247,31.7653,0,0,0,1.00000000,59.6396,6.5498,0,0,0,1.00000000,19.5020,5.2435,$
0,0,0,1.00000000',TOUCH,0.3000,XYPLAN
F(直线2)=FEAT/LINE,BND,CART,4.0000,0,-2.0000,64.0000,0,-2.0000,0,-0.97826579,0.20735487
CALL/EXTERN,DMIS,M(NETDMIS_AUTO_LINE_1007),AUTOFIGURE,F(直线2),LINE_BND,CART,4.0000,0,-2.0000,1.00000000,$
0,0,60.0000,FALSE,FALSE,FALSE,10.0000,"CUR",TRUE,FALSE,0,-0.97826579,0.20735487,4,0,0,0,TOUCH,0.3000,$
XYPLAN,0,0,LINE,"","","EXT1","EXT2","EXT3",ENDCAL
F(直线3)=FEAT/LINE,BND,CART,0,4.0000,-2.0000,0,59.0000,-2.0000,-1.00000000,0,0
CALL/EXTERN,DMIS,M(NETDMIS_AUTO_LINE_1007),AUTOFIGURE,F(直线3),LINE_BND,CART,0,4.0000,-2.0000,0,1.00000000,$
0,55.0000,FALSE,FALSE,FALSE,10.0000,"CUR",TRUE,FALSE,-1.00000000,0,0,4,0,0,0,TOUCH,0.3000,XYPLAN,0,0,$
LINE,"","","EXT1","EXT2","EXT3",ENDCAL
F(点2)=FEAT/POINT,CART,0,0,-2.0000,0,0,-1.00000000
CONST/POINT,F(点2),INTOF,FA(直线2),FA(直线3)
DATDEF/F(平面2),DAT(A_平面2)
D(坐标系2_S)=DATSET/DAT(A_平面2),ZDIR
D(坐标系2_R)=ROTATE/ZAXIS,FA(直线2),XDIR
D(坐标系2_T)=TRANS/XORIG,FA(点2),YORIG,FA(点2)
D(坐标系2_T)=TRANS/ZORIG,FA(平面2)
SAVE/DA(坐标系2)
建立零件坐标系后,测量机可以相对于零件作出精密的位置和方向测量,根据图纸或CAD模型获取被测特征的参数后,测量机就可以对该特征进行自动测量,从而提高测量特征的精度,这是保证测量结果高精度的重要环节。尤其对于大批量的零件检测,通过在装夹零件的夹具上建立夹具的坐标系可以实现大批量零件的全自动测量。
在建立零件坐标系时,必须使用零件的基准特征来建立零件坐标系。