Originally Posted by
109jb
Your program is a total re-write, not a duplicating code for identical parts. Sure that will work, if you have a single fixture that holds the multiple parts, but not so easy if you have separate fixtures, or are using separate vises. Your way would require re-writing the code every time, or careful alignment of the individual fixtures/vises if you wanted to set a job up again. G54-G59 won't care if the individual fixtures aren't perfectly aligned and have perfect offsets since each one has its own zero location.
The guy wanted to know how to use G54-G59 work offsets. The answer to that is not to rewrite the whole program to not use G54-G59. The answer is to tell him how G54-G59 are supposed to work.