"CoDeSys" programming example
Based on the PLC project Frame_PLCopenP1.pro, the example shows how a simple motion task is executed. In this general application, all programs and function blocks are invoked in the MAIN program, set up links to the motion controller and initialise the PLC working data.
Additional information
- Step 1: Required libraries
- Step 2: Creating the HelloWorld application program
- Step 3: HelloWorld program: Instancing PLCopen FBs
- Step 4: Linking the axes to PLCopen FBs
- Step 5: Assigning the function block IN/OUT variables
- Step 6: Insert the HelloWorld program in the MAIN program
- Step 7: Assigning programs to a task
- Step 8: Build application, login, run
- Step 9: Setting the enabling signals for the axis
- Step 10: Ready, axis has moved!