Al thats what i dont know how to write
it should work ,and I can put the M0 just before after it?
this is the post ihave been messing with
*progno, e
"(PROGRAM NAME - ", progname, ")", e
"(DATE=DD-MM-YY - ", date, " TIME=HH:MM - ", time, ")", e
psof0 # Start of file for tool zero
psof
psof # Start of file for non-zero tool number
pinit
!opcode
n, "G17 G40 ; Setup for XY plane, no cutter comp,"
n, "G20 ; inch measurements"
n, "G80 ; cancel canned cycles,"
n, "G90 ; absolute positioning,"
n, "M25 G49 ; Goto Z home, cancel tool length offset"
n, pinc, *sg28ref, "X0.", "Y0.", e
n, "M0"
n, *t, "(CHANGE TOOL)"
ptoolcomment
pcomment
n, "(CHECK GEAR)" would like to put the if statment here
n, speed, *spdlon
pcan
pcan1, n, pasb, "G00", pwcs, *xr, *yr, strcantext
pcan2
n, ptllncomp, *zr
pcoolon
any ideas?
__________________ IF ITS NOT BROKE YOUR NOT TRYING HARD ENOUGH
Ashes to ashes , dust to dust , If it wasnt for Harleys the fast lane would rust.
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management) |