-

G54 G59 Work Coordinate Systems

Overview

Activates a selected Work Coordinate System (WCS) and enables correct offset.

  • G54 - WCS#1
  • G55 - WCS#2
  • G56 - WCS#3
  • G57 - WCS#4
  • G58 - WCS#5
  • G59 - WCS#6

Each Coordinate system can have up to 3 subframes for a total of 18 specified coordinate system offsets. If no subframe is specified, the very first subframe#0 will be used.

Can be used to produce identical parts in different preset locations on a fixture.

For example: a fixture can have 6 pockets with their origin coordinates saved in a WCS offset table and then a G-code file can be ran 6 times specifying a different Work Coordinate System (G54-G59) at the start to produce identical toolpath in each of the pockets.

Command Format

Syntax

Examples

Details

  • After a reboot, the active Work Coordinate System is NOT preserved. The G54 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 values of the offsets table can be modified manually in Compass Designer or by using the G10 command in a G-code file. The offsets in the file will be updated when the G10 Command is actually executed by the controller, not when it is parsed from the file.
  • If the offset value of the active WCS was updated in the offsets table (manually or by using the G10 command), the updated value is not used until the Work Coordinate System is reactivated by using a G54-59 command.

See also


 


This is the latest version of Compass Online help and the content may refer to features not available in previously released versions of Compass.

Copyright © 2026 YASKAWA America, Inc.