- Home
- XXL to PGM converter
- Commands
- X Y Z I J V T
Parameters: X Y Z I J V T
Every motion command is a command word followed by lettered parameters. Each parameter is a single capital letter with a number attached and no space between them, such as X492.923 or T43.
Syntax
<letter><number> e.g. X492.923 Z-81.000 T43VerifiedReproduced byte for byte from a machine-proven file.
Parameters
X | X coordinate of the end point in millimetres | optional |
Y | Y coordinate of the end point in millimetres | optional |
Z | Z depth in millimetres | optional |
I | X coordinate of the arc centre | optional |
J | Y coordinate of the arc centre | optional |
V | Feed rate | optional |
T | Tool number | optional |
How it is written to PGM
X, Y, I and J are distances, written as 32-bit integers in hundredths of a millimetre, most significant byte first throughout. Z is the working depth and is written the same way. V is a 16-bit feed, a numbered class on the older controllers and millimetres per minute in Xilog Plus. S is a 16-bit spindle speed. T names every spindle taking part and becomes a twelve-byte array of bits.
Example
G0 X492.923 Y221.021 Z-81.000 T43Notes
- Numbers are parsed as single-precision floats, multiplied by 100 and rounded half up, reproducing the original compiler including its rounding quirks.
- T must be a whole number. Distances may carry decimals and a leading sign.
- A parameter may appear only once per line, and only these seven letters are accepted.
Messages this command can produce
- Malformed parameterParse error
- Unknown parameter letterParse error
- Duplicate parameterParse error
- Bad number in a valueParse error
- Value must be a whole numberParse error
- Coordinate out of rangeParse error