Trying to set up position control mode

More
7 months 3 weeks ago #343787 by jblanscett
Hi PCW,

I have wired this up like you said. When I set the P value to 1000 we have continuous motion that doesnt stop and when I set it to 0 it moves a short while and then stops.

Thanks,

jblanscett

Please Log in to join the conversation.

More
7 months 3 weeks ago #343794 by tommylight
upload the hal and ini files here so we can have a look.

Please Log in to join the conversation.

More
7 months 3 weeks ago #343802 by PCW
I would agree with Tom here, that there's something basic wrong with the hal  or ini files.

(my guess would be no position feedback connection from the steppgens)

Please Log in to join the conversation.

More
7 months 3 weeks ago #343804 by jblanscett
Here are the Hal and Ini files

Please Log in to join the conversation.

More
7 months 3 weeks ago #343812 by tommylight
From a very quick and short glance, what is this
setp axis.x.jog-accel-fraction 0.3
doing inside the hal file?
Probably not the exact issue, as i still think there is something terribly wrong with the wiring, but the symptoms are not that clear cut to be able to pinpoint.
Check with scope how the signal between signal pins on Mesa and drive look in relation to gnd and machine/box ground look, might be ground interference at 50 or 60Hz causing it.

Please Log in to join the conversation.

More
7 months 3 weeks ago #343817 by PCW
setp [HMOT](CARD0).stepgen.00.control-type 0

Is wrong, it should be:

setp [HMOT](CARD0).stepgen.00.control-type 1

(for all joints)

 

Please Log in to join the conversation.

More
7 months 3 weeks ago #343832 by jblanscett
Hi Tommy and PCW,

Tommy, I will grab our scope and let you know what the signal looks like as soon as possible. I commented out the acceleration fraction line. 

PCW, when I changed the control type to 1. In order to get any motion afterwards, I had to change 

net x-output   <= [HMOT](CARD0).stepgen.00.postion-cmd

to

net x-output   <=[HMOT](CARD0).stepgen.00.velocity-cmd

Then, no matter what value I change the P value to, as soon as an input is put in, the motor starts and doesn't stop. If I add more inputs going in the same direction, the motor speeds up. If I add them in the other direction, the motor slows down. 

Thanks,

jblanscett

Please Log in to join the conversation.

More
7 months 3 weeks ago #343833 by jblanscett
Here is a picture of our oscilloscope readings

Please Log in to join the conversation.

More
7 months 3 weeks ago #343834 by jblanscett
I have the first probe connected to the signal and the second probe connected to the mesa ground and the electrical box ground.

Please Log in to join the conversation.

More
7 months 3 weeks ago #343848 by PCW
When you say the motor moves, are you saying the DRO is changing
when no commanded motion is requested?

Do you get a following error?
 

Please Log in to join the conversation.

Time to create page: 0.112 seconds
Powered by Kunena Forum