M-Bus
The M-Bus (heat and water meters) connection reads meters on a wired M-Bus (EN 13757-2 and EN 13757-3): heat meters, water meters, gas and electricity meters from Kamstrup, Sensus, Itron, Danfoss, Zenner, Landis+Gyr and other manufacturers. Values arrive already in units: energy in kWh or GJ, volume in m³, power in kW, temperatures in °C.
The implementation is Scadora’s own, with no third-party libraries.
Connecting the bus
Section titled “Connecting the bus”An M-Bus is powered by its master, so it connects to the computer through a converter:
| Channel | What you need | What to set |
|---|---|---|
| COM port | An M-Bus level converter, USB or RS-232 | COM port, speed |
| TCP | An M-Bus to Ethernet converter in transparent TCP server mode | Converter IP address and port |
A converter supports a limited number of meters (unit loads): do not connect more than its manual allows.
Quick start
Section titled “Quick start”- In the editor: Connection → M-Bus (heat and water meters).
- Channel, COM port or converter address, and Speed as set in the meter (usually 2400 baud).
- Primary address is the meter address on the bus (in the manual or on the meter display). If the meter is the only one on the bus, you can use 254. If the addresses are unknown, use Project → Find M-Bus meters… (below).
- Project → Read M-Bus meter: the window shows all records of the meter. Check the ones you need and press Create tags.
- Start the project.

Connection settings
Section titled “Connection settings”| Setting | Default | Meaning |
|---|---|---|
| Channel | COM port | COM port or TCP |
| COM port | — | For the COM port channel. The port opens as 8 bits, even parity, 1 stop bit, as M-Bus requires |
| Speed, baud | 2400 | As in the meters: usually 2400, older ones 300, some 9600 |
| Address, Port | —, 10001 | For the TCP channel: converter address and port |
| Primary address | 0 | Meter address on the bus, 0–250. 254 — any meter, only if it is the only one on the bus |
| Secondary address | empty | 8-digit serial number. If set, the primary address is not used |
| Timeout, ms | 2000 | Wait for a reply. Several seconds at 300 baud |
| Retries | 1 | How many times to repeat a request if the meter stays silent |
| Reset before reading | on | SND_NKE before every read: helps meters stuck on the second telegram |
Several meters on one bus. Create one connection per meter with the same COM port or converter and different addresses. The connections share the bus and are polled in turn; each has its own connection state and “No connection” alarm. Connections on one COM port with different speeds are rejected with an error.
The secondary address helps when primary addresses are not set or collide: the meter is selected by its serial number. F in the number means any digit.
Finding meters on the bus
Section titled “Finding meters on the bus”Project → Find M-Bus meters… searches the bus through the channel of the selected connection and creates connections for the meters it finds. The meters are not changed.

- Primary addresses — every address in the range is reset (SND_NKE) and asked for data, so the window shows the serial number, manufacturer and medium. At 2400 baud the whole range 0–250 takes about two minutes. Two meters with the same address show up as a collision.
- Secondary addresses — search by serial number with wildcards: when several meters answer at once, the mask is refined digit by digit. It finds meters with duplicate or unset primary addresses.
Create connections adds a connection per checked meter with the same channel settings; Address new connections by serial number makes them use the secondary address. Meters that already have a connection on this channel are marked and skipped.
Poll cycle. M-Bus meters change slowly, and many battery-powered meters limit how often they may be read. 30–300 s is enough.
Tag address
Section titled “Tag address”The address is a quantity with qualifiers separated by colons, or a record number in the reply.

| Address | Meaning |
|---|---|
energy |
Current energy |
energy:s1 |
Energy, storage 1 — usually the reading at the billing date |
energy:t2 |
Energy, tariff 2 |
volume |
Volume |
flowtemp, returntemp |
Flow and return temperatures |
power:max |
Maximum power |
flow:u1 |
Flow, subunit 1 (the second channel of a multi-channel meter) |
12 |
Twelfth record of the reply — for quantities without a name |
| Quantity | Unit | Quantity | Unit |
|---|---|---|---|
energy |
kWh or GJ | tempdiff |
K |
volume |
m³ | exttemp |
°C |
power |
kW | pressure |
bar |
flow |
m³/h | ontime, optime |
h |
mass, massflow |
kg, kg/h | voltage, current |
V, A |
flowtemp, returntemp |
°C | datetime, fabrication, errorflags |
date, number, flags |
Energy in joules (GJ) and in watt-hours (kWh) are different units: the read window shows which one the meter sends. Dates and texts go into String tags, everything else into Float64. The read window creates tags with the right type, unit and description.
How polling works
Section titled “How polling works”- SND_NKE reset at the primary address, or selection of the meter by its secondary address.
- Data request REQ_UD2. If the meter reports that more data follows (a long reply of several telegrams), Scadora requests the next ones until the reply ends. Records of all telegrams are numbered in sequence.
- Records are copied to the tags.
Quality. No record with this address, or a value that does not fit the tag type, gives Bad. If the meter reports an error in its status byte (low power, permanent or temporary error), tags are Uncertain. No reply from the meter gives “no connection”.
Writing to M-Bus meters is not supported: they are read only.
Testing and troubleshooting
Section titled “Testing and troubleshooting”| Symptom | Cause and what to do |
|---|---|
| “Does not respond”, “no reply in … ms” | Wrong address, speed or COM port, a broken line, or the meter is not on the bus. M-Bus polarity does not matter |
| Only one of several meters answers | The meters share a primary address: use secondary addresses |
| Occasional missing replies | A long line, an overloaded converter, or a battery meter limiting reads: raise the poll cycle and Retries |
| Tag Bad | No record with this address. Check the records in Read M-Bus meter |
| Tag Uncertain | The meter reports an error in its status byte: check the meter |
| Value differs from the display | Another storage or tariff is selected: compare the records in the read window |
Limitations
Section titled “Limitations”- Radio meters (868 MHz) are a separate connection: Wireless M-Bus.
- Writing to a meter and configuring it (changing the primary address or speed) are not supported.
- Encrypted telegrams (modes 5 and 7 of EN 13757-3) are not supported.