Fanuc G54.1 Additional Work Coordinates: P1-P48 / P1-P300, G10 L20, G52 and the Three PS0030 Boundaries

The standard work coordinate systems are only G54 through G59 – six sets. A machine with multiple stations, multiple fixtures, four-sided machining or a library of reusable zero points runs out of them quickly. FANUC's answer is the additional workpiece coordinate system G54.1 Pn (also written G54 Pn), together with G10 L20 for programmatic writes and G52 for a local shift.

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) versus G10 L20 Pn (writes G54.1 additional systems).
G54.1 format and count checks

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:

  1. 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.
  2. 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.
  3. 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.

G10 L20 absolute and incremental writes

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.

G52 local shift and cancel

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:

  1. G52 X0 Y0 Z0 to clear the local shift;
  2. G54.1 Pn (or G54 Pn) to select the target additional system;
  3. apply G52 again if the station needs a local pattern;
  4. 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:

  1. 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.
  2. 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.
  3. No other use of P is allowed in a G54.1 (G54) block. The manual’s counterexamples are G54.1 G04 P1000; and G54.1 M98 P48; – one P address serving as both coordinate number and dwell time or subprogram number is ambiguous and rejected.
G54.1 three boundaries and PS0030

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:

  1. Keep a zero register: P number, fixture/station, owner, last verified date.
  2. Back up G10-written offsets with the program, and export the OFFSET screen data separately.
  3. Follow the fixed switching order from 46.6; make the G52 clear an explicit line in macros.
  4. Prefer G91 incremental micro-adjustments on the first article, with a record, over overwriting a whole group.
  5. 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

Read the guide, get the right instrument, or walk the diagnosis through with someone — pick whichever you need.

Also available in Chinese: FANUC G54.1 附加工件坐标系怎么用?P1–P48 / P1–P300、G10 L20、G52 与 PS0030 三条边界
The original Chinese version — same procedure, with the full field notes.
© 版权声明
THE END
喜欢就支持一下吧
点赞11赞赏 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容

CNC电气调试问题解答 | 数控机床电气工程师资料共享屋
CNC电气调试问题解答 | 数控机床电气工程师资料共享屋
CNC电气调试问题解答 | 数控机床电气工程师资料共享屋
CNC电气调试问题解答 | 数控机床电气工程师资料共享屋
CNC电气调试问题解答 | 数控机床电气工程师资料共享屋
CNC电气调试问题解答 | 数控机床电气工程师资料共享屋
图片-CNCShare | 数控电气技术中心
图片-CNCShare | 数控电气技术中心
图片-CNCShare | 数控电气技术中心
图片-CNCShare | 数控电气技术中心
图片-CNCShare | 数控电气技术中心
图片-CNCShare | 数控电气技术中心
FANUC Touchscreen / Display Unit Black or Flickering? A02B / A61L Part Numbers, 8 Faults and Replacement Steps-CNCShare | 数控电气技术中心
FANUC 触摸屏/显示单元黑屏、花屏、触摸失灵怎么修?A02B / A61L 件号怎么读 + 8 类故障速判 + 更换实操-CNCShare | 数控电气技术中心
海德汉 TNC 编程站(Programming Station)哪里下载?官方入口、版本对应、数字孪生与迁移到机床的完整流程-CNCShare | 数控电气技术中心
Fanuc G54.1 Additional Work Coordinates: P1-P48 / P1-P300, G10 L20, G52 and the Three PS0030 Boundaries-CNCShare | 数控电气技术中心
FANUC G54.1 附加工件坐标系怎么用?P1–P48 / P1–P300、G10 L20、G52 与 PS0030 三条边界-CNCShare | 数控电气技术中心
Fanuc Wire EDM / Sinker EDM: A-1ic Reverse Alarm Is Not Cutter Comp, and 317 Is an APC Battery-CNCShare | 数控电气技术中心
FANUC 线切割 / 电火花专机怎么修?A-1ic 反向报警真因不是刀补,317 是 APC 电池,接地门槛别照抄-CNCShare | 数控电气技术中心
Fanuc 16A/16B/18A/18B Legacy Machines: Alpha SVM/SPM Alarms and Obsolete Spare Strategy-CNCShare | 数控电气技术中心
FANUC 16A/16B/18A/18B 老系统伺服报警怎么查?Alpha 时代 SVM/SPM 放大器、报警对照与停产备件替代思路-CNCShare | 数控电气技术中心
Fanuc P/S Alarm 5560 and Beyond: PS5560, the 45xx Macro Family and the Official PS5523 Route-CNCShare | 数控电气技术中心
FANUC P/S 报警 5560 以后怎么查?中文补齐:PS5560 两种现场文本、45xx 宏调用族、PS5523 官方上报路径-CNCShare | 数控电气技术中心
Fanuc Tool Breakage Detection Without Extra Hardware: Spindle Load via PMC Window Function 153-CNCShare | 数控电气技术中心
文章精选
专心做好一件事
打造更优雅的WordPress主题-CNCShare | 数控电气技术中心
专心做好一件事
打造更优雅的WordPress主题