Skip to content

IEC 60870-5-104

IEC 60870-5-104 extends the IEC 101 protocol onto a TCP/IP network layer. It provides a TCP/IP interface for LAN connections and router support for WAN links. Its application layer stays compatible with IEC 101 while supporting several data synchronisation mechanisms.

It is widely used in electricity distribution, power generation, substations and SCADA control centres. inSCADA supports IEC 60870-5-104 in both the Client (Master) and the Server (Slave) role.

  • Master (controlling station): the side that polls slave stations to collect data and sends control commands
  • Slave (controlled station): the side that holds the field data, answers the master’s polls and sends spontaneous events

In IEC 104 communication data travels as ASDUs. Each one carries:

  • Type Identification (TI): identifies the data type
  • Cause of Transmission (COT): states why it was sent (periodic, spontaneous, a poll response, and so on)
  • Common Address (CASDU): the station address
  • Information Object Address (IOA): the data point address
Frame typeASDUDescription
Single Point InformationM_SP_NA / M_SP_TBA 1-bit digital signal (with or without a timestamp)
Double Point InformationM_DP_NA / M_DP_TBA 2-bit combined signal — breaker or isolator position
Measured Value, NormalizedM_ME_NAA normalised analogue value (±32767 range)
Measured Value, ScaledM_ME_NBA scaled analogue value
Measured Value, Short FloatM_ME_NC / M_ME_TFAn IEEE 754 float analogue value

Communication parameters (t1, t2, t3, k, w)

Section titled “Communication parameters (t1, t2, t3, k, w)”

An IEC 104 connection is configured with the protocol’s own timing parameters:

ParameterDescriptionDefault
t1APDU send timeout — how long a response is waited for15 s
t2S-format APDU timeout — how long an acknowledgement is waited for10 s
t3Test frame timeout — the link liveness check20 s
kThe maximum number of unacknowledged I-frames12
wThe acknowledgement window — send an S-frame after w I-frames8

IEC 104 addressing uses configurable field lengths:

FieldLengthDescription
COT Field Length1–2 bytesThe Cause of Transmission field
Common Address Field Length1–2 bytesThe CASDU (station address) field
IOA Field Length1–3 bytesThe Information Object Address field

A slave station can send a spontaneous event to the master when a value changes, without waiting to be polled. That is what makes a critical change of state known immediately.

The master periodically polls every data point to confirm the integrity of its database. The interval of that scan is configurable.

Connection (IP, port, t1/t2/t3/k/w, field lengths) Device (Common Address) / Frame (ASDU type) / Variable (IOA address) Connection (IP, port, t1/t2/t3/k/w, field lengths) Device (Common Address) Frame (ASDU type) Variable (IOA address)