POWERIO_T1_R100_4DI_FULL

POWERIO_T1_R100_4DI_FULL (FB)

FUNCTION_BLOCK POWERIO_T1_R100_4DI_FULL

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 setpoint values (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 the digital input DI1 (function depending on the operating mode ‘eDI1_Mode’ )

Output

xDI2

BOOL

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

Output

xDI3

BOOL

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

Output

xDI4

BOOL

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

Output

dwDI1_Counter

DWORD

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

Output

dwDI2_Counter

DWORD

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

Output

dwDI3_Counter

DWORD

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

Output

dwDI4_Counter

DWORD

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

Output

wTypeID

WORD

Identification of the device (25508 = T1.R100-8DI, 25507 = T1.R100-4DI )

Output

wFirmwareVer

WORD

Firmware version of the device

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

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 the outputs xDI1 - xDI4

Input Const

eDI4_Mode

POWERIO_T1_R100_4DI_DI_MODE

POWERIO_T1_R100_4DI_DI_MODE.DIGITAL_INPUT

Operating mode of the output xDI4

Input Const

eDI3_Mode

POWERIO_T1_R100_4DI_DI_MODE

POWERIO_T1_R100_4DI_DI_MODE.DIGITAL_INPUT

Operating mode of the output xDI3

Input Const

eDI2_Mode

POWERIO_T1_R100_4DI_DI_MODE

POWERIO_T1_R100_4DI_DI_MODE.DIGITAL_INPUT

Operating mode of the output xDI2

Input Const

eDI1_Mode

POWERIO_T1_R100_4DI_DI_MODE

POWERIO_T1_R100_4DI_DI_MODE.DIGITAL_INPUT

Operating mode of the 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 operations influenced by the input 'xUpdateSetp'

Input Const

tTimeUpdateActual

TIME

TIME#1s0ms

Update interval for operations influenced by the input 'xUpdateActual'

Last updated