IEC 60870-5-104
IEC 60870-5-104 via the Site Runtime iec104-standard (APCI/ASDU GI).
| Property | Value |
|---|---|
| Console protocol id | iec-60870-5-104 |
| Site Runtime plugin | iec104-standard |
| Transport | Ethernet (TCP/UDP) |
| Read | yes |
| Write | no |
| Subscribe | — |
| Device families | RTU, Gateway |
| Default group interval | 1000 ms |
| Maturity | LAB: runs end to end against simulators; known gaps are listed below |
IEC 60870-5-104 is marked LAB: it reads real devices and simulators, but not every corner of the reference behaviour is covered yet, and writes are disabled. Validate it on your equipment before production use.
Create the device
- Open Connectivity → Devices and click Add device.
- Pick IEC 60870-5-104 in the protocol list.
- Choose the Site Runtime that can reach the device, fill the connection parameters below and click Create & connect.
- Add a group (poll interval) and tags with the address formats below. See Devices and Groups and tags for the full walk-through.
Connection parameters
Every field the Console shows for this protocol. Required fields must be set before the device can be saved.
| Parameter | Type | Default | Range / options | Required | Description |
|---|---|---|---|---|---|
Device IP Addresshost | string | — | max 30 chars | yes | Target device ip |
Device Portport | int | 2404 | 1 – 65535 | yes | Target device port |
Common Addressca | int | 1 | 1 – 65535 | yes | Common Address, ASDU address |
Station Interrogation Intervalinterval | int | 60 | 1 – 3600 | yes | The interval of sending station interrogation(s) |
Sync Time Intervalsync_time_interval | int | 0 | 0 – 3600 | no | The interval of sending sync time (C_CS_NA_1). |
Remote Pulse Intervalremote_pulse_interval | int | 0 | 0 – 3600 | no | The interval of sending remote pulse (C_CI_NA_1). |
T0t0 | int | 30 | 1 – 3600 | yes | T0 timeout, the timeout of establishing TCP connection, unit second |
T1t1 | int | 15 | 1 – 3600 | yes | T1 timeout, the timeout of waiting for response, unit second |
T2t2 | int | 10 | 1 – 3600 | yes | If no I frame is received within T2 time, send S frame, unit second |
T3t3 | int | 20 | 1 – 3600 | yes | If no I frame is received within T3 time, send test frame, unit second |
Ww | int | 8 | 1 – 128 | yes | If W I frames are received, send S frame |
Timeouttimeout | int | 5 | 1 – 30 | yes | |
Activeactive | bool | true | — | yes | Active upload |
Tag addresses and data types
Supported data types: INT8, UINT8, INT16, UINT16, INT32, UINT32, FLOAT, BIT, BOOL, STRING. The Console validates each tag address against the pattern for its data type before it is saved:
| Data types | Address pattern (regular expression) |
|---|---|
INT8 UINT8 INT16 UINT16 INT32 UINT32 FLOAT BIT BOOL | ^[0-9]+$ |
STRING | |
Addressing and notes
Address syntax and examples
The address is the information object address (IOA), a number:
| Address | Type | Meaning |
|---|---|---|
1001 | BIT or BOOL | Single point, IOA 1001 |
1002 | BIT | Double point, IOA 1002 |
2001 | FLOAT | Measured value, short float, IOA 2001 |
2002 | INT16 | Measured value, scaled, IOA 2002 |
3001 | UINT32 | Integrated total (counter), IOA 3001 |
4001 | INT16 | Measured value, normalized, IOA 4001 |
The common address (CA, the station address) is a device setting, not part of the tag address. For several stations on one connection use the IEC 60870-5-104 multi-station plugin, whose address is CA!IOA, for example 1!1001.
The Console checks the form (IOA, e.g. 1001). It does not check the type against the ASDU.
Supported data in this version: single point (with and without time tag), double point, measured values normalized, scaled and short float, and integrated totals. The runtime does not decode ASDU types 5, 7, 21, 32 and 33, and an unknown type stops the rest of that ASDU. There is no time synchronisation in the runtime. Writes are off.
Endianness
Not applicable. IEC 104 defines its byte order and the runtime follows it.
Typical settings
| Setting | Default | Note |
|---|---|---|
| Device IP Address, Device Port | device IP, 2404 | |
| Common Address | 1 | 1 to 65535. The station address. |
| Station Interrogation Interval | 60 | Seconds (1 to 3600). The runtime sends a general interrogation after STARTDT and then at this interval. |
| Sync Time Interval, Remote Pulse Interval | 0 | 0 is off. |
| T0, T1, T2, T3 | 30, 15, 10, 20 | Seconds. Standard IEC timers. |
| W | 8 | Receive window (1 to 128). |
| Timeout | 5 | Seconds (1 to 30). Time to wait for STARTDT confirmation. |
| Active | True | Start data transfer (STARTDT) on connect. |
The default poll group interval is 1000 ms. The values come from the general interrogation and from spontaneous data. The group interval does not make the RTU send data faster.
IEC 60870-5-104 is LAB in this version. Validate it against your RTU before production use. Writes are disabled.
Common errors
| Symptom | Cause | Fix |
|---|---|---|
| Connects, no data | STARTDT not confirmed, wrong common address, Active off. | Check Common Address and Active. |
| Disconnects every 15 s | T1 elapses with no answer. | Check the network and the RTU's T1/T3. |
Tag bad | The IOA is not in the interrogation or has another ASDU type. | Check the point list of the RTU. |
| Disconnect on unknown ASDU | The RTU sends a type the runtime does not decode. | Remove that type from the RTU's list if possible. |
| Write refused | Writes are off for IEC 104. | Not available in this version. |
| "expected IOA, e.g. 1001" | Address not a number. | Use digits only (multi-station: CA!IOA). |