MDI_DataInterface_RTU (FB)

FUNCTION_BLOCK MDI_DataInterface_RTU

This function block is used to transfer command and status data between the application layer and the communication layer of the PLC program. An instance of the relevant function block must exist for each axis in the application.

InOut:

Scope

Name

Type

Initial

Comment

Input

Execute

BOOL

Begins the read-and-write interface cycle.

DriveAddress

BYTE

1

Drives node address.

TimeOut

INT

200

Communication Timeout [ms].

LastDone

BOOL

Link to last MDI_DATAINTERFACE_RTU.Done but to reset function chain.

TypeOfDrive

MDI_DriveType

MDI_DriveType.ACSx80

e5x0:= 0, ACSx80:= 1.

ResetCommsError

BOOL

Clear a communication error that is present in the output.

Inout

Axis

MDI_AxisRef

Reference to axis.

Output

Done

BOOL

Read-and-write operations completed without an error.

Error

BOOL

Signals that an error has occurred within function block.

ErrorID

ERROR_ID

Contains the error code when there is an error.

Structure: