To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.pbforthOpen lugnet.robotics.rcx.pbforth in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / pbFORTH / 421
420  |  422
Subject: 
RE: Confusion regarding the POWER_OFF command.
Newsgroups: 
lugnet.robotics.rcx.pbforth
Date: 
Thu, 25 Jan 2001 14:33:43 GMT
Viewed: 
1658 times
  
I'm a little confused with the POWER_OFF word.

I was too. It's a bit goofy, so I'll try to explain as I go...

From reading the documentation, I would have though the following would
work:

POWER_INIT

: test  BEGIN DO-WORK POWER_OFF 0 UNTIL ;

When 'test' is executed, both 'DO-WORK' and 'POWER_OFF' are executed,
but I can't get the loop to iterate once again by pressing the
"On/Off" key.  I would like some way to power down the operation of a
robot to save battery power.

That's fine - the only thning you need to do (I think - I'm away from my
RCX)
is to put POWER_INIT just before POWER_OFF. The POWER_INIT word initializes
the interrupt vectors for Non-Maskable Interrupt (which is what the power
button is connected to)

Hope this helps...

Cheers,

Ralph Hempel - P.Eng

------------------------------------------------------
The train stops at the train station,
The bus stops at the bus station,
So why am I sitting at a work station?
------------------------------------------------------
Reply to:      rhempel at bmts dot com
------------------------------------------------------



Message is in Reply To:
  Confusion regarding the POWER_OFF command.
 
I'm a little confused with the POWER_OFF word. From reading the documentation, I would have though the following would work: POWER_INIT : test BEGIN DO-WORK POWER_OFF 0 UNTIL ; When 'test' is executed, both 'DO-WORK' and 'POWER_OFF' are executed, (...) (24 years ago, 25-Jan-01, to lugnet.robotics.rcx.pbforth)

2 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR