130-28176 Parallax Inc, 130-28176 Datasheet - Page 123
![KIT PARTS PROCESS CONTROL](/photos/8/99/89975/mfg_130-28176_sml.jpg)
130-28176
Manufacturer Part Number
130-28176
Description
KIT PARTS PROCESS CONTROL
Manufacturer
Parallax Inc
Specifications of 130-28176
Accessory Type
Education Kit
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Board of Education Full Kit
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
- Current page: 123 of 330
- Download datasheet (11Mb)
So let’s try it!
Assuming a loop time of about 100 ms (processing time), if a normal box passing
requires 3 seconds, double would be 6 seconds. How many loops will have been
performed? 60.
•
√
√
√
Use the main status box above the plot for feedback showing the accumulated
value when testing:
Save BoxConveyor.bs2 under a new name: BoxConveyorSignal.bs2.
To the Declarations section add:
Modify the
RETURN
DEBUG "!STAT Accum value=", DEC your_accum_variable, CR
Accumulator
Count_Box:
IF (Opto_SW = 0) THEN
ENDIF
IF (Opto_Sw = 1) AND (Edge_Flag = 1) THEN
ENDIF
Edge_Flag = 1
HIGH Box_Det
Accumulator = Accumulator +1
DEBUG "!STAT Accum value = ", DEC Accumulator,CR
IF Accumulator = 30 THEN
ENDIF
Box_Count = Box_Count + 1
Box_Truck = Box_Count // Max_Truck
IF (Box_Truck = 0) THEN
ENDIF
LOW Box_Det
Edge_Flag = 0
Accumulator = 0
TOGGLE Diverter
LOW Conveyor
DO
LOOP
Count_Box
DEBUG "~PWAV nralarm",CR
PAUSE 5000
VAR
Byte
subroutine by adding the bold lines:
' Box detected?
' True, set flag
' Energize LED
' Add one to accum
' To many detects
' Turn off conveyor
' sound alarm until reset
' True, add one to count
' Take modulus to limit max count
' Box count at 0?
' True, change diverter
' De-energize detect LED
' Reset flag
' Reset accumulator if box detected
' No box but was detected?
'Show count
Related parts for 130-28176
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![130-32000](/photos/8/99/89967/mfg_130-32000_tmb.jpg)
Part Number:
Description:
KIT PROPELLER EDU PROJECT PARTS
Manufacturer:
Parallax Inc
Datasheet:
![130-28029](/photos/9/0/90016/mfg_130-28029_tmb.jpg)
Part Number:
Description:
KIT PARTS SMART SENSORS
Manufacturer:
Parallax Inc
Datasheet:
![30008](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
![70009](/photos/26/92/269208/70009-l_tmb.jpg)
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
![27404](/photos/26/91/269197/27404-l_tmb.jpg)
Part Number:
Description:
COMPETITION RING FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
![70016](/photos/8/99/89966/mfg_70016_tmb.jpg)
Part Number:
Description:
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer:
Parallax Inc
Datasheet:
![30008](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
![70009](/photos/26/92/269208/70009-l_tmb.jpg)
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
![28135](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
![SX18AC/SO](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: