-
Notifications
You must be signed in to change notification settings - Fork 88
Additional G and M codes
Terje edited this page Feb 25, 2021
·
4 revisions
New G- and M-codes is generally implemented according to the LinuxCNC specification. Some driver specific M-codes, such as those for CO2-laser or Trinamic support, are either made up by me or follow specifications from other implementations.
G5 - cubic spline
G50 - Reset scaling (not LinuxCNC)
G51 - Scale axes (not LinuxCNC)
G73 - Drilling cycle, chip breaking
G81 - Drilling cycle
G82 - Drilling cycle with dwell
G83 - Drilling cycle with peck
G98,G99 - Canned cycle return level
G7 - Lathe diameter mode
G8 - Lathe radius mode
G33 - Spindle synchronized motion
G76 - Threading cycle
G95 - Feed rate mode, units per revolution
G96 - Constant Surface Speed mode (CSS)
G97 - RPM mode
G10 L1 - Set tool table
G10 L10 - Set tool table
G10 L11 - Set tool table
G43 - Tool length offset
G43.2 - Apply additional tool length offset
M6 - Tool change
M61 - Set current tool
M6 - Tool change
M61 - Set current tool
The sender has to support the new tool change protocol if manual tool change is to be used. If not M6
commands should be handled by the sender or stripped out.
M62-M65 - Digital Output Control
M66 - Wait on Input
M67 - Analog Output, Synchronized
M68 - M68 Analog Output, Immediate
NOTE: use the new codes with caution, they have not undergone extensive testing!
NOTE: the HAL has entry points for driver specific M-codes and setting handling, this makes it fairly easy to extend grblHAL - this without changing the core code.
2020-09-30