Troubleshooting
Why WinCC tag updates run slow on an IM 151-7 PROFIBUS link
Short answer
The 8-12 second WinCC lag on an IM 151-7 is the CPU's communication ceiling, not a bus fault: late answers are still correct answers, so Connection Diagnosis stays clean. Set the Cycle load due to communication to 50%, set the OP connections to the two real partners, download in a planned stop, and confirm the maximum cycle time still fits.
On this page
When WinCC tags on a PROFIBUS link to an IM 151-7 CPU arrive 8 to 12 seconds late while a TP 277B panel on the same bus updates normally and Connection Diagnosis reports nothing, the cause is the CPU's communication ceiling, not the bus. The CPU serves S7 read requests only inside the share of each scan that its communication-load parameter allows, and the ceiling this station ran cannot fit the added WinCC station's reads. Set the Cycle load due to communication to 50%, set the OP connections to the two real partners, download the hardware configuration in a planned stop, and confirm the maximum cycle time still fits. The same program updating at normal speed on a substitute CPU is the proof that the budget, not the wiring, is the constraint.
Why no diagnostic shows a fault #
The reported case: an IM 151-7 CPU (order number 6ES7 151-7AA20-0AB0, firmware 2.6.11) at the head of a PROFIBUS segment, a TP 277B panel on that segment, and a WinCC station reading the same tags through a CP 5611 card. Four observations identify the fault, and each closes a door:
- WinCC tags arrive 8 to 12 seconds late while Connection Diagnosis reports no error and the CPU's diagnostic buffer stays empty. A late answer is still a correct answer, so there is nothing to log.
- The TP 277B updates at its normal pace over the same cable. A cabling, speed or bandwidth fault does not spare one partner while starving the other.
- Disconnecting the panel leaves the WinCC station exactly as slow. That removes bus bandwidth and token contention from the suspect list.
- The same program downloaded to a CPU 315-2DP updates WinCC at normal speed over the same wiring and the same card. The only variable that changed was the CPU.
Together these put the cause inside the CPU's communication service: every request is answered, correctly and in order, just too late. The only mechanism that produces that pattern is a per-scan communication budget too small for the station that arrived last. The observations above are the reported case; the arithmetic later in this article is a worked example built on example scan times, so measure your own before you judge your margins.
Measure the scan before you change anything #
Go online with the CPU and collect three values:
- The current and maximum cycle times from the CPU's online diagnostics. The maximum is the headroom the raised ceiling will spend.
- The Cycle load due to communication value on the Cycle/Clock Memory tab of the CPU's Object Properties in the hardware configuration. This station ran it at 20 percent.
- The OP connection count on the Communication tab of the same dialog. This station had three OP connections configured against two real partners.
The same complaint can come from a program that got longer or from a tighter communication budget, and the fixes differ. The procedure for separating PLC scan time from real HMI communication faults applies unchanged here, and the fingerprint above has already done most of that sorting: a program-side or physical cause would not leave the panel untouched. The measured maximum cycle time is also the number that later decides whether the raised ceiling fits.
Raise the communication ceiling #
The Cycle load due to communication parameter caps the portion of the finished scan the CPU may spend serving communication. STEP 7 documents it as the cap on communication processing time, and that time comes out of the cycle itself. Communication is served inside the scan, so a ceiling set low starves every requester that cannot fit its reads into the leftover slice. The fix:
- Open the CPU's Object Properties in the hardware configuration and select the Cycle/Clock Memory tab.
- Set Cycle load due to communication to 50%.
- Compile and download the hardware configuration. The CPU passes through stop and back to run; plan the window.
- Read the cycle-time statistics again once both partners are polling at their normal cadence.
The documentation states the trade plainly: at its example setting of half the scan, the OB1 cycle time can double. The ceiling is a limit the traffic reaches only when both partners poll hard; on a quiet bus the CPU spends none of it.
Worked example: the budget before and after #
The scan times here are example values chosen to show the arithmetic, not measurements from the reported case.
- Measured cycle with the old ceiling in force: 100 ms. If communication fills its whole share, the program gets 100 ms x 0.8 = 80 ms of every scan.
- Budget per scan at the old ceiling: one fifth of 100 ms = 20 ms. The panel's cyclic reads, established first, take roughly half of it, leaving about 10 ms per scan for the station that arrived later.
- One full WinCC screen refresh needs, as an example sizing, 800 ms of CPU-side service — call it 40 read requests at 20 ms of service each. Time to a refresh: 800 ms / 10 ms per scan = 80 scans, and 80 scans x 100 ms = 8000 ms = 8 s, the bottom of the band the station reported.
- With the ceiling at 50%, the worst-case cycle doubles per the documentation: 80 ms / 0.5 = 160 ms, of which communication may hold 160 ms x 0.5 = 80 ms. The same 800 ms of service then takes 800 ms / 80 ms = 10 scans, about 1.6 s at the worst case and faster in practice, because the traffic rarely arrives back-to-back.
One safety check belongs to this change: after the download, read the maximum cycle time through a minute of full polling and confirm it stays below the CPU's configured maximum. An overrun calls the CPU's time-error reaction, and with no time-error block in the program the CPU can stop. If the new worst case will not fit, shrink the WinCC poll groups — do not push the ceiling past half. There is no reason to: both partners fit with headroom, and every step beyond gives the program less than half of each scan.
Right-size the OP connection count #
Three OP connections are configured against two real partners — the panel and the WinCC station. Set the OP connection count on the Communication tab to match the footprint, and send it down in the same download as the ceiling change. Each S7 connection reserves a connection resource at the CPU endpoint, so a configured partner that never connects is a permanent reservation with no traffic attached. The unused slot is not what starves the screen — the ceiling is — but matching the resource table to reality costs nothing, rides the same stop, and keeps the picture honest for the next addition.
Leave the PG allocation alone, so a programming device can still attach at the next shutdown. Never set the count below the partners you actually run: a station that finds no free resource has its connection refused outright, which trades a slow screen for a dead one. If a partner is added later, raise the count in that download and re-check the cycle margins.
Verify the result at the machine #
- Pick one tag the operator actually watches. Change its value at the CPU and note the wall-clock time of the write.
- Record the moment the new value appears on the WinCC screen. The difference is the update delay; repeat ten times with both partners polling at their normal cadence.
- Judge against an example acceptance line, not a feeling: sub-second on every one of ten trials is a reasonable pass for a station of this kind. One slow trial among fast ones points at polling overlap, not at the ceiling.
- Read the CPU's maximum cycle time after a minute of full polling. It must stay below the configured maximum; growth toward it means the ceiling is binding and the poll groups should shrink.
- Confirm the TP 277B still updates at its original pace and Connection Diagnosis stays clean.
What this fault is not #
- Bus physics. A termination fault, a damaged cable or a segment running below its configured speed hits both partners, and it usually writes diagnostic entries or takes the data away entirely. When a panel reads nothing at all, that is the job for checking PROFIBUS termination when an HMI reads no data — a different symptom from clean-but-late.
- Segment length. Distance only matters by forcing the whole segment down in speed to make the run at all, and a slower segment slows the panel first.
- The WinCC PC. The substitute-CPU result already cleared the card, the cabling and the station software: the same hardware updated at normal speed against a different CPU.
- A connection fault. Nothing here drops. When a link actually fails or a station cannot reach a CPU at all, WinCC announces it, as covered in WinCC PLC connection loss alarm and no-connect display.
The decision for each case #
- One partner fast, one slow, every diagnostic clean, and a substitute CPU that updates at normal speed: raise the communication ceiling and right-size the OP count as above, download in one planned stop, and confirm with the stopwatch routine. Expect screen refreshes back around a second or less at typical scan times, not multi-second waits.
- The ceiling is raised but the maximum cycle time now runs close to the configured maximum: shrink the WinCC poll groups or lengthen the polling interval instead of pushing the ceiling further.
- Connection Diagnosis shows an error, or the station cannot open the connection at all: that is a resource and configuration problem, not a cycle budget, and it follows the path in troubleshooting a SCADA PC station that reaches only one S7-1500.
- The slow updates sit on an Ethernet link to the PLC instead of PROFIBUS: the budget idea still applies, but the suspects differ, so start with why HMI point updates run slow on an Ethernet PLC link.
Questions asked
Could I just slow the WinCC polling down instead of raising the ceiling?
You can, and for a station where the operator tolerates several seconds of delay it costs nothing. Slower polls shrink the service demand the same way a bigger ceiling grows the supply. But the delay scales with every tag on the screen, so the remedy ages badly as screens grow, and the ceiling is the setting the station was missing. Do both if the cycle time gets tight: slower polls and the raised ceiling together.
Why does the TP 277B keep its pace while WinCC runs seconds behind?
The panel was commissioned into the communication budget first, and its small cyclic reads complete inside a single budget window. The WinCC station doubled the demand on the same engine, and its larger reads need several windows per refresh, so the shortage lands on the newest requester. That is also why disconnecting the panel helps nothing: the shortage is between the CPU and the added station's queue, not between the partners on the bus.
The lag came back after some weeks. What changed?
Look at what was added to the request load before suspecting the setting: a third partner, larger poll groups, more tags on the screens or a shorter polling interval all raise the service demand and can consume the headroom the fix created. Measure the cycle time again, compare it with the value recorded after the original download, and shrink the poll groups first.
Do the settings survive a power cycle, and does the download need a stop?
Both values are CPU configuration, so they persist once downloaded. The hardware configuration download takes the CPU through stop and back to run, so plan the window; while the master is down, each DP slave follows its own configured reaction to losing its master, so confirm the slaves' output behavior on the machines that cannot tolerate an unplanned stop. The ceiling and the OP count travel in one download.