Step 3: Program HelloWorld: Instances of PLCopen FB
Following table shows the instances which we define to solve the motion job. They will be defined in the program HelloWorld, where the motion job will be implemented.
PLCopen-FB | Instanzname | Bemerkungen |
---|---|---|
MC_Power | MC_Power_1 | Used to activate controller and releases feed hold. |
MC_ReadActualPosition | MC_ReadActualPosition_1 | Displays position of axis at output variable Position. |
MC_MoveRelative | MC_MoveRelative_1 | Moves axis relative to current position. Value of distance is given at input variable Distance. |
Following figure shows the definition of the applied FBs in the variable definition area of program HelloWorld and their appearance in CFC editor.
![Step 3: Program HelloWorld: Instances of PLCopen FB 1:](Images/jpg/15303335051__en-US__Web.jpg)