Programming the PTOSetPosition Function Block
You can use the PTOSetPosition function to determine the reason an error was detected during the execution of a PTO function.
Step |
Action |
---|---|
1 |
Select the Libraries tab in the Software Catalog and click Libraries. Select Controller > M218 > M218 PTOPWM > PTO > Administrative > PTOSetPosition in the list, drag-and-drop the item onto the POU window. |
2 |
Declare the function block instance. |
3 |
Associate the PTO_REF_IN input of the function block to the PTO_REF output of the PTOSimple function block. NOTE: A unique PTOSimple instance is needed per PTO channel in the application. |
4 |
The inputs/outputs are detailed in the function block. The interactions between the inputs/outputs are detailed in the General Information. |