PDA

View Full Version : New words not recognized at first


Mark Bresler
04-29-07, 11:02 PM
Hi,
I am working with the Toy Traveler program that was posted several months ago in response to an earlier quest of mine. I had it working, scanning through the lights and stopping as the switch was depressed. I then came back to the program after connecting the motor controller board and am getting some curious actions. Pressing the switch does not seem to be doing anything now, even with the unmodified program. In debugging I found a very curious result where new words are not recognized until a built in word is used. An example follows:
------
HEAD0LED OFF
OFF ?
REDLED OFF OK
HEAD0LED OFF OK
---
this happens regardless whether INIT is run before or not. Have I've forgotten some set up procedure, or is there another explanation,
thanks, Mark

Dave
04-30-07, 12:12 PM
Hi Mark,
One thing that is not always apparent, (and tripped me up in checking) is that the word ISOMAX-START is needed at times, after a COLD or a SCRUB word has been used. This is detailed a bit in the SCRUB and COLD description on page 8 of the Advanced Programming (http://www.newmicros.com/store/product_manual/AdvancedProgramming.pdf) document on the Download page (http://www.newmicros.com/store/product_details/download.html)

At the end, just type in ISOMAX-START to get things running again, then INIT, to install the defined state machine.

Mark Bresler
05-01-07, 10:27 PM
Thanks, adding those lines corrected the problem, Mark