MDI_DataInterface_TCP (FB)

FUNCTION_BLOCK MDI_DataInterface_TCP

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.

Note

Make sure that each drive corresponds to an independent IP address.

InOut:

Scope

Name

Type

Initial

Comment

Input

Enable

BOOL

TRUE

Begins the read-and-write interface cycle.

DriveIPAddress

STRING(80)

Drives IP address.

TypeOfDrive

MDI_DriveType

MDI_DriveType.e5x0

e5x0:= 0, ACSx80:= 1.

ModbusCycleTime

INT

50

Read-and-write interval [ms].

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: