( Simple 3 tool program for demonstration of tool change) ( Companion program to educational video at www.tormach.com) () ( Begin the program with a safety line. A standard line of code) ( which will put the machine into known states) G90 G80 G40 G54 G20 G17 G50 G94 G64 () ( Begin by moving to the home position. The G28 command) ( only works correctly if your machine has been referenced) ( because it uses machine coordinates, relative to limit) ( switch positions.) N10 G28 () ( Then command the tool change, followed by going down) ( to near Z0 and moving about a 0.5" square) ( Load tool #2 now) N20 T2 M6 G43 H2 N30 G0 X1 Y1 N40 G0 Z0.5 N50 F35 G1 Z0.01 N60 X1.5 Y1 N70 X1.5 Y1.5 N80 X1 Y1.5 N90 X1 Y1 N100 G0 Z0.5 N110 G28 ( This is the second tool change) N120 T3 M6 G43 H3 N130 G0 Z0.5 X1 Y1 N140 F35 G1 Z0.01 N150 X1.5 Y1 N160 X1.5 Y1.5 N170 X1 Y1.5 N180 X1 Y1 N190 G0 Z0.4 N200 G28 ( Now the third tool change) N210 T4 M6 G43 H4 N220 G0 Z0.5 X1 Y1 N230 F35 G1 Z0.01 N240 X1.5 Y1 N250 X1.5 Y1.5 N260 X1 Y1.5 N270 X1 Y1 N280 G0 Z3 (all done)