This example code is used for the detection of a pellet in the magazine. Note that for the detection to work, the hardware must be configured properly (see comments in the program).
\ Inputs
^PelletTrough = 4 \ Level Mode
\ Outputs
^PelletOp = 6
\ Z-Pulses Used in This Program
\ Z32 = Signal End of Session
\***************************************************
\ PELLET DISPENSER CONTROL
\***************************************************
S.S.8,
S1,
#START: ---> S2
S2, \ Time Acclimation Period
5': ON ^PelletOp ---> S3
S3,
0.05": OFF ^PelletOp ---> S4
#Z32: OFF ^PelletOp ---> S1
S4, \ As long as the Pellet is in the Trough the
\ input will reset the 50ms timer. Once the
\ Pellet has been removed the 50ms timer will
\ time out and the next Pellet will be delivered.
\
\ Record the number of Pellet Deliveries
#R^PelletTrough: ---> S4
0.5": ADD G; ON ^PelletOp ---> S3
#Z32: ---> S1
Related programs
Other versions
No training programs submitted/required
No older versions available
No experimental versions available