I am having unpredictable results using the "Tool Change" feature. I have an X/Y plotter which emulates our lathe. I use this device to work out cutting paths to scale before applying the G-Code to the actual lathe.
Tool #1 is a pointed tool in the front tool post with an X-Offset of 0.0 and a Z-Offset of 0.0. (ignoring tool #2...) Tool #3 is also a pointed tool, with a front/rear tool post distance of -1.0 and a Z-Offset of -1.0... The small offset is to keep the trace on the paper.
I load in a test G-Code profile which I have written. The plot begins with tool #1 and the tool path is drawn exactly as I have entered. Then a tool change (T1301) is executed and the plotter goes bezerk. The pen runs off the paper and I have to stop the stepper motors on the plotter to prevent a collision. When the plot completes (returning to 0/0) and I look at the settings for Tool #1, Tool #1 is exactly as I set it. Tool #3, however... the settings for the Z-Offset have changed radically.
Put the tool settings back the way they were, and at the moment when the change to tool #3 is executed, the plotter goes bezerk again, Z-Offset for tool #3 ends getting changed again... this time, sometimes by a different amount. Also, if I pause the process while Tool #3 is active The Z-Axis Jog is backwards from what it should be. Select Tool #1 manually, and the Z-Axis jog returns to normal.
N100 T0101 %(Tool Change)
N110 M3 %(Start Spindle)
N120 G0 Z0.0 X20.0
N320 G01 Z0.0 X16.7 F150.0 %(Ready to begin the curves)
N330 G01 Z-0.01 X16.7 F150.0
N340 G03 Z-14.1 X15.5 R9.4 F150.0 %(Cut the curve)
N350 G01 Z-14.1 X14.5 F150.0 %(Short straight before back curve)
N360 G02 Z-18.1 X10.4 R3.9 F150.0 %(Back Curve)
N400 G01 Z-28.1 X10.4 F150.0
N405 G01 Z-28.1 X12.0 F150.0
N410 G01 Z-36.3 X12.0 F150.0
N420 G01 Z-36.3 X10.4 F150.0
N430 G01 Z-38.6 X10.4 F150.0
N435 T0301 %(Tool Change)
N436 G04 P1000
N440 G01 Z-38.6 X10.4 F150.0
N450 T0101
N460 G01 Z-38.6 X10.4 F150.0
N470 G0 Z-38.6 X20.0
N480 G0 Z0.0 X20.0
N490 G0 Z0.0 X0.0