IoDrvModbusTCPSlave (FB)ΒΆ

FUNCTION_BLOCK IoDrvModbusTCPSlave EXTENDS IoDrvBase IMPLEMENTS ICmpIoDrvParameter

This function block is generated for each Modbus TCP slave device in the device tree.

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.

Properties:

Methods:

Structure: