POWERIO_T1_R100_4DI_FULL

POWERIO_T1_R100_4DI_FULL (FB)

FUNCTION_BLOCK POWERIO_T1_R100_4DI_FULL

Representation

InOut:

Scope
Name
Type
Initial
Comment

Input

xEn

BOOL

TRUE

Enable / disable communication (TRUE = enabled)

Input

byUnitId

BYTE

0

Address of the device

Input

xUpdateActual

BOOL

FALSE

Update of actual values (on every rising edge )

Input

xUpdateSetp

BOOL

FALSE

Update of setpoints (on every rising edge )

Input

xResError

BOOL

FALSE

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

Inout

ModbusClient

ModbusClientBase

Client of the device

Output

xDI1

BOOL

State of digital input DI1 (function depending on operating mode ‘eDI1_Mode’)

Output

xDI2

BOOL

State of digital input DI2 (function depending on operating mode ‘eDI2_Mode’)

Output

xDI3

BOOL

State of digital input DI3 (function depending on operating mode ‘eDI3_Mode’)

Output

xDI4

BOOL

State of digital input DI4 (function depending on operating mode ‘eDI4_Mode’)

Output

dwDI1_Counter

DWORD

Absolute counter for the number of rising edges on digital input DI1

Output

dwDI2_Counter

DWORD

Absolute counter for the number of rising edges on digital input DI2

Output

dwDI3_Counter

DWORD

Absolute counter for the number of rising edges on digital input DI3

Output

dwDI4_Counter

DWORD

Absolute counter for the number of rising edges on digital input DI4

Output

wTypeID

WORD

Device identification (25508 = T1.R100-8DI, 25507 = T1.R100-4DI)

Output

wFirmwareVer

WORD

Firmware version of the device

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

eErrorCodeDev

POWERIO_T1_R100_4DI_ERROR_CODE

POWERIO_T1_R100_4DI_ERROR_CODE.NO_ERROR

Error code - device (0 = no error)

Output

xBusy

BOOL

Communication indicator (TRUE = communication)

Input Const

wSysCommand

WORD

0

Value of the system command to be transmitted (FC06 - Register 6 ) (0 = no command, values > 0 see documentation T1_R100_8DI)

Input Const

tTimeDI_Pulse

TIME

TIME#250ms

Common pulse duration for outputs xDI1 - xDI4

Input Const

eDI4_Mode

POWERIO_T1_R100_4DI_DI_MODE

POWERIO_T1_R100_4DI_DI_MODE.DIGITAL_INPUT

Operating mode of output xDI4

Input Const

eDI3_Mode

POWERIO_T1_R100_4DI_DI_MODE

POWERIO_T1_R100_4DI_DI_MODE.DIGITAL_INPUT

Operating mode of output xDI3

Input Const

eDI2_Mode

POWERIO_T1_R100_4DI_DI_MODE

POWERIO_T1_R100_4DI_DI_MODE.DIGITAL_INPUT

Operating mode of output xDI2

Input Const

eDI1_Mode

POWERIO_T1_R100_4DI_DI_MODE

POWERIO_T1_R100_4DI_DI_MODE.DIGITAL_INPUT

Operating mode of output xDI1

Input Const

wDIxInversion

WORD

0

Inversion of inputs DI1 - DI4 (bitwise, bit 0: DI1, bit 1: DI2, etc.) (0 = no inversion of inputs // 15 = inversion of all inputs)

Input Const

tTimeUpdateSetp

TIME

TIME#45s0ms

Update interval for the operations affected by the input 'xUpdateSetp'

Input Const

tTimeUpdateActual

TIME

TIME#1s0ms

Update interval for the operations affected by the input 'xUpdateActual'

Last updated