SOLVIMUS_GE20_MBUS_VALUE

SOLVIMUS_GE20_MBUS_VALUE (FB)

FUNCTION_BLOCK SOLVIMUS_GE20_MBUS_VALUE

Representation

InOut:

Scope
Name
Type
Initial
Comment

Input

xEn

BOOL

TRUE

Enable / disable communication (TRUE = enable)

Input

byUnitId

BYTE

255

Device address (determined by IP address) ( Default: 255)

Input

xUpdateActual

BOOL

FALSE

Update of actual values (on every rising edge )

Input

wBaseAdressMbusDevice

WORD

10

Modbus - base register for the information of the MBus device

Input

wBaseAdressMbusValue

WORD

20

Modbus - base register for the information of the MBus value

Input

xResError

BOOL

FALSE

Reinitialization of the outputs eErrorCodeCom in the fault-free state (on each rising edge)

Inout

ModbusClient

ModbusClientBase

Client of the device

Output

liVal_Raw

LINT

Meter value in the format 64-bit integer - signed - unscaled

Output

rVal_Raw_SF

REAL

Scaling factor for liVal_Raw

Output

liVal

LINT

Meter value in the format 64-bit integer - signed - scaled (= liVal_Raw x scaling factor rVal_Raw_SF)

Output

rVal

REAL

Meter value in the format 32-bit floating-point IEEE 754 - signed - scaled to byValueUnit (= final value )

Output

rVal_kWh

REAL

(rVal in kWh) x scaling factor rVal_kWh_SF

Output

eValUnit

SOLVIMUS_GE20_MBUS_UNIT_TYPE

Unit of the meter value

Output

dtSysTime

DT

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

Output

xAlarm

BOOL

FALSE

Collective fault (TRUE = fault)

Output

xAlarmCom

BOOL

FALSE

Collective fault - communication (TRUE = fault)

Output

eErrorCodeCom

ModbusErrorCode

Error code - communication (0 = no error)

Output

xBusy

BOOL

Communication indicator (TRUE = communication)

Input Const

wBaseAdressMbusDeviceOffset

WORD

10

Offset for calculating the base address (prerequisite: xBaseAdressMode = TRUE)

Input Const

xBaseAdressMode

BOOL

FALSE

Type of determination of the base address:

Input Const

diAdrOffset

DINT

0

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

Input Const

rVal_kWh_SF

REAL

1.0

Scaling factor for the output rVal_kWh

Input Const

rVal_SF

REAL

1.0

Scaling factor for the output rVal

Input Const

tTimeUpdateActual

TIME

TIME#1m0s0ms

Update interval for the processes influenced by the input xUpdateActual influenced

Last updated