ModbusTCPSlave_Diag (FB)

FUNCTION_BLOCK ModbusTCPSlave_Diag EXTENDS ModbusTCPSlave IMPLEMENTS IDevice

InOut:

Scope

Name

Type

Initial

Comment

Inherited from

Output

xInitDone

BOOL

FALSE

ModbusTCPSlave

xBusy

BOOL

FALSE

Is TRUE as long as a request is in progress

ModbusTCPSlave

xDone

BOOL

FALSE

Is TRUE if a request finished successfully

ModbusTCPSlave

xError

BOOL

FALSE

Is TRUE if a request finished unsuccessfully

ModbusTCPSlave

byModbusError

MB_ErrorCodes

MB_ErrorCodes.UNDEFINED

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

ModbusTCPSlave

ComSettings

ModbusTCPComSettings

ModbusTCPSlave

ComState

ModbusTCPComState

ModbusTCPComState.OFF

ModbusTCPSlave

iChannelIndex

INT

-1

ModbusTCPSlave

Input

xConfirmError

BOOL

FALSE

continue processing at rising edge

ModbusTCPSlave

xDoInit

BOOL

TRUE

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

ModbusTCPSlave