首页/文章/ 详情

RationalDMIS数组之多维排列

16小时前浏览4

提示:
 

        多维排列可以被应用于特征数据分开,对于取极值很方便!利用函数MN(x,x,...)

DMISMN/'Created by [爱科腾瑞(CNC).12.9] on 星期二, 九月 13, 2016', 4.0

UNITS/MM, ANGDEC

WKPLAN/XYPLAN

PRCOMP/ON

TECOMP/ON

FLY/1.0

MODE/PROG, MAN

SNSET/APPRCH, 3.000000

SNSET/RETRCT, 3.000000

SNSET/DEPTH, 0.000000

SNSET/SEARCH, 10.000000

SNSET/CLRSRF, 10.000000

RECALL/D(MCS)

SNSLCT/S(PH10T)

GEOALG/CIRCLE, LSTSQR

GEOALG/ARC, LSTSQR

GEOALG/PLANE, LSTSQR

$$

$$

MODE/MAN

F(PLN1) = FEAT/PLANE,CART, 37.421473, 29.063274, 0.000000, 0.000000,$

 0.000000, 1.000000

$$ Measurement points are created through actual points

MEAS/PLANE, F(PLN1), 4

  PTMEAS/CART,  3.834555, 45.950165, 0.000000, 0.000000, 0.000000, 1.000000

  PTMEAS/CART,  5.440365, 11.858565, 0.000000, 0.000000, 0.000000, 1.000000

  PTMEAS/CART,  68.797813, 6.310098, 0.000000, 0.000000, 0.000000, 1.000000

  PTMEAS/CART,  71.613159, 52.134270, 0.000000, 0.000000, 0.000000, 1.000000

ENDMES

OUTPUT/FA(PLN1), TA(XCTL), TA(YCTL), TA(ZCTL)

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

D(CRD1) = TRANS/ZORIG, FA(PLN1)

$$ Measurement points are created through nominal points

F(LN1) = FEAT/LINE,BND,CART, 5.312732, 0.000000, -3.467726, 69.759949,$

 0.000000, -5.149958, 0.000000, -1.000000, 0.000000

$$ Measurement points are created through actual points

MEAS/LINE, F(LN1), 2

  PTMEAS/CART,  5.312732, 0.000000, -3.467726, 0.000000, -1.000000, 0.000000

  PTMEAS/CART,  69.759949, 0.000000, -5.149958, 0.000000, -1.000000, 0.000000

ENDMES

OUTPUT/FA(LN1), TA(XCTL), TA(YCTL), TA(ZCTL)

F(LN2) = FEAT/LINE,BND,CART, 0.000000, 3.299111, -2.150045, 0.000000,$

 68.062653, -4.473559, -1.000000, 0.000000, 0.000000

$$ Measurement points are created through actual points

MEAS/LINE, F(LN2), 2

  PTMEAS/CART,  0.000000, 3.299111, -2.150045, -1.000000, 0.000000, 0.000000

  PTMEAS/CART,  0.000000, 68.062653, -4.473559, -1.000000, 0.000000, 0.000000

ENDMES

OUTPUT/FA(LN2), TA(XCTL), TA(YCTL), TA(ZCTL)

F(PT_INTER1) = FEAT/POINT,CART, -0.016899, 0.023227, -2.680759, 0.026077,$

 0.035842, 0.999017

CONST/POINT, F(PT_INTER1), INTOF, FA(LN1), FA(LN2)

OUTPUT/FA(PT_INTER1), TA(XCTL), TA(YCTL), TA(ZCTL)

D(CRD2) = ROTATE/ZAXIS, FA(LN1), XDIR

D(CRD3) = TRANS/XORIG, FA(PT_INTER1), YORIG, FA(PT_INTER1)

MODE/PROG,MAN

DECL/COMMON,INTGR,I

DECL/COMMON,CHAR,255,C[50,2]

DECL/COMMON,CHAR,255,C2,C3

DO/I,1,50,1

C[I,1] = ASSIGN/CONCAT('J-',STR(I))

C[I,2] = ASSIGN/CONCAT('K-',STR(I))

C2 = ASSIGN/C[I,1]

C3 = ASSIGN/C[I,2]

F(@C2) = FEAT/CIRCLE,INNER,CART, 19.830366, 17.476773, -2.000000, 0.000000,$

 0.000000, 1.000000, 10.000000

$$ Measurement points are created through nominal points

MEAS/CIRCLE, F(@C2), 4

  GOTO/CART,  19.830366, 17.476773, 9.000000

  PTMEAS/CART,  17.699969, 22.000202, -2.000000, 0.426079, -0.904686, 0.000000

  PTMEAS/CART,  15.306937, 15.346376, -2.000000, 0.904686, 0.426079, 0.000000

  PTMEAS/CART,  21.960763, 12.953344, -2.000000, -0.426079, 0.904686, 0.000000

  PTMEAS/CART,  24.353794, 19.607170, -2.000000, -0.904686, -0.426079, 0.000000

  GOTO/CART,  19.830366, 17.476773, 9.000000

ENDMES

F(@C3) = FEAT/CIRCLE,INNER,CART, 56.203432, 17.476773, -2.000000, 0.000000,$

 0.000000, 1.000000, 10.000000

$$ Measurement points are created through nominal points

MEAS/CIRCLE, F(@C3), 4

  GOTO/CART,  56.203432, 17.476773, 9.000000

  PTMEAS/CART,  52.375095, 20.692956, -2.000000, 0.765667, -0.643237, 0.000000

  PTMEAS/CART,  52.987250, 13.648435, -2.000000, 0.643237, 0.765667, 0.000000

  PTMEAS/CART,  60.031770, 14.260590, -2.000000, -0.765667, 0.643237, 0.000000

  PTMEAS/CART,  59.419615, 21.305110, -2.000000, -0.643237, -0.765667, 0.000000

  GOTO/CART,  56.203432, 17.476773, 9.000000

ENDMES

ENDDO



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

RationalDMIS注释应用

提示: TEXT/OPER: 表示在程序执行期间消息将显示到屏幕上,消息为任何可以打印的ASCII字符。具体详情请查阅DMIS5.0标准。 切记:无论PC DMIS 还是RationalDMIS符号的输入不要选择中文输入状态下输入。零件名: 心之寻修订号: 序列号: 统计计数: 1 启动 =坐标系/开始,回调:使用_零件_设置,列表=是 坐标系/终止 模式/手动 飞行/开 格式/文本,选项, ,标题,符号, ;标称值,公差,测定值,偏差,超差, , 加载测头/LENOVO 测尖/T1A0B0, 支撑方向 IJK=0, 0, 1, 角度=0 模式/自动I =循环/开始,标识=是,编号=5,开始=1,跳过=, 偏置:X 轴=0,Y 轴=0,Z 轴=0,角度=0圆1 =特征/触测/圆/默认,直角坐标,内,最小二乘方 理论值/<80,55,0>,<0,0,1>,50 实际值/<80,55,0>,<0,0,1>,50 目标值/<80,55,0>,<0,0,1> 起始角=0,终止角=360 角矢量=<1,0,0> 方向=逆时针 USE_PIN=否 报告矢量=<0,0,1> 显示特征参数=否 显示相关参数=是 测点数=7,深度=5,螺距=0 采样方法=样例点 样例点=3,间隙=0 自动移动=否,距离=10 查找孔=无效,出错=否,读位置=否 显示触测=否 注释/操作者,否,全屏=否,自动继续=否, "已测量"+I+"次。"+"是否继续测量!" 循环/终止DMISMN/'Created by [山涧果子] on 星期四, 九月 28, 2017', 4.0UNITS/MM, ANGDECWKPLAN/XYPLANPRCOMP/ONTECOMP/ONFLY/1.000000MODE/PROG, MANSNSET/APPRCH, 2.000000SNSET/RETRCT, 2.000000SNSET/DEPTH, 2.000000SNSET/SEARCH, 10.000000SNSET/CLRSRF, 30.000000RECALL/D(MCS)SNSLCT/S(LENOVO)GEOALG/CIRCLE, LSTSQRGEOALG/ARC, LSTSQRGEOALG/PLANE, LSTSQR$$$$MODE/PROG,MANDECL/COMMON,INTGR,IDO/I,1,5,1TEXT/OPER, CONCAT('已测量',STR(I),'次',',是否继续测量!')F(CIR1) = FEAT/CIRCLE,INNER,CART, 80.000409, 54.999661, 0.000000, -0.000000,$ -0.000000, 1.000000, 49.985778$$ Measurement points are created through nominal pointsMEAS/CIRCLE, F(CIR1), 4 PTMEAS/CART, 59.405146, 40.840577, -2.000000, 0.824045, 0.566524, 0.000000 GOTO/CART, 68.024870, 36.553153, -2.000000 GOTO/CART, 75.995627, 33.374470, -2.000000 GOTO/CART, 84.576075, 33.488025, -2.000000 PTMEAS/CART, 94.159493, 34.404397, -2.000000, -0.566524, 0.824045, 0.000000 GOTO/CART, 98.446916, 43.024121, -2.000000 GOTO/CART, 101.625600, 50.994878, -2.000000 GOTO/CART, 101.512044, 59.575326, -2.000000 PTMEAS/CART, 100.595672, 69.158744, -2.000000, -0.824045, -0.566524,$ -0.000000 GOTO/CART, 91.975948, 73.446168, -2.000000 GOTO/CART, 84.005192, 76.624851, -2.000000 GOTO/CART, 75.424744, 76.511296, -2.000000 PTMEAS/CART, 65.841326, 75.594924, -2.000000, 0.566524, -0.824045, -0.000000ENDMESENDDO 来源:山涧果子

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