@groundFungus
Sorry my mistake, its been a long time since I actually had to have looked at Gcode in a raw from. Its usually nicely compiled from me from a cad package
The command I was using was a move to the X-Axis 10 rather than $X which as you noted $X - Kill alarm lock
I have not tried this as yet but will report back once I give it a run - looks like a good tip.