ModbusTCPSlaveUnit_Diag (FB)

FUNCTION_BLOCK ModbusTCPSlaveUnit_Diag EXTENDS ModbusTCPSlaveUnit IMPLEMENTS IDevice

InOut:

Scope

Name

Type

Initial

Comment

Inherited from

Input

xConfirmError

BOOL

FALSE

continue processing at rising edge

ModbusTCPSlaveUnit

xDoInit

BOOL

TRUE

If true then xConfirmError also sends all reset init commands, false (old behaviour)

ModbusTCPSlaveUnit

Output

xInitDone

BOOL

FALSE

All init commands have been processed

ModbusTCPSlaveUnit

xBusy

BOOL

FALSE

Is TRUE as long as a request is in progress

ModbusTCPSlaveUnit

xDone

BOOL

FALSE

Is TRUE if a request finished successfully

ModbusTCPSlaveUnit

xError

BOOL

FALSE

Is TRUE if any error occurred. Communication to this Slave is suspended.

ModbusTCPSlaveUnit

byModbusError

MB_ErrorCodes

MB_ErrorCodes.UNDEFINED

Specifies the current error as defined in the “MB_ErrorCodes” enumeration

ModbusTCPSlaveUnit

iChannelIndex

INT

-1

ModbusTCPSlaveUnit

usiUnitID

USINT

ModbusTCPSlaveUnit