IEC 104 commands & Select-Before-Operate (SBO) to Modbus
Mapping C_SC_NA_1 (45), C_DC_NA_1 (46), C_SE_NB_1 (49) and C_SE_NC_1 (50) float setpoints to Modbus coils and holding registers
Quick answer: IEC 60870-5-104 commands use COT 6 (Activation) and are confirmed with COT 7 (Activation Confirmation). Single and double commands (types 45/46) write to Modbus coils (FC05) or holding register bits, while scaled and short-float set-points (types 48/49/50) write to holding registers via FC06 or FC16 in Direct Execute or Select-Before-Operate (SBO) mode.
Control-Direction Type IDs in IEC 60870-5-104 (Types 45–50 & 58–63)
When a SCADA control center sends switching commands or analog setpoints to field equipment through an IEC 104 gateway, it uses control-direction ASDUs with Cause of Transmission COT 6 (Activation). Max IEC Gateway translates those commands directly into Modbus writes:
| IEC Type ID | Time-Tagged Variant | Control Data Type | Modbus Write Action |
|---|---|---|---|
C_SC_NA_1 (45) | C_SC_TA_1 (58) | Single Command (OFF = 0, ON = 1) | FC05 Write Single Coil (0x0000 or 0xFF00) or mapped Holding Register bit |
C_DC_NA_1 (46) | C_DC_TA_1 (59) | Double Command (OFF = 1, ON = 2) | FC05 Write Single Coil or 2-bit Holding Register command word |
C_SE_NA_1 (48) | C_SE_TA_1 (61) | Set-Point Command, Normalized (-1.0 .. +1.0) | Inverse-scaled and written via FC06 or FC16 to Holding Register(s) |
C_SE_NB_1 (49) | C_SE_TB_1 (62) | Set-Point Command, Scaled Integer (INT16) | FC06 Write Single Holding Register |
C_SE_NC_1 (50) | C_SE_TC_1 (63) | Set-Point Command, IEEE-754 Short Float (FLOAT32) | FC16 Write Multiple Holding Registers (2 registers in configured byte order ABCD/CDAB/BADC/DCBA) |
Direct Execute vs. Select-Before-Operate (SBO)
Every IEC 104 command qualifier byte (QOC / SCO / DCO / QOS) carries a S/E (Select/Execute) bit in bit 7:
- Direct Execute (
S/E = 0): The SCADA master sends a single command withCOT = 6 (act)andS/E = 0. The gateway immediately executes the Modbus write (FC05/FC06/FC16), replies withCOT = 7 (actcon)positive confirmation once the Modbus slave acknowledges the write, and optionally sendsCOT = 10 (actterm)termination. - Select-Before-Operate (SBO,
S/E = 1thenS/E = 0): Required for critical circuit-breaker and substation switching:- Step 1 — Select: Master sends command with
S/E = 1 (Select)andCOT = 6. The gateway verifies the point exists, is writable, and the downstream Modbus device is online, arms a per-IOA select timer (configurable1–60 s, default10 s), and returnsCOT = 7 (actcon)without writing to Modbus yet. - Step 2 — Execute: Master sends matching command with
S/E = 0 (Execute)andCOT = 6before the select timer expires. The gateway performs the Modbus write and responds withCOT = 7 (actcon)+ optionalCOT = 10 (actterm). - Cancel / Deactivation: If the operator cancels the command, the master sends
COT = 8 (deact); the gateway clears the armed selection and replies withCOT = 9 (deactcon).
- Step 1 — Select: Master sends command with
How Floating-Point Setpoints (C_SE_NC_1, Type 50) Map to Modbus
When a SCADA operator writes a floating-point setpoint such as 400.0 kW active power limit using C_SE_NC_1 (50) or C_SE_TC_1 (63), Max IEC Gateway applies the inverse of the point's scale/offset (Raw = (IEC_Value - Offset) / Scale), encodes the value into the device's configured data type (such as FLOAT32 ABCD, FLOAT32 CDAB, or scaled INT16/INT32), and writes the registers atomically via FC16.
Frequently asked questions
Why does my IEC 104 command return a negative confirmation (P/N bit = 1, COT 7)?
A negative confirmation (P/N = 1) is returned when (1) the target IOA is not mapped to a writable Coil or Holding Register, (2) the point is configured for Select-Before-Operate (SBO) and the master sent Execute without a preceding Select within the SBO timeout, or (3) the downstream Modbus device rejected the write or timed out.
What is COT 10 (Activation Termination) in IEC 104?
After the outstation confirms command activation with COT 7 (actcon), COT 10 (actterm) signals that the command execution sequence has finished. Max IEC Gateway allows enabling or disabling ACT_TERM per your SCADA master's profile.
Test IEC 104 commands & telemetry live with Max IEC Gateway
Download the free 30-day trial for Windows 10/11 or Linux x64 and inspect every Modbus poll and IEC 104 ASDU in the live web traffic monitor.
Download Free Trial All IEC 104 Guides