概述
NETDMIS5.0提供了碰撞测试的功能,方便了用户在在软件中自动模拟测量的实际过程,检测编辑的程序在运行时是否会发生碰撞。进行碰撞测试时应确保“图形显示”窗口以“实体模式”显示零件模型。
如图所示,脱机编写了测量圆-面-圆的程序,对程序进行碰撞测试。
1、显示路径线, NETDMIS5.0 会在“图形显示”窗口内显示测头的路径线;
或者只显示这3个元素路径:
2、编程系统—碰撞检测
主要用在脱机编程时( 即在 CAD 上编程), 检查程序路径是否正常, 有无碰撞情况, 方便修改, 避免联机运行时发生异常碰撞。
编程完成后, 点击【 编程系统】 →【 碰撞检测】 弹出如下对话框:点击“ 运行”, 程序脱机运行, CAD 窗口可看到测头运行动画, 碰撞位置节点名称显示在对话框中。
若勾选“ 碰撞后停止” 则碰撞检测过程中发生碰撞后, 测头停止运行, 点击“ 继续” 再向下继续执行。
注意: 未装配测头时, “ 碰撞检测” 功能无法正常使用。
$$ NET_DMIS_20160720
$$ MADE IN DE 2023-2-10 14:10:20
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,2.0000
SNSET/SEARCH,5.0000
SNSET/APPRCH,2.0000
DMESW/COMAND,'SNSET/MANRETRCT,2.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)
GEOALG/PLANE,LSTSQR
F(平面1)=FEAT/PLANE,CART,22.5266,23.7059,0,0,0,1.00000000
MEAS/PLANE,F(平面1),3
PTMEAS/CART,4.0794,57.6999,0,0,0,1.00000000
PTMEAS/CART,5.8532,6.5685,0,0,0,1.00000000
PTMEAS/CART,57.6471,6.8493,0,0,0,1.00000000
ENDMES
SNSET/DEPTH,0
DMESW/COMAND,'CONST/SET_PROJ_VEC,FA(平面1),1'
F(直线1)=FEAT/LINE,UNBND,CART,5.1593,0,-1.3806,0.99988717,0,-0.01502159,0,-1.00000000,0
MEAS/LINE,F(直线1),2
PTMEAS/CART,5.1593,0,-1.7985,0,-1.00000000,0
PTMEAS/CART,60.7994,0,-1.7985,0,-1.00000000,0
ENDMES
F(点1)=FEAT/POINT,CART,0,3.9350,-1.8788,-1.00000000,0,0
MEAS/POINT,COMP,DME,F(点1),1
PTMEAS/CART,0,3.9350,-1.8788,-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,1.0000
SNSET/APPRCH,1.0000
DMESW/COMAND,'SNSET/MANRETRCT,1.0000'
DMESW/COMAND,'CLEARP/ZDIR,10.0000,ZDIR,10.0000,ON'
F(平面2)=FEAT/PLANE,CART,33.9355,55.8219,0,0,0,1.00000000
CALL/EXTERN,DMIS,M(NETDMIS_AUTO_PLANEPOINTS_1006),AUTOFIGURE,F(平面2),PLANE,CART,LSTSQR,33.9355,55.8219,$
0,0,0,1.00000000,FALSE,FALSE,FALSE,10.0000,"CUR",TRUE,FALSE,POINTS,'6,2.4780,8.9903,0,0,0,1.00000000,$
1.7664,59.2987,0,0,0,1.00000000,22.1108,94.7779,0,0,0,1.00000000,57.1146,96.6342,0,0,0,1.00000000,60.8528,$
69.4028,0,0,0,1.00000000,59.2901,5.8277,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,-1.00000000,0
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,-1.00000000,0,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,15.9115,22.5000,0,0,0,1.00000000,10.0000
CALL/EXTERN,DMIS,M(NETDMIS_AUTO_CIRCLE_1007),AUTOFIGURE,F(圆1),CIRCLE,INNER,CART,LSTSQR,15.9115,22.5000,$
0,0,0,1.00000000,10.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
F(平面3)=FEAT/PLANE,CART,34.9440,0,-13.2068,0,-1.00000000,0
CALL/EXTERN,DMIS,M(NETDMIS_AUTO_PLANEPOINTS_1006),AUTOFIGURE,F(平面3),PLANE,CART,LSTSQR,34.9440,0,-13.2068,$
0,-1.00000000,0,FALSE,FALSE,FALSE,10.0000,"CUR",FALSE,FALSE,POINTS,'4,9.2306,0,-5.9931,0,-1.00000000,$
0,9.1725,0,-24.1706,0,-1.00000000,0,58.9924,0,-19.7798,0,-1.00000000,0,62.3805,0,-2.8836,0,-1.00000000,$
0',TOUCH,0.3000,XYPLAN
F(圆2)=FEAT/CIRCLE,INNER,CART,52.4500,11.5500,0,0,0,1.00000000,6.7960
CALL/EXTERN,DMIS,M(NETDMIS_AUTO_CIRCLE_1007),AUTOFIGURE,F(圆2),CIRCLE,INNER,CART,LSTSQR,52.4500,11.5500,$
0,0,0,1.00000000,6.7960,-1.00000000,0,0,5,-3.0000,0,0,0,0,360.0000,TOUCH,CIRCLE,0.3000,0,FALSE,FALSE,$
FALSE,10.0000,"CUR",FALSE,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
DMESW/COMAND,'MOVE/CLEARPLANE'
NETDMIS5.0还显示碰撞列表对话框,帮助用户在其零件程序中快速找出碰撞问题的位置。
最后
以上就是老实白猫为你收集整理的NETDMIS5.0碰撞测试2023的全部内容,希望文章能够帮你解决NETDMIS5.0碰撞测试2023所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复