Programming example
Based on PLC frame application Frame_PLCopenP1.pro we show how to solve a simple motion application. In program MAIN all Function blocks are called to connect to the motion controller and for initialisation of PLCs data.
Further Information
- Step 1: Necessary libraries
- Step 2: : Creating the HelloWorld PLC program
- Step 3: Program HelloWorld: Instances of PLCopen FB
- Step 4: Connect axis with PLCopen FBs
- Step 5: Connect variables to FB in-/output variables
- Step 6: Insert program HelloWorld into program MAIN
- Step 7: Assignment of programs to task
- Step 8: Build application, login, run
- Step 9: Command release of axis
- Step 10: Ready, axis moved!