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
EnableBOOLTRUE
Begins the read-and-write interface cycle.
DriveIPAddressSTRING(80)Drives IP address.
TypeOfDriveMDI_DriveType.e5x0
e5x0:= 0, ACSx80:= 1.
ModbusCycleTimeINT50
Read-and-write interval [ms].
ResetCommsErrorBOOLClear a communication error that is present in the output.
Inout
AxisReference to axis.
Output
DoneBOOLRead-and-write operations completed without an error.
ErrorBOOLSignals that an error has occurred within function block.
ErrorIDContains the error code when there is an error.
Structure: