SOLVIMUS_GE20_MBUS_DEVICE

SOLVIMUS_GE20_MBUS_DEVICE (FB)

FUNCTION_BLOCK SOLVIMUS_GE20_MBUS_DEVICE

InOut:

Scope
Name
Type
Initial
Comment

Input

xEn

BOOL

TRUE

Enable / disable communication ( TRUE = enabled )

Input

byUnitId

BYTE

255

Address of the device (set by IP address)

Input

xUpdateActual

BOOL

FALSE

Update of actual values (on every rising edge )

Input

wBaseAdressMbusDevice

WORD

10

Modbus - base register for the MBus device information

Input

xResError

BOOL

FALSE

Reinitialization of the outputs ‘eErrorCodeCom’ to the no-error state (on each rising edge)

Inout

ModbusClient

ModbusClientBase

Client of the device

Output

dwMeterID

DWORD

Serial number of the M-Bus device

Output

sManufacturer

STRING

Manufacturer identification of the M-Bus device

Output

byMeterGeneration

BYTE

Version of the M-Bus device

Output

eMedium

SOLVIMUS_GE20_MBUS_DEVICE_MEDIA_TYPE

Media ID of the M-Bus device

Output

dtSysTime

DT

Timestamp of the MBus device (UTC, in Germany UTC +1 / +2 h depending on summer/winter time)

Output

wStatusFlags

WORD

Current state of the status flags

Output

xAlarm

BOOL

FALSE

General fault ( TRUE = fault )

Output

xAlarmCom

BOOL

FALSE

General fault - communication ( TRUE = fault )

Output

eErrorCodeCom

ModbusErrorCode

Error code - communication ( 0 = no error )

Output

xBusy

BOOL

Communication indicator ( TRUE = communication )

Input Const

diAdrOffset

DINT

0

Offset for calculating Modbus addresses (from the Modbus registers) (permissible range: -1, 0, +1)

Input Const

tTimeUpdateActual

TIME

TIME#1m0s0ms

Update interval for operations influenced by the input 'xUpdateActual'

Last updated