← Back to Glossary
Program & G/M Codes 30 terms

Program & G/M Codes

Program structure and key G/M command behaviors.

Absolute Programming (G90)

Coordinate values are referenced to the zero point.

Circular Interpolation (G02/G03)

Moves along an arc path.

Conditional Statement (IF)

Executes different paths based on conditions.

Coolant Off (M09)

Turns off coolant.

Coolant On (M08)

Turns on coolant.

Cutter Comp Left (G41)

Compensates tool to the left of the toolpath.

Cutter Comp Right (G42)

Compensates tool to the right of the toolpath.

Cutter Compensation Cancel (G40)

Cancels tool radius compensation.

Dwell (G04)

Programmed time delay or pause.

FANUC Macro B

FANUC macro programming extension feature.

G-Code

The most widely used programming language for CNC machines. G-code commands control machine movements, spindle operations, coolant, and other functions through standardized alphanumeric codes.

Incremental Programming (G91)

Coordinate values are referenced from the current position.

Linear Interpolation (G01)

Moves linearly at the commanded feedrate.

M Code

Instruction set used for auxiliary function control.

Macro Program

Advanced program containing variables and logic.

Main Program

Program that controls the complete machining process.

Program Block (Block)

Execution unit composed of one line of code.

Program End (M30)

Ends the program and resets.

Program Number (O)

Number used to identify a program.

Program Stop (M00/M01)

Program interruption or optional stop.

Rapid Positioning (G00)

Moves to target position at rapid speed.

Sequence Number (N)

Sequence identifier for a program block.

SINUMERIK ShopMill

Siemens conversational milling programming environment.

SINUMERIK ShopTurn

Siemens conversational turning programming environment.

Spindle Forward (M03)

Starts spindle rotation in the forward direction.

Spindle Stop (M05)

Stops spindle rotation.

Subprogram

Program segment that can be repeatedly called by the main program.

Subprogram Call (M98)

Command to call a specified subprogram.

Subprogram Return (M99)

Ends a subprogram and returns to the main program.

Variable

Parameter used for storage and calculation in macro programs.