Procedures – What is a Procedure?
Logo is a "procedural language". This means that the main program can call other
"secondary programs" (procedures) that each perform a specific function. For
instance, one procedure could trace out a leaf, another could trace out a petal and a
third could draw a stem.
The main program could use all these three procedures to draw a complete flower.
Pro-Bot, of course, can do exactly this. In fact different groups of students could write
the different procedures and the main program, then put them all together and see
how well it works!
Pro-Bot has several different types of procedure. They are numbered from 1 to 39.
Procedure numbers 1 to 32 are fully definable by you, numbers 33 to 37 are for
sensors and 38 to 40 are the built-in, invisible, demo sequences. The other special
procedures are also shown differently in the display and are:
33
FRONT: Run when the front touch sensor is triggered
34
REAR: Run when the rear touch sensor is triggered
35
DARK: Run when the light sensor goes from light to dark
36
LIGHT: Run when the light sensor goes from dark to light
37
SOUND: Run when the sound sensor is triggered
38
HEXGN: Draws a hexagon (not visible)
39
DIAMND: Draws a diamond (not visible)
40
FLOWER: Draws eight diamonds using proc 39 (not visible)
Pro-Bot
®
11
Need help?
Do you have a question about the Pro-Bot and is the answer not in the manual?