Skip to content

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.

ItemValue
Channels (IEC 61850 driver)256
Devices per channel256
DeviceOne 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 / cVal value is published together with its quality q and timestamp t.
  • 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 example scl\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 102 in 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 ​

SettingDefaultDescription
HostrequiredIED IP address or host name
Port102MMS port
IedName—Put in front of the LD name in addresses (LD0 → IED1LD0). Not added if the address already starts with it
ConnectTimeoutMs5000Connection and association timeout
RequestTimeoutMs5000MMS request timeout
MaxPduSize65000Proposed max MMS PDU size (negotiated with the server)
MaxVariablesPerRead32Max variables in one Read request
PollTagstruefalse: tags are not polled, only updated by reports
LocalTSelector / RemoteTSelector0001COTP TSAP (hex)
LocalSSelector / RemoteSSelector0001Session selector (hex)
LocalPSelector / RemotePSelector00000001Presentation selector (hex)
CalledApTitle / CalledAeQualifier1.1.999.1 / 12AP-Title / AE-Qualifier of the IED (null = not sent)
CallingApTitle / CallingAeQualifier1.1.999 / 12Local AP-Title / AE-Qualifier
Password—ACSE password authentication
OrCat / OrIdent3 / ConnectMQOriginator in control commands (3 = remote control)
CommandTerminationTimeoutMs10000Wait for CommandTermination with enhanced security
SclFile—SCL file; a relative path is resolved under %ProgramData%\ConnectMQ\Edge
SclIedNamefirst IEDIED name inside the SCL file
AutoCreateTagsfalseCreate tags at start from the SCL file (or online browsing without one)
TagLevelDataObjectDataObject (one tag per DO, with q/t) or DataAttribute (one tag per leaf attribute)
ImportFunctionalConstraints["ST","MX"]Functional constraints to import
EnableSclReportsfalseEnable the ReportControl blocks found in the SCL file
Reports[]Report control blocks to enable, see below

Tag settings (tag Settings) ​

SettingDescription
Structuretrue: publish the whole structure as JSON without extracting a value
Pollfalse: this tag is not polled, only updated by reports
CtlModeldirect-normal, sbo-normal, direct-enhanced, sbo-enhanced, status-only (or 0–4). Read from the IED (CF) if empty
StatusAddressStatus address read for a control tag (default LN$ST$DO)
CtlValTypectlVal encoding if the Oper type cannot be read: bool, int, uint, float, analogue-float, analogue-int
HasOperTmIf the Oper type cannot be read: Oper contains operTm
OrCat, OrIdent, Test, SynchroCheck, InterlockCheckCommand parameters

Address syntax ​

FormatExampleMeaning
IEC 61850 + FCLD0/MMXU1.TotW.mag.f[MX]One attribute
DO levelLD0/MMXU1.TotW[MX]mag.f value + q quality + t timestamp
Sub-DOLD0/MMXU1.A.phsA[MX]WYE phase, cVal.mag.f
LN + FCLD0/MMXU1[MX]All MX data of the LN (JSON)
Whole LNLD0/MMXU1All FCs (JSON)
MMS formatIED1LD0/MMXU1$MX$TotW$mag$fRaw MMS item name
VMD-specific@LastApplErrorMMS variable without a domain
ControlLD0/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 ​

json
"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 }
]
FieldDescription
RcbLD/LN.BR.name, LD/LN.RP.name, LD/LN$BR$name or LD/LN.name (BR/RP found automatically)
TrgOpsDefault dchg, qchg, gi (plus period when IntgPdMs is set)
OptFldsDefault seq, time, reason, dataset, confrev (plus entryid for BR)
ReserveReserve an RP block (default true)
PurgeBufPurge the buffer of a BR block
BufTmMs, IntgPdMsBuffer time and integrity period
GIRequest 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.

NameAddressDataTypeUnitNotes
TotWLD0/MMXU1.TotW[MX]Float32kWScale 0.001 (W → kW)
PhsA.CurrentLD0/MMXU1.A.phsA[MX]A
BreakerLD0/XCBR1.Pos[ST]Int32Updated by report only
BreakerCmdLD0/CSWI1.Pos[CO]BooleanWritable, SBOw
SetpointLD0/PTOC1.StrVal.setMag.f[SP]Float32Writable
json
{
  "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:

text
connectmq/site1/substation/bay1/Feeder1/TotW

with this payload:

json
{
  "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:

  1. The control model is taken from the tag's CtlModel or read from LN$CF$DO$ctlModel.
  2. sbo-normal: SBO is read first (select). sbo-enhanced: SBOw is written.
  3. Oper is written, filled according to the type read from the server. For analogue ctlVal (APC) the value goes to the f or i field.
  4. 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 true or {"value": true} to the tag topic plus /set, for example connectmq/site1/substation/bay1/Feeder1/BreakerCmd/set.
  • Locally: write the tag from an OPC UA client on the Edge local OPC UA server.

Troubleshooting ​

SymptomCause and fix
Connection or association failsPort 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 missingThe 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 SCLWrong SclFile path or SclIedName. Relative paths start at %ProgramData%\ConnectMQ\Edge.
Report not enabledThe 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 rateNo report configured. Add the RCB under Reports; set "Poll": false on tags that should only come from reports.
Control rejectedCheck the control model (CtlModel), interlock/synchro check flags and LastApplError in the logs.
Power in W instead of kWUse 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 Cancel and time-activated operation are not supported; operTm is filled with the current time.

Fully managed MQTT broker for connected devices.