E45-389 · Communication and Bus · Communication Module · ★★
The slave's processing load occasionally exceeds the response deadline; the master judges a timeout and drops it from the communication list
[Mechanism] The slave's main loop is blocked by a long task and cannot return a frame within the deadline, so the master's watchdog removes the unresponsive node.
[Calculation] The slave takes 300 ms to process, exceeding the 200 ms response deadline; three consecutive timeouts trigger the drop-off.
[Design Deficiency] The slave gave communication no interrupt priority, and the main loop blocked.
① Interrupt response: handle communication transmit/receive with interrupt priority → meet the deadline
② Task splitting: slice long tasks to yield the CPU → no blocking
③ Deadline alignment: set the response deadline ≥ the measured worst-case execution time → prevent false drop-offs
④ Relaxed watchdog: widen the watchdog threshold with margin → fewer drop-offs
⑤ Dual-stack buffering: queue received frames for handling in the main loop → decoupling
⑥ Drop-off monitoring: monitor the drop-off count and alarm → early detection
⑦ Deadline verification: inject load and test the response → data confirmation
⑧ Selection standardization: write the response deadline into the slave spec → control at the source
GB/T 19582.1-2008 Modbus protocol-based industrial automation network specification