Tiza Group

Home / Guides / Testing, commissioning and faults

SCADA Command Executed Twice: Causes

What to check when a SCADA command runs twice: retries, two masters, gateway and local logic, with test steps. We configure it remotely.

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

Short answer

A command that executes twice rarely originates in the field device. Almost always the order was sent twice: by a retry from the master or the operator, by two active masters, by a gateway that resends, or because two logics (SCADA and local automation) issue the same order. Separate them by counting how many orders the device received and from which source, using the device event log and a traffic capture.

Symptom

The operator sends an order once and the device carries it out twice. The clearest case is a tap changer that raises two steps instead of one; it also happens with a pulse command that toggles a state twice, or with the device log showing two orders in a row a few seconds apart. With breaker commands, a second close order on an already closed breaker usually goes unnoticed, so the symptom is more visible on commands that cannot be repeated without effect.

To understand how a command is sent in IEC 101 and 104, with its select, execute and termination phases, see Commands in IEC 101 and 104: direct or select-before-operate. This guide starts from the opposite problem: the order has already gone out twice, and you need to find where it was duplicated.

The golden rule is simple: count the orders at the device that executes. If the device received two, the problem is upstream of it. If it received one and executed it twice, the problem is in its internal logic.

Likely causes, from most to least likely

CauseHow to recognize itWhat confirms or rules it out
Retry by the operator or the master for lack of timely confirmationThe second order arrives a few seconds after the first; the confirmation or the return status took longer than the timeoutTime of the two orders against the master timeout and the confirmation time
Two active masters (two servers, two centers, a SCADA and a test tool)Each order appears with a different source in the device logSource and address of each order; switch one master off
Gateway that resends or duplicatesThe gateway receives one order and sends two; or each order is mapped to two pointsTraffic capture on both sides of the gateway
Command mapped to two points or twice in the databaseA single screen command triggers two orders with different addressesReview the tag database and the gateway map for that command
Local logic that repeats the orderThe device receives one and issues a second, from an automation or a badly built interlockInternal event log and device logic
SCADA sequence or script that repeats the orderThe second order coincides with a condition the script re-evaluatesSequence log and automatic orders
Repetition by the transport layerFrames repeated by retransmission that the device does not filterPacket capture with TCP or serial retransmissions
Screen or button with a double eventDouble click, repeated key or duplicated touch gestureOperator action log in the SCADA

How to diagnose it

1. Count at the device. In the event log of the device that executes, with the same time as the SCADA, count how many orders it received and from which source, if the device records it. This is the cheapest step and splits the problem in two halves.

2. Put the times on a timeline. With the order times in the SCADA, in the gateway and in the device, see whether the second order follows the first by a time comparable to the confirmation timeout. If the delay matches that time, the cause is a retry because a confirmation was slow.

3. Check the source of each order. If the device records the source or the sender address, compare the two. Two different sources indicate two masters; the same source indicates a retry, the gateway or the mapping.

4. Capture the traffic. With a mirror port, capture the traffic between the SCADA and the gateway, and between the gateway and the device. In IEC 104, observe how many activations of the same command appear on each hop, with which qualifier (select or execute) and which confirmations come back. To decode the frames, the IEC 104 APDU decoder helps read the content without copying it by hand.

5. Review the tag database and the gateway map. Look for duplicated commands: the same point with two output addresses, or two screen points pointing to the same command.

6. Rule out local logic. If the device receives a single order and executes twice, review its automations, its interlocks and the functions that also issue the same command.

7. Test in a controlled way. With the device in a safe condition (no load, out of service or in test mode), send a command and count its execution. Repeat from each master separately. The test that reveals the duplicate is the one done one at a time.

What to do

  • Retry because of slow confirmation: lengthen the master timeout above the real execution time of the device, or speed up the confirmation; and train the operator to wait for the return status before repeating. The maximum time and the confirmation of each phase are described in the parent guide.
  • Two masters: leave a single master active for commands. In a redundant setup, the standby must receive the data but not send orders while the primary is active.
  • Gateway: correct the map that duplicates and check that forwarding happens only once. A change in the gateway is tested command by command.
  • Duplicated mapping: remove the extra point from the database and document the change.
  • Local logic: fix it with whoever designed it and test again. A logic change in a protection or control device requires its validation.
  • Non-repeatable commands: where possible, use select-before-operate mode, an interlock that blocks a second order until the return status arrives, or a command that orders the final position instead of a step.

Field checklist

  • How many orders did the device receive, according to its log, and at what times?
  • Do they have the same source or two different sources?
  • Does the interval between them resemble the master timeout?
  • Is there only one master with command permission active?
  • Does the gateway send a single order for each order received?
  • Is there a single command point per function in the tag database?
  • Does the device local logic issue additional orders?
  • Does the SCADA log show one or two operator actions?

Illustrative example

A generic transformer with on-load regulation receives the order “raise one tap” from the SCADA. The operator sees that the confirmation takes longer than usual and presses again after 5 s. The master timeout is 5 s and the tap changer takes about 8 s to complete the step. The result: two orders, two steps, and a voltage that rises twice as much as planned. The device log shows two orders from the same source 5 s apart. The fix was to show the tap changer position as the return status, block a new order while the tap changer is moving and set the timeout above the tap changer travel time. To see why a tap changer can move without a clear order, see the guide on the tap changer that moves without an operator order.

What not to do

  • Do not repeat the order “to check” with the equipment in service: if the problem is a duplicate, repeating it reproduces it on the real process.
  • Do not connect a test tool in master mode to equipment in service while the SCADA is active.
  • Do not disable the device interlocks to avoid the rejection of the second order.
  • Do not raise the timeout without limit: a long timeout hides real execution failures.
  • Do not operate yard equipment or open breaker and disconnector commands without the safety conditions and the authorization of the installation operator.

When to call us

Call us if the device receives a single order and executes it twice, if duplicated commands appear in several substations, or if the change requires modifying the gateway, the SCADA and the device logic in a coordinated way. We review the logs, the traffic and the command map with you. We configure it remotely.

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).

Frequently asked questions

Why does a SCADA command execute twice?

Because the order reached the device twice. The most common causes are a retry for lack of timely confirmation, two control centers or two SCADA servers active at the same time, a gateway that resends, and local logic that repeats the order. Confirm it by counting the orders received in the device log.

Which commands are most sensitive to running twice?

Those that are not idempotent: raising or lowering a tap on a tap changer, starting a cycle, or a pulse command that toggles a state. A close order to a breaker that is already closed is usually rejected or has no effect, but a raise-tap issued twice produces two steps.

Does select-before-operate mode prevent the double command?

It reduces the risk, because execution is only accepted after a valid selection and within the allowed time. It does not eliminate it if the device accepts a second selection followed by another execution, or if two sources select and execute separately.

WhatsApp