LENGTH UNITS (G20 AND G21)
To set length units to inches, program: G20
To set length units to millimeters, program: G21
Tip! Program either G20 or G21 near the beginning of a program, before any motion occurs. Avoid using either one anywhere else in the program. It’s your responsibility to make sure that all numbers are appropriate for use with the current length units.
- Introduction
- Programming Overview
- Programming G-Code
- Programming G-Code
- Rapid Linear Motion (G00)
- Linear Motion at Feed Rate (G01)
- Arc at Feed Rate (G02 and G03)
- Dwell (G04)
- Set Offsets (G10)
- Plane Selection (G17, G18, G19)
- Length Units (G20 and G21)
- Return to Predefined Position (G28 and G28.1)
- Return to Predefined Position (G30 and G30.1)
- Straight Probe (G38.x)
- Cutter Compensation (G40, G41, G42)
- Dynamic Cutter Compensation (G41.1 and G42.1)
- Apply Tool Length Offset (G43)
- Engrave Sequential Serial Number (G47)
- Cancel Tool Length Compensation (G49)
- Absolute Coordinates (G53)
- Select Work Offset Coordinate System (G54 to G59.3)
- Set Exact Path Control Mode (G61)
- Set Blended Path Control Mode (G64)
- Distance Mode (G90 and G91)
- Arc Distance Mode (G90.1 and G91.1)
- Temporary Work Offsets (G92, G92.1, G92.2, and G92.3)
- Feed Rate Mode (G93, G94, and G95)
- Spindle Control Mode (G96 and G97)
- Programming Canned Cycles
- Programming M-Code
- Programming M-Code
- 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)
- Spindle Speed Override Control (M51)
- Set Current Tool Number (M61)
- Set Output State (M64 and M65)
- Wait on Input (M66)
- Programming Input Codes
- Advanced Programming