A watchdog timer is a monitoring mechanism that checks whether a controller, processor, PLC or industrial network device continues to operate normally.
If a controller hangs, stops executing its program or fails to exchange data on time, the watchdog detects the problem and triggers the configured protective response.
Watchdogs are particularly important in CNC machines because a controller hang can leave actuators in an uncontrolled state.
A conventional timer measures a set interval. A watchdog checks whether a program performs a particular action or a device updates its data within the allowed time.
1. How the watchdog works
Consider a PLC that executes its program cyclically.
Continue operating; reset the watchdog timer
Timeout: fault and configured response
For a hypothetical example:
- Normal PLC cycle time is 10 ms.
- The watchdog timeout is set to 100 ms.
- If the program does not service the watchdog within 100 ms, the system registers a timeout.
Depending on the controller, the response may be to stop the program, set outputs to a defined state, restart the processor or raise an alarm.
A normal watchdog reset confirms that the program has reached a particular execution point. It does not guarantee that all of the program logic is correct.
2. Types of watchdog in industrial automation
| Type | What it monitors | Possible response |
|---|---|---|
| Hardware Watchdog | Processor operation | CPU reset or a hardware protective response |
| Software Watchdog | PLC program execution time | Program stop or fault |
| Communication Watchdog | Regular data exchange | Communication fault or a change in output states |
| Safety Watchdog | Timing requirements and correct operation of safety-system components | Transition to the defined safe state |
3. Watchdogs in CNC machines
Consider an EtherCAT network used to connect servo drives and I/O modules.
Suppose the EtherCAT master regularly sends output data to a slave device.
If the data is no longer updated on time, the device watchdog may expire.
For example:
- The master stops sending the expected data.
- The slave device detects that the timeout has expired.
- The slave registers a communication fault.
- Outputs switch to the state specified in the device configuration.
- The machine may display a communication error or stop its motion.
This is particularly relevant when investigating intermittent HALT errors on Biesse machines.
If a machine stops unexpectedly, reports EtherCAT slave errors and resumes operation after a restart, check for communication timing problems that could trigger a watchdog.
A slave error or HALT message alone does not prove that a watchdog has expired.
4. Watchdogs in ABB Pluto
Safety controllers such as ABB Pluto also use internal mechanisms to monitor program execution and system operation.
Pluto monitors its processors, program execution and compliance with defined timing requirements.
For example, the ABB manual lists this fault:
Er69 — PLC program scan cycle time overrun.
This means that program execution took longer than permitted. An excessively large or problematic program is one possible cause.
Other system faults relate to processor operation and internal monitoring.
These must be distinguished from UE, a message generated by the machine application program.
5. Can a watchdog detect a machine fault?
A watchdog is not designed to detect every mechanical or electrical fault directly.
For example:
- A gripper jams — a standard PLC watchdog may not detect it.
- An encoder signal is lost — the drive or diagnostic program may detect the fault.
- The PLC processor hangs — a watchdog can detect the failure in program execution.
- Regular EtherCAT communication stops — a communication watchdog may expire.
- The two processors of a Safety PLC produce different results — internal safety monitoring detects this mismatch, but the mechanism is not necessarily a watchdog.
6. Diagnosing a watchdog timeout
First, identify which watchdog has expired: the CPU watchdog, the PLC program watchdog, or one in a servo drive, EtherCAT slave or another device.
A Watchdog Timeout is often a symptom of another fault. Possible causes include an unstable 24 V supply, network errors, excessive processor load or a faulty interface module.
Next, check timestamped event logs, network status, CPU load, program cycle time, the 24 V supply and diagnostic codes.
For EtherCAT faults, examine slave state transitions such as OP → SAFE-OP, AL Status codes and communication-error diagnostic counters.
Increasing the watchdog timeout simply to eliminate intermittent stops can hide the underlying problem and delay the equipment response. Changes to these parameters in safety systems require a separate assessment and validation.