ModbusTCPDeviceDiag (FB)ΒΆ

FUNCTION_BLOCK ModbusTCPDeviceDiag EXTENDS CAADiagDeviceDefault

This fucntion block is generated for the Modbus TCP slave device in the device tree if generic DIagnosis is activated.

InOut:

Scope

Name

Type

Initial

Comment

Input

xEnable

BOOL

TRUE

TRUE : start operation, open sockets

Output

xOnline

BOOL

TCP Port opened, ready for receiving request.

xInternalError

BOOL

FALSE

Unrecoverable internal error (e.g. if mem-alloc fails or no license)

ErrorCode

UDINT

error code

Port

UINT

Port Number

uiClientConnections

UINT

number of currently established client connections (TCP/IP)

xTimeout

BOOL

Timeout (if configured) expired. Holding Registers and Coils are set to zero.

Methods:

Structure: