G19 G-Code Guide: YZ Plane Selection in CNC Programming
Master G19 YZ plane selection in Fanuc, Siemens, and Mitsubishi CNC systems. Configure parameters, resolve alarms, and prevent tool nose compensation collisions.
Introduction
A sudden, uncoordinated trajectory shift that slams a multi-axis tool turret directly into revolving chuck jaws, table-mounted vise jaws, or pneumatic fixture clamps is the immediate physical consequence of failing to verify the active G19 YZ plane selection. Under a heavy cutting pass on a multi-axis turning center, a coordinate calculation mismatch will immediately trigger a system halt. This interruption leaves deep dwell scars on the profile of the workpiece, resulting in a ruined scrap part, a fractured spindle, or shattered tooling. To prevent these outcomes, operators must establish virtual safety boundaries using Chuck Barriers and Tailstock Barriers on the control screen, and perform dry runs in the air before initiating cuts.
Establishing the G19 plane selection creates a two-dimensional virtual coordinate space for circular interpolation, tool radius offset calculations, and canned cycle positioning, while reserving the perpendicular X-axis for depth-of-cut and length compensation. Without explicit declaration of G19, multi-axis controls default to standard planes, calculating compensation vectors in the wrong axes and causing tools to veer off-course. Verifying startup parameter defaults and coordinating active offsets are critical preparation steps for side-surface profiling, cross-drilling, and lateral pocketing.
Technical Summary
| Technical Aspect | Specification Details |
|---|---|
| Command Code | G19 (YZ Plane Selection) |
| Modal Group | Group 02 (Fanuc, Mitsubishi Lathe List 3) / Group 06 (Siemens SINUMERIK, Mitsubishi MC List 1) |
| Brands Covered | Fanuc, Siemens, Mitsubishi |
| Critical Parameters | Fanuc: No. 5101#0 (FXY), No. 5209#0 (RTX), No. 5040#3 (TCT); Siemens: MD20150, MD18800; Mitsubishi: #1025, #8114 |
| Main Constraint | Plane changes (G17/G18/G19) are strictly forbidden while tool nose or cutter radius compensation (G41/G42) is active. |
Quick Read
- Deactivate Compensation Before Switching: Always program a G40 command to cancel tool nose radius compensation (G41/G42) before changing planes to G19 to prevent Alarm PS0037 or Program Error P396.
- Define Virtual Safety Barriers: Set up Chuck Barriers and Tailstock Barriers (G22/G23) on the control display to halt axis travel automatically if the tool turret deviates off-trajectory.
- Align Drilling Axis Parameters: Configure Fanuc Parameter No. 5101 Bit 0 (FXY=1) or Siemens
_AXN=1to dynamically shift the active drilling axis to the perpendicular Xp axis when G19 is selected. - Understand Lathe Coordinate Syntax: Use absolute Y/Z coordinates and incremental V/W steps under Fanuc G-code System A, which does not support modal G90/G91 and repurposes G90 as a turning canned cycle.
- Activate External Language Parsing: Configure Siemens machine data MD18800 to 1 and MD20734 Bit 3 to 1 to enable external ISO Dialect program interpretation without scanner errors.
- Manage Axis Duplication Priority: Be aware that Mitsubishi prioritizes basic geometry axes over parallel axes (e.g., Y before V) when both are programmed in the same G19 plane selection block.
Basic Concepts of the YZ Plane
Selecting G19 plane selection establishes a two-dimensional virtual plane (Yp-Zp) for circular interpolation, tool radius offset calculations, and canned cycle positioning, reserving the perpendicular X-axis for depth-of-cut and length compensation adjustments. The practical programming effect is that it enables advanced lateral profiling, cross-milling, and face-machining on multi-axis turning centers without requiring manual, multi-axis trigonometric conversions. Programmers and operators must monitor coordinate alignment and active tool length compensation offsets when G19 is active. Because tool nose radius compensation is highly sensitive to clearance distances, operators must ensure that approach and retraction coordinates are programmed with sufficient clearance to prevent cutter compensation interference.
The practical programming effect of Mitsubishi's G19 plane selection is to establish a two-dimensional virtual coordinate space (Yp-Zp) on multi-axis turning centers and machining centers, making the perpendicular X-axis the vertical tool axis for infeed, tool length compensation, and depth-of-cut adjustments. This is highly useful for side-surface profiling, cross-drilling, lateral pocketing, and text engraving cycles, as it allows operators to program standard linear and circular contours directly onto the side of a part. However, programmers and operators must maintain strict discipline when transitioning to the G19 plane. Because lathe systems default to the standard G18 ZX plane, executing tool offsets or coordinates without explicitly declaring G19 beforehand will cause the control to calculate compensation vectors in the wrong axes.
Selecting G19 establishes the orthogonal Y/Z working plane, which is typically utilized on turning centers or multi-axis milling configurations to machine side-face contours, cross-drilled patterns, and lateral slot features. Within this plane, Y and Z act as the primary profiling axes, while the perpendicular X-axis is reserved for tool length compensation and infeed depth. A major benefit of G19 is its integration with spatial coordinate rotation frames (ROT / AROT). When machining on inclined surfaces, applying a rotation automatically rotates the active G19 plane, allowing operators to easily program standard linear and circular geometries on the face of the inclined plane while the tool automatically feeds perpendicular to the rotated surface along the rotated X-axis.
Command Structure and Syntax
The G19 command is a modal preparatory instruction that establishes the YZ plane as the active working plane. It belongs to modal Group 02 on Fanuc and Mitsubishi lathe systems (or Group 06 on Siemens and machining centers). Once G19 is commanded, it remains active until overridden by G17 or G18. To ensure the control preprocessor parses coordinate offsets correctly, G19 should be programmed in a standalone block prior to any motion commands or tool compensation activations.
When G19 is active, circular interpolation commands G02 and G03 require the use of arc center modifiers J and K to define the center coordinates along the Y-axis and Z-axis respectively. For linear profiling commands, corner chamfering and rounding syntax must align with the active plane. Operators must verify that parallel axis associations (such as V and W) are properly mapped when basic geometry axes are substituted.
Syntax Specifications:
- Fanuc:
G19 ; - Siemens:
G19 T_ D_ ; - Mitsubishi:
G19;orG19 Y_ Z_;orG19 Yp_ Zp_;
System Parameters:
| Brand | Parameter Name | System Description | Value Range |
|---|---|---|---|
| Fanuc | Parameter No. 5101 Bit 0 (FXY) | Controls active drilling axis behavior during plane selection. If FXY = 1, G19 switches the drilling axis to X. | Binary (0 or 1) |
| Fanuc | Parameter No. 5209 Bit 0 (RTX) | Controls the drilling axis during side face rigid tapping (G88). If RTX = 0, drilling axis is Zp. | Binary (0 or 1) |
| Fanuc | Parameter No. 5040 Bit 3 (TCT) | Toggles the availability of tool length compensation (G43/G44). | Binary (0 or 1) |
| Fanuc | Parameter No. 5103 Bit 3 (PNA) | Determines if Alarm PS0021 occurs when plane select has no coordinate definitions in canned cycle. | Binary (0 or 1) |
| Fanuc | Parameter No. 1022 | Maps parallel geometry axes (U, V, W) to basic axes (X, Y, Z). | Positive integers |
| Siemens | MD20150 ($MC_GCODE_RESET_VALUES[5]) | Defines channel-specific G-code group 6 plane selection reset value. Value 3 selects G19. | 1, 2, or 3 |
| Siemens | MD18800 ($MN_MM_EXTERN_LANGUAGE) | Activates the compilation and execution of external NC programs (ISO Dialect mode). | 0 or 1 |
| Siemens | MD20734 Bit 3 | Bypasses ISO dialect scanner errors and forwards unrecognized blocks to native translator. | Binary (0 or 1) |
| Siemens | MD20734 Bit 13 | Toggles whether G10 work offsets are written immediately or wait until main run block execution. | Binary (0 or 1) |
| Mitsubishi | Parameter #1025 I_plane | Controls default active plane selection at system power-on or reset. Value 3 selects G19. | 0 to 3 |
| Mitsubishi | Parameter #8114 | Initial G19 milling selection. Value 1 selects G19 automatically during G12.1 switch. | Binary (0 or 1) |
| Mitsubishi | Parameters #1026 to #1028 | Defines physical geometry axes used for primary plane mapping. | Axis identifiers |
| Mitsubishi | Parameters #1029 to #1031 | Defines flat or parallel axes (U, V, W) for dynamic substitution. | Axis identifiers |
CNC Brand Applications
Fanuc
Operating G19 on Fanuc systems involves configuring standard parameters to manage axis remapping and drilling modes. Default startup states are configured using Parameter No. 3402, while parallel axis mappings are defined using Parameter No. 1022 to govern axis coordinates.
To program G19 on a Fanuc lathe using G-code System A, absolute movements use Y and Z, while incremental moves use V and W: G19 G03 Y50.0 Z10.0 J-10.0 K20.0 F120 ;.
- System Parameters: Parameter No. 5101 Bit 0 (FXY) controls the active drilling axis (0: Z remains drilling axis, 1: switches dynamically to perpendicular Xp); Parameter No. 5209 Bit 0 (RTX) specifies side face rigid tapping (G88) axes.
- System Alarms: Alarm PS0037 triggers if changing planes with G41/G42 active; Alarm PS0330 halts if an axis outside the G19 plane (like basic X) is programmed in turning canned cycles; Alarm PS0021 occurs if plane select commands contain no coordinate parameters; Alarm PS0050 halts if chamfering/rounding is specified in threading blocks; Alarm PS0051/PS0052 halts if linear G01 motion does not follow chamfer/rounding blocks; Alarm PS0306 occurs if axis/modifier combination is invalid; Alarm PS0055 is active if chamfering instruction is given to a non-active plane axis.
- Version Differences: Lathe G-code System A eliminates G90/G91 and uses absolute Y/Z and incremental V/W, repurposing G90 as a turning canned cycle; legacy Series 15 format G84.2 rigid tapping selects tapping axis based on G19 (selecting Xp), whereas Series 16 format uses G88; parallel axes U, V, W cannot be configured for plane definition under G-code System A.
Warning: Specifying G19 without canceling active tool nose radius compensation (G41/G42) will cause an immediate machine halt under Alarm PS0037. Program G40 before executing the plane change command.
Siemens
Siemens controls govern G19 plane reset states and compilation options using machine data. The default reset state for G-group 6 is configured via MD20150, while external dialect compatibility is activated using MD18800.
To activate G19 and apply tool offsets on Siemens systems, program: G19 T5 D1 ; followed by motion commands: G19 G90 G01 G41 Y100.0 Z50.0 X-10.0 F150 ;.
- System Parameters: MD20734 Bit 3 controls external scanner error bypassing (0: alarm on syntax error, 1: bypass scanner errors and forward directly to Siemens native translator); MD20734 Bit 13 toggles G10 work offset write-time.
- System Alarms: Alarm 61800 occurs if external language option MD18800 is inactive during an ISO program call; Alarm 61815 occurs if G41/G42 is active when calling standard turning cycles; Alarm 14800 triggers if programmed path velocity is less than or equal to zero; Alarm 61102 triggers if spindle direction M03/M04 is missing during cycle calls.
- Version Differences: SINUMERIK 840D sl supports multi-edge turning G-codes (G51.2/G50.2) and widescreen touchscreen panels, which are completely unavailable on 802D sl controls; ShopTurn and ShopMill graphical cycles adapt dynamically by renaming reference points to YO/ZO and tool axis depth to X1 when G19 is active.
Warning: Programmers must deactivate tool radius compensation (G40) before retracting tools from G19 contours to prevent sudden, unexpected compensation vector movements.
Mitsubishi
Mitsubishi systems manage G19 default states and milling configurations through parameter variables. Power-on plane defaults are controlled by Parameter #1025, and milling mode initial plane selection is governed by Parameter #8114.
Mitsubishi programs program G19 to establish the Y-Z plane for interpolation and tool length compensation: G19 G90 G00 Y120.0 Z80.0;.
- System Parameters: Parameters #1026 to #1028 define physical geometry axes; Parameters #1029 to #1031 map parallel flat axes; Parameter #1148 governs high-accuracy control mode at power-up.
- System Alarms: Program Error P396 triggers if coordinates do not lie on selected plane or active plane is modified during geometric calculations; Program Error P32 triggers if axis other than active plane's vertical/horizontal axis is commanded in special fixed cycles (G35/G36); Program Error P33 occurs if G10.9 is programmed in the same block as another motion command.
- Version Differences: Cylindrical interpolation G07.1 automatically selects the Z-C (Y-Z cylindrical) plane when G19 is active; dynamic format switching via G188 (cmdtyp=2) dynamically shifts G19 modal group from Lathe Group 02 to MC Group 06.
Warning: Do not change axis designations or switch planes when tool nose radius compensation is active, as this will trigger Program Error P396 or cause path errors.
Brand Comparison Analysis
| Topic | Fanuc | Siemens | Mitsubishi |
|---|---|---|---|
| Interpolation Plane | Yp-Zp orthogonal plane (Y is horizontal/abscissa, Z is vertical/ordinate, X is perpendicular tool axis). | Y/Z working plane (Y is horizontal/abscissa, Z is vertical/ordinate, X is perpendicular tool axis). | Y-Z orthogonal plane (Y is horizontal/abscissa, Z is vertical/ordinate, X is perpendicular tool axis). |
| Coordinate Mode | Lathe G-code System A: Y/Z for absolute, V/W for incremental. G90/G91 not supported (G90 is canned turning cycle). | Standard G90 (absolute) and G91 (incremental) modal states. | Standard G90 (absolute) and G91 (incremental) modal states. |
| Drilling Cycle Logic | Legacy Series 15 rigid tapping G84.2 determines axis strictly by plane (G19 selects Xp). Modern Series 16 uses G84/G88. | Keeps G19 active; use cycle parameter _AXN=1 to drill along perpendicular axis directly. | Requires physical plane switch to G17, or parameter config for boring axis limit. |
| Axis Remapping / Switching | Static parameter-based mapping (Parameter No. 1022). | Static parameter-based mapping (TRANSMIT/TRACYL kinematics). | Dynamic runtime remapping via G-code command G111 (Axis Name Switch). |
| Interpreter Selection | Single native Fanuc interpreter. | Bilingual: Switched via G290 (native) and G291 (ISO Dialect) commands. | Multi-format G-code list formats configured via cmdtyp parameters. |
Technical Analysis and Differences
Three distinct behaviors clearly differentiate Fanuc's plane and coordinate handling from Siemens and Mitsubishi controls: First, Fanuc's standard lathe-specific G-code System A address structure eliminates absolute/incremental modal G-codes (G90/G91) entirely. Fanuc lathe systems instead rely on dedicated coordinate address letters (Y/Z/C for absolute, V/W/H for incremental) to specify dimensions. On Fanuc, programming G90 on a lathe actually initiates a longitudinal turning cycle rather than setting absolute mode. This contrasts sharply with Siemens and Mitsubishi, which maintain standard G90/G91 modal states to determine absolute/incremental coordinate interpretation across both milling and turning coordinate paths.
Second, Fanuc features a unique rigid tapping format constraint (Series 15-T format) managed by Parameter FCV (No. 0001 #1). Under the legacy G84.2 rigid tapping command, the control cannot differentiate between front and side face tapping cycles by G-code. Instead, the tapping axis is determined strictly by the active plane selection; commanding G19 forces the perpendicular Xp axis to become the tapping axis, whereas G17 or G18 shifts it to Zp or Yp respectively. Siemens and Mitsubishi controls bypass these structural interpreter limitations by utilizing unified cycle formats and ShopMill/ShopTurn screens that do not require legacy compiler format overrides.
Three distinct behaviors clearly differentiate Siemens SINUMERIK controls from Fanuc and Mitsubishi controls regarding plane and coordinate operations: First, Siemens utilizes a highly versatile bilingual transition architecture via G290 (native mode) and G291 (ISO Dialect mode). While other controls treat plane mapping as a static background calculation within a single interpreter, Siemens isolates ISO G-code structures strictly inside G291 mode. This allows legacy programs to run seamlessly, while providing the unique capability to switch directly to native mode (G290) in the same file to program high-level system parameters (such as tool cutting edge variables like $TC_DP1 or coordinate frame transformations) without requiring separate ISO-only control setups.
Second, Siemens offers the _AXN tool axis drilling parameter. While Fanuc and Mitsubishi controls require the programmer to perform a physical plane switchover from G19 or G18 to G17 in order to map standard face-drilling and face-tapping cycles, Siemens allows the programmer to keep G19 active and simply designate the active drilling geometry axis via _AXN=1, completely avoiding plane-switching errors.
Third, Siemens features dynamic Cycle Parameter HMI adapting. In standard ShopMill and ShopTurn graphical programming cycles, when the user changes the plane selection parameter (PL) to G19, the interface dynamically re-adapts. The horizontal and vertical reference points are automatically renamed on-the-fly to YO and ZO (matching the active axes of the G19 plane), and the tool axis depth parameter is renamed to X1 (matching G19's perpendicular tool axis). This dynamic graphical and lexical re-adapting of HMI parameters on-the-fly represents a highly customized technology-to-geometry integration unique to Siemens SINUMERIK.
Three distinct behaviors clearly differentiate Mitsubishi's G19 plane selection from Fanuc and Siemens controls: First, Mitsubishi features a highly specific Axis Duplication Priority rule. When basic geometry axes and parallel axes are both programmed in the same plane selection block (such as G19 Y_ Z_ V_), Mitsubishi automatically prioritizes the basic axes first, and then parallel axes. The basic ordinate Y-axis is mapped to the plane, while the parallel V-axis is processed as an independent axis movement. This systematic axis-mapping hierarchy is unique to Mitsubishi's preprocessor.
Second, Mitsubishi incorporates Milling Default Plane Parameters (#8113 and #8114). Unlike Fanuc, which rigidly binds milling mode (G12.1) to a static default plane, Mitsubishi allows the default plane to be customized. Setting #8114 Milling initial G19 to 1 automatically selects the G19 plane the moment milling mode is initiated, simplifying the transition from turning to side-face milling without requiring explicit plane calls in the part program.
Third, Mitsubishi applies Dynamic G-Group Modal Shifting. When a programmer executes a bilingual format switch to Machining Center (M) system commands via G188 (cmdtyp=2), the G19 command is dynamically remapped from modal Group 02 to modal Group 06, changing how G19 modal states interact with other active preparatory functions. Fanuc and Siemens controls, conversely, maintain static G-group modal structures throughout execution.
Practical Program Examples
Fanuc Example
%
O0002 (FANUC G19 PLANE SELECTION) ;
G19 ; Select the Y-Z plane
G00 V0 W0 ; Rapid position Y and Z incrementally to start point
G41 Y120.0 Z80.0 F150 ; Activate left tool nose radius compensation in Y-Z plane
G03 Y50.0 Z10.0 J-10.0 K20.0 F120 ; Counterclockwise circular arc using arc centers J and K
G40 Y150.0 Z80.0 ; Cancel tool compensation and retract tool turret
M30 ;
%
dry run: The Fanuc control activates G19 plane selection. The tool moves to the starting position using incremental coordinates V and W. Tool nose radius compensation is initialized under G41, shifting the toolpath to the left in the Yp-Zp plane. The machine cuts a counterclockwise arc to Y50.0 Z10.0 with centers J-10.0 K20.0. A G40 command is executed to cancel tool nose compensation before the turret retracts to a safe tool change coordinate.
Siemens Example
N10 G19 T5 D1 ; Select Y/Z plane, activate tool 5 and offset D1
N20 G90 G01 G41 Y100.0 Z50.0 X-10.0 F150 ; Absolute motion with cutter compensation
N30 Z0.0 ; Machine along the Z-axis in Y/Z plane
N40 G40 G00 Y150.0 ; Cancel compensation and retract
N50 M30 ;
dry run: The SINUMERIK control selects G19 for YZ plane selection and applies cutting edge offsets. The X-axis is set as the perpendicular tool length applicator. Under G90 absolute mode, the tool feeds to coordinate Y100.0 Z50.0 X-10.0 with cutter radius compensation active. The tool cuts along the Z-axis to Z0.0. To retract safely, G40 cancels the offset, and the axis moves rapidly to Y150.0.
Mitsubishi Example
%
O0004 (MITSUBISHI G19 EXAMPLE) ;
G19 ; Select default YZ plane
G00 Y120.0 Z80.0 ; Rapid move to start position
G19 G43 X5.0 H01 ; Apply tool length compensation along perpendicular X-axis
G02 Y100.0 Z50.0 J50.0 K0.0 F150.0 ; Clockwise circular interpolation
G40 G00 Y150.0 ; Cancel tool radius compensation and retract
M30 ;
%
dry run: G19 activates the default Y-Z plane. The axes rapid-position to Y120.0 Z80.0. The control executes tool length compensation along the perpendicular X-axis using H01. A clockwise circular interpolation pass is completed in the Y-Z plane to Y100.0 Z50.0 with center modifiers J50.0 K0.0. Afterwards, G40 is commanded to cancel radius compensation, and the tool retracts to Y150.0.
Error Analysis and Troubleshooting
| Brand | Alarm Code | Trigger Condition | Operator Symptom | Root Cause / Fix |
|---|---|---|---|---|
| Fanuc | Alarm PS0037 | Plane selection command (G17/G18/G19) is programmed while tool nose compensation (G41/G42) is active. | Cycle execution stops instantly, displaying "CAN NOT CHANGE PLANE IN G41/G42" on the screen. | A plane switch was attempted during active tool path compensation. Program G40 to cancel compensation before issuing a plane change command. |
| Fanuc | Alarm PS0330 | A coordinate movement is specified for an axis that does not lie within the active plane (e.g. commanding basic X-axis travel inside G19). | The machine halts during canned cycle execution, showing "ILLEGAL AXIS COMMAND IS IN THE TURNING CANNED CYCLE". | The program commanded movement outside the active Y-Z plane. Correct the program to move only active plane coordinates (Y and Z). |
| Siemens | Alarm 61815 | Tool radius compensation (G41/G42) is active before calling standard cycles. | The program execution halts at the cycle block, displaying "G40 not active" on the control panel. | Turning cycles require uncorrected coordinates. Insert G40 to cancel tool nose compensation immediately prior to calling the cycle. |
| Siemens | Alarm 61800 | External ISO language programming is parsed but machine parameter MD18800 is inactive. | Program execution halts, displaying "External CNC system missing". | ISO dialect interpretation is disabled. Set channel machine parameter MD18800 to 1 to activate external dialect support. |
| Mitsubishi | Program Error P396 | Coordinates do not lie on the selected plane or plane selection is modified during geometric calculations. | The control immediately stops cycle execution and displays Program Error P396. | Calculated path intersects axes not on the active plane. Keep active plane selection consistent throughout geometric paths. |
| Mitsubishi | Program Error P32 | Specifying the perpendicular X-axis coordinates inside special fixed cycle commands (such as G35 or G36) while G19 is selected. | Execution halts instantly with Program Error P32 format error. | Special fixed cycles require coordinates lying within the active plane. Align programmed coordinate axes with active Y-Z plane axes. |
Advanced Application Notes
A catastrophic hard collision where a tool turret or tool carrier crashes directly into the revolving chuck, tailstock assembly, table-mounted vise jaws, or hydraulic fixture clamps is the direct physical consequence of coordinate shifts or large in-position check effective areas. During cycle execution, if the in-position check effective area is set too large relative to the distance between point R and the raw stock, a rapid traverse move (G00) may initiate before the tool has completely retracted from the hole. This drives the tool carrier off-trajectory, resulting in a fractured spindle, shattered tooling, and a ruined scrap part. To prevent these outcomes, operators must verify first-article setups using dry run settings and graphics simulation to ensure the tool path clears all physical workholding equipment.
Additionally, programming perpendicular X-axis coordinates inside a G19-dependent facing cycle (G72) immediately triggers Alarm PS0330 on Fanuc controls, stopping the turret in its tracks. This sudden interruption during a heavy cutting pass leaves deep dwell scars on the workpiece profile, producing a ruined scrap part. Operators must configure safety barriers (Chuck Barrier and Tailstock Barrier G22/G23) on the control display, ensuring that the control system automatically halts axis travel and triggers a stored stroke limit alarm code before a physical crash can occur.
Related Command Network
- G18 (ZX Plane Selection): Establishes the Z-X orthogonal plane, switching interpolation and compensation vectors away from G19's Y-Z setup.
- G17 (XY Plane Selection): Establishes the X-Y orthogonal plane, which is commonly used for face milling or standard pocketing cycles.
- G16 (Polar Coordinate Command): Activates polar coordinate programming, allowing locations to be specified by radius and angle instead of Cartesian coordinates in the active plane.
- G40 / G41 / G42: Tool nose radius compensation commands that calculate offset vectors based on the currently active working plane.
- G80: Cancels active canned drilling cycles to restore normal linear and circular interpolation modes.
- G72: Facing canned cycle on Fanuc and Mitsubishi controls, which is highly plane-sensitive and restricted under G19.
Conclusion
Ensuring system stability and toolpath precision requires verifying the active plane before executing canned cycles and contour paths. Confirm default startup parameters (such as Parameter No. 3402, MD20150, or Parameter #1025) on your machine control console to guarantee G19 is automatically loaded when machining side-face profiles. Always program a G40 command to clear radius offsets prior to a plane toggle or tool retraction, preventing sudden compensation moves and preserving the mechanical integrity of the machine.
Frequently Asked Questions
How do I prevent coordinate calculation errors when switching to the G19 plane?
Establish the default plane at system power-on or reset using Parameter No. 3402 (Fanuc) or MD20150 (Siemens). Verify that the correct plane is active before running programs, and always insert a standalone G40 command block to cancel tool nose radius compensation before executing a G19 plane change command.
What happens if a coordinate move is commanded outside the active G19 Y-Z plane?
The control system immediately halts axis travel and triggers Alarm PS0330 or Program Error P32, causing the tool turret to stop mid-cut and leaving witness marks on the workpiece. Ensure that all motion blocks only specify axes lying within the active plane (Y and Z), and verify your parallel axis configurations in Parameter No. 1022.
How can I drill along the perpendicular X-axis in G19 without switching to G17?
On Siemens controls, utilize the cycle parameter _AXN=1 to force the drill to feed along the perpendicular X-axis while keeping G19 active. On Fanuc controls, configure Parameter No. 5101 Bit 0 (FXY) to 1 to dynamically swap the active drilling axis to the perpendicular X-axis. Always test these configurations using dry run settings in the air before machining raw stock.
Still not resolved?
Ask our AI assistant about this topic in natural language. Grounded in verified sources, no hallucinations.

- CNC CARE Co-Founder (May 2025 - Present)
- Mitsubishi Electric NC Sales & Service Section Manager (2008 - 2025)
- Reis CNC Service Engineer (2003 - 2008)
- Ören Kalıp CNC Mold Line Team Leader (1999 - 2002)
With over 25 years of experience working in all areas of the CNC machine industry, I continue my activities as a co-founder of CNC CARE, where we offer brand-independent consulting, engineering, and original spare parts services.
Related Articles
Other articles on this topic
G27 Reference Position Return Check: CNC Guide for Multi-Brand Systems
Master the CNC G27 reference position return check on Fanuc, Siemens, and Mitsubishi controls. Learn parameters like MD 34100 and fix Alarm 61816.
Siemens SINUMERIK G26 Upper Working Area & Spindle Speed Limit
Master the Siemens SINUMERIK G26 command for upper working area and spindle speed limits. Learn syntax, parameters like SD 43420, and alarms to avoid crashes.
G26 Spindle Speed Fluctuation Detection ON: CNC Programming Guide
Learn how to configure G26 on Fanuc, Siemens, and Mitsubishi CNC controls to prevent spindle speed fluctuations, set travel limits, and avoid tool crashes.
G25 Lower Working Area and Spindle Speed Limit: Siemens CNC
Master G25 lower working area and spindle speed limits on Siemens SINUMERIK controls. Avoid chuck collisions and configure safety parameter SD 43430.