Legacy Forum: Preserving Nearly 20 Years of Community History - A Time Capsule of Discussions, Memories, and Shared Experiences.

MOTOROFF n - is there a workaround?

Hitec robotics including ROBONOVA humanoid, HSR-8498HB servos, MR C-3024 Controllers and RoboBasic
3 postsPage 1 of 1
3 postsPage 1 of 1

MOTOROFF n - is there a workaround?

Post by robots42 » Tue Aug 12, 2008 7:08 pm

Post by robots42
Tue Aug 12, 2008 7:08 pm

Since MOTOROFF doesn't work for individual servos is there a workaround other than turning off all servos and turning on the ones I want?
Is there a set of bits in the system variables somewhere which can be POKEd to control whether a motor is on or off?
David
Since MOTOROFF doesn't work for individual servos is there a workaround other than turning off all servos and turning on the ones I want?
Is there a set of bits in the system variables somewhere which can be POKEd to control whether a motor is on or off?
David
robots42
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 38
Joined: Sat Jul 05, 2008 1:21 pm
Location: Oldham, Lancs, England

Post by i-Bot » Tue Aug 12, 2008 8:46 pm

Post by i-Bot
Tue Aug 12, 2008 8:46 pm

If I recall correctly the MOTOROFF for all groups works OK (G6, G8, G24), but for individual servos is broken in the compiler. MOTOROFF compiles to MOTOR for individual servos)

So you can MOTOROFF a group then turn back on the individual ones you want with MOTOR(or MOTOROFF if you feel obtuse !).

This will be also fixable by a POKE, but I am travelling, so do not have the memory locations. Remember also POKE is broken in the C3024 code for variables, so you must use constants.
If I recall correctly the MOTOROFF for all groups works OK (G6, G8, G24), but for individual servos is broken in the compiler. MOTOROFF compiles to MOTOR for individual servos)

So you can MOTOROFF a group then turn back on the individual ones you want with MOTOR(or MOTOROFF if you feel obtuse !).

This will be also fixable by a POKE, but I am travelling, so do not have the memory locations. Remember also POKE is broken in the C3024 code for variables, so you must use constants.
i-Bot
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 1142
Joined: Wed May 17, 2006 1:00 am

Post by robots42 » Wed Aug 13, 2008 2:56 pm

Post by robots42
Wed Aug 13, 2008 2:56 pm

I was considering doing the group OFF then MOTOR n.......
Really need to have flag bits somewhere for which servo is on or off and I thought to POKE a system bit. I didn't know POKE was broken! It is still probably easier to poke a system bit rather than do it in RoboBasic.
What else is broken? I mentioned I had rewritten the RoboBasic manual so it covered just the RN implementation and have been adding notes as to what doesn't work, MUSIC "H","L" only seem to work for the first program in memory, not in an ACTION call to a second program.
When you get back it would be good to have any memory locations you have.
Thank you
David
I was considering doing the group OFF then MOTOR n.......
Really need to have flag bits somewhere for which servo is on or off and I thought to POKE a system bit. I didn't know POKE was broken! It is still probably easier to poke a system bit rather than do it in RoboBasic.
What else is broken? I mentioned I had rewritten the RoboBasic manual so it covered just the RN implementation and have been adding notes as to what doesn't work, MUSIC "H","L" only seem to work for the first program in memory, not in an ACTION call to a second program.
When you get back it would be good to have any memory locations you have.
Thank you
David
robots42
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 38
Joined: Sat Jul 05, 2008 1:21 pm
Location: Oldham, Lancs, England


3 postsPage 1 of 1
3 postsPage 1 of 1