Page 131 - The Ultimate Palm Robot
P. 131
Color profile: Generic CMYK printer profile
Composite Default screen
Bots / The Ultimate Palm Robot/ Mukhar & Johnson / 222880-6 / Chapter 5
114 The Ultimate Palm Robot
stored as a new memo on your PDA or in a file in the \aObject directory of
your PC, using the same filename, but with the extension .cup. Thus you now
have a simple.cup memo on your PDA or a simple.cup file on your PC.
You are now ready to load the program to the BrainStem. If you are using a
PDA, you can find simple.cup as a memo. The cup files on a PC are located in
the \aObject directory. Do not attempt to edit the cup files in any way! They are bi-
nary files, so they won’t make any sense to you anyway, and modifying them
will certainly cause the program to fail.
Download a cup File to the BrainStem Here is the general form of the
command to download a program from the Console application to the
BrainStem:
load "file_name" module_id slot
The first parameter in the command is the quoted name of the compiled
TEA file, including the .cup extension. The second parameter is the module
number. For the BrainStem GP 1.0, 2 is the default value for the module num-
ber. Since we haven’t shown you how to change it, we’ll assume that 2 is the
correct parameter for the module number. The final parameter is the slot num-
ber. The BrainStem module has 10 slots numbered from 0 to 9. This allows the
BrainStem to store 10 programs at any one time. You can switch between the
programs with the launch command that we will see in the Launching a CUP
File section. So, here is the command to load simple.cup to slot 0 of the
BrainStem:
load "simple.cup" 2 0
If the load command is successful, the Console will print a message that
says the file was loaded.
P:\010Comp\Bots\880-6\ch05.vp
Monday, May 12, 2003 4:06:13 PM