快速321建立建立坐标系功能中,“方键槽+平面”建立坐标系的功能,应用于铜工等中心对称的工件,如下图所示:
具体操作步骤如下:
$$********************************************************************
$$ Visual DMIS
$$********************************************************************
DMISMN/'Visual DMIS build program',05.2
UNITS/MM,ANGDEC
WKPLAN/XYPLAN
MODE/PROG,MAN
FLY/ON
PRCOMP/ON
TECOMP/ON
SNSET/SEARCH,10
SNSET/RETRCT,2
SNSET/APPRCH,2
SNSET/DEPTH,0
SNSET/DEPTH,0
RECALL/D(MCS)
SNSLCT/SA(Tool_1.1.20.2.A0.0-B0.0)
$$********************************************************************
$$
CALL/EXTERN,DME,'COORDTYPE','CART'
DID(DEFAULTREPORT)=DEVICE/STOR,'C:\山涧果子\VismsTmp.rptx'
OPEN/DID(DEFAULTREPORT),FDATA,V(FORMAT2),OUTPUT,OVERWR
$$
$$********************************************************************
MODE/MAN
DID(TG_2020_)=DEVICE/STOR,'C:\TG 2020 .stp'
OPEN/DID(TG_2020_),CAD
G(TG_2020_)=GEOM/DID(TG_2020_)
D(PC1)=TRANS/XORIG,500.000000,YORIG,600.000000,ZORIG,20.000000
EQUATE/DA(MCS),DA(PC1)
F(PL1)=FEAT/PLANE,CART,1.6691,1.0047,0,0,0,1
MEAS/PLANE,F(PL1),4
ENDMES
F(ST1)=FEAT/CPARLN,OUTER,FLAT,CART,0,$
0,-4.4313,0,0,1,$
1,-0,0,80,60
MEAS/CPARLN,F(ST1),8,FA(PL1)
ENDMES
DATDEF/FA(PL1),DAT(A)
DATDEF/FA(ST1),DAT(B)
D(PC2)=DATSET/DAT(A),ZDIR,ZORIG,DAT(B),XDIR,XORIG,YORIG
EQUATE/DA(MCS),DA(PC2)