Here is a Windows app to add G54-G59 offsets into your programs.
Tested and works Windows 64 bit and on Onefinity controllers 1.0.9
This way you can run multiple programs and not have to hand edit any files.
Options:
Make Offsets File - makes a file like this:
%
(WORK COORDINATE OFFSETS BEGIN)
G20
G10 L2 P1 X5.023 Y6.235 Z-3.265
G10 L2 P2 X5.125 Y15.246 Z-2.569
G10 L2 P3 X5.489 Y28.468 Z-0.759
G10 L2 P4 X16.235 Y7.265 Z-2.99
G10 L2 P5 X16 Y14 Z-2
G10 L2 P6 X23.4 Y13.0 Z-0.99
(WORK COORDINATE OFFSETS END)
M30
%
Run this first. The offsets will be stored in the controller and no other file needs a G10 line.
Be sure to run this file again whenever you restart the controller.
If you rehome the machine you should check the origin on one of your parts to be sure home is in the same place.
Add Offsets to File - It takes a file like this:
%
(TEST FILE FOR OFFSETS)
(CUT 6 CIRCLES G54-G59)
G53 G0 G90 Z0
G54 G0 G90 X1.622 Y0 (G54)
G43 Z0 H1
G2 X1.622 Y0 I-1.622 J0 F100
G53 G0 G90 Z0
G55 G0 G90 X1.622 Y0 (G55)
G43 Z0 H1
...
and adds the G10 L2 lines like this:
%
(TEST FILE FOR OFFSETS)
(CUT 6 CIRCLES G54-G59)
(WORK COORDINATE OFFSETS BEGIN)
G20
G10 L2 P1 X5.023 Y6.235 Z-3.265
G10 L2 P2 X5.125 Y15.246 Z-2.569
G10 L2 P3 X5.489 Y28.468 Z-0.759
G10 L2 P4 X16.235 Y7.265 Z-2.99
G10 L2 P5 X16 Y14 Z-2
G10 L2 P6 X23.4 Y13.0 Z-0.99
(WORK COORDINATE OFFSETS END)
G53 G0 G90 Z0
G54 G0 G90 X1.622 Y0 (G54)
G43 Z0 H1
G2 X1.622 Y0 I-1.622 J0 F100
G53 G0 G90 Z0
G55 G0 G90 X1.622 Y0 (G55)
G43 Z0 H1
...
Remove Offsets from File - takes away those changes to your file.
Close - When you close you are asked if you want to save these offsets for next time.
Unfortunately it is too big to upload to this site (11MB) so if you would like me to send it to you please private message me.
Cheers