I want to cut slots in my CNC table top for T-Tracks. I use "Toolpath Transform" function in Mastercam X4 to generate the G-code. The resulting G-code is shown below. It appears to be simple enough, but when I loaded it into Mach3, I get a weird toolpath display with cuts 3 & 4, which use G57 & G58, and cuts 10 & 12 which use G59 P4 & G59 P5 (see attached photo). All other offsets (i.e., G54, G55, G56, ... ) are displayed correctly.
This occurs even with I delete the other cuts except G57 & G58. The same weird display occurs.
What am I doing wrong? What is causing this weird display?
G-CODE:
%
O0000(TABLE SLOT)
(SETUP)
N100 G17 G20 G90 G40 G80 G64 G49 G0 M05
N110 G8 P1
N120 G90 M05 Z0
N130 G52 X0. Y0. Z0.
N140 T1 M6
N150 S18000 M3
N155 G43 H2 Z.25
(1ST CUT)
N160 G0 G90 G54 X.625 Y.25
N170 G0 G54
N180 M98 P0001
(2ND CUT)
N190 G90 G55 X9.35 Y.25 Z.25
N200 G0 G55
N210 M98 P0001
(3RD CUT)
N220 G90 G56 X18.075 Y.25 Z.25
N230 G0 G56
N240 M98 P0001
(4TH CUT)
N250 G90 G57 X26.8 Y.25 Z.25
N260 G0 G57
N270 M98 P0001
(5TH CUT)
N280 G90 G58 X35.525 Y.25 Z.25
N290 G0 G58
N300 M98 P0001
(6TH CUT)
N310 G90 G59 X44.25 Y.25 Z.25
N320 G0 G59
N330 M98 P0001
(RAP UP)
N340 G90 G49 Z0. M05
N350 G52 X0. Y0. Z0.
N360 G8 P0
N370 G17
N380 M30
(SUBROUTINE)
O0001
N100 G91
N110 G1 Z-.69 F500.
N120 Y48.5
N130 X-.225
N140 Y-48.5
N150 X.225
N160 Z.69 F100.
N170 M99
%