G-code
Supported G-code
G96, G97 (Spindle Control Mode)
1min
two spindle control modes are possible, depending on the mode the spindle speed is calculated differently g96 (only for lathe) select constant surface speed, s is now specified as meters per minute in mm mode (g21) or feet per minute in inch mode (g20) this means that the spindle speed is adapted automatically when the radius changes suppose you program g96 s150 in millimeter mode, the spindle speed is calculated by rpm = s / (2 pi x), and x is the radius so your x zero must be where the diameter is zero example your actual x position is 100 (100 millimeters = 0 1 meter), and you program g96 s150 d1000 , this would result in a spindle rpm of 150 / (2 pi 0 1) = 238 7 rev/min d1000 limits the maximum speed to 1000 rpm g97 g97 is normal rpm mode, and s specifies the rpm