Tiza Group

Home / Guides / Testing, commissioning and faults

Control Command Takes Several Seconds to Reach the Device

Slow command from the control center: how to measure where the seconds go, which queues and timers to check and how to fix them. We configure it remotely.

By Shadai García, CEO and protection engineer at Tiza Group.

Short answer

If the order ends up executing, only late, the problem is time and not rejection: seconds pile up in queues, polling cycles, retransmissions, select steps or waits inside the device. Time-stamp every hop of the order and attack only the segment that consumes the most.

Symptom

The operator sends an open, close or tap change command and the device responds, but several seconds later. The order is neither rejected nor lost: it arrives late. Sometimes the delay is always similar; other times the same command goes through almost at once on a quiet morning and takes much longer during a disturbance, precisely when it matters most. Seeing no change, operators often send it again.

Separate two delays that look the same on screen: the command delay (the order is slow to arrive and act) and the return delay (the equipment operated in time, but the status updates late). The confirmation and termination sequence is described in direct and select-before-operate commands in IEC 101 and 104. If no response arrives at all and the command expires, you have a different case: command with no confirmation.

Likely causes, from most to least likely

CauseHow to recognize itWhat confirms itWhat rules it out
Order or response queued behind dataDelay grows during event floods or after a reconnectionHeavy upstream traffic just before the responseSame delay with an idle link
Waiting for its polling turn on a shared channelSerial or radio links with several stations or devicesThe order waits for the cycle or pending transaction to endDedicated channel with no cyclic polling
A neighbor on the same channel not answeringDelay began when a device went out of serviceRepeated timeouts and retries in the port logAll devices answer on the first attempt
Retransmissions on a lossy linkIrregular delays of very different lengthRepeated frames in the capture or link error countersNo repeats and counters not moving
Processing in the gateway or RTUThe order goes in quickly and comes out lateTime difference between input and output capturesIt leaves almost as soon as it enters
Select plus operate across several hopsStable delay, proportional to link delayTwo full round trips before actionThe command is direct and still slow
Wait inside the deviceThe IED receives early and closes its output lateIED log: synchrocheck, interlock or logic delayOutput acts as soon as the order arrives
Slow mechanism or control circuitOutput acts early and position changes lateOutput time against position contact timesPosition changes in the usual time for that equipment
Slow status returnOn site the equipment had already operatedEvent time stamp much earlier than its arrival at the centerTime stamp matches what the operator sees

How to diagnose it

1. Check the clocks. Center, gateway and IED must be synchronized to the same reference. Otherwise differences between logs mean nothing. If there is an offset, fix it first.

2. Build a timeline with six marks. Sent at the center, into the gateway, out of the gateway, received at the IED, output energized and position changed. On the way back, add the status arriving at the center. Subtracting consecutive marks shows where the seconds go.

3. Collect the marks without operating when possible. Event logs from earlier commands are often enough. Passive captures at the center port and on both sides of the gateway fill the gaps.

4. Compare idle and loaded conditions. Note the delay of several orders under light traffic and of those issued during many events. If it is slow only under traffic, look for queues, windows and priorities.

5. On IEC 104, look at acknowledgements and the window. The sender may have at most k unacknowledged information frames (12 by default); the receiver usually acknowledges after w frames (8 by default) or when t2 expires (10 s). With the window full, nothing new leaves until an acknowledgement arrives. See IEC 104 timers and k and w parameters.

6. On 104, look for TCP retransmissions. When a segment is lost, TCP waits for its retransmission timer and doubles it on each new attempt (RFC 6298). Two or three losses in a row already add up to several seconds with no error logged by the telecontrol protocol.

7. On serial links, work out the cycle. In unbalanced transmission, a station talks only when the master polls it. Confirmation and return status wait for their turn, and a silent station consumes its timeout and retries on every round.

8. Downstream of the gateway, check the next protocol. On a shared serial port the order may wait for a read to finish. With DNP3 or IEC 61850, check when the request left and when the IED answered.

9. Look inside the IED. A close that depends on synchrocheck may wait until the condition is met or its time window expires. There may also be programmed delays in the logic or the output.

Field checklist

  • Are center, gateway and IED clocks synchronized?
  • Is the delay on the command or only on the returned status?
  • Is it fixed or variable? Worse during events or interrogations?
  • One device, one port, one substation or all of them?
  • Is any device on the same channel not answering?
  • Are error and retransmission counters increasing?
  • How long between gateway input and output?
  • How long between the order reaching the IED and its output?
  • What changed before the first complaint: new signals, link, firmware, logic?

Illustrative example

Generic situation with made-up figures. A gateway serves six devices on one serial port and polls them in order. Each normal response takes 0.2 s. Two devices go out of service; for each, the gateway waits 1 s and retries twice, that is, three attempts of 1 s. The cycle was 6 × 0.2 = 1.2 s. Now it is 4 × 0.2 + 2 × 3 × 1 = 6.8 s. If the gateway gives commands no priority and the order arrives at the start of the cycle, it may wait nearly 6.8 s before leaving. The fix is not a longer timeout at the center, but removing retired devices from polling, adjusting retries and giving the order priority.

What to do

  • Data queues: add deadbands to noisy measurements, remove chattering signals and check the priority of command responses in the gateway, if offered.
  • Frequent interrogations: space them out and stagger them between stations.
  • Shared channel: remove nonexistent devices from the configuration, set timeout and retries to what the link needs, and move critical controls to another port.
  • Losses: fix the medium (radio signal, wiring, port) before touching timers. See DNP3 or IEC 104 link that keeps dropping.
  • Window and acknowledgements: set k and w consistently at both ends, with a test before and after.
  • Overloaded gateway: measure its load and reduce unnecessary logic or conversions on the command path.
  • Select-before-operate: make sure the select timeout covers the real round trip, so a slow order does not end up rejected as well.
  • Device or mechanism: a logic or synchrocheck wait is reviewed with protection and operations criteria; a slow mechanism needs maintenance and timing measurements by qualified staff.

Reading logs, counters and passive captures does not act on the process. Sending test orders does: it needs operations authorization, equipment in a safe condition and someone confirming its position.

What not to do

  • Do not resend while the previous order is still on its way: you may get a command executed twice, especially harmful for tap steps and setpoints.
  • Do not raise every timeout to hide the delay: an old order acting late is a risk for anyone in the bay.
  • Do not work on primary equipment trusting the screen: if indication arrives late, verify position on site following the procedure.
  • Do not remove select, interlocks or synchrocheck to gain seconds.
  • Do not change several parameters at once: you will not know which one had the effect.

When to call us

Call us if you have logs and still cannot locate the slow segment, if the delay spans several protocols, or if center, gateway and IED must be adjusted together. We review captures, counters and configuration and leave the times measured before and after. We configure it remotely: request a command timing review.

Common problems

The whole SCADA response lags by several seconds

If not only commands but also displays, alarms and measurements react seconds late, first measure whether the delay is in the data or in the presentation. Cause an authorized change and record four times, with synchronized clocks: the event at the device, arrival at the server, entry in the database and change on the operator station.

Slow sectionHow to recognize itWhat to do
Field to serverThe frame arrives late in the capture on the center sideReview polling, queues and channel
Server processingArrives on time and enters the database late; load, memory or disk at the limitReduce unnecessary calculations and logging
Historian or heavy queriesSlowness coincides with long reports or trendsSchedule them outside operation or separate them
Operator stationOne station is slow and another is not, with the same dataLighten the display and check its refresh and network
Names or a server address that does not answerRepeated pauses of similar length when opening displays or connectingFix name resolution and references to removed devices

Illustrative example. The change happens at t = 0, reaches the server at 0.8 s, is in the database at 1.0 s and appears on screen at 6.0 s. The link adds under 1 s and the presentation 5 s: changing the channel would solve nothing; look at display refresh and load.

How to close the case. Repeat the measurement with the system under normal load and during an event avalanche simulated in a test environment, and record the reference time of each section for later comparison. Do not restart the active server without confirming the standby one is healthy.

Switching commands from the station level respond late

Here the order does not come from the control center but from the substation HMI or the bay controller, and the equipment is still slow. The telecontrol link is out of the picture: look at the local route, from the operator station to the IED and from its output to the primary equipment.

Local causeHow to confirm itWhat to do
Loaded HMI or station serverThe order reaches the IED well after the operator confirmsMeasure CPU and memory load; lighten screens and calculations
Lost association with the IED, rebuilt when sendingThe server log shows a reconnection just before the orderFind why the session drops: network, addresses, client limit
Interlock waiting for data from other baysThe IED receives the order and releases late; data from another bay missing or with invalid qualityCheck publication and subscription of those signals
Synchrocheck or timer in the logicThe wait appears only on closing or only on some equipmentReview the condition and its time limit with protection and operations

Compare the same switching operation from three points, if the scheme allows it and with authorization: station HMI, bay controller and control center. If it is slow from all three, look at the IED, its logic or the equipment; if only from the station, look at the server, the operator station or its network.

Illustrative example. The operator confirms at t = 0, the IED records the order at 0.3 s, the output operates at 4.3 s and the position changes at 4.4 s. Of the 4.4 s, 4.0 s are spent inside the IED: changing the HMI or the network will not reduce them. Find which logic condition was waiting.

Do not switch the control to test mode or defeat an interlock on equipment in service to see whether it answers sooner.

References

  • IEC 60870-5-101, Telecontrol equipment and systems – Part 5-101: Transmission protocols – Companion standard for basic telecontrol tasks.
  • IEC 60870-5-104, Telecontrol equipment and systems – Part 5-104: Transmission protocols – Network access for IEC 60870-5-101 using standard transport profiles.
  • IEEE 1815, IEEE Standard for Electric Power Systems Communications – Distributed Network Protocol (DNP3).
  • IETF RFC 6298, Computing TCP’s Retransmission Timer.

Frequently asked questions

How do I know whether the delay is in communications or in the device?

Compare the time the device received the order with the time its output and the position changed. If the order arrived quickly and the operation came out late, the time is lost in the device. If the order arrived late, it is lost on the way.

Why is it slow only sometimes?

Because it usually depends on something variable: a burst of events, a general interrogation that has not finished, a neighboring device not answering on the same channel, or lost packets that force retransmission.

Is switching from select-before-operate to direct operate a solution?

It saves one exchange but removes a check. That is not a communications decision: whoever answers for operations makes it, and it is almost always better to fix the slow segment first.

WhatsApp