有些零件尺寸大、装配比较复杂,因为各种原因产生了部分形变或者某些装配件的移位,比如整车或分总成的装配件;这时,仍按照原来的总零件坐标系进行原程序的自动化检测,测针会发生碰撞,或者出现找不到特征的情况。所以,分析一下,虽然整体发生了较大的形变,但是一个小范围内的装配部件上的特征之间的相对位置可能保持的比较好,那么,我们可以采用新的小范围内的参考坐标系,或者,采用参考特征的相对位置的测量。
相对测量是指在测量特征时,选择一个已经测量过的特征作为参考特征,然后根据被测特征理论值与参考特征理论值之间位置的关系,由参考特征的实测值重新计算被测特征的目标值,并根据这个目标值去测量被测特征。即使工件总坐标系发生了较大偏差,只要特征之间的相对位置不变,就仍然可以实现自动测量。
如图,测量过程中根据实际情况,既可以相对于“单一元素”测量,也可以相对于“多个元素”测量。下面举例说明。
相对测量/默认 (I,J,K, T):仅仅需要相对测量调整特征的方向;
相对测量/常规 (I,J,K, X,Y,Z):需要同时对测量元素的方向和位置进行调整。
1.单一元素
如图所示假定要测量一个平面PLN1和平面上的一个圆CIR 1。此时可以选择“相对测量/默认 (I,J,K, T)”模式,先测量平面,在测量圆时在相对测量对话框选择“相对单一元素”中将平面PLN1作为其相对测量的特征,RationalDMIS2020会参考平面(PLN1)的矢量方向对圆的测量位置进行调整重新计算圆的测量位置,自动测量圆CIR 1
MODE/PROG,MAN
F(PLN1)=FEAT/PLANE,CART,60.2474,83.0419,-0.0000,0.0000,0.0000,1.0000
$$ Measurement points are created through nominal points
MEAS/PLANE, F(PLN1), 4
PTMEAS/CART, 7.6763, 117.7998, 0.0000, 0.0000, 0.0000, 1.0000
PTMEAS/CART, 6.9503, 52.4066, 0.0000, 0.0000, 0.0000, 1.0000
PTMEAS/CART, 106.1832, 36.3196, 0.0000, 0.0000, 0.0000, 1.0000
PTMEAS/CART, 120.1798, 125.6414, 0.0000, 0.0000, 0.0000, 1.0000
ENDMES
F(CIR1)=FEAT/CIRCLE,INNER,CART,57.1500,81.2800,-3.0000,0.0000,0.0000,1.0000, 50.8000
$$ Measurement points are created through nominal points
RMEAS/CIRCLE, F(CIR1), 4, FA(PLN1)
GOTO/CART, 75.4679, 94.1724, 18.0000
PTMEAS/CART, 77.9212, 95.8991, -3.0000, -0.8178, -0.5756, 0.0000
GOTO/CART, 69.1398, 100.2010, -3.0000
GOTO/CART, 60.9864, 103.3490, -3.0000
GOTO/CART, 52.2489, 103.1372, -3.0000
PTMEAS/CART, 42.5309, 102.0512, -3.0000, 0.5756, -0.8178, 0.0000
GOTO/CART, 38.2290, 93.2698, -3.0000
GOTO/CART, 35.0810, 85.1164, -3.0000
GOTO/CART, 35.2928, 76.3789, -3.0000
PTMEAS/CART, 36.3788, 66.6609, -3.0000, 0.8178, 0.5756, 0.0000
GOTO/CART, 45.1602, 62.3590, -3.0000
GOTO/CART, 53.3136, 59.2110, -3.0000
GOTO/CART, 62.0511, 59.4228, -3.0000
PTMEAS/CART, 71.7691, 60.5088, -3.0000, -0.5756, 0.8178, 0.0000
ENDMES
2.相对多元素
当然也可以相对多个元素特征,如下图。下图以三个平面基准:PLA1、PLA2、PLA3作为相对元素,X:PLA3,Y:PLA2,Z:PLA1,测量圆柱特征:CYL1。
MODE/PROG,MAN
F(PLN1)=FEAT/PLANE,CART,60.2474,83.0419,-0.0000,0.0000,0.0000,1.0000
$$ Measurement points are created through nominal points
MEAS/PLANE, F(PLN1), 4
PTMEAS/CART, 7.6763, 117.7998, 0.0000, 0.0000, 0.0000, 1.0000
PTMEAS/CART, 6.9503, 52.4066, 0.0000, 0.0000, 0.0000, 1.0000
PTMEAS/CART, 106.1832, 36.3196, 0.0000, 0.0000, 0.0000, 1.0000
PTMEAS/CART, 120.1798, 125.6414, 0.0000, 0.0000, 0.0000, 1.0000
ENDMES
F(CIR1)=FEAT/CIRCLE,INNER,CART,57.1500,81.2800,-3.0000,0.0000,0.0000,1.0000, 50.8000
$$ Measurement points are created through nominal points
RMEAS/CIRCLE, F(CIR1), 4, FA(PLN1)
GOTO/CART, 75.4679, 94.1724, 18.0000
PTMEAS/CART, 77.9212, 95.8991, -3.0000, -0.8178, -0.5756, 0.0000
GOTO/CART, 69.1398, 100.2010, -3.0000
GOTO/CART, 60.9864, 103.3490, -3.0000
GOTO/CART, 52.2489, 103.1372, -3.0000
PTMEAS/CART, 42.5309, 102.0512, -3.0000, 0.5756, -0.8178, 0.0000
GOTO/CART, 38.2290, 93.2698, -3.0000
GOTO/CART, 35.0810, 85.1164, -3.0000
GOTO/CART, 35.2928, 76.3789, -3.0000
PTMEAS/CART, 36.3788, 66.6609, -3.0000, 0.8178, 0.5756, 0.0000
GOTO/CART, 45.1602, 62.3590, -3.0000
GOTO/CART, 53.3136, 59.2110, -3.0000
GOTO/CART, 62.0511, 59.4228, -3.0000
PTMEAS/CART, 71.7691, 60.5088, -3.0000, -0.5756, 0.8178, 0.0000
ENDMES
F(PLN2)=FEAT/PLANE,CART,90.0881,-0.0000,-10.5134,0.0000,-1.0000,0.0000
$$ Measurement points are created through nominal points
RMEAS/PLANE, F(PLN2), 4, FA(PLN1)
PTMEAS/CART, 39.2596, 0.0000, -5.7015, 0.0000, -1.0000, 0.0000
PTMEAS/CART, 39.5082, 0.0000, -14.2009, 0.0000, -1.0000, 0.0000
PTMEAS/CART, 127.9152, 0.0000, -16.4220, 0.0000, -1.0000, 0.0000
PTMEAS/CART, 153.6695, 0.0000, -5.7294, 0.0000, -1.0000, 0.0000
ENDMES
F(PLN3)=FEAT/PLANE,CART,0.0000,109.1518,-10.3370,-1.0000,-0.0000,-0.0000
$$ Measurement points are created through nominal points
RMEAS/PLANE, F(PLN3), 4, FA(PLN1)
PTMEAS/CART, 0.0000, 43.7433, -3.1485, -1.0000, 0.0000, 0.0000
PTMEAS/CART, 0.0000, 43.2125, -13.4749, -1.0000, 0.0000, 0.0000
PTMEAS/CART, 0.0000, 120.8265, -18.4342, -1.0000, 0.0000, 0.0000
PTMEAS/CART, 0.0000, 228.8246, -6.2903, -1.0000, 0.0000, 0.0000
ENDMES
F(CYL1)=FEAT/CYLNDR,INNER,CART,127.0000,76.2000,-9.5250,0.0000,0.0000,1.0000, 12.7000, 19.0500
$$ Measurement points are created through nominal points
RMEAS/CYLNDR, F(CYL1), 8, FA(PLN3), XDIR, FA(PLN2), YDIR, FA(PLN1), ZDIR
PTMEAS/CART, 122.5678, 80.7473, -1.9050, 0.6980, -0.7161, 0.0000
PTMEAS/CART, 122.5678, 80.7473, -13.3350, 0.6980, -0.7161, 0.0000
GOTO/CART, 125.5539, 79.2218, -13.3350
PTMEAS/CART, 126.2393, 82.5043, -13.3350, 0.1198, -0.9928, 0.0000
PTMEAS/CART, 126.2393, 82.5043, -1.9050, 0.1198, -0.9928, 0.0000
GOTO/CART, 127.6325, 79.4897, -7.6200
PTMEAS/CART, 130.0444, 81.7726, -13.3350, -0.4794, -0.8776, -0.0000
GOTO/CART, 129.4265, 78.5097, -13.3350
PTMEAS/CART, 132.7159, 78.9661, -13.3350, -0.9001, -0.4356, -0.0000
PTMEAS/CART, 132.7159, 78.9661, -1.9050, -0.9001, -0.4356, -0.0000
GOTO/CART, 130.3241, 76.6159, -5.7150
PTMEAS/CART, 133.2212, 74.9273, -9.5250, -0.9797, 0.2004, 0.0000
ENDMES