首页/文章/ 详情

RationalDMIS MEAS安全平面扩展

14小时前浏览2

MEAS/POINT,F(L),1[,CLRSRF,【F,FA,】#,CLRSRE,【F,FA,]#

第一个 CLRSRE在第一个 PTMEAS时起作用;

第二个CLRSRF在元素测量完之后增加抬高位置;

MODE/PROG,MAN

F(PLN1)=FEAT/PLANE,CART,31.2500,46.7878,35.0000,0.0000,0.0000,1.0000

$$ 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, 2003

M(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

ENDMAC

SNSET/APPRCH, 2.0000

SNSET/RETRCT, 2.0000

SNSET/DEPTH, 0.0000

SNSET/SEARCH, 10.0000

SNSET/CLRSRF, F(PLN1), 20.0000

F(PT1)=FEAT/POINT,CART,7.0740,73.5291,35.0000,0.0000,0.0000,1.0000

$$ CALL/M(EASI_CLEARPLN_GOTO), 0, 7.0740, 73.5291, 38.0000

MEAS/POINT, F(PT1), 1, CLRSRF, F(PLN1), 20.000000, CLRSRF, F(PLN1), 20.000000

GOTO/CART, 7.0740,73.5291,56.0000

PTMEAS/CART, 7.0740,73.5291,35.0000,0.0000,0.0000,1.0000, APPRCH, 2.000000, RETRCT, 2.000000

ENDMES

来源:山涧果子
科普
著作权归作者所有,欢迎分享,未经许可,不得转载
首次发布时间:2024-12-28
最近编辑:14小时前
山涧果子
大专 签名征集中
获赞 204粉丝 51文章 254课程 0
点赞
收藏
作者推荐

RationalDMIS如何设置公差列表

在双数据区的公差数据区(ALT+T),找到公差列表节点:CORTOL X/Y/Z分别用来设置X∧Z三轴的公差列表;在相应标签上鼠标左键双击,即可出现对应的公差列表设置窗口可以在第一行点击鼠标右键‘选择插入新项’,输入范围和上、下公差:上图设置的意思是:坐标小于10的应用公差-0.02/0.02坐标10-30的应用公差-0.05/0.05坐标30-50的应用公差-0.1/0.1 然后在输出设置窗口,有一个默认使用关闭的设置,如果启用该设置,之后的元素坐标公差将可以按照之前定义的方式来输出.将P1、PT2、P3、PT4,PT5,PT6输出到输出窗口,可见软件会根据元素不同的Ⅹ,Y,Z坐标值来设置不同的坐标公差带。来源:山涧果子

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