Page 160 - The Ultimate Palm Robot
P. 160

Color profile: Generic CMYK printer profile
           Composite  Default screen
                                                          Bots /The Ultimate Palm Robot/ Mukhar & Johnson / 222880-6 / Chapter 6






                                                      Chapter 6  The Palm Robot Programmer (PRP)     143



                         Figure 6-7
                         In this version of the To-Fro program, the ServoStart and ServoStop blocks have been moved into Subroutines.
                         Now we can make the robot go back and forth additional times by adding Call blocks to call the subrotuines,
                         rather than repeating the ServoStart blocks every time we want to add a movement.
































                         Saving and Loading Programs
                                    After creating your program, you will want to save it on your computer for
                                    later use.


                         Saving
                                    To save any program you’ve created, choose File | Save, or click the Save but-
                                    ton on the toolbar.
                                      You’ll see a standard file Save dialog box. Use this dialog box to navigate to
                                    any folder on your PC. Enter a name for your program and click the Save but-
                                    ton. The PRP will add the appropriate file extension for you. (The standard ex-
                                    tension for PRP programs, in case you’re curious or think it might come in
                                    handy on an episode of Jeopardy,is .prp.)












           P:\010Comp\Bots\880-6\ch06.vp
           Monday, May 12, 2003 1:06:25 PM
   155   156   157   158   159   160   161   162   163   164   165