PF_Start Method
Description
Starts the Part Feeding process for a specified part.
Syntax
Sub PF_Start (PartID1 As Integer, [PartID2 As Integer], [PartID3 As Integer], [PartID4 As Integer])
Parameters
- PartID1
An integer indicating the master part ID (1 to 16). - PartID2
An integer indicating the slave part ID (1 to 16). Optional. - PartID3
An integer indicating the slave part ID (1 to 16). Optional. - PartID4
An integer indicating the slave part ID (1 to 16). Optional.
Remarks
Perform the following before starting this method.
- - Select the robot in use
- - Turn the motors on
- - Run PF_InitLog when outputting a log
Running this method generates a new task and returns control to the caller.
When this occurs, the Status callback function will be run under the following conditions. The Part Feeding process will not start.
| Condition | Status callback function Status parameter value |
|---|---|
| The part ID is invalid | PF_STATUS_BAD_ID |
Part parameter settings are invalid (Enabled check box not selected, etc.) | PF_STATUS_BAD_PARAMETER |
| Feeder calibration not complete | PF_STATUS_CAL_NOT_COMPLETE |
| An error occurred | PF_STATUS_ERROR |
This method cannot be run multiple times at the same time. Once initiated, the processing already executed will continue. An error will not occur.
PF_Start should be run from a normal task. An error will occur when attempting to run PF_Task from a background task.
Caution If a part ID that does not exist is specified in this method, a 7600 error will occur.
PF_Start Use Example
VB Examples:
m_spel.PF_Start(1)
C# Example:
m_spel.PF_Start(1);