IEC 60870-5-104
IEC 60870-5-104 (IEC 104) is the telecontrol protocol of power grids, water utilities, gas and district heating. Scadora works with it in both directions:
- Client (controlling station). Scadora connects to an RTU, substation controller, PLC, gateway or another SCADA, runs a general interrogation and receives changes as spontaneous data. Writing a tag sends a command or a setpoint.
- Server (controlled station). A control center, a higher-level system or another SCADA connects to Scadora and receives the values of any project tags: from S7, Modbus, OPC, MQTT and internal tags. Commands from the control center can be allowed.
The implementation is Scadora’s own, with no third-party libraries. Data goes over plain TCP/IP without encryption, as in most telecontrol networks. See Security for protection.
Quick start: client
Section titled “Quick start: client”- In the editor: Connection → IEC 60870-5-104 — client.
- Address is the station’s IP, Port is 2404, Common address of ASDU is the station address (CA) from its signal list.
- Create tags with this connection. The tag address is the information object address (IOA):
2001for a measurement,1001for a status signal. UseFloat32for measurements andBoolfor signals. - Start the project. After connecting, Scadora runs a general interrogation, the tags get their values, and from then on the station sends changes by itself.
Quick start: server
Section titled “Quick start: server”- Connection → IEC 60870-5-104 — server. Port 2404, common address of ASDU as the control center expects.
- Create tags with this connection: they are the station’s points. The address is an IOA and a source tag:
2001:ME_NC=Tank1.Levelsends the level from tagTank1.Levelas a floating-point measurement. - Start the project and connect the control center to the IP of the computer running the Scadora server, port 2404. The port is opened in Windows Firewall automatically.
Client
Section titled “Client”Settings
Section titled “Settings”| Setting | Default | Meaning |
|---|---|---|
| Address | — | Name or IP address of the station |
| Port | 2404 | TCP port of the station |
| Common address of ASDU | 1 | Station address (CA). Objects of another station on the same connection go in the tag address: 2/1001 |
| Originator address | 0 | Originator address in the cause of transmission |
| Timeout, ms | 10000 | Wait for connection (t0) and command confirmation |
| General interrogation, s | 0 | How often to repeat the general interrogation. 0 — only after connecting |
| Counter interrogation, s | 0 | How often to request integrated totals (C_CI). 0 — never |
| Synchronize clock | off | After connecting, send this computer’s time to the station (C_CS) |
| Select before operate | off | Commands in two steps: select, confirmation, execute |
| Commands with time tag | off | Commands of the CP56Time2a types (C_SC_TA_1 and others) if the station requires them |
| Time in UTC | off | Station and command time tags in UTC. Off — local time of this computer |
| t1, t2, t3, k, w | 15, 10, 20, 12, 8 | Link layer parameters as in the standard |
The connection’s poll cycle sets how often received values are copied to the tags. The station sends them by itself, so 200–1000 ms is enough.
Tag address
Section titled “Tag address”[common address/]IOA[:command][>command IOA]| Address | Meaning |
|---|---|
1001 |
Object 1001 of the station with the connection’s common address |
2/1001 |
Object 1001 of the station with common address 2 |
4001:DC |
Value from 4001, writes as a double command |
1001>5001 |
Value from 1001, commands go to 5001 |
6001:SE_NC |
Floating-point setpoint |
You do not set the value type: the station sends it in the ASDU type. The address panel (F4 in an address cell) builds the address from fields and shows examples.

What happens after connecting
Section titled “What happens after connecting”- TCP connection and STARTDT.
- Clock synchronization, if enabled.
- General interrogation of the station (C_IC_NA_1, QOI 20). The station replies with all values.
- Counter interrogation (C_CI_NA_1), if a period is set.
- From then on the station sends changes by itself (spontaneous data). Interrogations repeat at the set periods.
When the link breaks, tags get “no connection”, Scadora reconnects and runs a general interrogation again. Values from the previous connection are not shown as valid.
Received types
Section titled “Received types”| Information | ASDU types | Value in the tag |
|---|---|---|
| Single point | M_SP_NA_1, M_SP_TA_1, M_SP_TB_1 | Bool or 0/1 |
| Double point | M_DP_NA_1, M_DP_TA_1, M_DP_TB_1 | Bool: 2 — true, 1 — false, 0 and 3 — Bad. In an integer tag — 0…3 |
| Step position | M_ST_NA_1, M_ST_TA_1, M_ST_TB_1 | −64…63 |
| 32-bit bitstring | M_BO_NA_1, M_BO_TA_1, M_BO_TB_1 | Unsigned integer |
| Normalized | M_ME_NA_1, M_ME_TA_1, M_ME_TD_1, M_ME_ND_1 | −1…+1. Engineering units through tag scaling |
| Scaled | M_ME_NB_1, M_ME_TB_1, M_ME_TE_1 | −32768…32767 |
| Floating point | M_ME_NC_1, M_ME_TC_1, M_ME_TF_1 | Number |
| Integrated total | M_IT_NA_1, M_IT_TA_1, M_IT_TB_1 | Integer (counter) |
Quality. The IV bit (invalid) makes the tag Bad. NT, SB, BL or OV mean there is a value, but its quality is Uncertain. An object the station has not sent yet is “no data”.
Time. The tag gets the station’s time tag (CP56Time2a or CP24Time2a), or the receive time if there is none. CP24Time2a carries only minutes and milliseconds, so Scadora takes the hour and date from the computer clock.
Commands
Section titled “Commands”Writing a tag sends a command to the tag’s IOA or to the IOA after >. The command type follows the tag type or the address:
| Tag type or type in the address | Command | Value |
|---|---|---|
Bool, :SC |
C_SC_NA_1 | true / false |
:DC |
C_DC_NA_1 | true — on (2), false — off (1) |
:RC |
C_RC_NA_1 | true — higher (2), false — lower (1) |
Byte, Int16, UInt16, :SE_NB |
C_SE_NB_1 | −32768…32767 |
other numbers, :SE_NC |
C_SE_NC_1 | Floating-point number |
:SE_NA |
C_SE_NA_1 | −1…+1 |
:BO |
C_BO_NA_1 | 32 bits |
Scadora waits for the confirmation (ActCon) for no longer than the connection timeout. A negative confirmation or none at all is a write error: the operator sees that the command failed, and the event goes to the log. With Select before operate, the select goes first and the execute follows after a positive reply.
Server
Section titled “Server”Settings
Section titled “Settings”| Setting | Default | Meaning |
|---|---|---|
| Port | 2404 | TCP port on which Scadora waits for the control center |
| Network interface | 0.0.0.0 | IP of the network card; 0.0.0.0 — all |
| Common address of ASDU | 1 | Address of this station. Requests to another address get a negative response |
| Allowed IPs | empty | Control center addresses, comma-separated; empty — any |
| Maximum connections | 4 | How many control centers at once: main and backup channels, several centers |
| Commands from the control center | off | Accept commands and setpoints. Only for tags with write access “Operator” |
| Spontaneous data with time tag | on | Changes use CP56Time2a types. Off — without time |
| Time in UTC | off | Time tags in UTC. Off — local time of this computer |
| No connection after, s | 0 | If no control center is connected for longer, tags get “no connection” and the connection alarm fires. 0 — do not check |
| t1, t2, t3, k, w | 15, 10, 20, 12, 8 | Link layer parameters as in the standard |
Station points
Section titled “Station points”Each server tag is a point the control center sees:
IOA[:type][>command IOA][=source tag]| Address | Meaning |
|---|---|
1001=Pump1.Run |
Pump state from tag Pump1.Run as a single point |
2001:ME_NC=Tank1.Level |
Level as a floating-point measurement |
3001:DP=Breaker1.On |
Circuit breaker as a double point: true — 2, false — 1 |
4001:IT=Meter1.Energy |
Energy meter as an integrated total |
5001 |
Own point: its value is written by scripts, the operator or the control center |

The default type follows the tag type: Bool — single point (SP), Byte, SByte, Int16, UInt16 — scaled (ME_NB), other numbers — floating point (ME_NC). Other types: DP, ST, BO, ME_NA, IT. String tags cannot be sent.
With a source, the point mirrors the value, quality and time of the source tag, which can be any project tag. A control center command is written to the source.
Without a source, the point’s value is the tag’s own value: the tag’s initial value, a write from a script or a screen, or a control center command.
Quality is sent as bits: an invalid value — IV, Uncertain — NT, “no connection” of the source — IV and NT.
What the server answers
Section titled “What the server answers”| Request | Reply |
|---|---|
| General interrogation (C_IC_NA_1) | Confirmation, all points except counters in types without time (cause 20), termination |
| Counter interrogation (C_CI_NA_1) | Confirmation, counters (cause 37), termination |
| Read (C_RD_NA_1) | The point’s value (cause 5) |
| Clock synchronization (C_CS_NA_1) | Confirmation with this computer’s time. The Scadora computer’s clock is not changed |
| Test command (C_TS_TA_1) | Confirmation |
| Commands | See below |
| Foreign common address, unknown type or IOA | Negative reply with cause 46, 44 or 47 |
Spontaneous data. A change of a point’s value or quality goes at once to every control center that has data transfer enabled (STARTDT). Each control center has a queue of up to 10,000 changes. If the channel cannot keep up, the oldest changes are dropped. After each new connection the server sends “end of initialization” (M_EI_NA_1) once.
Control center commands
Section titled “Control center commands”A command is executed only if:
- Commands from the control center is on;
- the command type matches the point type: C_SC — SP, C_DC — DP, C_RC — ST, C_SE_NA — ME_NA, C_SE_NB — ME_NB, C_SE_NC — ME_NC, C_BO — BO (time-tagged variants too);
- both the point tag and the source tag have write access “Operator”.
Otherwise the reply is a negative confirmation. A select is confirmed without action; an execute writes the value and replies with confirmation and termination. If the write fails, for example because the PLC is unreachable, the confirmation is negative. A command can come to a separate IOA: 3001:DP>3101=Breaker1.On.
Security
Section titled “Security”IEC 104 does not encrypt data and does not check who connects. Scadora does not support IEC 62351 protection yet. Therefore:
- keep telecontrol in a separate network or a VPN;
- on the server, set Allowed IPs: all other connections are closed at once;
- turn Commands from the control center on only when needed. Commands reach only tags with “Operator” access, so protect measurements and engineer setpoints with “Engineer only” or “Disabled”;
- review which points accept commands in the server’s tag table.
Testing and troubleshooting
Section titled “Testing and troubleshooting”Any IEC 104 tester and the Wireshark analyzer (filter iec60870_104) are good for checking.
| Symptom | Cause and what to do |
|---|---|
| Client: “no connection”, “connection refused” in the log | The station does not listen on the port, wrong IP, or the port is blocked by a firewall |
| Client: connects and disconnects at once | The station accepts only certain IPs or is busy with another client |
| Client: “the station did not start data transfer” | The station did not answer STARTDT. Check that it really is IEC 104 and not another protocol on the same port |
| Tag “no data” | Wrong IOA or common address, or the station does not send this object in the general interrogation |
| Tag Bad | The station sent an invalid value (IV) or a double point in the intermediate position |
| “The station rejected the command” | Wrong command type or IOA, or the station expects select before operate or time-tagged commands |
| “The station did not confirm the command” | The station does not answer commands on this IOA. Check the signal list |
| Event times are off by hours | Time in UTC differs between the station and Scadora |
| Server: the control center gets no data | It did not send STARTDT, its IP is not in Allowed IPs, or Maximum connections is reached |
| Server: all commands are rejected | Commands from the control center is off, the tag lacks “Operator” access, or the command type does not match the point type |
Limitations
Section titled “Limitations”- TCP only (IEC 104). Serial IEC 101 is not supported.
- No IEC 62351 (TLS), file transfer, parameter loading (P_ME) or reset process (C_RP).
- The client connects to one station address. A backup channel is a separate connection.
- The server has one common address per connection. Several stations mean several connections on different ports.
- String tags are not sent over IEC 104.