Obsah

Driver M-bus

Description

:!: Knowledge of M-bus protocol is required to work with this driver.


Virtual gateway M-bus/TCP

Enables direct configuration of M-Bus devices with manufacturers software.

Virtual COM port emulator is requried to use this function. For Windows we recommend to use VSPE, 32-bit version is free.

Master connection

Enables exclusive access to M-Bus converter. All M-Bus functions of M-Bus/Bacnet converter are disabled while connection is active.

8-) Connection is established with TCP protocol on port 2001.

Slave connection

Retains M-bus/Bacnet converter functions and adds received telegrams from TCP client to telegrams sent to converters software. Responses on these telegrams are returned on open TCP connection.

8-) Connection is established with TCP protocol on port 2000.


Bacnet implementation

M-bus Bacnet
Value from telegram AnalogInput
Manual M-bus read BinaryValue
State of last read AnalogInput
M-bus command AnalogValue

Properties:

Values of state point of M-bus device

Bacnet point of M-bus command

Written value will be used as M-bus address when command is sent to M-Bus.

Bacnet point for manual devices reading

Writing any value will start manual reading of all devices.


Driver settings

Communication speed:
Transfer speed of local port.
COM port:
Selection of local COM port.
Manual reading - point name:
Name of Bacnet point to start devices reading. Reading starts after writing any value to this Bacnet point.
Status of master M-Bus connection:
Displays status of master M-Bus connection.
M-Bus functions of converter are blocked while connection is active.
Disconnect master client
Disconnects master client.
Virtual COM ports
Virtual ports manager.

Button Description
Save settings
Undo
Add virtual COM port
Delete selected
Check availability of virtual ports

:!: Only TCP connection is supported currently.


M-bus devices settings


Port configuration

Transfer speed Currently set transfer speed of local M-Bus converter. Changes are applied immediately. :!: Warning! Transfer speed also affects reading algorithm of M-bus/Bacnet driver.
Select COM port
Selection of used port for devices configuration

Commands sending

Primary address
Primary address of configured device:

snd_nke
Sends telegram snd_nke
req_ud2
Sends telegram req_ud2
Slave select
Select device with secondary address
Change primary address
Changes primary address of device
Change secondary address
Changes secondary address of device
Change transfer speed
Changes transfer speed


Decoded req_ud2 response

In this part will be displayed decoded response to req_ud2 telegram.


M-bus device profiles

Profile is template configuration for converting M-Bus telegrams to Bacnet points.


Editor for M-bus device profiles

In top part of the screen is located list of current profiles.

Button Description
Create profile
Create profile from M-Bus device
Delete selected profiles
Save profile settings. :!: Warning, only this option saves changes permanently to file. Other save options will save changes in memory. Remember to use this option at the end of your work!
Undo
Test profile on M-Bus device

Editor for M-bus device profile

Bacnet object name:
Name of M-Bus status point on Bacnet
Symbol @ will be replaced with given text on profile upload to M-Bus read configuration.
REQ_UD2:
“C Field” of sent telegram.
Timeout [s]:
Telegram reading timeout in seconds.
Data from TCP converters will be processed after time limit. M-bus device needs to send all data or CRC errors can occur.
Description:
Notes:
User description and notes.

Button Description
Save settings
Undo

List of telegram entries
These entries are exported as Bacnet points

Button Description
Add entry
Delete selected entries
Save entries settings
Undo

M-Bus telegram records editor

Bacnet object name:
Name of M-Bus point on Bacnet.
Symbol @ will be replaced with given text on profile upload to M-Bus read configuration.
Bacnet units:
Units accessible through Bacnet
Telegram number:
Position in telegram:
Informative value on automatic read from M-Bus device
VIF+VIFE:
VIF+VIFE value
DIF+DIFE:
DIF+DIFE value
Search by:
Entry in telegram is searched by VIF+VIFE, or by VIF+VIFE and at the same time by DIF+DIFE. You can find more informations about structure of M-Bus telegram here.
Mathematical functions and their values
Allows modification of decoded values before they are written to Bacnet point.

Button Description
Save settings
Undo

Telegram data
Hexadecimal representation of recieved telegram on automatic profile generation.


Generate profile from M-Bus device

Button Description
Read M-Bus device on specified COM port and req_ud2
Generate profile from received data
Cancel profile generation

Test profile on M-Bus device

Button Description
Test profile on specified COM port and req_ud2
Close window

M-Bus device settings


M-Bus devices editor

In top part of the screen is located list of currently configured devices.

Button Description
Create M-Bus device
Create M-Bus device from profile
Update selected device from profile
Remove selected devices
Save devices settings. Warning, only this option saves changes permanently to file. Other save options will save changes in memory. Remember to use this option at the end of your work!
Undo
Test current settings on M-Bus device.

M-Bus device editor

Primary address:
Primary address of M-Bus device
Bacnet object name:
Name of M-Bus status point in Bacnet
REQ_UD2:
“C Field” of send telegram.
COM port selection:
Port of connected device
Timeout [s]:
Telegram reading time limit in seconds.
Data from TCP converters will be processed after time limit. M-bus device needs to send all data or CRC errors can occur.

Button Descrition
Save settings
Undo

List of telegram entries
These entries are exported as Bacnet points

Button Descrition
Add entry
Delete selected entries
Save entries settings
Undo

M-Bus telegram entry editor

Name of Bacnet point:
Name of M-Bus entry on Bacnet.
Bacnet units:
Units accessible from Bacnet
VIF+VIFE:
VIF+VIFE value
DIF+DIFE:
DIF+DIFE value
Search by:
Entry in telegram is searched by VIF+VIFE, or by VIF+VIFE and at the same time by DIF+DIFE. You can find more informations about structure of M-Bus telegram here.
Mathematical functions and their values
Allows modification of decoded values before they are written to Bacnet point.

Button Description
Save settings
Undo

M-bus commands settings


M-bus commands editor

In top part of the screen is located list of current commands.

Button Description
Add M-Bus command
Add predefined command
Delete selected commands
Save commands configuration
Undo

M-bus command editor

Bacnet object name:
Name of the Bacnet object
Enabled
Exports command to Bacnet
COM port:
COM port on which will be command sent
Timeout [s]
Response time limit, used to clear RX buffer
<C>
Telegrams “C-field”
<CI>
Telegrams “CI-field”
<DATA>
Hexadecimal representation of telegrams data

Telegram address will be included from defined value in Bacnet object. Length and CRC will be calculated before telegram is sent.

Button Description
Save settings
Undo