MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › Setting communication timeout thresholds sensibly
HomeModels
Table of contents

On this page

Fault Diagnosis & Standards (100 articles)

Quick Reference

  • PLC & Programming
  • Electrical & Electronic Basics (monthly)(每月更新中)
  • Electrical Control & Drawings (monthly)(每月更新中)
  • Drives & Actuators (monthly)(每月更新中)
  • Sensors & Detection (monthly)(每月更新中)
  • Industrial Communication & Networks (monthly)(每月更新中)
  • HMI & Host Systems (monthly)(每月更新中)
  • Industrial Robots & Motion Control (monthly)(每月更新中)
  • Mechatronic System Integration (monthly)(每月更新中)
  • Fault Diagnosis & Standards (monthly)(每月更新中)

Setting communication timeout thresholds sensibly

A timeout set too short trips on every network hiccup; set too long, the machine keeps running half a minute after a real disconnection. This page explains how watchdog and timeout parameters are calculated, how to layer margins, and gives concrete numbers per update cycle.

1. How it works

The core PROFINET parameter is the watchdog time: update time times 3 plus 10 ms — two periods of safety factor plus a fixed margin. Update times come in 1, 2, 4, 8, 16 and 32 ms grades. An 8 ms connection therefore watches about 34 ms, judging a timeout after roughly four lost cycles. The IO watchdog factor is normally 3. Above that sit TCP-level response timeouts and keep-alives; logically, add a separate soft timeout of 500 ms to 2 s for alarming, layered under the hard timeout that actually drops the connection, so jitter does not tear the network down.

2. Numbers and practice

Recommended three-layer structure. Detection layer: the watchdog time itself (about 34 ms for 8 ms updates) — count and log only, no action. Alarm layer: three to five consecutive detection timeouts, roughly 150 to 300 ms — raise an HMI alarm with a counter, keep running. Action layer: disconnection beyond 1 to 2 s, or a safety-signal timeout within four update cycles per the safety requirement — stop or perform the safety action. Millisecond jitter, common in any industrial network, then only leaves a record while real failures stop the machine within seconds. Implement with a 500 ms TON for the soft alarm, a 2 s TOF to hold it, plus a fault counter for trend analysis.

3. Pitfalls and fixes

Always verify by test. Pull-the-plug: timestamp from disconnection to stop; the measured time must match the action-layer threshold within 10 percent. Jitter test: run 24 hours under normal load; weekly detection-layer counts should be near zero — frequent growth means interference or overload, and the fix belongs in the network, not in loosening the timeout. Avoid both extremes: 50 ms with ten consecutive misses is a 500 ms total delay that cannot stop a crash in time, and 10 ms single-shot stops the line eight times a day.

4. Timeout threshold layering quick reference

LayerThreshold (8 ms update example)ActionPurpose
DetectionAbout 34 ms (watchdog)Count and logCapture every jitter
Alarm150-300 msHMI alarm plus counterNotify without stopping
Action1-2 sStop or safety actionReliable stop on true loss
Safety signal timeout≤4 update cyclesImmediate safety actionMeets safety function needs
Soft alarm timer500 ms TONDelayed alarmFilter network glitches
Hold timer2 s TOFLatch alarm outputAvoid alarm flicker
Jitter criterionWeekly detection count near zeroFix network if growingDo not mask by loosening
Pull-plug verificationWithin 10 percentMeasure actual stop timeConfirm logic works

5. Notes

Applies to PROFINET, EtherNet-IP, Modbus TCP and fieldbuses alike. One principle: the hard timeout drops the connection, the soft timeout raises alarms, the action layer stays within 1 to 2 s, and safety signals follow their own stricter cycle multiple. Every threshold change gets a plug-pull test — no exceptions.

6. References

The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: PROFINET timing per IEC 61784 and PROFINET specifications; safety-related communication per GB/T 5226.1 and IEC 61508 functional-safety standards. Always check the device datasheet and the product design file for ratings and derating.

7. Cautions

⚠️ Three common pitfalls:
① A 10 ms timeout that stops on every jitter: industrial networks glitch by tens of milliseconds daily, and operators will bypass a nuisance alarm, defeating the protection
② An action layer beyond 5 s: the machine coasts five seconds after a real disconnection and crashes; keep it inside 1 to 2 s
③ Changing thresholds without a plug-pull test: a TON written as TOF or wrong timer logic stays hidden until the day it matters; measure the stop time every time

Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.

Related reading

Related 3D models: Ready to build it? Download free 3D models & CAD drawings at MOULDL »
MOULDL · Electrical Knowledge Base · free self-study reference for electrical & automation engineers, 3D CAD models at MOULDL