| Greg Ross |
20-03-2002 20:32 |
Re: Broken Robot Controller
Quote:
Originally posted by Dan_550
I have a dillema here. This dillema is a half broken robot controller -- it won't accept user code. What do I do to get this fixed? Can it be exchanged for another at J&J? I don't know why in the heck I was just told this, but our programming ninnies apparently recieved it broken. It does function in the pre-loaded code, so what do I do?
|
More than likely, if it will run the default code, it's not broken.
What exactly do you mean when you say "it won't accept user code"?
Does it say "BASIC Stamp not found"? If so, the most likely problem is that the com port is being used by another program (or the system) on your computer, or there's no power to RC, or you have a bad programming cable, etc.
Does it download the program, and then just sit there with the BASIC Run Error light lit? If so, you could simply need to reset the RC after downloading the program. Or you may have a program error. Be sure your program is reading the same number of data bytes in the SERIN command as you initialized the master microprocessor to send you. (Read the comments in the default program beginning at "DEFINE CONSTANTS FOR INITIALIZATION" if you don't understand what I'm talking about.) The BASIC Run Error will also happen if your program manages to not come back to read more data at the SERIN command. (Or if it's not doing it often enough.)
Could you post your program, and maybe someone here can help with debugging your code?
|