If your conditional statements (if speed etc) work on the Centroid (or should it be 'if S' ?) and anything between the " " is a comment then I would say that the M0 has to be outside of the comment string to work.
Al
__________________ CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E. |