| Code
|
Parameters
|
Description
|
| Motion
|
(X Y Z A B C U V W apply to all motions)
|
| G0
|
|
Сервисная команда перемещения на "скорости быстрого перемещения" по прямой линии из текущей точки в заданную.Для фрезеровки не используется.
|
| G1
|
|
Перемещение с текущей скоростью подачи в заданную точку.подача задаётся кодом F
|
| G2, G3
|
I J K or R, P
|
Перемещение в заданную точку по спирали по (CW) или против (CCW) часовой стрелки с числом витков P.Если координата,не входящая в выбранную плоскость (G17-19) не изменяется,то выбранной плоскости описывается окружность.
|
| G4
|
P
|
Пауза длинной в указанных после параметра P секунд.
|
| G5
|
I J P Q
|
Cubic spline
|
| G5.1
|
I J
|
Quadratic spline
|
| G5.2
|
P L
|
NURBS, add control point
|
| G5.3
|
|
NURBS, execute
|
| G38.2…G38.5
|
|
Проба инструмента в направлении из текущей точки в указанную,работает на контакт (G38.2 G38.4) и разрыв (G38.3 G38.5) с интсрументом.Результат в параметрах #5061 - #5069,а параметр #5070 в случае удачи становится равным единице.
|
| G33
|
K
|
Spindle-synchronized motion
|
| G33.1
|
K
|
Rigid tapping
|
| G80
|
|
Cancel motion mode
|
| Canned cycles
|
(X Y Z or U V W apply to canned cycles, depending on active plane)
|
| G81, G82
|
R L (P)
|
Drilling cycle without (with) dwell
|
| G83, G73
|
R L Q
|
Peck and Chip-break drilling cycles
|
| G85, G89
|
R L (P)
|
Boring cycle without (with) dwell
|
| G76
|
P Z I J R K Q H L E
|
Multipass lathe threading cycle
|
| Distance Mode
|
| G90
|
|
Absolute distance mode
|
| G91
|
|
Incremental distance mode
|
| G90.1
|
|
Arc centers I,J,K are absolute
|
| G91.1
|
|
Arc centers I,J,K are relative to the arc's starting point
|
| G7
|
|
X Diameter mode (lathe)
|
| G8
|
|
X Radius mode (lathe)
|
| Feed Rate Mode
|
| G93
|
|
Inverse time feed rate
|
| G94
|
|
Units per minute feed rate
|
| G95
|
|
Units per revolution
|
| Spindle Control
|
| M3, M4
|
S
|
Turn spindle clockwise or counterclockwise
|
| M5
|
|
Stop spindle
|
| M19
|
|
Orient spindle
|
| G96
|
S D
|
CSS mode (Constant Surface Speed)
|
| G97
|
|
RPM mode
|
| Coolant
|
| M7
|
|
Turn mist on
|
| M8
|
|
Turn flood on
|
| M9
|
|
Turn all coolant off
|
| Tool Length Offset
|
| G43
|
H
|
Use tool length offset from tool table
|
| G43.1
|
|
Use specified tool length offset for transient tool
|
| G43.2
|
H
|
Apply additional tool length offset
|
| G49
|
|
Cancel tool length offset
|
| Stopping
|
| M0
|
|
Program Pause
|
| M1
|
|
Optional Pause
|
| M2, M30
|
|
End Program
|
| M60
|
|
Pallet Change Pause
|
| Units
|
| G20
|
|
Параметры последующих команд задаются в Inches
|
| G21
|
|
Параметры последующих команд задаются в Millimeters
|
| Plane Selection
|
(affects G2, G3, G81…G89, G40…G42)
|
| G17
|
|
Select XY plane
|
| G18
|
|
Select XZ plane
|
| G19
|
|
Select YZ plane
|
| Cutter Radius Compensation
|
| G40
|
|
Cancel cutter radius compensation
|
| G41,G42
|
D
|
Start cutter radius compensation left or right
|
| G41.1, G42.1
|
D L
|
Start cutter radius compensation left or right, transient tool
|
| Path Control Mode
|
| G61
|
|
Exact Path mode
|
| G61.1
|
|
Exact Stop mode
|
| G64
|
P
|
Continuous mode with optional path tolerance
|
| Return Mode in Canned Cycles
|
| G98
|
|
Retract to prior position
|
| G99
|
|
Retract to R position
|
| Other Modal Codes
|
| F
|
|
Set Feed Rate
|
| S
|
|
Set Spindle Speed
|
| T
|
|
Select Tool (also see M6)
|
| M48, M49
|
|
Speed and Feed Override Control
|
| M50
|
P0 (off) or P1 (on)
|
Feed Override Control
|
| M51
|
P0 (off) or P1 (on)
|
Spindle Speed Override Control
|
| M52
|
P0 (off) or P1 (on)
|
Adaptive Feed Control
|
| M53
|
P0 (off) or P1 (on)
|
Feed Stop Control
|
| G54…G59.3
|
|
Выбор основного набора задающих систему координат офсетов,офсеты задаются командами G10 L2 и G10 L20
|
| Flow-control Codes
|
| O- sub
|
|
Subroutines, sub/endsub call
|
| O- while
|
|
Looping, while/endwhile do/while
|
| O- if
|
|
Conditional, if/else/endif
|
| O- repeat
|
|
Run enclosed code more than once
|
| M70
|
|
Save modal state
|
| M71
|
|
Invalidate stored state
|
| M72
|
|
Restore modal state
|
| M73
|
|
Save and Auto-restore modal state
|
| Input/Output Codes
|
| M62…M65
|
P
|
Digital Output Control
|
| M66
|
P E L Q
|
Digital and Analog Input Control
|
| M67
|
T
|
Analog Output Synchronized with Motion
|
| M68
|
T
|
Analog Output Immediate
|
| Non-modal Codes
|
| M6
|
T
|
Команда смены инструмента собственно,выбор инструмента осуществляется кодом T
|
| M61
|
Q
|
Set Current Tool
|
| G10 L1
|
P Q R axes
|
Tool offset, radius, orientation setting
|
| G10 L10
|
P axes
|
Tool offset, setting calculated from workpiece
|
| G10 L11
|
P axes
|
Tool offset, setting calculated from fixture
|
| G10 L2
|
P R axes
|
Coordinate system origin, rotation setting
|
| G10 L20
|
P axes
|
Coordinate system origin setting calculated
|
| G28, G28.1
|
|
Возврат в запомненную точку номер 1,точка запоминается командой
|
| G30, G30.1
|
|
Возврат в запомненную точку номер 2,точка запоминается командой
|
| G53
|
|
Выполнение строки в машинной системе координат, т.е офсеты G54 - G59.3 будут игнорироваться
|
| G92
|
axes
|
Установка и применение оперативного офсета
|
| G92.1
|
|
отмена и обнуление офсета G92
|
| G92.2
|
|
Отмена офсета G92 с сохранением его в параметрах #5211 - #5219
|
| G92.3
|
|
Восстановление и применение офсета G92 из параметров #5211 - #5219
|
| M101…M199
|
P Q
|
User-defined M-codes
|
| Comments & Messages
|
| (…)
|
|
An inline comment
|
| (MSG,…)
|
|
Display a message "…" to the user (e.g., in a popup)
|
| (DEBUG,…)
|
|
Display a message (with variables substituted) like MSG
|
| (PRINT,…)
|
|
Display a message (with variables substituted) to stderr
|