Skip to main content

IEC 60870-5-104

Device LAB Ethernet

IEC 60870-5-104 via the Site Runtime iec104-standard (APCI/ASDU GI).

PropertyValue
Console protocol idiec-60870-5-104
Site Runtime pluginiec104-standard
TransportEthernet (TCP/UDP)
Readyes
Writeno
Subscribe—
Device familiesRTU, Gateway
Default group interval1000 ms
MaturityLAB: runs end to end against simulators; known gaps are listed below
LAB protocol

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​

  1. Open Connectivity → Devices and click Add device.
  2. Pick IEC 60870-5-104 in the protocol list.
  3. Choose the Site Runtime that can reach the device, fill the connection parameters below and click Create & connect.
  4. 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.

ParameterTypeDefaultRange / optionsRequiredDescription
Device IP Address
host
string—max 30 charsyesTarget device ip
Device Port
port
int24041 – 65535yesTarget device port
Common Address
ca
int11 – 65535yesCommon Address, ASDU address
Station Interrogation Interval
interval
int601 – 3600yesThe interval of sending station interrogation(s)
Sync Time Interval
sync_time_interval
int00 – 3600noThe interval of sending sync time (C_CS_NA_1).
Remote Pulse Interval
remote_pulse_interval
int00 – 3600noThe interval of sending remote pulse (C_CI_NA_1).
T0
t0
int301 – 3600yesT0 timeout, the timeout of establishing TCP connection, unit second
T1
t1
int151 – 3600yesT1 timeout, the timeout of waiting for response, unit second
T2
t2
int101 – 3600yesIf no I frame is received within T2 time, send S frame, unit second
T3
t3
int201 – 3600yesIf no I frame is received within T3 time, send test frame, unit second
W
w
int81 – 128yesIf W I frames are received, send S frame
Timeout
timeout
int51 – 30yes
Active
active
booltrue—yesActive 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 typesAddress 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:

AddressTypeMeaning
1001BIT or BOOLSingle point, IOA 1001
1002BITDouble point, IOA 1002
2001FLOATMeasured value, short float, IOA 2001
2002INT16Measured value, scaled, IOA 2002
3001UINT32Integrated total (counter), IOA 3001
4001INT16Measured 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​

SettingDefaultNote
Device IP Address, Device Portdevice IP, 2404
Common Address11 to 65535. The station address.
Station Interrogation Interval60Seconds (1 to 3600). The runtime sends a general interrogation after STARTDT and then at this interval.
Sync Time Interval, Remote Pulse Interval00 is off.
T0, T1, T2, T330, 15, 10, 20Seconds. Standard IEC timers.
W8Receive window (1 to 128).
Timeout5Seconds (1 to 30). Time to wait for STARTDT confirmation.
ActiveTrueStart 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.

LAB protocol

IEC 60870-5-104 is LAB in this version. Validate it against your RTU before production use. Writes are disabled.

Common errors​

SymptomCauseFix
Connects, no dataSTARTDT not confirmed, wrong common address, Active off.Check Common Address and Active.
Disconnects every 15 sT1 elapses with no answer.Check the network and the RTU's T1/T3.
Tag badThe IOA is not in the interrogation or has another ASDU type.Check the point list of the RTU.
Disconnect on unknown ASDUThe RTU sends a type the runtime does not decode.Remove that type from the RTU's list if possible.
Write refusedWrites 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).