This page follows field order: when to use which system, how to write offsets, how to switch, and the three boundaries people keep hitting. Evidence boundary first: counts, formats and the three limits follow the official FANUC programming manuals (30i/31i/32i and 16i operation volumes). Published macro-variable address formulas contradict each other, so this page gives no variable numbers – always use the manual for your machine.
46.1 When you need an additional coordinate system
Four recurring cases:
- Multiple stations: several identical setups on one plate, each with its own zero.
- Multiple fixtures: different fixtures rotated onto the same machine, zero travelling with the fixture.
- Multi-face work: horizontal four-face setups or multi-axis positioning, one zero per face.
- Zero-point templates: common work zeros stored once and called by P number instead of touched off again.
They share one requirement: the zero must be stored persistently, selectable by number and writable from a program. G54-G59 give you only six numbers, and machine builders often reserve some of them. G54.1 adds that layer.
46.2 Format and count: P1-P48 or P1-P300
The manual format is:
G54.1 Pn ; (or G54 Pn ;)
G10 L20 Pn IP_ ; (set the workpiece origin offset for the additional system)
Here n = 1 to 48 or 1 to 300; which range applies depends on the control model and installed options. Do not assume from another machine. Check the OFFSET setting screen to see the highest P number listed, or check the option/parameter list.
Two rules that get missed:
- At power-on, standard coordinate system 1 (G54) is selected. A selected system stays active until another is selected.
- G54.1 P1 and G54 P1 are the same selection – the manual presents both formats. What must not be confused is
G10 L2 Pn(writes G54-G59) versusG10 L20 Pn(writes G54.1 additional systems).

46.3 Method one: enter values on the OFFSET screen
Like G54-G59, additional systems can be displayed and set on the workpiece origin offset screen. This suits:
- recording a zero manually after first-article touch-off;
- small shop-floor adjustments after a fixture change;
- temporary values during setup.
The drawback: values travel with the machine, not with the program. Change machines, lose SRAM data, or change shifts without documentation and you touch off again. Production work favours programmatic writes.
46.4 Method two: the two meanings of G10 L20 Pn IP_
The manual is explicit: with an absolute value the specified value becomes the new offset; with an incremental value it is added to the current offset. In practice:
G90 G10 L20 P1 X100. Y200. Z50. ; (absolute: overwrite P1)
G91 G10 L20 P1 X0.02 ; (incremental: add to current P1)
Three working rules:
- Write G90 or G91 explicitly before G10. Never inherit the mode. An incremental line inside a loop adds on every pass and walks the zero away.
- P selects the G54.1 additional system. For G54-G59 use
G10 L2 Pn(P1=G54, P2=G55 …). Mixing L20 and L2 is a classic way to change the wrong zero. - Verify on the OFFSET screen or in single-block simulation before cutting metal. G10 changes zeros; a mistake here is a crash-class error.
The real payoff is “offsets travel with the program”: after a probe measures the first article, a macro writes the result back to the P number. Macro calls and variable partitions are covered in the Fanuc Macro B guide; probe variable numbers come from the probe builder’s manual, not from this page.

46.5 G52 local coordinate system: a shift, not another G54
G52 adds a shift inside the currently active work coordinate system:
G52 X50. Y0. Z0. ; (add a local shift)
G52 X0. Y0. Z0. ; (cancel the shift)
Use it for:
- repeating a hole pattern at a known pitch within one program;
- parameterized grids on a fixture, with a macro calculating each cell’s G52;
- temporarily shifting a zero without touching the OFFSET table.
The distinction is simple: G54.1 Pn is a stored zero; G52 is a layer on top of it. Whether the shift survives power-off, and how switching between G5x systems treats it, varies by series and parameter setup. Do not assume it clears automatically – write G52 X0 Y0 Z0 explicitly before changing stations.

46.6 Switching rule: clear the layer, then change the base
The most common multi-station programming error is mixing the base system with the shift layer. Use a fixed order:
G52 X0 Y0 Z0to clear the local shift;G54.1 Pn(orG54 Pn) to select the target additional system;- apply G52 again if the station needs a local pattern;
- clear G52 again at the end of the station.
The reverse order may also run, but which system the shift lands in depends on control behaviour and builder setup. An explicit clear is more reliable than an assumed default – especially inside a macro that switches zeros automatically.
46.7 Three boundaries the manual states plainly
These are not folklore; they come from the Limitation paragraph of the FANUC programming manual:
- A P code must follow G54.1 (or G54) in the same block. If it does not, additional coordinate system 1 (G54.1 P1) is assumed – no alarm, no “stay where you were”. It silently selects P1.
- A P value outside the specifiable range raises PS0030 (ILLEGAL OFFSET NUMBER). On a 48-system machine, P49 alarms. That is different from simply lacking a G54.1 option – check the machine’s actual range first. For how PS0030 is cross-referenced, see the alarm / parameter / diagnostic guide.
- No other use of P is allowed in a G54.1 (G54) block. The manual’s counterexamples are
G54.1 G04 P1000;andG54.1 M98 P48;– one P address serving as both coordinate number and dwell time or subprogram number is ambiguous and rejected.

46.8 Macro variables: address families conflict, do not copy formulas
Additional-system offsets can be read and written through custom macro system variables, which is how automatic zero switching is built. But the specific variable numbers must not be copied from the internet:
- published sources give two incompatible address families (one derived around the #7000 range, another around #35000);
- standard G54-G59 offset variables and G54.1 additional-system variables do not follow the same numbering rule;
- range and layout change with series, software version and options.
The right procedure: open the macro-variable manual for your control, find the workpiece-origin-offset table for additional systems, then validate one known P number against the OFFSET screen. Read P1’s X value first and confirm it matches the display before you ever write. A commonly quoted “current P number” variable (often given as #4130) appears in only one class of source; this site does not confirm it – verify locally.
Macro B variable partitions and G65/G66/G67 calls are in the Fanuc Macro B guide. For same-number-different-meaning caution across series, see same number, different text.
46.9 Difference from G92: what the coordinate binds to
- G54 family: a stored offset of the workpiece zero relative to the machine reference. You call a saved position.
- G92: defines the tool’s current position as the specified coordinate value. It redefines the present location; it does not change the machine coordinate itself.
Modern machining centres should build work zeros with G54-family systems. G92 in programs that change tools, power-cycle or re-enter can leave position references confused. When an old program contains G92, decide whether it is making a process shift or establishing a work zero – do not simply delete it.
46.10 Field implementation: register and back up
Long-term stability on a multi-station machine is not a memory game:
- Keep a zero register: P number, fixture/station, owner, last verified date.
- Back up G10-written offsets with the program, and export the OFFSET screen data separately.
- Follow the fixed switching order from 46.6; make the G52 clear an explicit line in macros.
- Prefer G91 incremental micro-adjustments on the first article, with a record, over overwriting a whole group.
- When moving a program to another machine or software version, check the P-number limit first – P48 may be legal on one control and raise PS0030 on another.
Frequently Asked Questions
What happens if I omit P after G54.1 – which system is selected?
There is no alarm. Additional workpiece coordinate system 1 (G54.1 P1) is assumed by default, per the official manual. So a missing P does not leave the current system active; it silently switches to P1. In a multi-station program that is hard to spot at a glance, so always write the P code.
Are G54.1 P1 and G54 P1 the same thing?
Yes. The manual lists G54.1 Pn ; and G54 Pn ; as alternative formats for selecting the same additional system. What must not be mixed is the write command: G10 L2 Pn writes G54-G59 standard systems, while G10 L20 Pn writes G54.1 additional systems. The wrong L address changes the wrong zero.
Is the additional coordinate count 48 or 300, and what decides it?
The control model and installed options decide it; the manual says “48 or 300”, not a program-time choice. Check the OFFSET screen for the highest listed P number and the option/parameter list. Writing P49 on a 48-system machine raises PS0030, while the same block may be legal on a 300-system machine – verify the range before moving a program between machines.
Last updated: 2026-11-25
Where to go next
- FANUC Troubleshooting — the full guide library: alarms, diagnosis numbers, servo, spindle, PMC and electrical faults, organised by symptom.
- CNC Repair Tools — which instrument measures what: multimeters, clamp meters, insulation testers and oscilloscopes, with the specification that actually matters.
- Remote Technical Support — have the readings reviewed with you: alarm reverse lookup, PMC ladder analysis and servo tuning advice by call. Repair companies and integrators welcome.
- Buying & Ownership Decisions — refurbished vs new, used-machine checks, software licensing and manuals: spend with the field facts in hand.
Read the guide, get the right instrument, or walk the diagnosis through with someone — pick whichever you need.
The original Chinese version — same procedure, with the full field notes.












































暂无评论内容