7 Create a PLC program with motion control functions (optional)
5.
6.
7.
8.
9.
26
Go to "Solution Explorer" > "PLC" > "First_PLC_Project" > "POUs" > "MAIN (PRG)".
In this example, we will enable the servo control for axis 1. Press F2 to open the
"Input Assistant" which helps you to find the desired PLCopen function in the TwinCAT
library.
Select the function Tc2_MC2.MC_Power and select "OK". Then add the AXIS_REF
structure in the same manner.
The example program you created should look like this:
Select "BUILD" > "Build Solution" to compile the project.
Assign a connection to "Axis 1". Click the "Link To PLC..." button to select the
AXISREF_Axis1 structure from your PLC program.
QS10000_V1.0_EN