I am running a setup with three chucks and three different work offsets. I am trying to cut some threads with a thread milling tool. The program runs perfectly on the first offset(G54) but when the tool gets to the second (G55), after the lead in to begin cutting the thread, my code is completely ignored and the tool veers off to the right and the machine makes a terrible whining noise.

Here is my code.

(THREAD1)

G54

G0 G17 G40 G49 G80 G90

T3 M6 G43 H3

S1500 M3

G90 G00 X0 Y0

G43 H3 Z0 M3 S1618

G91 G00 X0 Y0 Z-0.5713

G41 D3 X0.9250 Y-0.3281 Z0

G91 G03 X0.3281 Y0.3281 Z0.0013 R0.3281 F3.

G91 G03 X0 Y0 Z0.0833 I-1.2530 J0 F8.

G91 G03 X-0.3281 Y0.3281 Z0.0013 R0.3281

G00 G40 X-0.9250 Y-0.3281 Z0

G90 G0 Z3.

(THREAD2)

G55

G0 G17 G40 G49 G80 G90

G43 H3

S1500 M3

G90 G00 X0 Y0

G43 H3 Z0 M3 S1618

G91 G00 X0 Y0 Z-0.5713

G41 D3 X0.9250 Y-0.3281 Z0

G91 G03 X0.3281 Y0.3281 Z0.0013 R0.3281 F3.

(THE PROGRAM RUNS FINE UP UNTIL THIS POINT)

G91 G03 X0 Y0 Z0.0833 I-1.2530 J0 F8.

G91 G03 X-0.3281 Y0.3281 Z0.0013 R0.3281

G00 G40 X-0.9250 Y-0.3281 Z0

G90 G0 Z3.

(THREAD3)

G56

G0 G17 G40 G49 G80 G90

G43 H3

S1500 M3

G90 G00 X0 Y0

G43 H3 Z0 M3 S1618

G91 G00 X0 Y0 Z-0.5713

G41 D3 X0.9250 Y-0.3281 Z0

G91 G03 X0.3281 Y0.3281 Z0.0013 R0.3281 F3.

G91 G03 X0 Y0 Z0.0833 I-1.2530 J0 F8.

G91 G03 X-0.3281 Y0.3281 Z0.0013 R0.3281

G00 G40 X-0.9250 Y-0.3281 Z0

G90 G0 Z4.

M5

G54

G17 G90 G0 X0 Y0

M9

M30

I have successfully run a program with the "G91 G03 X0 Y0 Z0.0833 I-1.2530 J0 F8." line taken out.

I have also tried replacing that line with four quarter circle arcs but I still get the error.

Any ideas or known issues??