Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.
Use your display name or email address to sign in:
Hi.
I added the cycle Tap with Peck in post processor. When I write peck = 3, I have good code:
T17 M6
G0 G90 G54 X0. Y0. S400 M3
G43 H17 Z25.
M8
Z2.
G99 G84 R2. Z-6.667 F400.
X0. Y0. Z-13.334
X0. Y0. Z-20.001
X10. Y0. Z-6.667
X10. Y0. Z-13.334
X10. Y0. Z-20.001
G80
Z25.
M09
When I write peck = 2, I have a bad code:
T17 M6
G0 G90 G54 X0. Y0. S400 M3
G43 H17 Z25.
M8
Z2.
G99 G84 R2. Z-10. F400.
X0. Y0. Z-20.
G99 G84 Z-20. F400. not the desired part
X10. Y0. Z-10.
X10. Y0. Z-20.
Z-20. not the desired part
G80
Z25.
M09
I don't now, where i did mistake
Hi.
I want to add in my post cycle Tap with Peck. I want to specify a depth of -20. peck 2 and I want to will recieve code code
( 5.00 - 0.8. TAP-RH SPIRAL YG-1 IPI )
T12 M6
G0 G90 G54 X-45.065 Y17.257 S300 M3
G43 H12 Z25.
M8
Z2.
G99 G84 R2. Z-10. F240.
X-45.065 Y17.257 Z10.
or I want to specify a depth of -21. peck 3 and I want to will recieve
T12 M6
G0 G90 G54 X-45.065 Y17.257 S300 M3
G43 H12 Z25.
M8
Z2.
G99 G84 Z-7. R2. F240.
X-45.065 Y17.257 Z-14.
X-45.065 Y17.257 Z-21.
How I need to change my post?
Now i have post
pdrlcst11 #Canned Tap Cycle with Peck
pdrlcommonb
result = nwadrs(striz1, peck1$)
result = peck1$
result = nwadrs(striz2, peck2$)
result = peck2$
result = newfs(17, feed) # Set for tapping Feedrate format
pcan1, pbld, n$, *sgdrlref, "G84", pxout, pyout, pzoutz, peck1$,
prdrlout, *feed, strcantext, e$
n$, [if dwell$ > 0, "M00"] e$
n$, [if peck2$, *pfxout], [if peck2$, *pfyout], [if peck2$, *peck2$], e$
n$, [if dwell$ > 0, "M00"] e$
n$, pfxout, pfyout, pfzout, e$
result = nwadrsval ("Q", peck1$)
result = nwadrsval ("J", peck2$)
pcom_movea
Join us!
eMastercam - your online source for all things Mastercam.
Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.