I'm trying to run a program and move over 4 inches and run the same program
but tell the machine to reset the G56 and restart the program
Ill post all the code in it ..
any Ideas
Thanks
I'm trying to run a program and move over 4 inches and run the same program
but tell the machine to reset the G56 and restart the program
Ill post all the code in it ..
any Ideas
Thanks
G52 creates a local work zero with reference to the active work zero.
You are using G56 to machine something and then want to repeat the program 4 inches over.
Make the program a subroutine and call it after selecting the work zero.
O00000 (sample prog)
all the normal stuff
G56 M97 P1000 (set G56 and go to subroutine)
G52 X4. Y0. Z0. (return from subroutine and set a G52 work zero at X4.)
M97 P1000
all the normal stuff
M30
------
N1000
Your program
M99
You could also do it be resetting G56 using a G10 command.
An open mind is a virtue...so long as all the common sense has not leaked out.
Somehow or other I double posted so I deleted this one.
An open mind is a virtue...so long as all the common sense has not leaked out.
Why not just use a G10?
Because I don't want too.
Using G10 to reset your primary work zero is entirely equivalent. My main reason for not using G10 is that if you stop a program part way through you are left with whatever the current coordinates are in your primary work zero and this could cause problems. G52 is zeroed when RESET is pushed so you are back to your known work coordinates.
An open mind is a virtue...so long as all the common sense has not leaked out.