28176 Parallax Inc, 28176 Datasheet - Page 30

KIT PARTS PROCESS CONTROL W/TEXT

28176

Manufacturer Part Number
28176
Description
KIT PARTS PROCESS CONTROL W/TEXT
Manufacturer
Parallax Inc
Datasheet

Specifications of 28176

Accessory Type
Process Control
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
BASIC Stamp® 2 and Board of Education
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
Challenge 1-4: Add an Operational Indicator
ACTIVITY #5: CONDITIONAL LOOPING
Many times in a process it is necessary to repeat a sequence based on a condition. On
the other hand, halting or pausing an execution until a certain condition exists may be
required.
conditions are met, such as an oil pump running, there may be no need to continue farther
into the process. A conditional loop could be used to ensure that a condition exists prior
to continuing with the sequence.
Parts Required
Same as Activity #2
Examine the Conditional Looping flowchart in Figure 1-11.
1.
2.
3.
Add a pre-defined process block to the main loop of the flowchart in Figure 1-9.
Also add a process flowchart to turn on the LED for 0.25 seconds at every pass
through the main loop in order to indicate proper operation of the system.
Add code to LightAlarmWithSubroutines.bs2 to match the flowchart.
Programming Tip: Every routine called with a GOSUB must exit with a RETURN. Internal
pointers keep track of GOSUBs and RETURNs, and if not matched properly, will result in
erroneous behavior of the processor.
Consider the process of starting a piece of industrial machinery.
Until

Related parts for 28176