PLC Programming · Technical Blog

Siemens PLC Troubleshooting: Diagnostic Buffer, Watch Table and Force

A line is down and everyone is watching. This guide is the order to work in: LEDs, diagnostic buffer, online blocks, cross references, watch table, and forcing only as a last resort.

2,500+ engineers trained 4.9/5 Google rating 21+ years, Chinchwad, Pune Next batch: contact for dates
Quick answer

Start with the CPU LEDs, then open the diagnostic buffer, which timestamps every fault the CPU has recorded. Go online to the block and read the live logic. Use the cross reference list to find every place a tag is written. Use a watch table to observe and modify values, and force only when nothing else will do, removing every force before you leave.

  • The diagnostic buffer is the first place to look and the most often skipped.
  • Cross references answer 'what else writes this tag' in seconds; searching networks by eye does not.
  • Forcing overrides the physical signal and stays active until removed; treat it as a controlled, documented action.

Work in This Order

Under pressure, people start changing code. The fastest route is almost always diagnosis before modification.

  1. LEDs on the CPU and modules. RUN, STOP, ERROR and MAINT tell you the category before you open a laptop.
  2. Diagnostic buffer. Timestamped record of what the CPU itself noticed.
  3. Device view online. Which module reports a fault, and on which channel.
  4. Online blocks. Read the live logic where the machine actually stopped.
  5. Cross references. Find every write to the suspect tag.
  6. Watch table. Observe values, then modify only if safe.
  7. Force. Last resort, documented, removed before handover.
LED stateMeaningFirst check
RUN green steadyCPU running normallyFault is in logic or field, not the CPU
ERROR red flashingFault the CPU has recordedDiagnostic buffer
STOP yellowCPU stoppedDiagnostic buffer for the stop cause
MAINT yellowMaintenance requiredModule diagnostics, often a channel fault
All darkNo power or CPU failureSupply voltage and fuses

The Diagnostic Buffer and Module Status

Go online and open the CPU's diagnostic buffer. It holds a timestamped list of events: CPU stops with their cause, module faults, communication losses, programming errors and mode changes.

Read from the bottom of the incident upward. The last entry is often a consequence; the entry two or three earlier is usually the cause. A CPU stop preceded by a diagnostic error on an input module points at the module, not the program.

Module and channel diagnostics

The online device view shows which module is reporting and, for most modules, which channel. Analog modules report wire break, overrange and underrange per channel, which identifies a failed transmitter without a multimeter.

  • Wire break on an analog input usually means a broken loop or a dead transmitter.
  • Overrange with a plausible process value often means wrong scaling rather than a fault.
  • A missing PROFINET device shows as a station failure with its device name, which is your first clue on the network side.

Capture the diagnostic buffer before restarting the CPU. A restart clears the situation, and with it the evidence.

Online Blocks, Cross References and Watch Tables

Open the relevant block online. Ladder shows live contact and coil states in colour, so a permissive chain reveals its open contact immediately.

Cross references

Right-click a tag and open cross references. The list shows every block and network that reads or writes it. This is the fastest way to find a double write, which is the cause of most "the logic is right but the output is wrong" calls. The mechanism is explained in the PLC scan cycle.

Watch tables

A watch table lets you observe many tags at once, across blocks, with the display format you choose.

ActionWhat it doesRisk
MonitorReads values liveNone
Modify onceWrites a value for one scanThe program can overwrite it immediately
Modify permanentlyWrites continuously while activeReal movement on real machines
ForceOverrides the physical signal at the modulePersists until explicitly removed

Build a watch table per machine area and save it with the project. Next time the same fault appears, the diagnostic setup is already there.

Learn troubleshooting on live faults

Sessions include fault-injection exercises on real Siemens hardware, not just theory.

Book a Free Demo Class

Forcing, and the Faults That Are Not Program Faults

Forcing overrides a signal at the module, so the program cannot change it. It is powerful and it is remembered by the CPU.

  • Force only with the machine in a known safe state and the affected drive isolated where possible.
  • Record every force: which tag, why, by whom, when.
  • Remove all forces before handover and confirm the force table is empty.
  • Never leave site with a force active; a forced input on a running plant is a genuine hazard.

When the program is not the problem

A large share of "PLC faults" are not in the PLC at all. Before editing code, confirm:

SymptomCheck first
Output true in software, nothing in the fieldOutput module fuse, wiring, contactor coil
Input never turns onSensor supply, sensor type against module type, terminal
Intermittent PROFINET station failureCable, connector, switch port, cable route near a VFD
Analog value drifting or noisyShield earthing, cable routing, transmitter health
CPU stops under loadCycle monitoring time, loop in the program, power supply

Document what you found and what you changed. The next person to face this fault at 3 a.m. may well be you.

Hands-On Lab: Diagnose Three Injected Faults

Hands-on
Before you start
  • TIA Portal with an S7-1200 or S7-1500 CPU, or PLCSIM
  • A working test program you can deliberately break
  • A colleague to inject faults without telling you which
  • Estimated time: 45 minutes
1

Establish a baseline

Record the diagnostic buffer, cycle time and a healthy watch table for the working program.

You have a known-good reference to compare against.
2

Diagnose a double write

Have a fault injected where an output is written in two places, then find it.

Cross references locate both writes in under a minute.
3

Diagnose a module fault

Simulate an analog wire break or remove a station, then trace it.

The diagnostic buffer and device view identify the module and channel.
4

Diagnose a cycle time fault

Inject a heavy loop until cycle monitoring is exceeded.

The diagnostic buffer records the time error with a timestamp.
5

Practise a controlled force

Force one input, document it, then remove it and confirm the force table is empty.

No forces remain active and the action is recorded.
Checkpoint—how to know you did it right

You can diagnose each fault using diagnostics rather than code changes, and you finish with an empty force table and a written record.

Frequently asked questions

Where do I start when a Siemens PLC faults?

The CPU LEDs, then the diagnostic buffer. It timestamps every event the CPU recorded, including the cause of a stop, and it is the step most often skipped.

What is the difference between modify and force?

Modify writes a value that the program can immediately overwrite. Force overrides the signal at the module so the program cannot change it, and it stays active until explicitly removed.

How do I find why an output ignores its logic?

Open cross references for that tag. The output is almost certainly written in a second place later in the program, and the later write wins.

Why does the CPU go to STOP under load?

Usually the cycle monitoring time is exceeded, often by a loop or a heavy calculation. The diagnostic buffer records the time error and its timestamp.

Reviewed by Bhawesh Kumar SinghIndustrial Automation Trainer and Industry 4.0 Consultant · Softwell Automation · 21+ years industry experience

Get the full syllabus + free demo class

Share your details—a Softwell training advisor will contact you with batch dates, fees and hardware-practice options.

No spam. Used only to share course details for this enquiry.

Learn with practical industrial examples

Join live online, Pune classroom or corporate in-plant automation training.

Request Course Details
Verified learning pathway

Discuss Siemens PLC Troubleshooting

Explore practical curriculum, software, hardware and batch options for this technology.

Content reviewed: 09 September 2026

Siemens PLC & TIA Portal Learning Path

Continue with the related Siemens PLC tutorials in this practical learning series.

  1. SCL vs Ladder Logic
  2. Upload PLC Program
  3. TIA Selection Tool
  4. Analog Input Scaling
  5. PLC Counters
  6. PLC Timers
  7. Addressing & Data Types
  8. Hardware & PLC Tags
  9. OB, FB, FC & DB
☎ Call WhatsApp ✉ Email Enquire Now