Page 145 - The Ultimate Palm Robot
P. 145
Color profile: Generic CMYK printer profile
Composite Default screen
Bots / The Ultimate Palm Robot/ Mukhar & Johnson / 222880-6 / Chapter 6
128 The Ultimate Palm Robot
Making Your First Program
Ready? Let’s get started!
1. When you start a new program, the PRP automatically adds one
block to the program. This is the Main block, as seen in the following
illustration. The Main block has a corresponding EndMain block.
These two blocks mark the start and end of your program. The
Main component provides a means for the PRP to know where your
program starts and stops; it also allows the PRP to differentiate the
core of the program from subroutines (which we will look at soon,
so stop getting so antsy).
2. In the palette, find the component named Servo Start and click it.
3. Position the mouse over the Main block in the workspace and click
the mouse. The PRP will add the Servo Start component to the Main
component and draw the ServoStart block in the workspace. Notice
that you don’t drag the component onto the workspace as you might
do in other drawing programs. You simply click the component in
the palette and then click a component in the workspace.
P:\010Comp\Bots\880-6\ch06.vp
Monday, May 12, 2003 1:06:21 PM