G-code reference
G57 G-Code: Work Coordinate System 4
Work Coordinate System 4 — Selects work offset 4.
| Property | Value |
|---|---|
| Code | G57 |
| Function | Work Coordinate System 4 |
| Modal group | 14 |
| Type | Modal — stays active until replaced by another code of the same group |
| Used on | Mills and lathes |
| Syntax | G57 |
What does G57 do?
Selects work offset 4.
G57 is modal: once programmed it remains in effect for the following blocks until another code from modal group 14 replaces it or the control is reset.
Syntax and parameters
G57G57 example program
G57 G00 X0 Y0▶ Open this example in the G-code viewer
Controller compatibility
G57 follows the ISO/Fanuc dialect used by Fanuc, Haas, Brother, Doosan, Hurco (ISO mode), Mazak (EIA/ISO mode), Okuma (G-code mode) and Siemens in ISO dialect mode. Parameters, option packages and builder-specific behaviour can differ, so confirm the details in your machine's programming manual before running a new program.
Related codes
Frequently asked questions
Is G57 modal?
Yes. G57 belongs to modal group 14 and stays active until another code of that group is programmed.
What does G57 mean in CNC?
G57 means Work Coordinate System 4. Selects work offset 4.
What is the difference between G57 and G54?
G57 is Work Coordinate System 4, while G54 is Work Coordinate System 1. See the G54 page for its syntax and examples.
Can I use G57 on a lathe?
Yes, G57 is used on both mills and lathes, although some parameters differ between them.