数控机床测头自动分中找正及在线检测程序解决方案

机床测头,探测程序,masterCAM,UG

MasterCAM探测模块出的探头程序在加工中心上实战运行,实现了预期功能要求,主要进行了自动分中、自动补偿刀补和探测零件点位,将零件轮廓特征点输出进行分析和验证!下面是mc出的部分程序:

O100

(PROGRAM NAME = XB2018-CMM03)

(POST TIME = 2018-10-24, 13:55)

(T4 = D5 LOLLIPOP MILL)

(T1 = D10 END MILL FLAT)

(OVERALL MAX = Z50.)

(OVERALL MIN = Z-10.)

#149=0 (RENPROGSTART)

#148=0 (RENPROGSTARTEND)

(_RENGCODE_START0001)


N100 G21

N102 G91 G28 Z0.

N104 G0 G17 G40 G49 G80 G94 G90 G56

N106 M32

M19

(_RENGCODE_END)


(PRODPLUS_BEGIN)

POPEN

DPRNT[]

DPRNT[*****PGS]

DPRNT[*******1F]

DPRNT[********O]

#1=FIX[#3011/10000]

#2=#3011-[#1*10000]

#3=FIX[#2/100]

#4=#2-[#3*100]

DPRNT[*****#4[20]**#3[20]*#1[40]]

#1=FIX[#3012/10000]

#2=#3012-[#1*10000]

#3=FIX[#2/100]

#4=#2-[#3*100]

DPRNT[*****#1[20]**#3[20]**#4[20]]

PCLOS

M5

G56

G90

G65P2109A1.C0.I2.5D2.E2.H4.M0.Q0.R0.T-999U4.V2.W1.Z50.

G65P2002Z50.

G65P2002X34.5Y0.Z50.

G65P2102A34.5B0.C-7.5I42.5J0.K-17.25I29.878J-21.25K36.806I-17.25J-29.878K-21.25I-36.806J0.K0.I0.J100.K101.I102.J103.K105.I0.J0.K1.I0.J0.

#104=[40.-[#103*0.5]]*[1.]

G65P2002Z50.

G65P2108B5261.I0.J1.C0.D0.F1.H1.K5261.Q0.R102.S103.U1.V1.W1.X100.Y101.

G65P2007

(PRODPLUS_END0004)

(_RENGCODE_START0005)


N142 M21

N144 G91 G28 Z0.

N146 G28 Y0.

N148 M01

N1001

T1 M6

(D10 END MILL FLAT)

(Z-MAX = Z25.)

(Z-MIN = Z-10.)

N150 G05.1 Q1

N152 G0 G90 G56 X-10. Y15.5 S1000 M3

N154 G43 Z25. H1

N156 Z10.

N158 G1 Z-10. F600.

N160 Y25.5 F120.

N162 G2 X0. Y35.5 I10. J0.

N164 X35.5 Y0. I0. J-35.5

N166 X0. Y-35.5 I-35.5 J0.

N168 X-35.5 Y0. I0. J35.5

N170 X0. Y35.5 I35.5 J0.

N172 X10. Y25.5 I0. J-10.

N174 G1 Y15.5

N176 G0 Z25.

N178 M5

N180 G05.1 Q0

N182 G91 G28 Z0.

N184 M01

N186 M20

(_RENGCODE_END)


(PRODPLUS_BEGIN)

M5

G56

G90

G65P2109A1.C0.I2.5D2.E2.H4.M0.Q0.R0.T-999U4.V2.W1.Z50.

POPEN

DPRNT[]

DPRNT[MEASURED*CIRCLE*MCL]

DPRNT[CIRCLE5]

G65P2002Z50.

G65P2002X34.5Y0.Z50.

G65P2102A34.5B0.C-7.5I42.5J0.K-17.25I29.878J-21.25K36.806I-17.25J-29.878K-21.25I-36.806J0.K0.I0.J102.K103.I104.J105.K107.I0.J1.K1.I0.J0.

#106=[40.-[#105*0.5]]*[1.]

G65P2002Z50.

PCLOS

G65P2108B5261.I0.J1.C0.D0.F1.H1.K5261.Q0.R102.S103.U1.V1.W1.X100.Y101.

G65P2007

(PRODPLUS_END0008)

(_RENGCODE_START0009)


(_RENGCODE_END)


(PRODPLUS_BEGIN)

M5

G56

G90

。。。

模拟检测

attachments-2018-11-E3DfKDIJ5bda95c17f804.jpgattachments-2018-11-99YfSWEm5bda95d88e9a9.jpg

attachments-2018-11-hqdebBzD5bdaddeea3810.jpg

上机运行:

2018-10-24 151511.gif

自动分中

attachments-2018-11-4V3tBZsU5bdaddfda927c.jpg

更新工件坐标:

2018-10-24 151511-2.gif

attachments-2018-11-7f7i3Spe5bdade13b7d85.jpg

外形轮廓点检测输出

attachments-2018-11-TwCPYbbN5bdade36590ba.jpg

2018-10-24 173203 (3).gif

机床导出的数据

attachments-2018-11-Vspzq7Fc5bda9f548727e.jpg


打开某一数据文件其格式如下:


MEASURED CIRCLE MCL

CIRCLE1

RAW POINT 40.3928   -.0005   -12.0000

RAW POINT -18.4523   31.9595   -12.0000

RAW POINT -18.7323   -32.4445   -12.0000 


将部分数据导入mc对比分析

attachments-2018-11-5sFLN2Yw5bda9fad43af4.jpg

总结:机床导出的数据不能直接导入MC,需要对格式进行优化和MC匹配才可以,但用UG可直接导入**.dat数据无需修改,这方面还需要进行优化改进!


  • 发表于 2018-11-01 14:18
  • 阅读 ( 13372 )
  • 分类:机械加工

7 条评论

请先 登录 后评论
四季风
四季风

6 篇文章

作家榜 »