ConnectToSim()
This method establishes a connection between the torque-limiting FB and the simulated servo drive. This connection replaces the EtherCAT communication with a real CoE402-based servo drive.
Syntax:
METHOD ConnectToSim : HRESULT
VAR_INPUT
ipSim: I_SimCoE402_Servo;
END_VAR
Return value
Name | Type | Description |
---|---|---|
ConnectToSim | HRESULT | Return value with feedback on the success of the execution. |
Inputs
Name | Type | Description |
---|---|---|
ipSim | I_SimCoE402_Servo | The simulation block for the simulation of a CoE402 servo. |
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1.4024.35 | PC or CX (x64, x86) | Tc3_PlasticFunctions v3.12.4.26 or higher Tc3_PlasticNc v3.12.4.26 or higher |