Skip to content

G27: Reference return check

Checks if the axis reaches the programmed reference position.

For reference only: syntax changes with the control, the post-processor and the machine parameters. Check the official manual and run a simulation before cutting. Legal notice.

The brands and control names mentioned belong to their owners and are used only to identify the equipment. GetGCode is not affiliated with or endorsed by any manufacturer, ISO or ASME: this is our own content, not official documentation. Legal notice.

Family
References
Machine
Milling, Turning, Mill-turn
Risk
Medium
Example
G27 X0 Y0 Z0

How to write it on each control

Example
G27 X0 Y0 Z0
Fanuc
G27 X... Y... Z...

Different from G28/G30; used for return verification.

Haas—

G27 is not in the Haas NGC G code list (mill or lathe).

Machine: Milling, Turning, Mill-turn

Sources

  • Official manual: FANUC Series 0i-MODEL F Operator's Manual, Machining Center System (B-64604EN-2/01) · G27
  • Official manual: FANUC Series 0i-MODEL F Operator's Manual, Lathe System (B-64604EN-1/01) · G27

Other codes in References

See the full list of G and M codes

Frequently Asked Questions (FAQ)

What does G27 mean in a CNC program?

Checks if the axis reaches the programmed reference position. In the catalogue it appears as "Reference return check", within the References family.

How is G27 written on each control?

Fanuc: G27 X... Y... Z.... The exact syntax depends on the control version and the machine parameters: always confirm with the manufacturer's manual.

Can you give me an example of G27?

G27 X0 Y0 Z0 — Checks if the axis reaches the programmed reference position.

Which machines use G27?

G27 is used in: Milling, Turning, Mill-turn.

What should you watch out for with G27?

Medium risk: it rarely breaks anything on its own, but a wrong value shows up on the part. Check the block before running the batch.

Related apps