IEC 61850 connector Basic & Scale
The IEC 61850 (MMS) connector of ConnectMQ Edge reads protection relays, bay controllers and other IEDs over MMS. It creates tags from an SCL file or by browsing the IED online, uses reports so changes arrive immediately, sends controls, and publishes every value to your ConnectMQ broker as ISA-95 JSON.
Supported devices
IEC 61850 IEDs (protection relays, bay control units, gateways) that offer an MMS server on ISO-on-TCP (RFC 1006), port 102. The MMS client is built into ConnectMQ Edge.
| Item | Value |
|---|---|
| Channels (IEC 61850 driver) | 256 |
| Devices per channel | 256 |
| Device | One IED = one MMS association |
All polling in a channel runs one IED after another. Reports are processed in the background, immediately, as long as the connection is open. Limits are per driver, not per project. How many values you can send to the cloud depends on your plan: see Plans & broker limits and pricing.
What it supports
- MMS services: Read (many variables per request), Write, GetNameList (browse), GetVariableAccessAttributes, GetNamedVariableListAttributes (data set members), unconfirmed InformationReport.
- Data: boolean, bit string, integer, unsigned, float32/64, octet/visible/MMS string, UTC time, binary time, structures and arrays. Structures are published as JSON.
- Reading at LN, DO or DA level. At DO level the
stVal/mag/cValvalue is published together with its qualityqand timestampt. - Reports: buffered (BR) and unbuffered (RP) report control blocks, enabled on connect.
- Controls: direct and SBO with normal security, direct and SBOw with enhanced security (CommandTermination is awaited). The Oper structure is built from the type on the server.
- SCL import: ICD, CID, IID and SCD files; tags are created automatically. Without SCL the IED is browsed online.
- Authentication: ACSE password.
Prepare the IED
- Note the IED IP address (MMS port
102) and, if available, its SCL file (ICD/CID/SCD) from the substation configuration tool. - Copy the SCL file to
%ProgramData%\ConnectMQ\Edge\scl\, for examplescl\relay1.cid. - Ask which report control blocks (RCBs) Edge may use, so changes arrive by report instead of polling. Each RCB serves one client at a time.
- Check the network:
Test-NetConnection 192.168.10.21 -Port 102in PowerShell.
Add the connector in ConnectMQ Edge
Add a channel from the template
In the ConnectMQ Edge desktop app open Connectors in the left menu, click + Add channel and pick the IEC 61850 (MMS) template. The channel is added with sample addresses.
Enter the IED connection
Add one device per IED and set Host and, if the logical device names need it, IedName. Set Password if the IED requires ACSE authentication.
Create the tags
With an SCL file set SclFile (relative to %ProgramData%\ConnectMQ\Edge, for example scl/relay1.cid) and "AutoCreateTags": true: Edge creates a tag for every ST/MX data object. Without an SCL file it browses the IED online. You can also list tags by hand, for example LD0/MMXU1.TotW[MX].
Add reports
List the report control blocks under Reports, for example LD0/LLN0.BR.brcbST01, so changes arrive immediately instead of by polling.
Validate and save
Click Validate project, then press Save and apply. The channel starts right away without restarting the service.
Check the values
On Overview the IEDs show Reading data under Field devices; problems appear in the Last problem column. Live values are on Local OPC UA Server › Live tag values, details in Windows Service Settings › Logs.
Settings reference
Channel settings
The channel has only the common polling settings: DemoteAfterFailures (default 3), DemoteForMs (10000) and InterRequestDelayMs (0).
Device settings
| Setting | Default | Description |
|---|---|---|
Host | required | IED IP address or host name |
Port | 102 | MMS port |
IedName | — | Put in front of the LD name in addresses (LD0 → IED1LD0). Not added if the address already starts with it |
ConnectTimeoutMs | 5000 | Connection and association timeout |
RequestTimeoutMs | 5000 | MMS request timeout |
MaxPduSize | 65000 | Proposed max MMS PDU size (negotiated with the server) |
MaxVariablesPerRead | 32 | Max variables in one Read request |
PollTags | true | false: tags are not polled, only updated by reports |
LocalTSelector / RemoteTSelector | 0001 | COTP TSAP (hex) |
LocalSSelector / RemoteSSelector | 0001 | Session selector (hex) |
LocalPSelector / RemotePSelector | 00000001 | Presentation selector (hex) |
CalledApTitle / CalledAeQualifier | 1.1.999.1 / 12 | AP-Title / AE-Qualifier of the IED (null = not sent) |
CallingApTitle / CallingAeQualifier | 1.1.999 / 12 | Local AP-Title / AE-Qualifier |
Password | — | ACSE password authentication |
OrCat / OrIdent | 3 / ConnectMQ | Originator in control commands (3 = remote control) |
CommandTerminationTimeoutMs | 10000 | Wait for CommandTermination with enhanced security |
SclFile | — | SCL file; a relative path is resolved under %ProgramData%\ConnectMQ\Edge |
SclIedName | first IED | IED name inside the SCL file |
AutoCreateTags | false | Create tags at start from the SCL file (or online browsing without one) |
TagLevel | DataObject | DataObject (one tag per DO, with q/t) or DataAttribute (one tag per leaf attribute) |
ImportFunctionalConstraints | ["ST","MX"] | Functional constraints to import |
EnableSclReports | false | Enable the ReportControl blocks found in the SCL file |
Reports | [] | Report control blocks to enable, see below |
Tag settings (tag Settings)
| Setting | Description |
|---|---|
Structure | true: publish the whole structure as JSON without extracting a value |
Poll | false: this tag is not polled, only updated by reports |
CtlModel | direct-normal, sbo-normal, direct-enhanced, sbo-enhanced, status-only (or 0–4). Read from the IED (CF) if empty |
StatusAddress | Status address read for a control tag (default LN$ST$DO) |
CtlValType | ctlVal encoding if the Oper type cannot be read: bool, int, uint, float, analogue-float, analogue-int |
HasOperTm | If the Oper type cannot be read: Oper contains operTm |
OrCat, OrIdent, Test, SynchroCheck, InterlockCheck | Command parameters |
Address syntax
| Format | Example | Meaning |
|---|---|---|
| IEC 61850 + FC | LD0/MMXU1.TotW.mag.f[MX] | One attribute |
| DO level | LD0/MMXU1.TotW[MX] | mag.f value + q quality + t timestamp |
| Sub-DO | LD0/MMXU1.A.phsA[MX] | WYE phase, cVal.mag.f |
| LN + FC | LD0/MMXU1[MX] | All MX data of the LN (JSON) |
| Whole LN | LD0/MMXU1 | All FCs (JSON) |
| MMS format | IED1LD0/MMXU1$MX$TotW$mag$f | Raw MMS item name |
| VMD-specific | @LastApplError | MMS variable without a domain |
| Control | LD0/CSWI1.Pos[CO] | Read: CSWI1$ST$Pos (stVal + q + t); write: Oper |
Bit strings are converted to integers with the first bit as the most significant bit. For Dbpos: 0 = intermediate, 1 = off, 2 = on, 3 = bad state. Octet strings are published as hex text.
Tags from an SCL file
- One ST/MX tag is created for each DO (and sub-DO). The name is
LDinst.LN.DO, which becomes the topic levels.../ld0/mmxu1/totw. - Controllable DOs (with
Oper) become one writable tag: reading returns the ST status, writing sends Oper. - Data types come from the SCL
bType(FLOAT32 →Float32, Dbpos/Enum →Int32, Timestamp →DateTime…). - With
"TagLevel": "DataAttribute"every leaf attribute becomes its own tag.
Reports
"Reports": [
{ "Rcb": "LD0/LLN0.BR.brcbEV01", "TrgOps": ["dchg","qchg","gi"], "OptFlds": ["seq","time","reason","dataset","entryid","confrev"], "GI": true },
{ "Rcb": "LD0/LLN0.urcbMX01", "IntgPdMs": 5000 }
]| Field | Description |
|---|---|
Rcb | LD/LN.BR.name, LD/LN.RP.name, LD/LN$BR$name or LD/LN.name (BR/RP found automatically) |
TrgOps | Default dchg, qchg, gi (plus period when IntgPdMs is set) |
OptFlds | Default seq, time, reason, dataset, confrev (plus entryid for BR) |
Reserve | Reserve an RP block (default true) |
PurgeBuf | Purge the buffer of a BR block |
BufTmMs, IntgPdMs | Buffer time and integrity period |
GI | Request a general interrogation (default true) |
Report members are matched to tags through the data set: a tag is updated when its address equals the member, is a child of the member, or when the member is the stVal / mag of a DO-level tag. The report's TimeOfEntry is used when the DO has no t. After a reconnect the reports are enabled again.
Example
A feeder protection relay with a report and a breaker control. The project's ISA-95 levels are connectmq / site1, and the device sets Area: substation and Line: bay1.
| Name | Address | DataType | Unit | Notes |
|---|---|---|---|---|
TotW | LD0/MMXU1.TotW[MX] | Float32 | kW | Scale 0.001 (W → kW) |
PhsA.Current | LD0/MMXU1.A.phsA[MX] | A | ||
Breaker | LD0/XCBR1.Pos[ST] | Int32 | Updated by report only | |
BreakerCmd | LD0/CSWI1.Pos[CO] | Boolean | Writable, SBOw | |
Setpoint | LD0/PTOC1.StrVal.setMag.f[SP] | Float32 | Writable |
{
"Name": "Relays",
"Driver": "Iec61850",
"Settings": { "DemoteAfterFailures": 3, "DemoteForMs": 10000 },
"Devices": [
{
"Name": "Feeder1",
"Isa95": { "Area": "substation", "Line": "bay1" },
"ScanRateMs": 1000,
"Settings": {
"Host": "192.168.10.21",
"IedName": "REL1",
"Reports": [ { "Rcb": "LD0/LLN0.BR.brcbST01" } ]
},
"Tags": [
{ "Name": "TotW", "Address": "LD0/MMXU1.TotW[MX]", "DataType": "Float32", "Scale": 0.001, "Unit": "kW" },
{ "Name": "PhsA.Current", "Address": "LD0/MMXU1.A.phsA[MX]", "Unit": "A" },
{ "Name": "Breaker", "Address": "LD0/XCBR1.Pos[ST]", "DataType": "Int32", "Settings": { "Poll": false } },
{ "Name": "BreakerCmd", "Address": "LD0/CSWI1.Pos[CO]", "DataType": "Boolean", "Writable": true,
"Settings": { "CtlModel": "sbo-enhanced", "InterlockCheck": true } },
{ "Name": "Setpoint", "Address": "LD0/PTOC1.StrVal.setMag.f[SP]", "DataType": "Float32", "Writable": true }
]
}
]
}To create all tags from an SCL file instead, use device settings such as "SclFile": "scl/relay1.cid", "SclIedName": "REL1", "AutoCreateTags": true and "EnableSclReports": true.
The TotW tag arrives in ConnectMQ on the topic:
connectmq/site1/substation/bay1/Feeder1/TotWwith this payload:
{
"timestamp": "2026-10-21T14:29:00.123Z",
"value": 842.5,
"quality": "good",
"unit": "kW",
"dataType": "Float32",
"tag": "TotW",
"device": "Feeder1",
"channel": "Relays"
}At DO level the timestamp and quality come from the IED's t and q. See Topics and payloads.
Controls and writing
Writing a control tag ([CO] address, "Writable": true) sends a command:
- The control model is taken from the tag's
CtlModelor read fromLN$CF$DO$ctlModel. sbo-normal:SBOis read first (select).sbo-enhanced:SBOwis written.Operis written, filled according to the type read from the server. For analoguectlVal(APC) the value goes to theforifield.- With enhanced security Edge waits for a positive or negative CommandTermination. A negative result returns an error with
LastApplError(Error / AddCause).
Other writable tags, such as [SP] settings, are written with an MMS Write.
- From the cloud: turn on Allow writes from the cloud in Cloud Settings, then publish
trueor{"value": true}to the tag topic plus/set, for exampleconnectmq/site1/substation/bay1/Feeder1/BreakerCmd/set. - Locally: write the tag from an OPC UA client on the Edge local OPC UA server.
Troubleshooting
| Symptom | Cause and fix |
|---|---|
| Connection or association fails | Port 102 blocked, wrong IP, or the IED expects other selectors / AP-Title. Compare TSAP, S/P selectors and CalledApTitle with the IED settings; set Password if ACSE authentication is required. |
Tags bad_config_error or missing | The address does not exist. Check the LD name and IedName (Edge prefixes LD names with IedName), or create the tags from the SCL file. |
| No tags created from SCL | Wrong SclFile path or SclIedName. Relative paths start at %ProgramData%\ConnectMQ\Edge. |
| Report not enabled | The RCB is reserved by another client or the name is wrong. Ask for a free RCB and check the Rcb format. |
| Values only change at the scan rate | No report configured. Add the RCB under Reports; set "Poll": false on tags that should only come from reports. |
| Control rejected | Check the control model (CtlModel), interlock/synchro check flags and LastApplError in the logs. |
| Power in W instead of kW | Use Scale and Unit, for example "Scale": 0.001 and "Unit": "kW". |
Known limitations
- TLS (IEC 62351-4) and certificate authentication are not supported; only ACSE password authentication.
- No indexed access to array elements; the whole array is read as JSON.
- Segmented reports are parsed but not reassembled; each segment is processed with its own members.
- Buffered reports are not resumed by EntryID; a general interrogation is requested after reconnect.
- File services, log (journal) reading, GOOSE/SV and setting group changes are out of scope.
- Control
Canceland time-activated operation are not supported;operTmis filled with the current time.