Vince,
Cute little spark plugs your doing...............
,
The code you posted does exactly what the program called for, except it never changes the tool because you
need an M6 to do whatever you want to do for the tool to be changed, thus it just runs through the complete program
program and ends on X0.020 Z0.005.
Don't know how you are setting up the job, even the modes you are in, as the program just seemed incomplete.
Now you say you inserted a M0 and removed the T2 and the program stops.
So the controlled point would ne located per the code G0 X1.000 Z-0.100.
RICH