At any courier sortation hub, the visible activity happens where parcels move: induction lines, merges, crossbelt loops, and dispatch spurs. Behind that movement, a quieter conversation takes place between the Warehouse Control System (WCS), the programmable logic controllers (PLCs), and the field instrumentation that feeds them. Heartbeat and watchdog logic is the pulse-check that keeps that conversation honest. When it works well, nobody notices. When it fails, operators see phantom zone stops, missed inductions, and alarms that appear to have no meaningful cause. This article explains where heartbeat and watchdog logic live, what the inspection points are, and how controls teams can recognise the early warning signs before a full loss of communication disrupts a sort.
What Heartbeat and Watchdog Logic Do in a Sortation Hub #
A heartbeat is a periodic message, status bit, or register value that one controller sends to another to say, in effect, “I am alive and still processing.” A watchdog is a timer on the receiving side that expects that heartbeat within a fixed window. If the timer expires before the next heartbeat arrives, the receiver declares a communication fault for its partner and triggers a defined response, such as holding a merge release, suppressing a divert, or alarming a zone into a stopped state.
This logic is deliberately coarse. It does not certify that the partner is healthy in a detailed sense; it only confirms that the partner is still responding and refreshing its status. In a depot environment, the heartbeat rate is usually set fast enough to catch a problem before a parcel reaches a decision point, yet slow enough to avoid burdening a busy control network. Typical periods range from 100 milliseconds to a few seconds, depending on the criticality of the interface.
Where the Inspection Points Live #
Heartbeat and watchdog logic sits at every interface boundary where two systems must trust each other long enough to move a parcel safely and correctly. The main inspection points in a courier hub are:
- WCS to PLC: the WCS sends a heartbeat to the PLC, and the PLC watches for it. If the WCS service stalls, the PLC will not act on stale routing messages.
- PLC to WCS: some sites run a reverse heartbeat so the WCS knows the PLC is still cycling and not stuck in a fault-wait state.
- Scanner or camera systems to PLC: the PLC expects a periodic status word or heartbeat from each read station. A lost scanner heartbeat usually means the PLC stops accepting read results from that point.
- Merge controllers to mainline PLCs: merge release logic often relies on a watchdog window between the merge’s local controller and the mainline PLC before granting a parcel release.
- Drives to PLC: drive health bits and motion feedback act as a pseudo-heartbeat. A drive that is alive but not moving is as important to detect as a drive that is silent.
- Redundant PLC pairs: active and standby controllers exchange heartbeats to confirm each other’s state before deciding to fail over.
Every one of these boundaries is an inspection point where a controls technician can check counters, timestamps, and flags on both sides of the interface.
Heartbeat and Watchdog Are Not the Same Thing #
The distinction matters for diagnosis. A heartbeat is the signal that is emitted; a watchdog is the timer that expects it. A heartbeat without a watchdog is just data that nobody acts on. A watchdog without a heartbeat will declare a fault immediately, regardless of whether the remote device is actually running.
In practice, this means a watchdog timeout always appears on the receiving side, so the alarm text can be misleading. A driver may fault while the PLC that supervises it is perfectly healthy, simply because a network switch between the two dropped a handful of packets. Being precise about which side detected the expiry is the first triage step in any investigation.
Observable Symptoms of a Failing Pulse #
Heartbeat and watchdog problems do not always announce themselves as a total communication loss. They often appear as subtle operational degradation first:
- Intermittent zone stops with no fault code that clear on restart and then recur hours later.
- WCS timeouts on merge release requests, where a decision arrives a few hundred milliseconds too late.
- Recurring “comms lost” alarms on a specific scanner or drive that clear themselves before anyone reaches the panel.
- Parcel tracking gaps at a particular point, where the PLC and WCS disagree on where the parcel actually is.
- Phantom alarms at shift change, caused by a WCS service restart that misses a few heartbeat cycles.
- A frozen HMI status counter that continues to show the last value while the process moves on, indicating a stale communication path rather than a true process stop.
Any of these symptoms is an early warning sign. The sooner they are traced to a heartbeat or watchdog issue, the lower the risk of a full stop during peak sortation.
Evidence Collection: What to Capture Before Resetting Anything #
The most common mistake in watchdog events is resetting the system quickly to clear the alarm. That destroys the evidence. Collect the following before any restart:
- Alarm logs from both the WCS and the PLC, with exact timestamps, so the sequence can be compared side by side.
- The last received heartbeat counter value and the expected value at the time of failure.
- Network switch port counters, including CRC errors, drop counts, and port resets for the affected devices.
- A note of any recent event that precedes the failure: a parcel jam, a manual restart, a firmware update, or a network change.
- Clock drift information. If the WCS server clock is seconds ahead of the PLC clock, a heartbeat that looks late may be an artefact of time skew rather than a genuine delay.
One clear practice for a depot controls team is to log the heartbeat counter value and the watchdog status word at regular intervals, even in normal operation. Without that baseline, an anomaly is hard to prove.
A Practical Diagnostic Table #
The table below summarises common watchdog symptoms, where they are likely to originate, and what to check first. It is intended as a guide, not a substitute for site-specific documentation.
| Symptom | Likely Layer | What to Check | Candidate Causes | Normal Baseline |
|---|---|---|---|---|
| Zone stops intermittently with no fault code | Drive to PLC | Drive health bit, motion feedback, comms harness | Watchdog window set too tight, loose connector, drive loading | Health bit true, motion feedback follows command within a defined window |
| WCS heartbeat timeout on HMI | WCS to PLC | Heartbeat counter progress, WCS service log, database load | WCS thread stalled, database lock, network buffer full | Counter increments every 500 ms continuously |
| Scanner triggers but produces no read result | Scanner to PLC | Trigger count versus read count, scanner status word | Scanner heartbeat not active, exposure sync lost, read region misconfigured | Trigger-to-result ratio above 99 percent |
| Merge release decision arrives late | Merge PLC to mainline PLC |
Related Parcel Operations Guides #Site-Specific Review Worksheet #This educational worksheet supports a structured review of heartbeat and watchdog logic: inspection points and early warning signs. Begin by identifying the equipment boundary, control ownership, operating modes, material characteristics, upstream dependencies and downstream consequences. Record what the system is expected to do, what was actually observed and which evidence is time-aligned. Avoid changing several variables at once, because simultaneous changes make cause and effect difficult to establish. Evidence to collect #
Decision boundaries #Use approved site procedures and competent engineering judgment before intervention. General information in the WCS, PLC & Routing Logic library cannot determine whether a specific machine is safe to enter, restart or modify. Preserve original settings, document authorized adjustments and establish a rollback point before controlled testing. When evidence conflicts, stop and resolve the timestamp, naming or measurement discrepancy before drawing a conclusion. Closeout record #A useful closeout record states the symptom, confirmed cause, evidence, corrective action, validation method, residual risk and follow-up owner. It should also identify whether the event exposed a design weakness, maintenance gap, training issue, spare-parts issue or monitoring blind spot. This turns a single recovery into reusable reliability knowledge without treating one observation as universal. Updated on October 20, 2026 |