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-
G54 (or G55, 56, 57, 58, 59) P... J... -
P... and J... specifies a subframe -
P... and J... has identical functionality to support multiple standards -
J... has priority over P... - If a subframe is not specified (no P or J) the very first subframe#0 is used (J0)
- Indexes to the extended table
- P0 - P2 and J0 - J2 is allowed
Examples
- G56
- Activates WCS#3 (subframe #0)
- G57 J0
- Activates WCS#4 (subframe #0)
- G58 J2
- Activates WCS#5 (subframe #2)
- G59 P1
- Activates WCS#6 (subframe #1)
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
- G10 - Set offsets G10: Set work and tool offsets