What is G97 code in CNC?

G97 constant spindle speed command. S RPM of the spindle/workpiece. M03 spindle direction. When switching between G96 and G97 always define a spindle speed.

What does G97 mean?

This commands the control to NOT adjust the spindle speed based on the diameter of cut and cancels any G96 command. When G97 is in effect, any S command is revolutions per minute (RPM).

What does a G-code tell a machine?

G-codes, also called preparatory codes, are any word in a CNC program that begins with the letter G. Generally it is a code telling the machine tool what type of action to perform, such as: Rapid movement (transport the tool as quickly as possible in between cuts) Controlled feed in a straight line or arc.

What are the M codes?


  • Supported M-Codes Reference.
  • Program Stop and Program End (M00, M01, M02, and M30)
  • Spindle Control (M03, M04, and M05)
  • Tool Change (M06)
  • Coolant Control (M07, M08, and M09)
  • Automatic Collet Closer Control (M10 and M11)
  • Override Control (M48 and M49)
  • Feed Override Control (M50)

When to use the G97 and G96 codes?

Here, G97 is the constant spindle speed command, S has the RPM of the work piece or the spindle, and M03 represents the direction of the spindle. What is the g96 code? The G96 code is utilized when you need a constant cutting speed or surface speed.

When to use G96 or G97 in Mastercam?

However, when you program to use G96 in Mastercam, you will see an initial G97 move at the toolchange. This is put there because if you were to start in G96 mode, while your turret is in home position, the spindle would have to start spinning at 1 RPM or so.

What is the g96 code for CNC machining?

Both G96 and G97 represent constant surface speed codes in CNC machining. These are the two modes that you can select when you are trying to control the rotational speed of your component. The G96 is for constant cutting surface speed and the G97 is for constant spindle surface speed. What is the G97 Code?

When to use G96 and G97 spindle speed control?

We have two different modes to choose from when controlling the rotational speed of our component, the G96 constant surface cutting speed and the G97 constant spindle speed. The G96 command is used when we require a constant surface speed or cutting speed.

Share this post