MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › How do you set the communication cycle time in TIA Portal?
HomeModels
Table of contents

On this page

PLC & Programming (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)(每月更新中)

How do you set the communication cycle time in TIA Portal?

In TIA Portal the settings around "communication cycle time" are mainly the communication load percentage in the CPU properties and the related cycle parameters; together they decide how much of the scan cycle is available for communication, program execution and I/O updating. Set them well and communication and the program stop competing; set them badly and you get sluggish response, timeouts or scan monitoring faults.

First be clear what "communication cycle time" means

On site the phrase usually refers to one of two things: the share of time the CPU reserves for communication, or the way the program cycle (scan) is organised. The first appears as a percentage on the cycle/clock-memory page of the CPU properties, typically around 20% by default, meaning at most a fifth of the scan cycle may be used for communication. The second involves the minimum cycle time and the cycle monitoring time. Decide which one is being asked about before discussing how to change it.

Where the communication load percentage lives, and what it means

Select the CPU in the device configuration and open the cycle-related page of the properties to find the communication load percentage. It is not "so much time fixed per cycle" but an upper limit on the time weighted towards communication tasks relative to program execution. A higher value makes communication respond sooner but leaves relatively less time for the program; a lower value may push communication into the next cycle, giving occasional timeouts. Raise it modestly where many points are exchanged or a host computer polls frequently; keep it lower where program determinism comes first.

Minimum cycle time and cycle monitoring time

The minimum cycle time sets a floor for the scan cycle, keeping it steady and making fixed-interval sampling easy; zero means no limit. The cycle monitoring time is a criterion: if a cycle exceeds it, the CPU reports a cycle time error and goes to stop or hold. With many program steps and a high communication load, either shorten the program or raise the monitoring time — but never raise the monitoring time to paper over a genuine endless loop.

What happens when the communication load is too high

With the load set high, normal-priority communication is pushed back, HMI screens refresh slowly and diagnostics arrive late; with it set low while the traffic is heavy, the communication queue grows, the client polling cycle stretches, and the data read looks as if frames are being dropped. Both extremes show up as "unstable communication", so tuning has to be judged against the number of communication points and the refresh requirement, not the percentage alone.

How these fit with the other timing parameters

Communication load, minimum cycle time and cycle monitoring time constrain one another. Once a minimum cycle time is set, the cycle will not be shorter even if the program is tiny, and communication gains a steady time slice. The monitoring time needs enough margin to cover a complete cycle in the worst case. For cycle-sensitive functions such as high-speed counting and motion control in particular, do not change these parameters casually.

Communication load percentage and typical behaviour at a glance

Setting directionCommunication behaviourProgram behaviourWhere it fits
Load set lowResponse may be deferredMore time available for the programDeterministic control first, light traffic
Load set mediumCommunication and program balancedModerate time useGeneral automation lines
Load set highCommunication responds soonerProgram time compressedFrequent HMI and host access
Minimum cycle time at 0Cycle varies with loadCycle not fixedNo fixed cadence required
Minimum cycle time largerSteady slice for communicationFixed cadence, idle waitFixed-interval sampling needed
Monitoring time too shortProne to cycle errorsCPU may stopUnsuitable for large programs
Monitoring time too longFaults show up lateEndless loop maskedOnly as a fallback margin
Program grew, no retuneCommunication clearly deferredCycle near the monitoring limitLoad must be recalculated
More points, no retunePolling cycle extendedCyclic synchronisation stretchedTime budget must be redistributed

Notes

These parameters should only be changed with the machine stopped or under controlled conditions, and after the change keep watching for a good while to confirm no new timeouts or cycle errors. Most sites do not need frequent tuning, since the defaults satisfy ordinary needs; where tuning is genuinely required, measure the actual scan cycle and traffic first, then decide which parameter to change, rather than altering several at once on a hunch.

References

The cycle and task execution model in PLC programming languages follows GB/T 15969.3 (identical to IEC 61131-3); the fieldbus and real-time Ethernet standards behind the communication implementation are covered by the IEC 61158 and IEC 61784 series; the electrical connection, protection and earthing of the equipment follow GB 5226.1 and the equivalent international standard IEC 60204-1. The exact parameter names and ranges are as stated in the manufacturer's manual.

Points to watch

⚠️ Three common traps:
(1) Cranking the load percentage high "to make communication faster", leaving too little time for the program and an unsteady cadence;
(2) Raising the monitoring time alone when a cycle error appears, without looking for an endless or over-long loop in the program, so the fault is hidden;
(3) Setting a minimum cycle time but still estimating performance at the old cadence, when the real cycle has been stretched and sampling has gone sparse.

Adjust parameters with the machine stopped or under controlled conditions and archive the original values first. After commissioning, watch through a full production cycle and confirm no new communication timeouts or cycle alarms before fixing the values, and never change timing parameters that support safety functions without review.

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