I am editing a MPLFAN post for a Mori-lathe and trying to use a Misc. Real to set the retract point. I Prefer to use ABS Machine coordinates on my retracts and refrence points (g53) but the post keeps showing the "mr5$" withe its value?? what am i doing wrong?
Code from post:
0000
(PROGRAM NAME - GEN ID TOOL)
(DATE=DD-MM-YY - 05-08-12 TIME - )
(MCX FILE - C:\USERS\JOSEPH\DESKTOP\GEN ID TOOL.MCX-5)
(NC FILE - C:\USERS\JOSEPH\DOCUMENTS\MY MCAMX5\LATHE\NC\GEN ID TOOL.NC)
(MATERIAL - STEEL INCH - 1030 - 200 BHN)
G20
(TOOL - 3 OFFSET - 3)
(ROUGH RIGHT - 80 DEG. INSERT - CNMG-432)
( LATHE DEFAULT )
G0 T0303
G18
G97 S750 M03
G0 G54 X.8624 Z.2726 M8
G99 G1 Z.1726 F.01
X.751 Z.0309
G18 G3 X.6602 Z0. I-.0454 K.0179
G1 X.224
G2 X.0015 Z-.1113 K-.1113
G1 Z-.1123
X.0106 Z-.5937
X-.1309 Z-.523
M9
G0 G53 Z mr5$ -8.
M05
T0300
M30
Code in post process:
pl_retract #Retract tool based on next tool gcode, lathe (see ptoolend)
cc_pos$ = zero
if home_type = one,
[
pmap_home #Get home position, xabs
ps_inc_calc #Set inc.
pbld, n$, psccomp, e$
pcan1, pbld, n$, *sgcode, pfxout, pfyout, pfzout, *toolno, e$
pbld, n$, pnullstop, strcantext, e$
]
else,
[
#Retract to reference return
#**#
pbld, n$, `sgcode, psccomp, e$
if home_type = m_one, pbld, n$, *toolno, e$
pcan1, pbld, n$,*sg00, *sg53, "Z", mr5$, e$
pnullstop, strcantext, e$
if home_type > m_one, pbld, n$, *toolno, e$