G and M Code List
G and M Code List
the example
Moves the axes to the point X Y Z A, at the speed Quickly moves the axes to
G0, G00 XYZA G0 X10 Y10 Z1
specified in # 80 the point X10 Y10 Z1
G17 Selecting the working plane X-Y G17 Select the working plane X-Y
G18 Selection of working plane Z-X G18 Select of working plane Z-X
G19 Selection of working plane Y-Z G19 Select of working plane Y-Z
Cancel tool radius compensation. The function Cancel tool radius compen-
G40 NO G40
does not work yet. sation.
Compensate the tool radius to the left of the path. Compensates the tool
G41 D D - is the tool number from the table. G40 radius 1, to the left of the
path.
Compensate tool length positively. H - the number
Compensates the length of
G42 D of the instrument according to the table. The G42 D1
tool 1 positively.
function does not work yet.
Compensate tool length positively. H - the number
G43 H Compensates the length of
of the instrument according to the table. G43 H1
tool 1 positively.
Selecting a coordinate
G54 - G59 XYZA Selecting the coordinate system G54
system
Drilling in 1 pass with a delay at the end (for better Drills the hole at point X10
processing of the bottom), with speed F. X, Y - Y5, from 0 to 7mm, at a
G82 XYZRKP coordinates of the center; Z - is the distance from G82 X10 Y5 Z-7 R0 K1 speed of 300 mm / min. At
R to the bottom of the hole; R - drilling depth; K - P2000 F300 the bottom of the drilling,
is the number of repetitions, P - is the delay in the pause is 2 seconds.
milliseconds.
Drills the hole at point X10
The cycle of step drilling with the full output of the Y5, from 0 to 7mm, at a
drill, with the speed F. X, Y - the coordinates of the speed of 300 mm / min. The
center; Z - is the distance from R to the bottom of step size is 1.4mm, thus 5
G83 XYZRQIK the hole; R - drilling depth (usually, 0); Q - is the G83 X10 Y5 Z-7 R0
steps are done. Failure = 0,
step size; I - distance of failure to return to G0; K - Q1,4 I0 K1 F300 in this way the drill is
is the number of repetitions. The drill is retracted returned on fast feed to the
and fed at a speed of G0, which can be limited by end point of the previous
parameters # 78 and # 79. step.G80
G92 XYZA Setting new current coordinates G90G92X0Y0Z0A0 Zero all axes
G98
-------
After drilling cycles, the tool returns to the Z G1 Z1 F1000 After drilling, the tool will
G98 position, before the start of the cycle. Raises the Z be in position 1 to Z
No -------
axis to a safe height.. G81 X0 Y0 Z-7 R0
K1 F300
G99
After the drilling cycles, the tool returns to the -------
G99 No G1 Z1 F1000 After drilling, the tool will
point R (along the Z axis). Raises the Z axis to a
------- be in position 0 to Z
safe height.
G81 X0 Y0 Z-7 R0
K1 F300
M9, M09 No Switch off spindle cooling M9 Switch off spindle cooling
M11 No Turn off the coolant pump M11 Turn off the coolant pump
O01234
...
(Part program)
...
...
(Finish part)