NETDMIS5.0脱机编程指导2023

时间:2021-04-28 01:00:08


NETDMIS5.0脱机编程指导2023

一.脱机编程的步骤

  1. 转换图档并导入测量软件(使用UG,中望3D等三维软件处理);
  2. 建立工件坐标系(粗建坐标系 + 精建坐标系)
  3. 拾取测量点;
  4. 测量点评价;
  5. 编辑报告并保存程式;

NETDMIS5.0脱机编程指导2023


NETDMIS5.0脱机编程指导2023

二.图档转换和导入

  1. 图档转换 - 将工件坐标系转换到与加工坐标系保持一致:
    UG(导出IGES / STP 格式)
    中望3D导出iges/ step格式
  2. 导入测量软件

通过菜单文件 - 导入 - IGES/STP/CAD 选项导入

NETDMIS5.0脱机编程指导2023

三.工件坐标系介绍

  1. 粗建坐标系(面-线-点)

NETDMIS5.0脱机编程指导2023


NETDMIS5.0脱机编程指导2023


NETDMIS5.0脱机编程指导2023

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)
SNSET/RETRCT,2.0000
SNSET/APPRCH,2.0000
GEOALG/PLANE,LSTSQR
F(平面1)=FEAT/PLANE,CART,21.3314,23.6959,0,0,0,1.00000000
MEAS/PLANE,F(平面1),3
PTMEAS/CART,2.7135,59.8533,0,0,0,1.00000000
PTMEAS/CART,3.1945,5.2143,0,0,0,1.00000000
PTMEAS/CART,58.0862,6.0201,0,0,0,1.00000000
ENDMES
SNSET/DEPTH,0
F(直线1)=FEAT/LINE,UNBND,CART,3.7585,0,-2.7356,0.99999833,0,-0.00182514,0,-1.00000000,0
MEAS/LINE,F(直线1),2
PTMEAS/CART,3.7585,0,-2.7356,0,-1.00000000,0
PTMEAS/CART,63.5754,0,-2.8448,0,-1.00000000,0
ENDMES
F(点1)=FEAT/POINT,CART,0,4.0403,-2.3324,-1.00000000,0,0
MEAS/POINT,COMP,DME,F(点1),1
PTMEAS/CART,0,4.0403,-2.3324,-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)
  1. 安全参数设置

1)切换程序运行程式为自动

NETDMIS5.0脱机编程指导2023


2)按F7打开程度安全参数设置菜单——安全平面设置

运行程序过程中的安全平面的定义和选择。

NETDMIS5.0脱机编程指导2023


切换“预设平面”——设置安全空间

NETDMIS5.0脱机编程指导2023


点击“定义平面”,运行程序过程中的安全平面的定义和选择。

NETDMIS5.0脱机编程指导2023


激活平面轴: 选择当前要激活的安全平面。 ( 如: +Z)

偏移值: 从当前坐标系原点位置开始到工件上表面, 再增加一个预设平面的偏置量。

NETDMIS5.0脱机编程指导2023


NETDMIS5.0脱机编程指导2023


3. 精建坐标系(面-线-线)

NETDMIS5.0脱机编程指导2023


NETDMIS5.0脱机编程指导2023


NETDMIS5.0脱机编程指导2023

四.拾取测量点

进入模拟采点 ,在模型上拾取,点击键盘END按键,开始拾取测量点,取点要求:

》先取分中点,再取其它加工点;

》取点要考虑报告保存分页;

》点尽可能分布开;

》取完点应进行碰撞模拟;

NETDMIS5.0脱机编程指导2023

注释:

取完测量点增加以下命令,可使测量后机器移动到安全位置

NETDMIS5.0脱机编程指导2023

DMESW/COMAND,'MOVE/CLEARPLANE'
GOTO/INCR,30.000000,0.000000,0.000000,1.000000

NETDMIS5.0脱机编程指导2023


NETDMIS5.0脱机编程指导2023

五.评价测量点

评价点轮廓度(T值)

NETDMIS5.0脱机编程指导2023

NETDMIS5.0脱机编程指导2023

$$ NET_DMIS_20160720
$$ MADE IN DE 2023-2-9 12:59:58
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,1.0000
SNSET/SEARCH,5.0000
SNSET/APPRCH,1.0000
DMESW/COMAND,'SNSET/MANRETRCT,2'
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)
SNSET/RETRCT,2.0000
SNSET/APPRCH,2.0000
GEOALG/PLANE,LSTSQR
F(平面1)=FEAT/PLANE,CART,21.3314,23.6959,0,0,0,1.00000000
MEAS/PLANE,F(平面1),3
PTMEAS/CART,2.7135,59.8533,0,0,0,1.00000000
PTMEAS/CART,3.1945,5.2143,0,0,0,1.00000000
PTMEAS/CART,58.0862,6.0201,0,0,0,1.00000000
ENDMES
SNSET/DEPTH,0
F(直线1)=FEAT/LINE,UNBND,CART,3.7585,0,-2.7356,0.99999833,0,-0.00182514,0,-1.00000000,0
MEAS/LINE,F(直线1),2
PTMEAS/CART,3.7585,0,-2.7356,0,-1.00000000,0
PTMEAS/CART,63.5754,0,-2.8448,0,-1.00000000,0
ENDMES
F(点1)=FEAT/POINT,CART,0,4.0403,-2.3324,-1.00000000,0,0
MEAS/POINT,COMP,DME,F(点1),1
PTMEAS/CART,0,4.0403,-2.3324,-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
DMESW/COMAND,'CLEARP/ZDIR,10.0000,ZDIR,10.0000,ON'
F(平面2)=FEAT/PLANE,CART,33.8474,45.5466,0,0,0,1.00000000
CALL/EXTERN,DMIS,M(NETDMIS_AUTO_PLANEPOINTS_1006),AUTOFIGURE,F(平面2),PLANE,CART,LSTSQR,33.8474,45.5466,$
0,0,0,1.00000000,FALSE,FALSE,FALSE,10.0000,"CUR",TRUE,FALSE,POINTS,'10,3.0891,7.2973,0,0,0,1.00000000,$
2.5412,58.0741,0,0,0,1.00000000,23.4273,93.6888,0,0,0,1.00000000,56.2408,94.0270,0,0,0,1.00000000,59.2998,$
64.3258,0,0,0,1.00000000,59.9439,23.9119,0,0,0,1.00000000,60.0540,5.7200,0,0,0,1.00000000,16.2519,8.1476,$
0,0,0,1.00000000,16.1637,49.7285,0,0,0,1.00000000,41.4625,50.5450,0,0,0,1.00000000',TOUCH,0.3000,XYPLAN
F(直线2)=FEAT/LINE,BND,CART,4.0000,0,-2.0000,62.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,58.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,58.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,54.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(点3)=FEAT/POINT,CART,2.6647,6.8217,0,0,0,1.00000000
MEAS/POINT,COMP,DME,F(点3),1
DMESW/COMAND,'MOVE/CLEARPLANE'
PTMEAS/CART,2.6647,6.8217,0,0,0,1.00000000
ENDMES
F(点4)=FEAT/POINT,CART,1.9081,59.1710,0,0,0,1.00000000
MEAS/POINT,COMP,DME,F(点4),1
DMESW/COMAND,'MOVE/CLEARPLANE'
PTMEAS/CART,1.9081,59.1710,0,0,0,1.00000000
ENDMES
F(点5)=FEAT/POINT,CART,22.6701,93.8983,0,0,0,1.00000000
MEAS/POINT,COMP,DME,F(点5),1
DMESW/COMAND,'MOVE/CLEARPLANE'
PTMEAS/CART,22.6701,93.8983,0,0,0,1.00000000
ENDMES
F(点6)=FEAT/POINT,CART,58.9308,94.9525,0,0,0,1.00000000
MEAS/POINT,COMP,DME,F(点6),1
DMESW/COMAND,'MOVE/CLEARPLANE'
PTMEAS/CART,58.9308,94.9525,0,0,0,1.00000000
ENDMES
F(点7)=FEAT/POINT,CART,61.7370,53.8588,0,0,0,1.00000000
MEAS/POINT,COMP,DME,F(点7),1
DMESW/COMAND,'MOVE/CLEARPLANE'
PTMEAS/CART,61.7370,53.8588,0,0,0,1.00000000
ENDMES
F(点8)=FEAT/POINT,CART,60.3701,3.5341,0,0,0,1.00000000
MEAS/POINT,COMP,DME,F(点8),1
DMESW/COMAND,'MOVE/CLEARPLANE'
PTMEAS/CART,60.3701,3.5341,0,0,0,1.00000000
ENDMES
F(点9)=FEAT/POINT,CART,74.2494,14.5208,-7.2365,0.72144623,0,0.69247046
MEAS/POINT,COMP,DME,F(点9),1
DMESW/COMAND,'MOVE/CLEARPLANE'
PTMEAS/CART,74.2494,14.5208,-7.2365,0.72144623,0,0.69247046
ENDMES
F(点10)=FEAT/POINT,CART,95.5247,27.6237,-17.7735,0.11358025,0,0.99352883
MEAS/POINT,COMP,DME,F(点10),1
DMESW/COMAND,'MOVE/CLEARPLANE'
PTMEAS/CART,95.5247,27.6237,-17.7735,0.11358025,0,0.99352883
ENDMES
F(点11)=FEAT/POINT,CART,94.5460,57.7510,-17.6476,0.14154147,0,0.98993233
MEAS/POINT,COMP,DME,F(点11),1
DMESW/COMAND,'MOVE/CLEARPLANE'
PTMEAS/CART,94.5460,57.7510,-17.6476,0.14154147,0,0.98993233
ENDMES
F(点12)=FEAT/POINT,CART,76.3373,48.0786,-9.2391,0.66179110,0,0.74968829
MEAS/POINT,COMP,DME,F(点12),1
DMESW/COMAND,'MOVE/CLEARPLANE'
PTMEAS/CART,76.3373,48.0786,-9.2391,0.66179110,0,0.74968829
ENDMES
F(点13)=FEAT/POINT,CART,95.4967,93.0919,-17.7703,0.11437932,0,0.99343715
MEAS/POINT,COMP,DME,F(点13),1
DMESW/COMAND,'MOVE/CLEARPLANE'
PTMEAS/CART,95.4967,93.0919,-17.7703,0.11437932,0,0.99343715
ENDMES
F(点14)=FEAT/POINT,CART,74.6706,89.1113,-7.6678,0.70941148,0,0.70479455
MEAS/POINT,COMP,DME,F(点14),1
DMESW/COMAND,'MOVE/CLEARPLANE'
PTMEAS/CART,74.6706,89.1113,-7.6678,0.70941148,0,0.70479455
ENDMES
DMESW/COMAND,'MOVE/CLEARPLANE'
T(点轮廓度)=TOL/PROFP,-0.0200,0.0200
DMESW/COMAND,'OUTPUT/UNIT,DIMENSION/MM'
DMESW/COMAND,'OUTPUT/UNIT,ANGLE/ANGDEC'
DMESW/COMAND,'OUTPUT/VECTOR,OFF'
OUTPUT/FA(点3),TA(点轮廓度)
T(点轮廓度)=TOL/PROFP,-0.0200,0.0200
DMESW/COMAND,'OUTPUT/UNIT,DIMENSION/MM'
DMESW/COMAND,'OUTPUT/UNIT,ANGLE/ANGDEC'
DMESW/COMAND,'OUTPUT/VECTOR,OFF'
OUTPUT/FA(点4),TA(点轮廓度)
T(点轮廓度)=TOL/PROFP,-0.0200,0.0200
DMESW/COMAND,'OUTPUT/UNIT,DIMENSION/MM'
DMESW/COMAND,'OUTPUT/UNIT,ANGLE/ANGDEC'
DMESW/COMAND,'OUTPUT/VECTOR,OFF'
OUTPUT/FA(点5),TA(点轮廓度)
T(点轮廓度)=TOL/PROFP,-0.0200,0.0200
DMESW/COMAND,'OUTPUT/UNIT,DIMENSION/MM'
DMESW/COMAND,'OUTPUT/UNIT,ANGLE/ANGDEC'
DMESW/COMAND,'OUTPUT/VECTOR,OFF'
OUTPUT/FA(点6),TA(点轮廓度)
T(点轮廓度)=TOL/PROFP,-0.0200,0.0200
DMESW/COMAND,'OUTPUT/UNIT,DIMENSION/MM'
DMESW/COMAND,'OUTPUT/UNIT,ANGLE/ANGDEC'
DMESW/COMAND,'OUTPUT/VECTOR,OFF'
OUTPUT/FA(点7),TA(点轮廓度)
T(点轮廓度)=TOL/PROFP,-0.0200,0.0200
DMESW/COMAND,'OUTPUT/UNIT,DIMENSION/MM'
DMESW/COMAND,'OUTPUT/UNIT,ANGLE/ANGDEC'
DMESW/COMAND,'OUTPUT/VECTOR,OFF'
OUTPUT/FA(点8),TA(点轮廓度)
T(点轮廓度)=TOL/PROFP,-0.0200,0.0200
DMESW/COMAND,'OUTPUT/UNIT,DIMENSION/MM'
DMESW/COMAND,'OUTPUT/UNIT,ANGLE/ANGDEC'
DMESW/COMAND,'OUTPUT/VECTOR,OFF'
OUTPUT/FA(点9),TA(点轮廓度)
T(点轮廓度)=TOL/PROFP,-0.0200,0.0200
DMESW/COMAND,'OUTPUT/UNIT,DIMENSION/MM'
DMESW/COMAND,'OUTPUT/UNIT,ANGLE/ANGDEC'
DMESW/COMAND,'OUTPUT/VECTOR,OFF'
OUTPUT/FA(点10),TA(点轮廓度)
T(点轮廓度)=TOL/PROFP,-0.0200,0.0200
DMESW/COMAND,'OUTPUT/UNIT,DIMENSION/MM'
DMESW/COMAND,'OUTPUT/UNIT,ANGLE/ANGDEC'
DMESW/COMAND,'OUTPUT/VECTOR,OFF'
OUTPUT/FA(点11),TA(点轮廓度)
T(点轮廓度)=TOL/PROFP,-0.0200,0.0200
DMESW/COMAND,'OUTPUT/UNIT,DIMENSION/MM'
DMESW/COMAND,'OUTPUT/UNIT,ANGLE/ANGDEC'
DMESW/COMAND,'OUTPUT/VECTOR,OFF'
OUTPUT/FA(点12),TA(点轮廓度)
T(点轮廓度)=TOL/PROFP,-0.0200,0.0200
DMESW/COMAND,'OUTPUT/UNIT,DIMENSION/MM'
DMESW/COMAND,'OUTPUT/UNIT,ANGLE/ANGDEC'
DMESW/COMAND,'OUTPUT/VECTOR,OFF'
OUTPUT/FA(点13),TA(点轮廓度)
T(点轮廓度)=TOL/PROFP,-0.0200,0.0200
DMESW/COMAND,'OUTPUT/UNIT,DIMENSION/MM'
DMESW/COMAND,'OUTPUT/UNIT,ANGLE/ANGDEC'
DMESW/COMAND,'OUTPUT/VECTOR,OFF'
OUTPUT/FA(点14),TA(点轮廓度)
GOTO/INCR,30.000000,0.000000,0.000000,1.000000