首页/文章/ 详情

RationalDMIS7.1 快速四面分中构建坐标系

2天前浏览9

主要应用于铜公(电极),模具等中心对称的工件。


路径:功能操作区


          坐标系——快速3-2-1创建坐标系——快速平分坐标系。



典型的3-2-1创建工件坐标系的步骤如下:


1、测量用于建立零件找正的几何特征,通常测量零件的一个平面


2、测量必要的其他几何特征,用来锁定零件的自由度


3、设为原点,建立坐标系,锁定工件


根据界面提示,在工件上相应的位置测点,然后按“添加/激活坐标系”按钮即可。


注意:一定要勾选创建元素:


用来创建新坐标系的测量点不需要存在数据库.默认情况下,新坐标系建立后它们就丢失掉了.但"创建元素"选项可以用来选择保存这些点.


当选中这个复选框后,就会创建出这些元素同时在自学习模式打开的情况下产生DMIS语句.产生的DMIS语句是可以重复运行的。



操作方法:


在平面上测量4个点,在矩形的每个边顺序各采2点;


坐标系说明:


Z轴:由4个测点确定的平面来确定;


X轴:由第一条边和第三条边的中分线来确定,X轴正方向由第一边上的第1测点到第2测点指向来定;


坐标系原点:Z原点在平面上,XY原点由相对的2边的平分线的交点来确定;


$$/*  Header

DMISMN/'Created by [爱科腾瑞科技(北京)有限公司-041520-DEMO] on Tuesday, March 17, 2020', 4.0

UNITS/MM, ANGDEC, MMPS

WKPLAN/XYPLAN

PRCOMP/ON

TECOMP/ON

FLY/1.0000

MODE/MAN

SNSET/APPRCH, 2.0000

SNSET/RETRCT, 2.0000

SNSET/DEPTH, 0.0000

SNSET/SEARCH, 10.0000

SNSET/CLRSRF, 20.0000

RECALL/D(MCS)

SNSLCT/S(L20-D2.0)

GEOALG/BF, LSTSQR

GEOALG/ANGLB, DEFALT

GEOALG/CIRCLE, LSTSQR

GEOALG/ARC, LSTSQR

GEOALG/PLANE, LSTSQR

$$

$$

$$*/

MODE/MAN

KNPTN1 = VALUE/PRCOMP

KNPTC1 = VALUE/MODE

PRCOMP/ON

MODE/MAN

F(PLN1)=FEAT/PLANE,CART,-0.5813,-0.1518,0.0000,0.0000,0.0000,1.0000

$$ Measurement points are created through nominal points

MEAS/PLANE, F(PLN1), 4

  PTMEAS/CART, -21.2446,  10.9426, 1.0000, 0.0000, 0.0000, 1.0000

  PTMEAS/CART, -18.6571, -11.5888, 1.0000, 0.0000, 0.0000, 1.0000

  PTMEAS/CART,  18.2988, -12.5057, 1.0000, 0.0000, 0.0000, 1.0000

  PTMEAS/CART,  19.2776,  12.5445, 1.0000, 0.0000, 0.0000, 1.0000

ENDMES

F(PT1)=FEAT/POINT,CART,-15.0818,-16.0000,-2.5371,0.0000,-1.0000,0.0000

F(PT2)=FEAT/POINT,CART,17.0283,-16.0000,-2.9721,0.0000,-1.0000,0.0000

F(PT3)=FEAT/POINT,CART,23.5000,-11.7921,-1.7680,1.0000,0.0000,0.0000

F(PT4)=FEAT/POINT,CART,23.5000,9.2504,-1.7651,1.0000,0.0000,0.0000

F(PT5)=FEAT/POINT,CART,19.1025,16.0000,-1.0580,0.0000,1.0000,0.0000

F(PT6)=FEAT/POINT,CART,-16.1633,16.0000,-2.2325,0.0000,1.0000,0.0000

F(PT7)=FEAT/POINT,CART,-23.5000,10.1144,-1.8703,-1.0000,0.0000,0.0000

F(PT8)=FEAT/POINT,CART,-23.5000,-5.2558,-2.0616,-1.0000,0.0000,0.0000

PRCOMP/OFF

MEAS/POINT, F(PT1), 1

  PTMEAS/CART, -15.0818,-16.0000,-2.5371,0.0000,-1.0000,0.0000

ENDMES

MEAS/POINT, F(PT2), 1

  PTMEAS/CART, 17.0283,-16.0000,-2.9721,0.0000,-1.0000,0.0000

ENDMES

MEAS/POINT, F(PT3), 1

  PTMEAS/CART, 23.5000,-11.7921,-1.7680,1.0000,0.0000,0.0000

ENDMES

MEAS/POINT, F(PT4), 1

  PTMEAS/CART, 23.5000,9.2504,-1.7651,1.0000,0.0000,0.0000

ENDMES

MEAS/POINT, F(PT5), 1

  PTMEAS/CART, 19.1025,16.0000,-1.0580,0.0000,1.0000,0.0000

ENDMES

MEAS/POINT, F(PT6), 1

  PTMEAS/CART, -16.1633,16.0000,-2.2325,0.0000,1.0000,0.0000

ENDMES

MEAS/POINT, F(PT7), 1

  PTMEAS/CART, -23.5000,10.1144,-1.8703,-1.0000,0.0000,0.0000

ENDMES

MEAS/POINT, F(PT8), 1

  PTMEAS/CART, -23.5000,-5.2558,-2.0616,-1.0000,0.0000,0.0000

ENDMES

F(LN1)=FEAT/LINE,UNBND,CART,0.9732,-16.0000,-2.7546,0.9999,0.0000,-0.0135,0.0000,0.0000,1.0000

CONST/LINE, F(LN1), BF, FA(PT1), FA(PT2)

F(LN2)=FEAT/LINE,UNBND,CART,1.4696,16.0000,-1.6452,-0.9994,0.0000,-0.0333,0.0000,0.0000,1.0000

CONST/LINE, F(LN2), BF, FA(PT5), FA(PT6)

F(LN3)=FEAT/LINE,UNBND,CART,23.5000,-1.2709,-1.7666,0.0000,1.0000,0.0001,0.0000,0.0000,1.0000

CONST/LINE, F(LN3), BF, FA(PT3), FA(PT4)

F(LN4)=FEAT/LINE,UNBND,CART,-23.5000,2.4293,-1.9660,0.0000,-0.9999,-0.0124,0.0000,0.0000,1.0000

CONST/LINE, F(LN4), BF, FA(PT7), FA(PT8)

F(LN5)=FEAT/LINE,UNBND,CART,0.9732,-16.0000,0.0000,1.0000,0.0000,0.0000,0.0000,0.0000,1.0000

CONST/LINE, F(LN5), PROJLI, FA(LN1), FA(PLN1)

F(LN6)=FEAT/LINE,UNBND,CART,1.4696,16.0000,0.0000,-1.0000,0.0000,0.0000,0.0000,0.0000,1.0000

CONST/LINE, F(LN6), PROJLI, FA(LN2), FA(PLN1)

F(LN7)=FEAT/LINE,UNBND,CART,23.5000,-1.2709,0.0000,0.0000,1.0000,0.0000,0.0000,0.0000,1.0000

CONST/LINE, F(LN7), PROJLI, FA(LN3), FA(PLN1)

F(LN8)=FEAT/LINE,UNBND,CART,-23.5000,2.4293,0.0000,0.0000,-1.0000,0.0000,0.0000,0.0000,1.0000

CONST/LINE, F(LN8), PROJLI, FA(LN4), FA(PLN1)

F(LN9)=FEAT/LINE,UNBND,CART,1.2214,0.0000,0.0000,1.0000,0.0000,0.0000,0.0000,0.0000,1.0000

CONST/LINE, F(LN9), MIDLI, FA(LN5), FA(LN6)

F(LN10)=FEAT/LINE,UNBND,CART,0.0000,0.5792,0.0000,0.0000,1.0000,0.0000,0.0000,0.0000,1.0000

CONST/LINE, F(LN10), MIDLI, FA(LN7), FA(LN8)

F(PT9)=FEAT/POINT,CART,0.0000,0.0000,0.0000,0.0000,0.0000,1.0000

CONST/POINT, F(PT9), INTOF, FA(LN9), FA(LN10)

D(CRD1) = DATSET/FA(PLN1), ZDIR, FA(LN9), XDIR

D(CRD1) = TRANS/XORIG, FA(PT9), YORIG, FA(PT9), ZORIG, FA(PT9)

IF/KNPTN1.EQ.1

    PRCOMP/ON

ELSE/KNPTN1.EQ.0

    PRCOMP/OFF

ENDIF

IF/KNPTC1.EQ.'AUTO,PROG,MAN'

    MODE/AUTO,PROG,MAN

ENDIF

IF/KNPTC1.EQ.'PROG,MAN'

    MODE/PROG,MAN

ENDIF

IF/KNPTC1.EQ.'MAN'

    MODE/MAN

ENDIF



来源:山涧果子
MarcUGFMEA模具
著作权归作者所有,欢迎分享,未经许可,不得转载
首次发布时间:2025-01-04
最近编辑:2天前
山涧果子
大专 签名征集中
获赞 204粉丝 51文章 748课程 0
点赞
收藏
作者推荐

RationalDMIS 7.1 手动不采点构建坐标系

引入虚点(当前测针红宝石球心的坐标)提高单件小批量产品检测效率1.平面找正第一轴2.将测尖放到孔中心,读取探针的球心作为坐标原点(X,Y原点)。$$ 对于测量需要注意的地方:$$ 在测量点的情况下(测量的类型为POINT),如果测量点数设置为1,那么将按照定义的理论值去测量。如果设置为0,将记录当时测针红宝石球心的坐标,将此作为当前测量点实际值。(1)设置点元素手动采集最少点数为0(2)将测尖放到孔中心(3)平移坐标系3.自动测量圆,精建坐标系。 引入虚点的程序,不受工件位置的局限性,省去了制作工装的费用,减少手动采点操作的重复性工作,节省了检测时间,此种检测方法在同类零件或结构相似的零件中都可使用,应用范围广。$$/* HeaderDMISMN/'Created by [爱科腾瑞科技(北京)有限公司-091520-DEMO] on 星期五, 五月 15, 2020', 4.0UNITS/MM, ANGDEC, MMPSWKPLAN/XYPLANPRCOMP/ONTECOMP/ONFLY/1.0000MODE/MANSNSET/APPRCH, 2.0000SNSET/RETRCT, 2.0000SNSET/DEPTH, 0.0000SNSET/SEARCH, 10.0000SNSET/CLRSRF, 20.0000RECALL/D(MCS)SNSLCT/S(L20-D2.0)GEOALG/BF, LSTSQRGEOALG/ANGLB, DEFALTGEOALG/CIRCLE, LSTSQRGEOALG/ARC, LSTSQRGEOALG/PLANE, LSTSQR$$$$$$*/MODE/MANF(PLN1)=FEAT/PLANE,CART,-0.9253,-1.4820,0.0000,0.0000,0.0000,1.0000$$ Measurement points are created through actual pointsMEAS/PLANE, F(PLN1), 3 PTMEAS/CART, -10.2486, 17.0148, -0.0000, 0.0000, 0.0000, 1.0000 PTMEAS/CART, -11.8742, -12.8735, -0.0000, 0.0000, 0.0000, 1.0000 PTMEAS/CART, 19.3471, -8.5872, -0.0000, 0.0000, 0.0000, 1.0000ENDMESD(CRD1) = DATSET/FA(PLN1), ZDIRD(CRD1) = TRANS/ZORIG, FA(PLN1)TEXT/OPER, '请将测头移动到圆孔中心位置!'$$ 对于测量需要注意的地方:$$ 在测量点的情况下(测量的类型为POINT),如果测量点数设置为1,那么将按照定义的理论值去测量。如果设置为0,将记录当时测针红宝石球心的坐标,将此作为当前测量点实际值。F(PT1)=FEAT/POINT,CART,0.0000,0.0000,0.0000,0.0000,0.0000,1.0000MEAS/POINT, F(PT1), 0ENDMESD(CRD2) = TRANS/XORIG, FA(PT1), YORIG, FA(PT1)MODE/PROG,MAN$$ MACRO: EASI_CLEARPLN_GOTO$$ FUNCTION: CLEARANCE SURFACE IMPLEMENTATION$$ Move machine CLEAR SURFACE DIST above the current clear surface $$ plane and then move machine parallel to the clear surface plane $$ ALL Macro parameters are in PCS and Current UNITS$$ Last update: 3-1-04 Add mode checking. only works in PROG MODE$$ Last update: 8-24-04 Clear position is based on the surface of$$ $$ This sample DMIS Macro is provided by External-Array Software, Inc.$$ It should be modified for your own use. There is no guarantee for$$ the quality of this Macro. November, 2003M(EASI_CLEARPLN_GOTO) = MACRO/ISNOM, TARX, TARY, TARZ DECL/LOCAL, REAL, CCX, CCY, CCZ, CCI, CCJ, CCK DECL/LOCAL, REAL, CURX, CURY, CURZ, TD, CLRDIST, SDIAM DECL/LOCAL, CHAR, 255, CLRLABEL, FLABEL, MMODE, SNAME MMODE = VALUE/MODE CLRLABEL = VALUE/SNSET, CLRSRF IF/ ( (LEN(CLRLABEL) .GT. 0) .AND. (MMODE .EQ. 'PROG,MAN') ) CLRDIST = VALUE/SNSET, CLRSRF, DIST FLABEL = ASSIGN/'FA' IF/ ISNOM .EQ. 0 FLABEL = ASSIGN/'F' ENDIF CCX = OBTAIN/FLABEL(@CLRLABEL), 3 CCY = OBTAIN/FLABEL(@CLRLABEL), 4 CCZ = OBTAIN/FLABEL(@CLRLABEL), 5 CCI = OBTAIN/FLABEL(@CLRLABEL), 6 CCJ = OBTAIN/FLABEL(@CLRLABEL), 7 CCK = OBTAIN/FLABEL(@CLRLABEL), 8 SNAME = VALUE/SNSLCT SDIAM = OBTAIN/SS(SNAME), 8 CCX = ASSIGN/CCX + CCI * SDIAM/2 CCY = ASSIGN/CCY + CCJ * SDIAM/2 CCZ = ASSIGN/CCZ + CCK * SDIAM/2 CURX = VALUE/GOTOM, XAXIS CURY = VALUE/GOTOM, YAXIS CURZ = VALUE/GOTOM, ZAXIS TD = ASSIGN/(CURX - CCX) * CCI + (CURY - CCY) * CCJ + (CURZ - CCZ) * CCK IF/ TD .LT. CLRDIST TD = ASSIGN/(CLRDIST - TD) GOTO/CURX+CCI*TD, CURY+CCJ*TD, CURZ+CCK*TD ENDIF TD = ASSIGN/(TARX - CCX) * CCI + (TARY - CCY) * CCJ + (TARZ - CCZ) * CCK IF/ TD .LT. CLRDIST TD = ASSIGN/(CLRDIST - TD) GOTO/TARX+CCI*TD, TARY+CCJ*TD, TARZ+CCK*TD ENDIF ENDIF ENDMACSNSET/APPRCH, 2.0000SNSET/RETRCT, 2.0000SNSET/DEPTH, 0.0000SNSET/SEARCH, 10.0000SNSET/CLRSRF, FA(PLN1), 20.0000F(CIR1)=FEAT/CIRCLE,INNER,CART,-0.0000,-0.0000,-4.0000,0.0000,0.0000,1.0000, 29.0000$$ Measurement points are created through nominal points$$ CALL/M(EASI_CLEARPLN_GOTO), 1, 0.0000, 0.0000, 21.0000MEAS/CIRCLE, F(CIR1), 8 GOTO/CART, 0.0000, 0.0000, 21.0000 GOTO/CART, 11.5000, 0.0000, 21.0000 GOTO/CART, 11.5000, 0.0000, 16.0000 PTMEAS/CART, 14.5000, 0.0000, -4.0000, -1.0000, 0.0000, 0.0000 GOTO/CART, 10.6246, 4.4009, -4.0000 PTMEAS/CART, 10.2530, 10.2530, -4.0000, -0.7071, -0.7071, -0.0000 GOTO/CART, 4.4009, 10.6246, -4.0000 PTMEAS/CART, 0.0000, 14.5000, -4.0000, -0.0000, -1.0000, -0.0000 GOTO/CART, -4.4009, 10.6246, -4.0000 PTMEAS/CART, -10.2530, 10.2530, -4.0000, 0.7071, -0.7071, 0.0000 GOTO/CART, -10.6246, 4.4009, -4.0000 PTMEAS/CART, -14.5000, 0.0000, -4.0000, 1.0000, 0.0000, 0.0000 GOTO/CART, -10.6246, -4.4009, -4.0000 PTMEAS/CART, -10.2530, -10.2530, -4.0000, 0.7071, 0.7071, 0.0000 GOTO/CART, -4.4009, -10.6246, -4.0000 PTMEAS/CART, 0.0000, -14.5000, -4.0000, 0.0000, 1.0000, 0.0000 GOTO/CART, 4.4009, -10.6246, -4.0000 PTMEAS/CART, 10.2530, -10.2530, -4.0000, -0.7071, 0.7071, 0.0000 GOTO/CART, 8.1317, -8.1317, 16.0000ENDMESD(CRD3) = TRANS/XORIG, FA(CIR1), YORIG, FA(CIR1)来源:山涧果子

未登录
还没有评论
课程
培训
服务
行家
VIP会员 学习计划 福利任务
下载APP
联系我们
帮助与反馈