Programming the PTOSimple Function Block
Step |
Action |
---|---|
1 |
Select MyController in the Applications tree. |
2 |
Clcik the right mouse button. |
3 |
Click Add Object > POU. Result: The Add POU window is displayed. |
4 |
Enter the appropriate information in the Add POU window. |
5 |
Click Add. |
6 |
Select the Libraries tab in the Software catalog and click Libraries. Select Controller > M218 > M218 PTOPWM > PTO > PTOSimple in the list, drag-and-drop the item onto the POU window. |
7 |
Look for the function block instance by clicking The Input Assistant window appears. Select the variable that you defined during the configuration and confirm. ![]() NOTE: If the function block instance is not visible, verify if the PTO is configured. |
8 |
The inputs/outputs are detailed in the function block. |