122-28176 Parallax Inc, 122-28176 Datasheet - Page 119

GUIDE STUDENT PROCESS CONTROL

122-28176

Manufacturer Part Number
122-28176
Description
GUIDE STUDENT PROCESS CONTROL
Manufacturer
Parallax Inc
Datasheets

Specifications of 122-28176

Accessory Type
Manual
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Propeller Education (PE) Kit
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
Count_Box:
Display_Data:
As boxes are counted and the diverter is switched, note the indicators changing. At what
point does a new count take place in relation to the detector trace? What count is actually
indicated for a full truckload? Why?
IF (Opto_SW = 0) THEN
ENDIF
IF (Opto_Sw = 1) AND (Edge_Flag = 1) THEN
ENDIF
RETURN
DEBUG "!O imgR =", BIN Conveyor,CR,
' Plot digital status of control
DEBUG IBIN Conveyor,
DEBUG "!O Stat1= Boxes to truck:",
DEBUG DEC Box_Truck,CR
DEBUG "!O Meter=", DEC Box_Count,CR
RETURN
Edge_Flag = 1
HIGH Box_Det
Box_Count = Box_Count + 1
Box_Truck = Box_Count // Max_Truck
IF (Box_Truck = 0) THEN
ENDIF
LOW Box_Det
Edge_Flag = 0
TOGGLE Diverter
Close the Debug Terminal.
Run StampPlot macro sic_gen_process.spm.
Connect and plot.
Start the conveyor and run some boxes past the detector.
"!O imgY =",BIN Box_Det,CR,
"!O imgG =",BIN Diverter,CR
BIN Box_Det,
BIN Diverter,CR
DEC Box_Count // Max_Truck,CR,
"!O Stat2= Total boxes:",
DEC Box_Count,CR
' Box detected?
' True, set flag
' Energize LED
' Update indicators images
' Send with leading % in binary
' other two without leading %
' Update status boxes
' Plot analog value of boxes loaded
' Update meter
' No box but was detected?
' True, add one to count
' Take modulus to limit max count
' Box count at 0?
' True, change diverter
' De-energize detect LED
' Reset flag

Related parts for 122-28176