IMDHMIControls LibraryShop main store

Explainer

Running Kepware and Wonderware on one SLC 5/05 in parallel

SCADA and data logging Published 6 min read

Short answer

Two SCADA clients on one SLC 5/05 at a 2-second scan rate is acceptable when the Kepware driver blocks the alarm points into a few requests per poll and status bit S:2/15 is clear, so the processor is not limited to one request per scan. Latching alarms cannot be missed at any interval; the interval only bounds how late the timestamp runs. Keep that rate, measure scan-to-scan time and Wonderware response, and add SVC rungs gated on S:2/5 or S:2/7 only if those measurements degrade.

On this page
  1. What the second client adds to channel 1
  2. Why latching alarms settle the scan-rate question
  3. Worked example: request load and timestamp error
  4. Check S:2/15 before changing anything
  5. Add SVC rungs only when the measurement says so
  6. The decision for each case
  7. Questions asked

Yes, you can run Kepware at 2 seconds per point beside Wonderware on the same SLC 5/05, and the migration plan is sound. Two conditions carry it: the Kepware driver must block your alarm points into a few requests per poll, and status bit S:2/15 must be clear so the processor is not limited to one communication request per scan. Because every alarm latches until an operator acknowledges it, no poll interval can miss one; the interval only bounds how late the timestamp runs. So do not lengthen anything yet. Put the new server online, measure the controller's scan-to-scan time and Wonderware's response against a baseline, and change something only if those numbers move.

What the second client adds to channel 1 #

The 5/05 services Ethernet traffic between program scans: the operating system drains the request queue in the unscheduled window after each scan ends. A second client adds requests to that queue, so the gap between scans stretches and every client waits a little longer for its answer. The program itself does not slow down until you move servicing into the scan, which is exactly what an SVC rung does.

The scan rate alone does not set that load; the request count does. The Kepware driver blocks a poll into as few reads as possible, so points that sit contiguously in the data table cost one request while scattered points cost many. That is why a per-point scan setting can mean one request every poll or forty.

Giving each controller its own channel in the Kepware project is good practice for the later rollout, because the server then talks to several devices at once. It creates no additional capacity inside this one PLC; treat it as a multi-device scaling setting, not a fix for this machine.

A client that waits too long eventually times out and shows bad-quality values instead of numbers, the failure picture in why HMI values show question marks: PLC comms timeouts.

Why latching alarms settle the scan-rate question #

Your alarms latch: once one sets, it stays set until an operator acknowledges it. The state therefore lives in the controller far longer than any poll interval you would choose, and the logger cannot miss it. Lengthening the interval risks no lost data at all.

What the interval does control is timestamp accuracy. An alarm that sets the moment after a poll is captured at the next one, so the logged time runs late by anywhere from zero to one full interval plus the request's round trip, about half an interval on average for events random in time. That is the whole trade. Keep the planned rate for tight timestamps, and hold a longer interval in reserve as the fallback that costs timestamp precision but never an alarm.

Worked example: request load and timestamp error #

Take an example with concrete numbers. The logger monitors 120 alarm points, and suppose they fall in four contiguous blocks across the data table, so the driver issues four requests per poll. With the scan rate at 2 seconds, that is:

4 requests ÷ 2 s = 2 requests per second from Kepware.

Say a baseline capture shows Wonderware alone at 5 requests per second. Combined:

5 + 2 = 7 requests per second, a rise of 2 ÷ 5 = 40% over the Wonderware-only load.

Seven requests per second is a light queue for the 5/05's unscheduled window; the proof is the measurement, not that sentence. If the baseline scan-to-scan time is 12 ms with Wonderware alone and 12.5 ms with both clients, the change is:

(12.5 − 12) ÷ 12 = 4.2%,

well inside the 10% band we accept for this change. For the client side of the same comparison, the method in measure PLC to SCADA command response time end to end gives you response numbers before and after, and a watched Wonderware tag should keep its normal update period. Timestamp check: an alarm setting just after a poll is caught at the next one, 2.1 seconds late at worst with a 100 ms round trip measured on that network, and about 1 second late on average. Decision for this example: keep the rate, change nothing, and repeat the comparison at the final cut-over when the remaining controllers join.

Check S:2/15 before changing anything #

Status bit S:2/15 is the communication-servicing select in the SLC status file. When it is set, the processor services at most one communication request per scan; two clients then alternate single turns, and both slow down the moment the second one connects. Clear, the operating system services the whole pending queue between scans, which is the normal condition and the one you want.

Read the bit online before the new server goes live. If you find it set, someone limited servicing on purpose at some point, often to protect scan time, and that setting is now the reason a second client would hurt Wonderware. Clear it, then repeat the baseline comparison. Do this before touching scan rates or ladder logic; it is a one-bit change and it explains most reports of a new SCADA breaking an old one on these processors.

Add SVC rungs only when the measurement says so #

SVC is the service-communications instruction: when its rung is true, the processor pauses program execution and services pending requests on the spot. Gate each SVC rung so it fires only when work is waiting, with XIC S:2/5, the incoming command request pending bit, or XIC S:2/7, the outgoing command request pending bit. Ungated, the instruction adds its overhead to every scan whether or not anyone is asking.

Place one rung roughly mid-program and one near the end as a trial, then repeat the same two measurements. The cost is real: every execution lengthens that scan by the servicing time, so the program trades a steadier client response for a slightly longer scan. Make the edit and the download with the process in a safe state or during a planned stop; a mid-production download to a running machine is how a communication tuning job becomes an outage. If the numbers do not improve with the rungs in, communication servicing was not the bottleneck, so look at the request layout instead.

The decision for each case #

What you find What you do
S:2/15 clear, alarm points in a few contiguous blocks, scan-to-scan time and Wonderware response within about 10% of baseline Keep the 2-second scan rate and change nothing
S:2/15 set Clear it and rerun the comparison; on most 5/05 installations this alone restores response
S:2/15 clear but the measured scan-to-scan time or Wonderware response still degrades Add gated SVC rungs, download in a safe state, repeat the measurements
Points scattered so a poll needs tens of requests, or the program cannot absorb SVC time Lengthen the Kepware scan rate to 4 or 5 seconds; latched alarms are still captured and timestamps run late by at most the new interval

One check belongs before either client connects: confirm the replacement is the only device carrying that Ethernet address, with the old processor off the network. Two devices on one address show up as intermittent and swapped values in both clients, which looks exactly like a driver fault and is not one. After that the sequence is short: verify the bit, run both clients, compare the two measurements, and keep the interval you wanted.

Questions asked

Will the new polling also slow the operator panels on that network?

The PanelView terminals share the same Ethernet channel and the same between-scan servicing window, so the mechanism is identical. A dozen panels already generate far more traffic than the logger's few requests per second, so expect no visible change. If button response degrades once the new client connects, read S:2/15 first and apply the same gated SVC rungs; the fix serves every client on the channel, not only the SCADA PCs.

What if the alarm points are scattered across many data files?

Every gap in the address layout splits the read, because the driver blocks only contiguous data. The same 120 points spread over 40 files would need 40 requests per poll, which at the planned interval is 20 requests per second, ten times the blocked case. Two fixes work: copy the alarm bits into one contiguous block in the ladder program so a single request reads them all, or lengthen the interval; the first keeps both the timestamp quality and the low request count.

Does the logger time-stamp when the alarm happened or when the server read it?

A client-side logger stamps detection, so its times run late by up to one poll interval plus the round trip. If the report needs occurrence time, latch the event in the controller with its own clock, write that time into data-table words next to the alarm bit, and let the logger read the pair. The report then shows when the alarm actually fired, independent of the scan rate.

Can Kepware and Wonderware both write to the same controller?

For this migration both only read, which is why sharing the controller is safe. If either client later writes, give every written tag one owner: a tag written by two stations races, and the loser's value silently disappears from the log. Keep command writes on one system until the cut-over, and retire the old station's write path before enabling writes from the new server.

Keep reading

  • Troubleshooting

    Fix slow SLC 5/04 DH+ communications to Ignition SCADA

    Slow updates from an SLC 5/04 to Ignition are a shared-path and servicing problem, not a scan-class problem: every request crosses a DH+ segment at 57.6K baud that two RSView HMIs and any RSLogix session also use, and the processor throttles message servicing when S:2/15 or S:33/7 is set. Clear both bits, add SVC instructions between large logic sections, then swap to a 5/05 when the bridge hardware fails.

    Industrial networks

  • Troubleshooting

    Fix slow Citect polling to a Quantum hot standby pair

    Set the Modnet driver to RetryCount 3 and RetryDelay 1000 ms instead of the defaults, verify the hot standby IP address swap in the CPU configuration, and run the current Citect service pack with matched NOE firmware. The documented swap window is short enough to consume a default-timed retry, and field reports show update times 50 to 100 percent longer until the driver, firmware or module is corrected.

    SCADA and data logging

  • Troubleshooting

    Troubleshooting a SCADA PC station that reaches only one S7-1500

    When every S7-1500 answers ping but SCADA updates only one PLC, ping has proven nothing about the S7 link. Work the checks in order: four distinct MAC addresses on the PLC subnet, the S7ONLINE access point bound to the connected network card, one HMI connection per CPU, and every tag's Connection pointing at its own CPU's connection.

    SCADA and data logging