PF_Stop

Issues a Part Feeding process end request.
This will wait for running callback functions to finish.
Once complete, the PF_CycleStop callback function will run and the process will stop.

Syntax
PF_Stop part ID

Parameters

  • Part ID
    Specify the part ID (integer number from 1 to 32).

Return values
None

Description
Stops the Part Feeding process for the specified part.
Unlike the PF_Abort command, PF_Stop will wait for running callback functions to finish.
Once callback functions are complete, the PF_CycleStop callback function will run.
Nothing will occur when using this function when the Part Feeding process has not been started.
When using PF_Stop in a multi-part operation, any of the partID that specified with PF_Start can stop the Part Feeding process.
You cannot execute PF_Start immediately after executing PF_Stop. If PF_Start is executed before the PF_CycleStop callback function has completed, a PF_STATUS_FEEDERINUSE_ERROR will occur. This is because you are trying to run a new part on the feeder before the current part has completed.
To correct this situation, add code like to the following.

PFStop 1	'For this example, Part 1 is running on Feeder 1 which uses task 32
TaskWait 32	'Wait for the current part to finish
PFStart 2	'Now you can start a new part

PF_Hopper cannot be executed from a virtual controller or command window.

Examples

PF_Stop 1