---
title: "IEC 60870-5-104 to MQTT — ConnectMQ Edge Connector | ConnectMQ"
description: "Connect IEC 104 RTUs and substation gateways to MQTT: ConnectMQ Edge receives spontaneous data and GI responses, sends commands and publishes ISA-95 JSON."
url: "https://connectmq.com/connectmq-edge/iec-104/"
language: "en"
---

ConnectMQ Edge · IEC 60870-5-104

# Substation telecontrol data, live in the cloud

RTU and substation data usually stays locked inside a local SCADA. ConnectMQ Edge acts as the IEC 60870-5-104 controlling station, receives spontaneous data and general interrogation responses, and sends every signal to your ConnectMQ broker as clean ISA-95 JSON — ready for dashboards, alerts and the Digital Twin, right next to your plant data.

-   TCP · port 2404
-   Controlling station
-   Commands & setpoints, SBO

[Try it free](https://app.connectmq.com/signup) [See pricing](https://connectmq.com/pricing/)

No card required

-   Siemens S7 PLCs
-   OMRON PLCs
-   Modbus meters
-   IEC 104 RTUs
-   IEC 61850 IEDs
-   OPC UA servers

**ConnectMQ Edge**Windows service`ISA-95 · JSON``offline buffer`SCADA / HMI · OPC UA :48010 · MQTT :1883

**ConnectMQ Cloud**`broker.connectmq.com`Dashboards · Alerts · Digital Twin · API

## Why connect IEC 60870-5-104 to ConnectMQ

### Every IOA, no hand mapping

Add a channel from the IEC 104 template and let AutoCreateTags create a tag for every IOA the RTU sends. No code and no service restart.

### Commands with select-before-operate

Mark a tag Writable to send single, double or setpoint commands, with select-before-operate where the RTU requires it.

### Nothing lost when the link drops

Edge buffers the data on disk while the internet is down and sends it over MQTT/TLS as soon as the connection is back.

## What it reads and does

-   Controlling station for RTUs and substation gateways (port 2404)
-   Spontaneous data and general interrogation, repeated on an interval
-   Single, double and setpoint\_float commands, with select-before-operate
-   Automatic tag creation for every IOA the RTU sends
-   Backup RTU addresses and adjustable CotSize / IoaSize for older RTUs

What arrives in ConnectMQ Cloud`connectmq/site1/substation/feeder1/Feeder1/ActivePower`

```
{ "value": 12.84, "quality": "good", "unit": "MW", "dataType": "Float64", "tag": "ActivePower", "device": "Feeder1", "channel": "Substation" }
```

## Up and running in three steps

1.  1
    
    ### Install ConnectMQ Edge
    
    Download Edge from your ConnectMQ account and sign in — the Windows service and desktop app come in one installer.
    
2.  2
    
    ### Add the IEC 60870-5-104 channel
    
    Pick the IEC 60870-5-104 template, enter the address of your device and the tags you need, and press Save and apply.
    
3.  3
    
    ### Use the data
    
    The tags appear in your ConnectMQ broker as ISA-95 topics, ready for dashboards, alerts and the Digital Twin.
    

## Where teams use it

### Substation monitoring

Breaker states, active power and alarms from every substation on one ConnectMQ dashboard, with alerts when a breaker changes state.

### Remote feeders in one view

Bring RTU data from distributed feeders and sites into one ISA-95 topic tree instead of separate local screens.

### Setpoints from an approved system

Let your own approved application write power setpoints through Edge, using select-before-operate where the RTU expects it.

## IEC 60870-5-104: frequently asked questions

How do I connect an IEC 60870-5-104 RTU to MQTT?

Install ConnectMQ Edge on a Windows PC that can reach the RTU on port 2404, add an IEC 60870-5-104 channel, enter the IP address, common address and IOAs, and press Save and apply. Edge publishes every signal to your ConnectMQ broker over MQTT/TLS as ISA-95 topics with JSON payloads.

Can ConnectMQ Edge send IEC 104 commands and setpoints?

Yes. Mark the tag Writable and set Command (single, double, setpoint\_float…) and, if needed, CommandAddress. Edge acts as the controlling station and uses select-before-operate where the RTU requires it.

Do I have to configure every IOA by hand?

No. With "AutoCreateTags": true Edge creates a tag for every IOA the RTU sends. Otherwise each tag in the configuration is one IOA.

Technical details: step-by-step setup and example configuration

### Set it up step by step

1.  1
    
    Get the RTU IP address (port 2404), the common address (ASDU address) and the IOA list of the signals.
    
2.  2
    
    In ConnectMQ Edge open Connectors in the left menu, click + Add channel and pick the IEC 60870-5-104 template.
    
3.  3
    
    The channel is added with sample addresses. In the editor on the right, change the IP address, device settings and tags to match your equipment — the example configuration shows the format. Validate project checks it.
    
4.  4
    
    Press Save and apply. The channel starts right away without restarting the service. Add as many channels as you need, including several of the same type.
    
5.  5
    
    Each device is one common address and each tag is one IOA (for example 4001). Use "AutoCreateTags": true to create a tag for every IOA the RTU sends.
    
6.  6
    
    For commands, mark the tag Writable and set Command (single, double, setpoint\_float…) and, if it differs, CommandAddress.
    
7.  7
    
    Check the result: on Overview the devices show Reading data under Field devices, and problems (wrong address, timeout, rejected login) appear in the Last problem column. The values are in Local OPC UA Server › Live tag values; details are in Windows Service Settings › Logs.
    
8.  8
    
    Open the ConnectMQ portal: the tags appear in the topic tree as <enterprise>/<site>/<area>/<line>/<cell>/<device>/<tag> with a JSON payload (value, quality, unit, timestamp), ready for dashboards, alerts and the Digital Twin.
    

Example configuration

```
{
  "Name": "Substation",
  "Driver": "Iec104",
  "Settings": { "Host": "10.0.10.21", "Port": 2404, "BackupHosts": ["10.0.10.22"], "GiIntervalSeconds": 900 },
  "Devices": [{
    "Name": "Feeder1",
    "Isa95": { "Area": "substation", "Line": "feeder1" },
    "Settings": { "CommonAddress": 1 },
    "Tags": [
      { "Name": "BreakerState", "Address": "1001", "DataType": "Boolean" },
      { "Name": "ActivePower", "Address": "4001", "DataType": "Float64", "Unit": "MW" },
      { "Name": "PowerSetpoint", "Address": "8001", "DataType": "Float32", "Writable": true,
        "Settings": { "Command": "setpoint_float" } }
    ]
  }]
}
```

### Good to know

-   Old RTUs may need different CotSize / IoaSize settings — change them if the RTU rejects or misreads the messages.
-   With "AutoCreateTags": true you do not have to type the IOA list by hand: a tag is created for every IOA the RTU sends.
-   The example configuration lists a second RTU address under BackupHosts and repeats the general interrogation every 900 seconds with GiIntervalSeconds.

## Other connectors

[**Siemens S7**S7-1200/1500, S7-300/400, S7-200 SMART and LOGO! over ISO-on-TCPLearn more](https://connectmq.com/connectmq-edge/siemens-s7/) [**Modbus TCP / RTU**Energy meters, drives and PLCs over Modbus TCP, UDP or RS-485 RTULearn more](https://connectmq.com/connectmq-edge/modbus/) [**OMRON FINS / NJ-NX**CJ/CP/CS memory areas over FINS and NJ/NX variables by nameLearn more](https://connectmq.com/connectmq-edge/omron/) [**OPC UA Client**Subscribe to any OPC UA server: S7-1500, Beckhoff, B&R, KEPServerEXLearn more](https://connectmq.com/connectmq-edge/opc-ua-client/) [**IEC 61850 (MMS)**Protection relays, bay controllers and IEDs over MMS with SCL importLearn more](https://connectmq.com/connectmq-edge/iec-61850/) [**Sparkplug B**Ignition, Node-RED and Sparkplug gateways via the local brokerLearn more](https://connectmq.com/connectmq-edge/sparkplug-b/) [**Local OPC UA server**Every tag Edge collects on one OPC UA endpoint for SCADA and MESLearn more](https://connectmq.com/connectmq-edge/opc-ua-server/)

[ConnectMQ Edge](https://connectmq.com/connectmq-edge/)

## Connect your first PLC this week

Create your ConnectMQ account, download ConnectMQ Edge from the portal and add your first connector in minutes.

[Get started](https://app.connectmq.com/signup) [See pricing](https://connectmq.com/pricing/)

## Articles

[All articles](https://connectmq.com/blog/)

Industrial IoT

### [Sparkplug B and the Unified Namespace: Structuring Industrial IoT Data on MQTT](https://connectmq.com/blog/mqtt-sparkplug-b-unified-namespace/)

Sparkplug B gives industrial MQTT a strict session and payload model, while a Unified Namespace gives your plant data a single, readable home. Here is how they fit together, with topic design tips and live examples.

August 26, 20269 min read

Managed MQTT Cloud

### [How to Choose an IoT MQTT Broker: 12 Criteria and the Questions to Ask Your Vendor](https://connectmq.com/blog/how-to-choose-an-iot-mqtt-broker/)

A practical 12-point checklist for choosing an IoT MQTT broker, a table of questions to ask every vendor, and a five-minute hands-on test you can run against broker.connectmq.com.

September 21, 20269 min read

MQTT Security

### [MQTT Security Best Practices: A 12-Point Checklist for IoT Teams](https://connectmq.com/blog/mqtt-security-best-practices/)

A hands-on MQTT security checklist covering TLS, credentials, client IDs, topic design, payload validation, rate limits and certificate checks, plus how ConnectMQ handles each point.

September 28, 202611 min read
