Instructions

Table 3—g-code List
g0 rapid positioning
g1 linear interpolation
g2 circular/helical interpolation
(clockwise)
g3 circular/helical interpolation
(counterclockwise)
g4 dwell
g10 coordinate system origin setting
g17 xy plane selection
g18 xz plane selection
g19 yz plane selection
g20 inch system selection
g21 millimeter system selection
g40 cancel cutter diameter compensation
g41 start cutter diameter comp. left
g42 start cutter diameter comp. right
g43 tool length offset (plus)
g49 cancel tool length offset
g53 motion in machine coordinate system
g54 use preset work coordinate system 1
g55 use preset work coordinate system 2
g56 use preset work coordinate system 3
g57 use preset work coordinate system 4
g58 use preset work coordinate system 5
g59 use preset work coordinate system 6
g59.1 use preset work coordinate system 7
g59.2 use preset work coordinate system 8
g59.3 use preset work coordinate system 9
g80 cancel motion mode (includes canned)
g81 drilling canned cycle
g82 drilling with dwell canned cycle
g83 chip-breaking drilling canned cycle
g84 right hand tapping canned cycle
g85 boring, no dwell, feed out canned cycle
g86 boring, spindle stop, rapid out canned
g87 back boring canned cycle
g88 boring, spindle stop, manual out canned
g89 boring, dwell, feed out canned cycle
g90 absolute distance mode
g91 incremental distance mode
g92 offset coordinate systems
g92.2 cancel offset coordinate systems
g93 inverse time feed mode
g94 feed per minute mode
g98 initial level return in canned cycles
Note: a complete list of g-codes and their explanations can be found on the Sherline
Ubuntu CNC computer. In the main menu go to Applications>CNC>g-code Quick
Reference.
Table 4—G- and M-Code Modal Groups
Group 1 = {g0, g1, g2, g3, g80, g81, g82, g83, g84, g85, g86, g87, g88, g89} —motion
Group 2 = {g17, g18, g19} — plane selection
Group 3 = {g90, g91} - distance mode
Group 5 = {g93, g94} - spindle speed mode
Group 6 = {g20, g21} - units
Group 7 = {g40, g41, g42} - cutter diameter compensation
Group 8 = {g43, g49} - tool length offset
Group 10 = {g98, g99} - return mode in canned cycles
Group12 = {g54, g55, g56, g57, g58, g59, g59.1, g59.2, g59.3} coordinate system selection
Group 2 = {m26, m27} - axis clamping
Group 4 = {m0, m1, m2, m30, m60} - stopping
Group 6 = {m6} - tool change
Group 7 = {m3, m4, m5} - spindle turning
Group 8 = {m7, m8, m9} - coolant
Group 9 = {m48, m49} - feed and speed override bypass
80