I have since figured out that the error occurs not when the program sends an M3, but when it sends a G20.
Mach then says "Error in Line 2 - Unspecified failure", Line 2 being where the G20 is.
It is very annoying

and I would like to resolve this if I can. Any suggestions?
Thanks John