用于控制被测要素( 点、 线、 面) 对基准的位置误差。 根据零件的功能要求, 位置度公差分为给定一个方向、 给定两个方向、 任意方向三种。
1.根据基准体系先测量位置度的基准元素,
2.测量被测要素, 然后点击位置度按钮。
3.弹出界面如下图所示:
4.列表框中添加被测元素, 被测元素可添加多个, 在公差中输入公差值, 在基准中添加基准元素, 点【 创建】 可得到元素相对所选基准元素的位置度。 单位制需在输入公差之前选择,若先输入后选单位制, 公差值会自动转换。
```cpp
$$ 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)
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
T(位置度1-RN)=TOL/CIRLTY,0.0200
T(位置度1-DF)=TOL/DIAM,0.0000,0.0200
T(位置度1)=TOL/POS,2D,0.0500,RFS,FA(平面2),RFS,FA(直线2),RFS,FA(直线3),RFS
DMESW/COMAND,'TOL-NOM/位置度1,COORD/1,POLTYPE/0,FEAT/圆1,WKPLAN/XYPLAN,XAXIS/31.5000,YAXIS/31.5000,ZAXIS/-3.0000,$
PR/44.5477,PA/45.0000,DIAM/20.0000,XOUTPUT/TRUE,YOUTPUT/TRUE,ZOUTPUT/FALSE,PROUTPUT/FALSE,PAOUTPUT/FALSE,$
DOUTPUT/TRUE,FOUTPUT/FALSE'
DMESW/COMAND,'OUTPUT/UNIT,DIMENSION/MM'
OUTPUT/FA(圆1),TA(位置度1)
注意:
1.为保证计算位置度正确, 被测元素和基准元素的理论值都必须准确。
2.没有基准时评定位置度是在当前坐标系下进行的, 在测量前根据图纸中位置度的基准来建立坐标系, 然后测量被评定元素, 最后再评定位置度。
3.位置度轴向选择 RADIAL 或 ANGLE, 对应极半径和极角的极坐标平面是由当前工作平面确定的。 所以评定前注意设置工作平面。
4.如果选择了 MMC/LMC, 被测要素需要输出 D 且输入正确的名义值和上下偏差, 基准要素要进行尺寸公差 D 的评价。
5、 报告中, 有实体补偿时, 旧版本 P 的上公差显示总公差( 即图纸公差值+实体补偿值) ,新版本中上公差仅显示图纸公差值。
```cpp
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
T(位置度1-RN)=TOL/CIRLTY,0.0200
T(位置度1-DF)=TOL/DIAM,0.0000,0.0500
T(位置度1)=TOL/POS,2D,0.0200,RFS,FA(平面2),RFS,FA(直线2),RFS,FA(直线3),RFS
DMESW/COMAND,'TOL-NOM/位置度1,COORD/1,POLTYPE/0,FEAT/圆1,WKPLAN/XYPLAN,XAXIS/31.5000,YAXIS/31.5000,ZAXIS/-3.0000,$
PR/44.5477,PA/45.0000,DIAM/20.0000,XOUTPUT/TRUE,YOUTPUT/TRUE,ZOUTPUT/FALSE,PROUTPUT/FALSE,PAOUTPUT/FALSE,$
DOUTPUT/TRUE,FOUTPUT/FALSE'
DMESW/COMAND,'OUTPUT/UNIT,DIMENSION/MM'
OUTPUT/FA(圆1),TA(位置度1)
1、在评价位置度时所用的元素一定要用自动方式测量,以便于理论值的输入;
2、在选择基准时有两种情况,一种是采用唯一基准,例如上面例子;另一种是采用符合3-2-1坐标系原则的基准组合
3、如果使用了基准,在程序中显示的X、Y、Z实测值及偏差值是相对于基准计算出来而又转化到当前坐标系的坐标值:
4、如果想显示相对于基准的偏差值,可以把坐标系旋转、平移到位置度的基准上。