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

Programming question/confusion

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

Programming question/confusion

Post by My Bear » Fri May 09, 2008 10:28 pm

Post by My Bear
Fri May 09, 2008 10:28 pm

Hi Guys

What have I missed or doing incorrectly.

Using RoboBASIC I set up a sequence of hip and ankle movements which works seamlessly.

I then go back and decide to add head and arm movement. When I do this by changing the servo position of the respective arm and head servos it works. BUT then the hip and ankle movement stop responding.

but start up again once the head and arm movement stops!

Confused and starting to lose the plot.

Here is the thread, what am I missing, please put me straight and give me the basics.

The arm movement is on line G6C 1,2,3

Hip Movement is on line G6A 5 & G6D 5

Head movement is on line G6B 4,5

All work fine independently but not together?

PTP ALLON
GETMOTORSET G24,1,1,1,1,1,0,1,1,1,0,0,0,1,1,1,0,0,0,1,1,1,1,1,0
SPEED 5
MOTOR G24

MOVE G6A, 99, 77, 117, 87, 99, 77
MOVE G6B,108, 40, 79, 92, 100, 33
MOVE G6C,104, 41, 78, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 104, 106
DELAY 5000
MOVE G6A, 99, 77, 117, 87, 96, 77
MOVE G6B,108, 40, 79, 105, 100, 33
MOVE G6C,110, 44, 80, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 106, 106
MOVE G6A, 99, 77, 117, 87, 103, 77
MOVE G6B,108, 40, 79, 99, 100, 33
MOVE G6C,125, 45, 81, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 102, 106
MOVE G6A, 99, 77, 117, 87, 96, 77
MOVE G6B,108, 40, 79, 92, 100, 33
MOVE G6C,140, 45, 81, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 106, 106
MOVE G6A, 99, 77, 117, 87, 103, 77
MOVE G6B,108, 40, 79, 87, 102, 33
MOVE G6C,156, 45, 82, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 102, 106
MOVE G6A, 99, 77, 117, 87, 96, 77
MOVE G6B,108, 40, 79, 92, 107, 33
MOVE G6C,173, 46, 82, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 106, 106
MOVE G6A, 99, 77, 117, 87, 103, 77
MOVE G6B,108, 40, 79, 99, 113, 33
MOVE G6C,180, 41, 78, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 102, 106
MOVE G6A, 99, 77, 117, 87, 96, 77
MOVE G6B,108, 40, 79, 105, 120, 33
MOVE G6C,188, 59, 83, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 106, 106
MOVE G6A, 99, 77, 117, 87, 103, 77
MOVE G6B,108, 40, 79, 98, 133, 33
MOVE G6C,104, 41, 78, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 102, 106
MOVE G6A, 99, 77, 117, 87, 96, 77
MOVE G6B,108, 40, 79, 91, 146, 33
MOVE G6C,187, 83, 84, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 106, 106
Hi Guys

What have I missed or doing incorrectly.

Using RoboBASIC I set up a sequence of hip and ankle movements which works seamlessly.

I then go back and decide to add head and arm movement. When I do this by changing the servo position of the respective arm and head servos it works. BUT then the hip and ankle movement stop responding.

but start up again once the head and arm movement stops!

Confused and starting to lose the plot.

Here is the thread, what am I missing, please put me straight and give me the basics.

The arm movement is on line G6C 1,2,3

Hip Movement is on line G6A 5 & G6D 5

Head movement is on line G6B 4,5

All work fine independently but not together?

PTP ALLON
GETMOTORSET G24,1,1,1,1,1,0,1,1,1,0,0,0,1,1,1,0,0,0,1,1,1,1,1,0
SPEED 5
MOTOR G24

MOVE G6A, 99, 77, 117, 87, 99, 77
MOVE G6B,108, 40, 79, 92, 100, 33
MOVE G6C,104, 41, 78, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 104, 106
DELAY 5000
MOVE G6A, 99, 77, 117, 87, 96, 77
MOVE G6B,108, 40, 79, 105, 100, 33
MOVE G6C,110, 44, 80, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 106, 106
MOVE G6A, 99, 77, 117, 87, 103, 77
MOVE G6B,108, 40, 79, 99, 100, 33
MOVE G6C,125, 45, 81, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 102, 106
MOVE G6A, 99, 77, 117, 87, 96, 77
MOVE G6B,108, 40, 79, 92, 100, 33
MOVE G6C,140, 45, 81, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 106, 106
MOVE G6A, 99, 77, 117, 87, 103, 77
MOVE G6B,108, 40, 79, 87, 102, 33
MOVE G6C,156, 45, 82, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 102, 106
MOVE G6A, 99, 77, 117, 87, 96, 77
MOVE G6B,108, 40, 79, 92, 107, 33
MOVE G6C,173, 46, 82, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 106, 106
MOVE G6A, 99, 77, 117, 87, 103, 77
MOVE G6B,108, 40, 79, 99, 113, 33
MOVE G6C,180, 41, 78, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 102, 106
MOVE G6A, 99, 77, 117, 87, 96, 77
MOVE G6B,108, 40, 79, 105, 120, 33
MOVE G6C,188, 59, 83, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 106, 106
MOVE G6A, 99, 77, 117, 87, 103, 77
MOVE G6B,108, 40, 79, 98, 133, 33
MOVE G6C,104, 41, 78, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 102, 106
MOVE G6A, 99, 77, 117, 87, 96, 77
MOVE G6B,108, 40, 79, 91, 146, 33
MOVE G6C,187, 83, 84, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 106, 106
My Bear
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 29
Joined: Wed Feb 06, 2008 10:56 pm
Location: Harrogate, Grand Brittania

Post by i-Bot » Fri May 09, 2008 11:01 pm

Post by i-Bot
Fri May 09, 2008 11:01 pm

Not sure if it is your problem, but think of a MOVE as always having a WAIT instruction at the front of it.
Instead of multiple Move G6, use G24 if they are all to move at the same time. Else each move is done in turn.

You can use a zero in a MOVE value of G24, if you don't want it to change from the last value.
Not sure if it is your problem, but think of a MOVE as always having a WAIT instruction at the front of it.
Instead of multiple Move G6, use G24 if they are all to move at the same time. Else each move is done in turn.

You can use a zero in a MOVE value of G24, if you don't want it to change from the last value.
i-Bot
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 1142
Joined: Wed May 17, 2006 1:00 am

Re: Programming question/confusion

Post by DirtyRoboto » Sat May 10, 2008 4:44 am

Post by DirtyRoboto
Sat May 10, 2008 4:44 am

My Bear wrote:Hi Guys

What have I missed or doing incorrectly.

Using RoboBASIC I set up a sequence of hip and ankle movements which works seamlessly.

I then go back and decide to add head and arm movement. When I do this by changing the servo position of the respective arm and head servos it works. BUT then the hip and ankle movement stop responding.

but start up again once the head and arm movement stops!

Confused and starting to lose the plot.

Here is the thread, what am I missing, please put me straight and give me the basics.

The arm movement is on line G6C 1,2,3

Hip Movement is on line G6A 5 & G6D 5

Head movement is on line G6B 4,5

All work fine independently but not together?

PTP ALLON
GETMOTORSET G24,1,1,1,1,1,0,1,1,1,0,0,0,1,1,1,0,0,0,1,1,1,1,1,0
SPEED 5
MOTOR G24

MOVE G6A, 99, 77, 117, 87, 99, 77
MOVE G6B,108, 40, 79, 92, 100, 33
MOVE G6C,104, 41, 78, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 104, 106
DELAY 5000
MOVE G6A, 99, 77, 117, 87, 96, 77
MOVE G6B,108, 40, 79, 105, 100, 33
MOVE G6C,110, 44, 80, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 106, 106
MOVE G6A, 99, 77, 117, 87, 103, 77
MOVE G6B,108, 40, 79, 99, 100, 33
MOVE G6C,125, 45, 81, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 102, 106
MOVE G6A, 99, 77, 117, 87, 96, 77
MOVE G6B,108, 40, 79, 92, 100, 33
MOVE G6C,140, 45, 81, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 106, 106
MOVE G6A, 99, 77, 117, 87, 103, 77
MOVE G6B,108, 40, 79, 87, 102, 33
MOVE G6C,156, 45, 82, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 102, 106
MOVE G6A, 99, 77, 117, 87, 96, 77
MOVE G6B,108, 40, 79, 92, 107, 33
MOVE G6C,173, 46, 82, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 106, 106
MOVE G6A, 99, 77, 117, 87, 103, 77
MOVE G6B,108, 40, 79, 99, 113, 33
MOVE G6C,180, 41, 78, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 102, 106
MOVE G6A, 99, 77, 117, 87, 96, 77
MOVE G6B,108, 40, 79, 105, 120, 33
MOVE G6C,188, 59, 83, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 106, 106
MOVE G6A, 99, 77, 117, 87, 103, 77
MOVE G6B,108, 40, 79, 98, 133, 33
MOVE G6C,104, 41, 78, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 102, 106
MOVE G6A, 99, 77, 117, 87, 96, 77
MOVE G6B,108, 40, 79, 91, 146, 33
MOVE G6C,187, 83, 84, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 106, 106


Like i-Bot says, you need to include a wait after each group of moves to stop the following code from overriding the last command.
Try this...

PTP ALLON
GETMOTORSET G24,1,1,1,1,1,0,1,1,1,0,0,0,1,1,1,0,0,0,1,1,1,1,1,0
SPEED 5
MOTOR G24

MOVE G6A, 99, 77, 117, 87, 99, 77
MOVE G6B,108, 40, 79, 92, 100, 33
MOVE G6C,104, 41, 78, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 104, 106
DELAY 5000
MOVE G6A, 99, 77, 117, 87, 96, 77
MOVE G6B,108, 40, 79, 105, 100, 33
MOVE G6C,110, 44, 80, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 106, 106
WAIT
MOVE G6A, 99, 77, 117, 87, 103, 77
MOVE G6B,108, 40, 79, 99, 100, 33
MOVE G6C,125, 45, 81, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 102, 106
WAIT
MOVE G6A, 99, 77, 117, 87, 96, 77
MOVE G6B,108, 40, 79, 92, 100, 33
MOVE G6C,140, 45, 81, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 106, 106
WAIT
MOVE G6A, 99, 77, 117, 87, 103, 77
MOVE G6B,108, 40, 79, 87, 102, 33
MOVE G6C,156, 45, 82, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 102, 106
WAIT
MOVE G6A, 99, 77, 117, 87, 96, 77
MOVE G6B,108, 40, 79, 92, 107, 33
MOVE G6C,173, 46, 82, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 106, 106
WAIT
MOVE G6A, 99, 77, 117, 87, 103, 77
MOVE G6B,108, 40, 79, 99, 113, 33
MOVE G6C,180, 41, 78, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 102, 106
WAIT
MOVE G6A, 99, 77, 117, 87, 96, 77
MOVE G6B,108, 40, 79, 105, 120, 33
MOVE G6C,188, 59, 83, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 106, 106
WAIT
MOVE G6A, 99, 77, 117, 87, 103, 77
MOVE G6B,108, 40, 79, 98, 133, 33
MOVE G6C,104, 41, 78, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 102, 106
WAIT
MOVE G6A, 99, 77, 117, 87, 96, 77
MOVE G6B,108, 40, 79, 91, 146, 33
MOVE G6C,187, 83, 84, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 106, 106
My Bear wrote:Hi Guys

What have I missed or doing incorrectly.

Using RoboBASIC I set up a sequence of hip and ankle movements which works seamlessly.

I then go back and decide to add head and arm movement. When I do this by changing the servo position of the respective arm and head servos it works. BUT then the hip and ankle movement stop responding.

but start up again once the head and arm movement stops!

Confused and starting to lose the plot.

Here is the thread, what am I missing, please put me straight and give me the basics.

The arm movement is on line G6C 1,2,3

Hip Movement is on line G6A 5 & G6D 5

Head movement is on line G6B 4,5

All work fine independently but not together?

PTP ALLON
GETMOTORSET G24,1,1,1,1,1,0,1,1,1,0,0,0,1,1,1,0,0,0,1,1,1,1,1,0
SPEED 5
MOTOR G24

MOVE G6A, 99, 77, 117, 87, 99, 77
MOVE G6B,108, 40, 79, 92, 100, 33
MOVE G6C,104, 41, 78, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 104, 106
DELAY 5000
MOVE G6A, 99, 77, 117, 87, 96, 77
MOVE G6B,108, 40, 79, 105, 100, 33
MOVE G6C,110, 44, 80, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 106, 106
MOVE G6A, 99, 77, 117, 87, 103, 77
MOVE G6B,108, 40, 79, 99, 100, 33
MOVE G6C,125, 45, 81, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 102, 106
MOVE G6A, 99, 77, 117, 87, 96, 77
MOVE G6B,108, 40, 79, 92, 100, 33
MOVE G6C,140, 45, 81, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 106, 106
MOVE G6A, 99, 77, 117, 87, 103, 77
MOVE G6B,108, 40, 79, 87, 102, 33
MOVE G6C,156, 45, 82, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 102, 106
MOVE G6A, 99, 77, 117, 87, 96, 77
MOVE G6B,108, 40, 79, 92, 107, 33
MOVE G6C,173, 46, 82, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 106, 106
MOVE G6A, 99, 77, 117, 87, 103, 77
MOVE G6B,108, 40, 79, 99, 113, 33
MOVE G6C,180, 41, 78, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 102, 106
MOVE G6A, 99, 77, 117, 87, 96, 77
MOVE G6B,108, 40, 79, 105, 120, 33
MOVE G6C,188, 59, 83, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 106, 106
MOVE G6A, 99, 77, 117, 87, 103, 77
MOVE G6B,108, 40, 79, 98, 133, 33
MOVE G6C,104, 41, 78, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 102, 106
MOVE G6A, 99, 77, 117, 87, 96, 77
MOVE G6B,108, 40, 79, 91, 146, 33
MOVE G6C,187, 83, 84, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 106, 106


Like i-Bot says, you need to include a wait after each group of moves to stop the following code from overriding the last command.
Try this...

PTP ALLON
GETMOTORSET G24,1,1,1,1,1,0,1,1,1,0,0,0,1,1,1,0,0,0,1,1,1,1,1,0
SPEED 5
MOTOR G24

MOVE G6A, 99, 77, 117, 87, 99, 77
MOVE G6B,108, 40, 79, 92, 100, 33
MOVE G6C,104, 41, 78, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 104, 106
DELAY 5000
MOVE G6A, 99, 77, 117, 87, 96, 77
MOVE G6B,108, 40, 79, 105, 100, 33
MOVE G6C,110, 44, 80, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 106, 106
WAIT
MOVE G6A, 99, 77, 117, 87, 103, 77
MOVE G6B,108, 40, 79, 99, 100, 33
MOVE G6C,125, 45, 81, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 102, 106
WAIT
MOVE G6A, 99, 77, 117, 87, 96, 77
MOVE G6B,108, 40, 79, 92, 100, 33
MOVE G6C,140, 45, 81, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 106, 106
WAIT
MOVE G6A, 99, 77, 117, 87, 103, 77
MOVE G6B,108, 40, 79, 87, 102, 33
MOVE G6C,156, 45, 82, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 102, 106
WAIT
MOVE G6A, 99, 77, 117, 87, 96, 77
MOVE G6B,108, 40, 79, 92, 107, 33
MOVE G6C,173, 46, 82, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 106, 106
WAIT
MOVE G6A, 99, 77, 117, 87, 103, 77
MOVE G6B,108, 40, 79, 99, 113, 33
MOVE G6C,180, 41, 78, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 102, 106
WAIT
MOVE G6A, 99, 77, 117, 87, 96, 77
MOVE G6B,108, 40, 79, 105, 120, 33
MOVE G6C,188, 59, 83, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 106, 106
WAIT
MOVE G6A, 99, 77, 117, 87, 103, 77
MOVE G6B,108, 40, 79, 98, 133, 33
MOVE G6C,104, 41, 78, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 102, 106
WAIT
MOVE G6A, 99, 77, 117, 87, 96, 77
MOVE G6B,108, 40, 79, 91, 146, 33
MOVE G6C,187, 83, 84, 100, 100, 100
MOVE G6D, 98, 82, 138, 82, 106, 106
In servo's we trust!
DirtyRoboto
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 412
Joined: Tue Sep 19, 2006 1:00 am
Location: London

Programming Advice

Post by My Bear » Sat May 10, 2008 10:09 am

Post by My Bear
Sat May 10, 2008 10:09 am

Thanks for putting me straight Guys

Now working a treat.

All the best

Darren
Thanks for putting me straight Guys

Now working a treat.

All the best

Darren
My Bear
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 29
Joined: Wed Feb 06, 2008 10:56 pm
Location: Harrogate, Grand Brittania


4 postsPage 1 of 1
4 postsPage 1 of 1