PF_PurgeGate

Controls the opening and closing of the purge gate (optional).

Syntax
PF_PurgeGate feeder number/feeder name, On/Off

Parameters

  • Feeder Number
    Specify the feeder number (an integer from 1 to 4) either as an expression or a numerical value.
  • Name
    Specify the feeder name as a character string.
  • On/Off
    Set On(1) / Off(0). When On is specified, the purge gate opens.
    When Off is specified, the purge gate closes.

Return values
None

Description
Control will return immediately after the command processing has started.
If you wish to wait for the hopper operation to finish, please refer to the Example of PF_PurgeGateStatus.
PF_PurgeGate
If "Purge gate installed" is not checked in [System Configuration] - [Controller] - [Parts Feeder], error 2593 (Feeder purge output is not valid) will occur.
This function cannot be executed from the virtual controller or command window.
PF_Stop, Abort, emergency stop and safeguard open does not immediately stop the purge gate open and close.

Example 1
Wait for the purge gate to open, and then perform the next operation.

PF_PurgeGate 1, On  
Wait 5.0  
  
' Next action  

Example 2
Wait for the purge gate to close, and then perform the next operation.
Note: If the purge gate becomes overloaded during the closing operation (e.g. a part gets caught), it will automatically switch to the opening operation. The following program is an example of using PF_PurgeGateStatus to detect this.

Integer looplim  
looplim = 50  
PF_PurgeGate 1, Off  
Do While PF_PurgeGateStatus(1) = True And looplim > 0  
     Wait 0.1  
     looplim = looplim -1  
Loop  
If looplim <= 0 Then  
   ' Error Purge gate cannot close  
EndIf  
  
' Next action