Sherline G Codes M Codes

Sherline CNC G Codes M Codes complete list for cnc machinists who work on Sherline cnc mill/lathe.

More about Sherline CNC

Sherline CNC Mill 8020

Sherline G Codes

G CodeFunction
G00Rapid move (rapid positioning)
G01Feed Rate move (linear interpolation)
G02Clockwise move (circular/helical interpolation clockwise)
G03Counter Clockwise move (circular/helical interpolation c-clockwise)
G04Dwell time
G08Spline Smoothing On
G09Exact stop check, Spline Smoothing Off
G10A linear feedrate controlled move with a decelerated stop / coordinate system origin setting
G11Controlled Decel stop
G20Inch system selection
G21Millimeter system selection
G28Return to clearance plane
G33Threading (Lathe)
Note: G33 and G33.1 will not work on Sherline CNC mills or lathes because the spindle and the axis are not synchronized.
G35Bypass error checking on next line
G40Tool compensation off
G41Tool compensation to the left
G42Tool compensation to the right
G43Tool length compensation – negative direction
G44Tool length compensation – positive direction
G49Tool length compensation cancelled
G53Cancel work coordinate offsets
G54-G59Work coordinate offsets 1 through 6
G59.1Use preset work coordinate system 7
G59.2Use preset work coordinate system 8
G59.3Use preset work coordinate system 9
G61Spline contouring with buffering mode off
G64Spline contouring with buffering mode on
G65Mill out rectangular pocket
G66Mill out circular pocket
G68Mill out rectangular pocket with radius corners
G70Inch mode
G71Millimeter mode
G74Peck drilling (Lathe)
G80Cancel motion mode (includes canned)
G81Drilling canned cycle
G82Drilling with dwell canned cycle
G83Chip-breaking drilling canned cycle (Peck Drilling)
G84Tapping cycle (right hand tapping canned cycle)
G85Boring cycle 1 (boring, no dwell, feed out canned cycle)
G86Boring cycle 2 (boring, spindle stop, rapid out canned)
G87Back boring canned cycle
G88Boring cycle 3 (boring, spindle stop, manual out canned)
G89Boring cycle 4 (boring, dwell, feed out canned cycle)
G90Absolute mode
G91Incremental mode
G92Home coordinate reset (offset coordinate systems)
G92.2Cancel offset coordinate systems
G93Inverse time feed mode
G94IPM mode (Lathe) default (feed per minute mode)
G95IPR mode (Lathe)
G96Constant Surface Feed On (Lathe)
G97Constant Surface Feed Off (Lathe)
G98Initial level return in canned cycles

Sherline M Codes

M CodeFunction
M00Program stop
M01Optional program stop
M02End of Program
M03Spindle On Clockwise, Laser, Flame, Power ON
M04Spindle On Counter Clockwise
M05Spindle Stop, Laser, Flame, Power OFF
M06Tool Change
M08Coolant On
M09Coolant Off
M10Reserved for tool height offset
M13Spindle On, Coolant On
M26Enable automatic b-axis clamping
M27Disable automatic b-axis clamping
M30End of Program when macros are used / program end, pallet shuttle, and reset
M48Enable speed and feed overrides
M49Disable speed and feed overrides
M60Pallet shuttle and program stop
M91Readout Display Incremental
M92Readout Display Absolute
M97Go to or jump to line number
M98Jump to macro or subroutine
M99Return from macro or subroutine
M100Machine Zero Reset
M199Mid program start


DTool radius compensation number
GGeneral function
HTool length offset
IX-axis offset for arcs / X offset in G87 canned cycle
JY-axis offset for arcs and Y offset in G87 canned cycle
KZ-axis offset for arcs and Z offset in G87 canned cycle
LNumber of repetitions in canned cycles and key used with G10
MMiscellaneous function
NLine Number
PDwell time with G4 and canned cycles, key used with G10
QFeed increment in G83 canned cycle
RArc Radius, canned cycle plane
SSpindle speed
TTool selection
XX-axis of machine
YY-axis of machine
ZZ-axis of machine
(…)Comments (Words in parentheses are not part of program and are used to help the operators)