PF_Hopper

Controls hoppers.

Syntax
PF_Hopper HopperNo_A, PartID_A [,Duration_A] [,HopperNo_B] [,PartID_B] [,Duration_B]

Parameters

  • HopperNo_A
    Specify the hopper number (integer number 1 or 2).
  • PartID_A
    Specifies the part ID (integer value 1 to 32).
  • Duration_A
    This can be omitted. Specifies the duration of the hopper A vibration time (integer number 1 to 30000) in milliseconds.
    If duration_A is omitted or -1 then the value set in the Part Feeding Calibration dialog will be used. If duration_A is 0 then hopper A will not vibrate and will stop if previously running.
  • HopperNo_B
    This can be omitted. Specify the hopper number (integer number 1 or 2).
  • PartID_B
    This can be omitted. Specifies the part ID (integer value 1 to 32).
  • Duration_B
    This can be omitted. Specifies the duration of the hopper B vibration time (integer number 1 to 30000) in milliseconds.
    If duration_B is omitted or -1 then the value set in the Part Feeding Calibration dialog will be used. If duration_B is 0 then hopper B will not vibrate and will stop if previously running.

Return values
None

Description
Control will return immediately after the command processing has started.
The part specified by PartID_A must be configured to use HopperNo_A. The part specified by PartID_B must be configured to use HopperNo_B. Hoppers are assigned to a part in the Part Feeding dialog’s "Part Supply" page.

The hopper(s) will stop when the PF_Abort command is executed. The hopper(s) will not stop when the PF_Stop command is executed.

PF_Hopper can be executed in parallel with feeder vibration.
The hopper number must always be 1 for the IF-80 since the IF-80 only supports 1 hopper per feeder.

PF_Hopper cannot be executed from a virtual controller or command window.
If a hopper number is specified but the hopper has not been enabled in the System Configuration, an error will occur.

Note: PF_OutputOnOff and PF_Output only work with Gen.1 hoppers.
PF_Hopper is required to control Gen.2 hoppers but also works with Gen.1 hoppers as well.

Example 1:
Part number 9. Turn On Gen.2 hopper 1 for 3 seconds. The Amplitude for Gen.2 hopper has been assigned on the Part Feeding Calibration screen for Part 9.

PF_Hopper 1,9,3000
Wait 3	'Wait for the hopper action to complete.

Example 2:
Run hopper 2 for the duration specified in the Part Feeding Calibration | Hopper page for Part 1.

PF_Hopper 2,1

Example 3:
Immediately stops hopper 2 in Example 2.

PF_Hopper 2,1,0

Example 4:
Simultaneously runs hopper 1 for part 2 for 500 ms and hopper 2 for part 3 for 400 ms.

PF_Hopper 1.2, 500,2,3,400

Example 5:
Immediately stops both hopper 1 and hopper 2 in Example 4.

PF_Hopper 1.1, 0,2,3.0