Sequence of the commands
INFORMATION
The sequence of the words is maintained when imported. A different word order may cause the robot controller to behave differently.
According to ISO 6983-1, all G-commands must be at the beginning of a block. This is not required when importing G-code. Only one G-command that triggers the motion is permitted per block (G0
..G3
). Other G-commands (e.g. G90
) and the address letters (e.g. X
, F
) are interpreted before triggering the motion.
Example: G01 X200 G90
G90
(absolute dimensions) takes effect before X200
, therefore X200
is already interpreted as an absolute dimension.
Not every G-code block leads to the execution of a movement. For example, if the commands for selecting a coordinate system or the interpolation plane stand alone in a block, this does not result in motion.
The order of a sequence of M-functions and the position of the M-functions with respect to the G-command that triggers motion is taken into account.
Example: M66 M3 G01 X200
M66
and subsequently M3
are both executed before the motion.
Example: M66 G01 M5 X200
M66
is executed first. M5 is then executed.
The first word of the block "N" must be programmed as the first word in a block if it appears in the block. It is used for clarity and is not observed during import.
A program end (M2
, M30
) must be present in the code; otherwise, the imported program is invalid.