-
G54 G59 Work Coordinate Systems
Overview
- Activates the commanded Work Coordinate System (WCS).
- Commonly used to run identical programs with different LCS origin reference points.
- E.g.: A "pocket" g-code progam could be run in 4 different WCSs to produce an identical pocket in 4 locations withing the MCS.
- See:
Coordinate Systems
- Each Coordinate system can have up to 3 subframes for a total of 18 configurable coordinate system offsets. If no subframe is specified on the command line, the first subframe is be used.
Command Format
-
Syntax:
G54 (or G55, 56, 57, 58, 59) J... P...
-
J... or P...
- J and P are both valid for specifying the subframe.
- If both are used on a line, only the value following J is used.
- J and P are optional. Omitting them is equivalent to commanding G5X J0 or P0 (subframe 0).
Mapping
- WCS 1
- Subrame 0:
G54 (Optionally J0 or P0)
- Subrame 1:
G54 J1
or
P1
- Subrame 2:
G54 J2
or
P2
- WCS 2
- Subrame 0:
G55 (Optionally J0 or P0)
- Subrame 1:
G55 J1
or
P1
- Subrame 2:
G55 J2
or
P2
- WCS 3
- Subrame 0:
G56 (Optionally J0 or P0)
- Subrame 1:
G56 J1
or
P1
- Subrame 2:
G56 J2
or
P2
- WCS 4
- Subrame 0:
G57 (Optionally J0 or P0)
- Subrame 1:
G57 J1
or
P1
- Subrame 2:
G57 J2
or
P2
- WCS 5
- Subrame 0:
G58 (Optionally J0 or P0)
- Subrame 1:
G58 J1
or
P1
- Subrame 2:
G58 J2
or
P2
- WCS 6
- Subrame 0:
G59 (Optionally J0 or P0)
- Subrame 1:
G59 J1
or
P1
- Subrame 2:
G59 J2
or
P2
Details
- After a reboot, the active Work Coordinate System is NOT preserved. The G54 Subframe 0 Work Coordinate System becomes active.
- The values of the Work Coordinate System offsets are saved in a file on the PC and are not affected by controller reboots.
- The WCS values can be modified visually in the Compass UI Runtime or by using the G10 command in a G-code file.
- If a WCS is updated by a G10 command, the persistent file on the PC is not updated until the G10 command is executed by the PLC.
- If the current active WCS is updated (via G10 or the UI Runtime), the NC system does not use those new values until that offset is activated again with a G54-59 command.
See also