G91: Incremental positioning
What G91 does
In G91 every value is a distance from where the tool is now: X10 means move 10 further in +X. Left on by accident, G91 turns every following absolute position into a move from the current point, which is how many crashes start. Switch back to G90 straight after the incremental moves.
| Type | G-code |
|---|---|
| Machine | Mill |
| Group | Positioning mode |
| Modal | Yes: stays active until replaced by another code from the same group |
G91 example
G91 G01 X10. F200. Feed 10 mm further in +X from here.
| Word | What it means here |
|---|---|
G91 | Incremental positioning |
G01 | Linear interpolation (feed move) |
X10. | X axis target (on a lathe, the diameter) |
F200. | feed rate (on threading codes, the lead) |
Codes people confuse with G91
| Code | What it does instead |
|---|---|
G90 | Absolute positioning. Positions are measured from program zero. |
Where controls differ
- Lathes (system A): Incremental moves use U and W instead of G91; G90 is a turning cycle there.
Other codes in the positioning mode group
Only one code from a modal group is active at a time. Programming any of these replaces G91.
G90Absolute positioning
Meanings follow the common Fanuc-style standard that Haas, Okuma (EIA mode), Mitsubishi, LinuxCNC and most other controls share for this code. Options and parameters change details from machine to machine, so check the manual for your control.
Quick check: G91
-
What does
G91do? (Mill) -
Which code: Positions are distances from the current point.(Mill)
-
What does
G90do? (Mill)
Show the answers
- Positions are distances from the current point.
- G91
- Positions are measured from program zero.
Frequently asked questions
- What does G91 mean in CNC programming?
- Incremental positioning. Positions are distances from the current point.
- Is G91 modal?
- Yes. G91 belongs to the positioning mode group and stays active until another code from that group is programmed.
- What is the difference between G91 and G90?
- G91 (incremental positioning): positions are distances from the current point. G90 (absolute positioning): positions are measured from program zero.
G-Code Sprint is an educational practice tool only. It is not a CNC simulator, machine controller, safety manual, or replacement for instruction. Always follow your instructor, employer, machine manual, and shop procedures.