Home/Articles/G74 Reference Point Approach Guide for Siemens SINUMERIK CNC
G74 · MILLING

G74 Reference Point Approach Guide for Siemens SINUMERIK CNC

ProgrammingSiemens·Updated Jul 22, 2026·10 min read
Quick answer

How do you program G74 reference point approach on Siemens controls Program G74 in an isolated NC block with targeted axes assigned strictly to zero, such as G74 X1=0 Y1=0. Coordinate transformations must be deactivated via TRAFOOF to prevent dangerous axis deviations. Homing coordinates are defined in the axis-specific machine data MD 34100 $_MA_REFP_SET_POS.

Introduction

Executing a G74 reference point approach on a Siemens control without first verifying the active frame settings can cause a catastrophic crash where the turret drives the tool nose directly into a machine vise jaw, table-mounted clamps, or rotating jaws of a spindle chuck. When an operator attempts homing while coordinate transformations remain active in the background preprocessor registers, the axis travels along an uncompensated path. Under these uncompensated conditions, the tool nose will bypass software stroke limits, leading to a hard collision that shatters the cutting tool, damages the axis ball screws, throws Alarm 61816, and converts raw stock into a ruined scrap part. To eliminate this hazard, setup operators must establish a verified datum during system initialization, deactivating active coordinate transformations before commanding G74.

Technical Summary

Technical Specification Details
Command Code G74
Modal Group Group 2 (Non-modal)
Brands Supported Siemens
Critical Parameters MD 34100 $_MA_REFP_SET_POS (Axis reference position), MD 10710 $MN_PROG_SD_RESET_SAVE_TAB (Reset setting data retention)
Main Constraint Must be programmed in a separate, isolated NC block with axis values set strictly to 0 (e.g., X1=0), and coordinate transformations must be inactive (deactivated via TRAFOOF).

Quick Read

  • Deactivate Coordinate Transformations: Always program the TRAFOOF command to deactivate active kinematic frames and transformations before executing a G74 reference return.
  • Program in an Isolated Block: Write G74 in a separate, dedicated NC block containing only the command and the targeted axes.
  • Assign Zero Strictly: Assign a value of exactly 0 to each target axis address (such as X1=0 Y1=0 Z1=0) to trigger the homing sequence.
  • Configure Homing Offsets: Define up to four physical reference positions per axis using machine data parameter MD 34100 $_MA_REFP_SET_POS.
  • Observe Simulation Constraints: Do not execute G74 during a program simulation run, as this is a prohibited simulation state and will not function.
  • Run Dry Run in Single Block: Perform initial homing dry runs in single-block mode with a low feedrate override to verify slide paths.

Basic Concepts

The G74 reference point approach is a critical initial sequence for CNC machines equipped with incremental position measuring systems. When the control powers up, the mathematical link between physical slide positions and the machine coordinate system must be established before any traversing movements can be programmed. By commanding G74, each designated axis slide travels to its physical reference mark. Only after referencing is successfully completed can the CNC execute accurate coordinate motion, apply zero offsets like G54, or safely run machining subprograms. This homing sequence is also utilized when the measurement system is changed, allowing the control to correctly initialize the workpiece zero point.

Setup operators and programmers must maintain absolute vigilance regarding active coordinate offsets, tool offset values, and physical clamping boundaries during homing operations. Prior to executing G74, the raw stock must be physically aligned and secured in workpiece workholding—clamped in a machine vise jaw, mounted on table clamps, or secured within the rotating jaws of a spindle chuck. If a tool height offset is misconfigured, or if the safe start coordinates are programmed incorrectly before homing, the tool-carrying gantry or turret will travel along a dangerously uncompensated path. Under these uncompensated conditions, the tool nose can bypass software limits and drive the turret directly into physical obstructions. This sudden axis deviation results in a catastrophic hard collision, shatters the cutting tool, damages the axis ball screws, throws an NC system alarm code, and converts the expensive raw stock into a completely ruined scrap part.

Command Structure

In native Siemens mode (G290), referencing is commanded directly through the G74 preparatory function. Unlike ISO Dialect modes which use G28 or G30, Siemens utilizes G74 to directly target and home specific linear or rotary machine axes. The command must be written in its own NC block to prevent conflicts during system preprocessing.

The command requires the programmer to explicitly target axes and assign them a value of zero. Each axis address specified in the block will initiate its homing cycle sequentially or simultaneously, depending on system parameters. Axis identifiers must correspond to the channel configuration, such as X1, Y1, Z1, or rotary C1. The value assigned to each machine axis address must be strictly 0.

G74 X1=0 Y1=0 Z1=0 C1=0 ;
Address / Token Description
G74 Non-modal preparatory command for native reference point approach (Group 2).
X1=0, Y1=0, Z1=0 Targets the specified linear machine axes to approach their reference marks. The coordinate value assigned must be strictly 0.
A1=0, C1=0 Targets the specified rotary machine axes or spindle to approach their reference marks. The coordinate value assigned must be strictly 0.

Brand Applications

Siemens

Siemens utilizes G74 as a dedicated preparatory command for reference point approach in native Siemens mode. In Fanuc and Mitsubishi systems, G74 is strictly dedicated to left-hand tapping or end-face grooving and peck drilling, while reference point approach is handled via G28 or G30. Siemens native mode (G290) merges reference point approach directly into the non-modal G74 command.

Siemens requires explicit axis-by-axis assignment to zero (e.g., X1=0) to invoke the G74 homing sequence, bypassing intermediate point errors. Fanuc and Mitsubishi controls rely on G28, which forces the axis to move first to a programmed intermediate coordinate before traveling to the machine zero. This intermediate coordinate can cause dangerous diagonal motions and accidental workholding crashes if not programmed with extreme caution. Siemens G74 bypasses intermediate moves entirely, directly referencing the targeted machine axes (like linear X1 or rotary C1).

Siemens manages its homing coordinates through multi-set machine data parameters (MD 34100 $_MA_REFP_SET_POS). This configuration allows the machine tool builder to pre-set up to four distinct physical reference positions per axis in the control memory. This parameter-driven approach provides deeper integration with HMI setup screens than the rigid, parameter-locked reference returns of Fanuc or Mitsubishi systems.

Brand Comparison

SINUMERIK CNC Series HMI Display and Coordinate Windows Machine Data Access Control Homing and Collision Avoidance Features
SINUMERIK ONE Widescreen HMI with Create MyVirtual Machine digital-twin simulation support for virtual home validation. Flexible user levels with full machine data editing capabilities. Integrated 3D Collision Avoidance tracks machine kinematic frames during G74 reference return.
SINUMERIK 840D sl Widescreen multi-touch HMI panels displaying active coordinates, axis loads, and standard minimized windows (ALARME, ACHSLAST, WERKZEUG). Full read and write capabilities for all channel-specific and axis-specific machine data parameters. Native Collision Avoidance is supported, automatically protecting workholding equipment during homing.
SINUMERIK 828D / 808D Standard HMI screens displaying basic coordinate coordinates without widescreen multi-touch custom panels. Entry-level models (such as 802D sl or 808D) write-protect critical parameters like MD 20154 from user modification. Basic G74 reference return is supported; advanced collision avoidance options are omitted.

Technical Analysis

Two key programmatic and preprocessor behaviors clearly distinguish Siemens reference point approach handling between native mode and ISO Dialect mode. First, switching between native Siemens mode (G290) and ISO Dialect mode (G291) changes the functional meaning of the G74 command. Under G290, G74 is the Reference Point Approach command. Under G291 turning mode, G74 represents Z-axis end-face peck drilling and grooving, while in milling mode it represents a left-hand tapping cycle. Programmers must ensure the correct interpreter mode is active; commanding G74 while the bilingual compiler is in the wrong state will execute an unintended cycle instead of homing. Second, native Siemens G74 bypasses intermediate travel points entirely, directly referencing the targeted machine axes. ISO Dialect reference returns using G28 force the axis to move first to a programmed intermediate coordinate, which can cause diagonal tool motions and accidental chuck crashes. For turning operations, operators must avoid mixing high-level cycle parameters with those found in pattern repeating cycles like G73, which execute stock removal rather than axis homing.

Program Examples

; Native Siemens mode reference point approach
N10 G290 ; Switch control to native Siemens mode
N20 TRAFOOF ; Cancel active coordinate transformations
N30 G74 X1=0 Y1=0 Z1=0 ; Reference point approach for linear axes X1, Y1, and Z1
N40 G74 C1=0 ; Reference point approach for rotary spindle/axis C1
N50 M30 ; End of program

dry run

During the dry run of this program, the CNC switches to native Siemens mode in block N10. Block N20 deactivates all active coordinate transformations, ensuring that coordinate rotations or shifts do not alter the homing trajectory. Block N30 commands the linear axes X1, Y1, and Z1 to travel directly to their physical reference marks without intermediate point deviations. Once reached, the coordinates reset to their defined values in MD 34100. In block N40, the rotary spindle axis C1 approaches its reference position. The program ends successfully in block N50, leaving the machine fully referenced.

Error Analysis

Alarm Code Trigger Condition Operator Symptom Root Cause / Fix
Alarm 61816 Programmed axes are not physically aligned with their reference point during a G27 check. Automatic mode is interrupted and the program halts. Axis position has deviated or reference return was bypassed. Clear any mechanical blocks and execute G74 to reference the axes.
Alarm 14800 Axis travel is commanded but the programmed path velocity feedrate is zero or omitted and fixed feedrates are inactive. Axis motion is blocked immediately upon program execution. Program a positive feedrate (F value) or activate the fixed feedrate function.
Alarm 14011 A system cycle subroutine (such as CYCLE3106) required for processing is missing or not released. The program halts with a cycle execution failure. Load the missing cycle subroutine into the active part program memory or update its release status.

Application Note

Bypassing the deactivation of coordinate transformations before commanding G74 causes coordinate system misalignment and drives the turret into table-mounted fixture clamps or rotating jaws of a spindle chuck. When an operator fails to cancel active transformations, the control attempts to compute the reference path using offset coordinates. The tool gantry will deviate from its safe start coordinates, causing the tool nose to collide with the raw stock. This high-speed impact shatters the cutting tool, damages the axis ball screws, and converts the raw stock into scrap. To prevent this, programmers must execute TRAFOOF in an isolated block prior to homing and verify that the axis-specific machine data MD 34100 $_MA_REFP_SET_POS is correctly mapped to index 0-3 on the setup screen.

  • TRAFOOF: Deactivates active coordinate transformations, which is a mandatory prerequisite before running G74.
  • G27: Verifies whether programmed axes are physically aligned with their machine zero reference positions.
  • G28: Automatic reference position return via an intermediate point, used in ISO Dialect mode.
  • G75: Approaches a fixed machine point, such as a tool change position, without referencing the axis mark.
  • G290: Switches the control to native Siemens mode, which is required to recognize G74 as a reference point approach.

Conclusion

Establishing a reliable physical home reference on a Siemens control requires strict execution of G74 in native mode with all transformations cleared. Ensuring machine parameters are aligned and executing dry runs in single block mode eliminates the risk of coordinate shifts and workholding collisions.

FAQ

Why does G74 perform deep-hole drilling instead of homing

The control is currently operating in ISO Dialect mode (G291), where G74 is mapped to deep-hole boring and grooving in the Z-axis. Switch the bilingual interpreter to native Siemens mode by programming G290 before calling G74.

What causes Alarm 61816 during homing checks

This alarm triggers during a G27 reference check because one or more programmed axes are not physically aligned with their reference marks. Manually traverse the axes away from obstructions and execute a native G74 reference point approach to synchronize the coordinate system.

Can G74 be run while coordinate transformations are active

No, active coordinate transformations will cause positioning errors or axis deviations during the reference return. Program TRAFOOF in an isolated block before executing G74 to deactivate all translations, rotations, and scale factors.

HG

Hakan Gündoğdu

CNC CARE CO-FOUNDER

CNC uzmanı, 25+ yıl saha tecrübesi, Mitsubishi Electric Türkiye geçmişi.