I'm fairly new to CNC machines so therefore easily bamboozled

Until fairly recently tool changing hasn't been an issue as I've not required it. However I've branched out into more complicated items and that's where I've hit a problem.

I have made a program, using Cut 2D and Mach 3 on the machine. It has put in a M6 code as a part of the sequence. Unfortunately the CNC doesn't obey it or if it does it's only like a hesitation.

How do I get it to raise up clear of the work and return to a (Y = 0) where I can change the tool. (All done manually)

Below is a prime example of what is not happening from a 3mm end mill to an engraving tool.

N1110G1X377.638Y12.500Z-2.000
N1120G1X377.638Y25.500Z-2.000
N1130G1X335.638Y25.500Z-2.000
N1140G1X335.638Y12.500Z-2.000
N1150G00X335.638Y12.500Z6.000
N1160T2M6
N1170 (Engraving - 20 Deg Tip 0.02 - 0.25 inches)
N1180G43H2
N1190S5000M03
(Cubby)
()
N1220G00X138.319Y118.559Z6.000
N1230G1X138.319Y118.559Z-3.000F254.0
N1240G1X138.212Y119.178Z-3.000F1016.0
N1250G1X138.121Y119.804Z-3.000
N1260G1X138.046Y120.438Z-3.000

Hope I've made it clear

Can anyone help (In layman terms please)

Bob