SOLVIMUS_GE20_MBUS_VALUE

SOLVIMUS_GE20_MBUS_VALUE (FB)

FUNCTION_BLOCK SOLVIMUS_GE20_MBUS_VALUE

InOut:

Scope
Name
Type
Initial
Comment

Input

xEn

BOOL

TRUE

Enable / disable communication ( TRUE = enabled )

Input

byUnitId

BYTE

255

Address of the device (set via 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 MBus device information

Input

wBaseAdressMbusValue

WORD

20

Modbus - base register for the MBus value 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

liVal_Raw

LINT

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

Output

rVal_Raw_SF

REAL

Scaling factor for ‘liVal_Raw’

Output

liVal

LINT

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

Output

rVal

REAL

Meter value in 32-bit IEEE 754 floating point format - 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

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

wBaseAdressMbusDeviceOffset

WORD

10

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

Input Const

xBaseAdressMode

BOOL

FALSE

Method of determining the base address:

Input Const

diAdrOffset

DINT

0

Offset for calculating Modbus addresses (from the Modbus registers) (permissible 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 operations influenced by the input 'xUpdateActual'

Last updated