ModbusTCPSlaveUnit (FB)

FUNCTION_BLOCK ModbusTCPSlaveUnit EXTENDS ModbusTCPSlaveBase

InOut:

Scope

Name

Type

Initial

Comment

Input

xConfirmError

BOOL

FALSE

continue processing at rising edge

xDoInit

BOOL

TRUE

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

Output

xInitDone

BOOL

FALSE

All init commands have been processed

xBusy

BOOL

FALSE

Is TRUE as long as a request is in progress

xDone

BOOL

FALSE

Is TRUE if a request finished successfully

xError

BOOL

FALSE

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

byModbusError

MB_ErrorCodes

MB_ErrorCodes.UNDEFINED

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

iChannelIndex

INT

-1

usiUnitID

USINT