Industrial
Electronic Devices
ADFweb.com S.r.l.
User Manual
M-Bus / M-Bus Wireless / MQTT
Document code: MN67931_ENG Revision 1.200 Page 42 of 49
Example
We have a project for a M-Bus node with this parameters:
Primary Address
: 1
Secondary Address
: 12345678
Description
: Energy meter
Variables:
Var.1
: Type: Energy (Wh), Dimension: 32 bit, Value: 300000, Scale factor: 1
Var.2
: Type: Power (W), Dimension: 24 bit, Value: 2567, Scale Factor: 10^3
Var.3
: Type: Flow Temperature (°C), Dimension: 16 bit, Value: 209, Scale Factor: 10^(-1)
Var.4
: Type: Return Temperature (°C), Dimension: 16 bit Value: 197, Scale Factor: 10^(-1)
We define a template string in this way:
Description: $DESC$, Primary Address: $PRIMARY$, Secondary Address: $SECONDARY$, Type of variable: $UNIT1$, Data: $VALUE$
The output of MQTT will be:
Var.1
Description: Energy meter, Primary Address: 1, Secondary Address: 12345678, Type of variable: Energy [Wh], Data: 300000
Var.2
Description: Energy meter, Primary Address: 1, Secondary Address: 12345678, Type of variable: Power [W], Data: 2567000
Var.3
Description: Energy meter, Primary Address: 1, Secondary Address: 12345678, Type of variable: Flow Temperature [°C], Data: 20,9
Var.4
Description: Energy meter, Primary Address: 1, Secondary Address: 12345678, Type of variable: Return Temperature [°C], Data: 19,7