G-CODEEIA/ISO · modal · group 27
G54.4

Workpiece setup error correction

Machine-specific. This G-code reference is specific to the Mazak INTEGREX e-670H / e-670H-S with the MAZATROL SmoothX control (EIA/ISO programming manual H747PB0030E). G-code availability depends on fitted options, and groups and behaviour differ between Mazak models and control generations — verify against the manual for your own machine before programming with any code.
What it does

This function is provided to compensate for the error in setting a workpiece easily, without having to rewrite the program section for describing the machining contour, by modifying the workpiece coordinate system according to the error in question. Coordinate system to be referred to Automatic renovation of coordinate system Enter zero with P (G54.4 P0) to cancel the correction function.  Be sure to enter the G54.4 command (for selection as well as for cancellation) independently. If a block of G54.4 should contain any other commands, an alarm is caused (1815 CANNOT  Omission of argument P will lead to an alarm (807 ILLEGAL FORMAT). Alarm 809 ILLEGAL NUMBER INPUT occurs if argument P is of any other value than 0 to 7. 2. Definition of workpiece setup coordinate system The workpiece setup coordinate system is defined by using the following three types of externally provided data on the setup error. 1. Linear errors on the orthogonal axes X, Y, and Z (x, y, z) Specify the origin of the workpiece setup coordinate system with its absolute values in the 2. […]

G54.4 is modal (group 27) — it stays in effect until another code of the same group replaces it.

Programming format
G54.4 Pn;
Address words
  • n: Number of the data set for workpiece setup error correction (1 to 7)
  • Enter zero with P (G54.4 P0) to cancel the correction function.
  •  Be sure to enter the G54.4 command (for selection as well as for cancellation) independently.
  • If a block of G54.4 should contain any other commands, an alarm is caused (1815 CANNOT
  • USE G54.4).
  •  Omission of argument P will lead to an alarm (807 ILLEGAL FORMAT).
  • Alarm 809 ILLEGAL NUMBER INPUT occurs if argument P is of any other value than 0 to 7.
  • 2. Definition of workpiece setup coordinate system
  • The workpiece setup coordinate system is defined by using the following three types of
  • externally provided data on the setup error.
  • 1. Linear errors on the orthogonal axes X, Y, and Z (x, y, z)
  • Specify the origin of the workpiece setup coordinate system with its absolute values in the
  • current workpiece coordinate system.
  • 2. Angular errors in rotation around the orthogonal axes (a, b, c)
Source

Mazak PROGRAMMING MANUAL for EIA/ISO PROGRAM, manual H747PB0030E, section 28-5-1 Function outline, p. 3-11, 28-90, 28-91, 28-92, 28-93, 28-94, 28-95, 28-96, 28-97. Reference and explanation only — not a reproduction of the manual.

Not sure how to use it? Ask the Mazatrol assistant →