I admit I use sprut and use auxiliary operation and set these codes in that operation.
Example pasted from sprut g-code
(Set g55 Workspace 0 x,y,z)
N5520 G55
N5530 G52 X0. Y0. Z0.
N5540 T1 G43 H1 M6
N5550 M1
g55 sets new offsets
g52 zeros out everything so when I touch off with t1 in next op it sets xyz correctly for the current g54,g55,g56 ........;
T1 is my hamier probe and that tells Me to touch off new coordinate system.
Then I hit alt r or run and it continues with asking for next tool and operations on that side or offset.
I do multi sided parts this way and find no reason to split the code and have even more files to manage ! Up to 6 g-code files per part can add up to hundreds of files to track after a while.
Note: there are a number of ways to do this. I found this works best for me
Throw in a clip of a multi side part with most the the operations listed note each ao for g54,g55,g56....
Attachment 272688
md