Working on a Fanuc OM control, probably early 90s model. I am trying to use G10 as a work shift but having some trouble. I like to setup my work coordinate to be centered over the top left corner of a vice and then use work shifts in the program to reposition the 0 coordinates so all programs will be set by setting one work coordinate and i can use mulitple vices useing a different work coordinate for each if needed. I am familiar with using working coordinates and then useing the G52 work shift on Haas machines setup as Fanuc. Works great. But on the Fanuc OM when it reads the G10 line it replaces the specified work coordinate parameters with the specified parameters on the G10 line. And if you reset or end the program the work coordinate parameters do not reset to the origional numbers. Only way around that i can see is to give another G10 line at the end of the program to reset the G54 etc etc to its origional numbers, but thats a little over complicated and a bad way to do things. So whats the simple or proper solution to use G10 for a work shift and not a programmed working coordinate? Or am i trying to use it for something it wasnt intended for?
My work around so far is to program as follows.
G54 G00
G90 X0 Y0
G92 X Y Z
XO Y0
G43 H1 Z-.25
-
-
-
G91 G28 G00 Z0
G28 X0 Y0
M30
I havent tried this but i see no reason this wouldnt work. However i would like to use a simple work shift if possible to simplify things a bit.