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

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
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 122-28176