I suggest that you open your post with any text editor, NOTEPAD or CIMCO
And read the top "Notes" section in regards to "Work offsets:" and the number you put in at MI#1 AND the number you put in as the work offset # in the "view manager"
If you want to use G54,G55 etc ---then MI#1 should be =2
and the number you set in the view manager would be 0 for G54, 1 for G55 and so on.
when you have this area sorted, then mod the post if required
The area you want, is marked in RED
or comment the bad one out and hard code what you need in it's place. ie n$, "G0 Z100.", e$
peof$ #End of file for non-zero tool
if lock_codes = one & rot_on_x, pbld, n$, *sunlock, sunlockcomm, e$
rotretflg = 1
# pbld, n$, *sg28, "X0.", "Y0.", protretinc, e$
pbld, n$, *sg28, "Y0.", protretinc, e$
rotretflg = 0
if lock_codes = one & rot_on_x, pbld, n$, *slock, slockcomm, e$
if not(index), n$, *sg90, e$
n$, "M30", e$