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)
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
G110Lathe Groove Face
G111Lathe Groove OD
G112Lathe Groove ID
G113Lathe Thread OD
G114Lathe Thread ID
G115Lathe Face Rough
G116Lathe Turn Rough
G120Mill Outside Square
G121Mill Outside Circle or Island
G122Mill Out Counter Bore
G123Mill Outside Ellipse pocket
G124Mill Inside Ellipse pocket
G125Mill Outside Slot
G126Mill Inside Slot pocket
G1303D tool compensation with gouge protection
G1313D offset parallel to 3D profile
G1323D tool compensation with gouge protection in the Z axis only
G1355 axis tool compensation with gouge protection
G136Included angle limit for gouge protection.
G1403D part rotation and plane tilting
G141Scale factor for the X axis only.
G142Scale factor for the Y axis only.
G143Scale factor for the Z axis only.
G160Mill 3D Cylinder
G162Mill 3D Sphere
G163Mill 3D Ramped Plane
G170Set soft limits and crash fixture/chuck barriers to defaults
G171Set backward crash fixture/chuck barriers
G172Set forward crash fixture/chuck barriers
G181Bolt Hole Drill
G182Bolt Hole Dwell
G183Bolt Hole Peck
G184Bolt Hole TapG185 Bolt Hole Bore

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)