I am running a vm16 that dosnt like tools to be left in the spindle at program end.I try to load the first tool needed ind the program at program end to save startup time. If I start up with a tool in the spindle the Z axis goes positive agenst the limit switch. The program end is written as follows:
N9900 (program end)
M05 : spindle off
G00 X2.600 Y2.000 : Begining spot
T12 M06 : Select 3/16 end mill & its length of offset
D12 G43 H12 : set nose dia. & length of offset
M30 (end of program)