Mitsubishi M01 Tap Retract Error: Safe G26 Recovery Guide
Resolve the Mitsubishi M01 0057 Wait for Tap Retract alarm safely. Learn to use the G26 command, set parameter #1234, and recover interrupted tapping cycles.
Introduction
An interrupted synchronous tapping cycle presents a high risk of catastrophic tool breakage when an operator panics and attempts to manually force the Z-axis upward. If a power loss, emergency stop, or feed hold halts the machine while the tap is still physically engaged in the workpiece thread, any standard movement command or jog operation immediately shears the tool. This snaps the cutting tool steel inside the part, transforming an expensive work-in-progress component into scrap metal. Because a tapping stop behaves differently than standard program stop and end commands, an operator might panic and try to force manual jogging, resulting in direct damage and potentially forcing a hard collision. The spindle could drive directly into a vise jaw or fixture clamp. Resolving this state on a Mitsubishi CNC requires strict adherence to its hardware interlock sequence and dedicated recovery logic.
Technical Summary
| Technical Specification | Details |
|---|---|
| Command Code | G26 |
| Modal Group | Non-modal (G-code) / PLC signals |
| Applicable Brand | Mitsubishi |
| Critical Parameters | #1234 set06/bit3 (Interlock during tap retract), #1171 taprov (Retract feedrate multiplier), #079 bit1 (Retract option enable) |
| Main Constraint | Requires G26 execution inside a dedicated retraction program or PLC signal YC5C to reverse spindle and withdraw. Manual clear requires YCD6 PLC signal to cancel interlock. |
Quick Read
- Ensure Safety Interlock: Keep the safety interlock parameter
#1234 set06/bit3set to 0 to prevent accidental axis jogging while a tap is trapped in a thread. - Execute Synchronized Recovery: Execute the dedicated
G26command inside a retraction recovery routine to safely back out the tool. - Control Return Feedrate: Set the tapping retract override multiplier
#1171 taprovto safely control the retract speed of the reverse cycle. - Match Active Spindle: Select the correct active spindle in multi-spindle environments prior to executing retraction to prevent an M01 1032 mismatch.
- Observe Sequence Logic: Avoid initiating any linear or rapid axis motion before calling the
G26command in a retraction program to prevent a P729 alarm. - Clear Residual State: Trigger the PLC cancel signal
YCD6to release theXCA5interlock state if the tap has already been manually removed.
Basic Concepts
The practical programming effect of the Mitsubishi tap retract function is to protect tooling from catastrophic damage if a synchronous tapping cycle is suspended halfway due to an emergency stop or feed hold. Mitsubishi distinguishes its architecture by strictly interlocking all machine axes via parameter #1234 set06/bit3. When the 'Tap retract possible' signal (XCA5) turns ON, if this parameter is set to '0', the control absolutely forbids any manual or automatic axis movement, immediately generating an alarm code (M01 0057). This rigid interlock behavior clearly distinguishes Mitsubishi from other controllers that might allow an operator to blindly jog the axes away, which almost always shears the tap.
A second distinguishing behavior is how Mitsubishi handles program verification: if an operator attempts to run a graphic check while the system is locked in a tap retract enable state, the CNC actively halts the simulation and projects the alarm directly onto the 3D check screen, forcing the user to physically resolve the retract before verifying future paths. Furthermore, Mitsubishi enforces strict sequence logic in its retraction programs; commanding any movement before the G26 tap retraction command instantly halts the sequence.
To protect the system configuration prior to making any low-level parameter modifications or executing custom PLC recovery sequences, it is highly recommended to perform a complete Mitsubishi M Series backup and restore operation.
Command Structure
The Mitsubishi G26 command is a non-modal G-code executed specifically to perform synchronous tool retraction from an interrupted hole. When executed, the control reads the historical state of the active tapping cycle (such as the tapping pitch, thread direction, and active spindle), reverses the spindle rotation, and feeds the Z-axis in synchronization back to the retract return level. This G26 block must be the absolute first instruction in any recovery subprogram.
To integrate this sequence, the PLC system communicates with the CNC unit using distinct status signals and control bits. A primary control bit is parameter #079 bit1, which must be enabled to activate the retraction option on the machine. Once active, the physical hardware is monitored via the XCA5 PLC signal. If the tapping cycle halts, the machine enters a locked state that requires either the G26 G-code or the YC5C PLC signal to execute the retraction. If the tap is manually extracted, the interlock must be manually bypassed using the YCD6 signal.
G26 ;
| Signal / Parameter | Identifier | Description and Value Range |
|---|---|---|
| Tap retract Signal | YC5C | PLC input signal used to execute the physical tap retract movement without G-code. |
| State Cancel Signal | YCD6 | PLC input signal used to force the Tap Retract Possible signal (XCA5) OFF. |
| Tap retract Possible Status | XCA5 | PLC output status signal indicating the tapping cycle was interrupted and is locked. |
| Retract Interlock Parameter | #1234 set06/bit3 | 0: Enforce strict interlock and trigger M01 0057 alarm; 1: Disable interlock. |
| Override Multiplier | #1171 taprov | Retraction override factor (retract feedrate = tapping feedrate × taprov multiplier). |
| Retract Option Parameter | #079 bit1 | Enables (1) or disables (0) the tap retraction and return system options. |
Brand Applications
Mitsubishi
Mitsubishi controllers handle interrupted tapping cycles through a closely coupled integration of the CNC executive and the PLC ladder. When a feed hold or emergency stop halts a synchronous tapping cycle (G84, G74, or G88), the control registers a 'Tap retract possible' (XCA5) condition. This condition acts as an immediate safety block on the machine coordinate system.
To safely back out the tap, the controller requires execution of the dedicated G26 tap retraction command. The retraction feedrate is dynamically scaled by the tapping override multiplier parameter #1171 taprov, ensuring controlled withdrawal without stripping threads.
| Component | Identifier | Function and Value Ranges |
|---|---|---|
| Command | G26 | Dedicated, non-modal tap retraction command inside recovery program. |
| PLC Interface | YC5C / YCD6 | YC5C executes tap retract; YCD6 cancels the tap retract possible state. |
| Parameters | #1234 set06/bit3 | Controls active axis interlock (0: absolute axis lock; 1: bypass safety lock). |
| Override | #1171 taprov | Retract feedrate multiplier (scales original tapping feedrate). |
| Alarms | M01 0057 / P729 | M01 0057: Wait for tap retract; P729: Invalid command before G26. |
WARNING: Bypassing the axis interlock by setting parameter #1234 set06/bit3 to 1 allows manual jogging but eliminates all synchronized spindle protections, which almost always shears the tap off inside the hole and destroys the part.
Brand Comparison
Comparing the tap retraction capabilities and simulation integration across various generations of Mitsubishi control systems reveals substantial safety enhancements:
| Mitsubishi Controller Series | Tapping Retraction Interlock Integration | Key Graphic / Simulation Behavior | Operator Recovery Workflow |
|---|---|---|---|
| M800V / M80V Series | Deeply integrated into advanced 3D Machining Simulation and axis feedback. | Graphic check operations ([Check continu] / [Check step]) actively refuse to run and project M01 0057 directly onto the 3D check screen. | Requires physical resolution of the tap retract command or PLC state cancel before any 3D simulation or program path check is allowed. |
| M80 / M70 Series | Standard hardware interlock via system parameters. Axis movement is locked when XCA5 is active. | Prevents physical axis movement, but does not actively halt or project alarms on the standard graphic simulation screen in an integrated manner. | The operator can verify the program path visually, but physical axis lock remains active until G26 is executed or YCD6 is triggered. |
| Legacy M60 / M50 Series | Basic PLC signal interlock. Manual axis movement restriction relies entirely on the custom PLC ladder program. | No graphical simulation interlock; check screens run completely independent of physical tap retract interlock state. | Axis motion is restricted by custom PLC logic. Operator must run a custom recovery macro calling G26 or use physical manual jog override procedures. |
Technical Analysis
The physical and digital integration of the tap retract interlock highlights the evolution of safety systems across Mitsubishi controller generations. On the advanced M800V and M80V series, the interlock is not merely a background PLC restriction but is actively tied to the CNC's simulation executive. If the 'Tap retract possible' (XCA5) signal is high and parameter #1234 set06/bit3 is set to 0, the CNC halts the virtual 3D Machining Simulation. Attempting to run a graphic check via the [Check continu] or [Check step] menus triggers the physical M01 0057 alarm on the screen, locking the digital verification environment. This forces the operator to physically clear the tapped hole on the shop floor before they can even simulate subsequent tools.
On standard M80/M70 series and legacy M60/M50 systems, the interlock operates purely as a hardware or custom PLC axis block. While the physical axes are securely locked to prevent tool shearing, the graphical check system operates in a separate thread. This allows operators to run simulations while the physical machine remains locked in a tap retract wait state, which can cause confusion regarding whether the system has been cleared.
From a parameter control perspective, setting parameter #1234 set06/bit3 to 0 is the primary line of defense. When set to 0, any automatic program execution or manual jog command while XCA5 is active triggers the M01 0057 alarm, preventing axis motion. Setting this parameter to 1 bypasses this safety lock, which is highly discouraged as it permits raw manual jog inputs that lack the synchronized spindle rotation required to back the tap out. Meanwhile, parameter #1171 taprov acts as a vital tuning dial for process safety. By multiplying the programmed feedrate of the tapping cycle, it allows operators to back the tool out of deep holes at a highly controlled rate, preventing thread stripping or tool binding during critical recovery.
Program Examples
The following example illustrates the structured recovery routine utilized on Mitsubishi controls to clear an interrupted tap. Once the tap is safely backed out using G26, the Z-axis can be raised. When programmed inside a standard tapping routine, this retraction motion is governed by the selected G98 and G99 cycle return levels.
; Mitsubishi: Executing a standard tapping cycle which may trigger a retract state if interrupted G90 G98 G84 X11.25 Y13.28 Z-10. F200 R1. ;; Mitsubishi: The dedicated tap retraction command issued inside a retraction recovery program G26 ;
; Mitsubishi: Safe Z-axis withdrawal command placed strictly after the G26 tap retract block G00 Z50.0 ;
Dry Run Behavior
Under dry run conditions on Mitsubishi controls, executing the standard tapping cycle (G84) or the retraction command (G26) preserves spindle-feed synchronization. If an operator activates the dry run switch and runs a recovery program, the G26 command ignores any manual feedrate overrides. The CNC forces the spindle and Z-axis to remain coordinated based on the tapping pitch. This ensures that even during a manual or dry run path verification, the physical tap will not be sheared due to unsynchronized axis feed.
Error Analysis
| Alarm Code | Trigger Condition | Operator Symptom | Root Cause and Resolution |
|---|---|---|---|
| M01 0057 | Manual or automatic axis travel command, or graphic check execution is attempted while the "Tap retract possible" signal (XCA5) is ON and parameter #1234 set06/bit3 is set to 0. | Machine axes are completely locked, cycle start is blocked, and "Wait for tap retract" is displayed on the screen. Graphic check menus ([Check continu] / [Check step]) are halted. | An interrupted tapping cycle left the tool engaged. Execute the G26 tap retract sequence or send the PLC YC5C signal to back the tool out. If the tap is already clear, toggle the YCD6 PLC signal to cancel the XCA5 status. |
| P729 | A movement command (G00, G01, etc.) is executed in a recovery program prior to the G26 tap retraction command. | Program execution immediately halts and "Invalid cmd before tap retract" alarm is triggered. | The recovery program violates the strict sequence logic. Modify the CNC program to place the G26 command at the absolute beginning of the recovery sequence before any axis retraction moves. |
| M01 1032 | The tap retraction command G26 or PLC signal YC5C is executed when the active spindle selected on the control does not match the spindle that was performing the tapping operation. | The retraction movement fails to initiate, axes remain interlocked, and "Tap retract Sp select illegal" is displayed. | Multi-spindle setup mismatch. Program or manually select the correct active spindle that was engaged in the tapping cycle before triggering the retraction command. |
Application Note
A ruined, scrap part with broken tool steel embedded deep within its threads is the inevitable consequence when an operator panicked by an E-stop tries to force the Z-axis upward or manual-jog a tapped tool out of a workpiece. To prevent these costly tool breaks, the Mitsubishi controller monitors the physical cycle state using the 'Tap retract possible' (XCA5) PLC status signal. When this signal is high and parameter #1234 set06/bit3 is set to 0, all machine axes are locked in an ironclad interlock. Bypassing this interlock by manually changing the parameter value to 1 is highly dangerous. It strips away the control's synchronization, turning a controlled retract into an unsynchronized axis lunge.
For a safe and successful recovery, the operator must execute the retraction using either the G26 command or the PLC 'Tap retract' (YC5C) signal. This reverses the spindle and backs the tap out at a feedrate scaled by the override multiplier #1171 taprov. In cases where the tap is already cleared or manually extracted, resetting the system requires sending the PLC state cancel signal (YCD6) to clear XCA5. Neglecting to clear this status can result in sudden, unexpected tool lunges upon cycle resumption, risking a violent hard collision where the turret drives the tool directly into a vise jaw, a fixture clamp, the rotating chuck, or the indexing turret.
Related Command Network
- G26 (Tap retraction execution): Initiates the synchronous spindle reversal and axis withdrawal sequence to clear an interrupted tap.
- G84 (Right-hand Tapping Cycle): Establishes the initial synchronous spindle-feed relationship that activates the XCA5 tap retract status if interrupted.
- G74 (Left-hand Tapping Cycle): Initiates reverse tapping which similarly registers the tap retract interlock conditions upon feed hold or emergency stop.
- G88 (Side Tapping Cycle): Runs a synchronous tapping cycle in the lateral (X or Y) axis that activates the same protective PLC interlock sequences when stopped.
- G00 (Rapid Positioning): Used safely to withdraw the tool only after the G26 retraction command has successfully cleared the threads.
Conclusion
Securing expensive tools and workpieces during tapping cycle interruptions relies on maintaining the integrity of the CNC's interlock parameters. Keep parameter #1234 set06/bit3 at 0 to prevent unauthorized manual jogs, and rely strictly on G26 or PLC signal recovery to ensure synchronized backing out of engaged taps. Always clear the XCA5 status via YCD6 if manual extraction is performed, preventing coordinate systems from initiating unexpected movements during recovery.
FAQ
How do I clear the M01 0057 alarm on a Mitsubishi CNC?
This alarm indicates the control is waiting for a tap retract cycle because the tapping operation was interrupted. To clear it safely, execute a recovery program starting with the G26 command or trigger the YC5C PLC signal. If the tap was already removed manually, you must trigger the YCD6 PLC signal to cancel the XCA5 status and release the axis interlock.
What causes the P729 invalid command alarm during tap retraction?
The P729 alarm is triggered when a motion block, such as G00 or G01, is executed in the retraction program before the G26 command. Mitsubishi requires strict sequence logic where G26 must be the first command. To resolve this, open your recovery program and place the G26 block at the absolute beginning before any axis positioning movements.
Can I bypass the tapping axis lock by changing parameter #1234?
Setting parameter #1234 set06/bit3 to 1 disables the physical axis interlock, allowing manual jog movements. However, doing so is highly discouraged because it removes the synchronization between spindle rotation and axis feed, which almost guarantees tool breakage. Keep this parameter set to 0 and use G26 retraction to protect your tooling.
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 - 2005)
- Ö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
G73 and G83 Peck Drilling Cycles: High-Speed and Deep-Hole Milling
Program G73 and G83 peck drilling cycles on Fanuc, Siemens, and Mitsubishi CNCs. Learn parameters, clear alarms, and optimize high-speed deep-hole milling.
G50.2 and G51.2 Polygon Turning: Synchronized Lathe Machining
Learn how to program G50.2 and G51.2 polygon turning on Fanuc, Siemens, and Mitsubishi CNC controls. Master spindle synchronization parameters, alarms, and G-code examples.
G31 Skip Function and CNC Probe Programming: Fanuc, Siemens, Mitsubishi
Master G31 skip function and probe programming on Fanuc, Siemens, and Mitsubishi CNCs. Prevent crashes, resolve alarms, and configure servo lag parameters.
G07.1 Cylindrical Interpolation: Guide for Fanuc, Siemens, Mitsubishi
Master G07.1 cylindrical interpolation on Fanuc, Siemens, and Mitsubishi CNCs. Learn axis mapping parameters, alarm fixes, and syntax rules to prevent crashes.