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

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
Conveyor
Box_Count
Box_Truck
Edge_Flag
Max_Truck
' -----[ Initialization ]--------------------------------------------------
LOW Conveyor
LOW Diverter
LOW Box_Det
PAUSE 500
DEBUG CR,"!RSET",CR,
DEBUG "@TEXT 1A,D0,1A,(Blue),Conveyor",CR, ' Label digital data traces
DEBUG "!O lblData = Boxes per",CR,
DEBUG "!O Meter=,0,200",CR
DEBUG "!RSET",CR
' -----[ Main Routine ]----------------------------------------------------
DO
LOOP
' -----[ Subroutines ]-----------------------------------------------------
Run_Control:
GOSUB Run_Control
GOSUB Count_Box
GOSUB Display_Data
IF (Start_SW = 0) THEN
ENDIF
IF (Stop_SW = 0) THEN LOW Conveyor
RETURN
"!CLRC",CR,
"!SPAN 0,20",CR
"@TEXT 1A,D1,1A,(Blue),Detect",CR,
"@TEXT 1A,D2,1A,(Blue),Diverter",CR
"!O txtData = 6",CR,
"!O txtR = Conveyor",CR,
"!O txtY = Detector",CR,
"!O txtG = Diverter",CR,
"!O txtFileName = Box_conv",CR
HIGH Conveyor
DEBUG "!READ txtData",CR
DEBUGIN DEC Max_Truck
PIN
VAR
VAR
VAR
VAR
11
Word
Byte
Bit
Byte
' Red LED
' Total boxes
' Boxes on truck
' Flag that box was detected
' Maximum boxes per truck
' Set initial states
' Reset StampPlot
' Clear constant drawings
' Set Y axis
' Start pressed?
' Energize conveyor
' Request boxes per truck from StampPlot
' Accept returning data
' Stop pressed?
' Label input text box area
' Set initial boxes per truck
' Label indicator text boxes
' Label file name for image saves
' Configure meter

Related parts for 122-28176