527
7
7 Motion Control
MMOV: Value assignment; MADD, MSUB, MMUL, MDIV: Addition, subtraction, multiplication, and division
7.9 Format and Use of G-code Subprograms
①
G-code instructions, as shown in the following table
②
Type of function words
③
Parameter value
The following table lists supported instructions and function words.
G-code
Parameter
1
Parameter
2
Parameter
3
Parameter
4
Parameter
5
Parameter
6
Parameter
7
Attribute
High-speed
positioning
G00 X Y Z Combination
Linear
interpolation
G01 X Y Z F Combination
Clockwise arc
interpolation
G02
X Y Z I J K F Combination
X Y Z R Default Default F Combination
Counter-
clockwise arc
interpolation
G03
X Y Z I J K F Combination
X Y Z R Default Default F Combination
Delay waiting G04 P integer
Absolute
position
G90 -
Relative
position
G91 -
XY plane G17 -
ZX plane G18 -
YZ plane G19 -
Auxiliary
function
M00 to
M99
-
G-code-based
main program
end
M02 -
G-code main
program end
M30 -
G-code
subprogram
call
M98 P integer L integer
G-code
subprogram
return
M99 -
M element
setting
M M100-M7679
Major axis
speed
S
Tool number T
• These instructions can only be used in G-code subprograms.
• M00 to M99 indicate auxiliary functions which are reserved here. M100 to M7679 are used to set the M elements.