CNC Control Systems
PLC Ladder Logic Faults in CNC Machines
Key Takeaways
- PLC ladder logic faults cause roughly 15-20% of control-side service calls we see on Fanuc and Mitsubishi machines.
- The symptom-to-rung correlation pattern traces from an alarmed output back through each rung's input conditions.
- Diagnosis requires ladder logic monitoring software specific to your control: Fanuc Ladder III/IV, GX Works, or STEP 7.
- M-code timing mismatch causes about 40% of intermittent ladder faults we troubleshoot.
- A single stuck input bit from one failed sensor can cascade through 8-15 downstream rungs before you see an alarm.
When a CNC machine stops mid-cycle with no clear mechanical cause, the fault often lives in PLC ladder logic. The PLC handles tool changers, coolant, door interlocks, and lube pumps. These are tasks the main CNC controller hands off. Knowing how to trace these faults can cut a two-day hunt down to 20 minutes. This article covers diagnostic reasoning for PLC ladder faults on Fanuc, Mitsubishi, and Siemens. We also discuss tooling needs and patterns that separate true ladder problems from mechanical issues.
What PLC Ladder Logic Does in a CNC Machine
The CNC controller handles motion planning and servo commands. The PLC handles everything else. On a typical VMC, ladder logic manages 80-150 inputs and 60-120 outputs. These include spindle orientation, ATC sequences, chip conveyor interlocks, hydraulic pressure, and axis limits.
Ladder logic runs in a continuous scan cycle. On a Fanuc 0i-F, the PMC completes a full scan in 4-8 milliseconds. Each scan reads all inputs, checks every rung, and updates all outputs. When a condition fails to appear in time, the PLC either halts or sends an alarm to the display.
The tricky part: the alarm describes the symptom, not the cause. A "Tool Change Timeout" alarm says the change did not finish in 15 seconds. It does not say if a sensor failed, a valve stuck, wiring broke, or someone edited the logic wrong.
Learning CNC Control Systems architecture helps clarify why ladder faults need a different approach than servo or spindle alarms.
The Symptom-to-Rung Correlation Pattern
Good ladder fault diagnosis follows a symptom-to-rung correlation pattern. Start with the alarmed output. Then trace backward through each rung. Find the input condition that failed. This sounds easy. But a machine can have 2,000+ rungs. Knowing where to start saves hours.
Here is a real example. A Mazak VTC-200C stops mid-tool-change with an ATC timeout. The arm extended but never retracted. The arm retract rung needs three things: magazine in position, spindle oriented, and hydraulic pressure above threshold. Each input feeds a rung that must be true for the output to energize.
Tracing the fault rung by rung means opening ladder software and watching each input contact live. If magazine position shows false but the magazine is in place, you found it. That is likely a bad proximity sensor. If all inputs show true but the output never fires, check downstream rungs or the output module.
This method also applies to Encoder Feedback Faults: Control or Mechanical? problems. Both need you to verify input states step by step.
Tooling Needed for Ladder Diagnosis
You cannot diagnose PLC ladder faults without ladder logic monitoring software. The control screen shows alarm text. It does not show live rung status or input states in real time.
For Fanuc—about 65% of our calls—you need Fanuc Ladder III or IV. Ladder III works on 15i, 16i, 18i, and 21i series. Ladder IV works on 30i, 31i, 32i, and 0i-F. These connect via serial or Ethernet. They show the live ladder with energized rungs in green. You can trace signals both ways: from a failed output back to inputs, or from a suspect input forward to outputs.
Mitsubishi machines—common on Mazak, Okuma, and some Doosan—need GX Works2 or GX Works3. These tools offer live monitoring and can force outputs for tests. Be careful forcing anything on a machine with moving parts.
Siemens 840D and 840D sl controls use STEP 7 or TIA Portal. The PLC portion of the NCK follows similar logic with a different interface.
On Fanuc Series 0i Repair (Model A through F) platforms, Ladder IV is required for PMC work on Model D and later. Older models use Ladder III with RS-232.
Common Ladder Fault Patterns
Certain patterns show up over and over. Knowing them speeds up your diagnosis.
M-code timing mismatch is the most common. The NC program sends M08 for coolant. The PLC must confirm before the program moves on. If a flow sensor fails or a valve sticks, the machine waits forever. This accounts for about 40% of our intermittent ladder faults. Many are thermal: a relay works cold but opens when hot.
Cascading input failures happen when one sensor affects many rungs. A magazine position sensor may feed tool change, spindle lock, coolant interlock, and door logic. One $80 sensor can cause three alarms on three screens.
PLC scan time issues appear on heavily modified machines. If someone added lots of custom logic, scan time can grow. We have seen a 6ms scan grow to 22ms after years of edits. That causes random faults under specific conditions.
Modified safety interlocks hide problems. If a past tech forced an input true, the machine runs fine—until a related fault hits. Then your trace shows a good condition that is not real. We check for forced bits on every job.
Ladder Faults vs. Mechanical Problems
Many apparent ladder faults are mechanical problems the PLC correctly detected. The PLC stops the machine when a condition fails. The question is: did the condition fail in logic or in the real world?
The logic is explained in Control or Mechanical? The Diagnostic Logic. First, verify the physical state. If the ladder shows tool unclamped as false, go check the spindle. Is the tool clamped? If physical state matches the ladder, the sensor works. The problem is mechanical. If the physical state differs from the ladder, the sensor or wiring is bad.
This same approach applies to Servo Drive vs. CNC Controller Faults: How to sort out drive-related issues. The PLC may alarm on a drive fault signal. It does not say if the drive really faulted or if the signal path broke.
When Ladder Problems Point Elsewhere
Some ladder faults point outside the PLC entirely. Fanuc Alarm 401: Causes and Recovery often comes with ladder faults. The servo system sends status through the PMC. A servo fault can freeze a sequence waiting for axis in-position.
CNC Battery Backup Loss: Data Recovery Procedure matters after battery shutdowns. PMC parameters and keep relay states may be lost. That causes logic faults unrelated to the original issue.
Spindle-related ladder faults may trace to mechanical spindle issues. Tool change faults on Fanuc machines sometimes stem from orientation problems. The orientation fails because of bearing preload issues. That is a mechanical problem showing as a ladder fault. Spindle Service on Fanuc Series 0i (A/ through F) includes orientation verification at sign-off.
Sources & References
- Fanuc PMC Programming Manual (B-61863EN series)
- Mitsubishi GX Works2 Operating Manual (SH-080779)
- Siemens 840D sl PLC Programming Manual
- Our 2023-2024 service logs on Fanuc 0i, 30i, and Mitsubishi M700 control repairs
- OEM ladder docs from Mazak, Doosan, and Haas for ATC and safety sequences
When to Bring This Work to Us
If you traced a ladder fault to a specific rung but cannot fix it, we can help. If you lack the software for live monitoring, we carry Fanuc Ladder III/IV, GX Works, and STEP 7. We do PMC backup and edits when needed. For machines with years of logic changes, we audit against OEM docs. We find forced bits, timing issues, and conflicts that cause random faults.
Contact us through /get-a-quote/ with your control model, alarm codes, and fault behavior. We can usually estimate scope from that.
Need this work done? Tell us the machine and the symptom.