- Posts: 24
- Thank you received: 0
Trying to set up position control mode
- jblanscett
- Topic Author
- Offline
- Junior Member
-
Less
More
7 months 3 weeks ago #343787
by jblanscett
Replied by jblanscett on topic Trying to set up position control mode
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
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.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22008
- Thank you received: 3
7 months 3 weeks ago #343794
by tommylight
Replied by tommylight on topic Trying to set up position control mode
upload the hal and ini files here so we can have a look.
Please Log in to join the conversation.
7 months 3 weeks ago #343802
by PCW
Replied by PCW on topic Trying to set up position control mode
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)
(my guess would be no position feedback connection from the steppgens)
Please Log in to join the conversation.
- jblanscett
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 24
- Thank you received: 0
7 months 3 weeks ago #343804
by jblanscett
Replied by jblanscett on topic Trying to set up position control mode
Here are the Hal and Ini files
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22008
- Thank you received: 3
7 months 3 weeks ago #343812
by tommylight
Replied by tommylight on topic Trying to set up position control mode
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.
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.
7 months 3 weeks ago #343817
by PCW
Replied by PCW on topic Trying to set up position control mode
setp [HMOT](CARD0).stepgen.00.control-type 0
Is wrong, it should be:
setp [HMOT](CARD0).stepgen.00.control-type 1
(for all joints)
Is wrong, it should be:
setp [HMOT](CARD0).stepgen.00.control-type 1
(for all joints)
Please Log in to join the conversation.
- jblanscett
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 24
- Thank you received: 0
7 months 3 weeks ago #343832
by jblanscett
Replied by jblanscett on topic Trying to set up position control mode
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
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.
- jblanscett
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 24
- Thank you received: 0
7 months 3 weeks ago #343833
by jblanscett
Replied by jblanscett on topic Trying to set up position control mode
Here is a picture of our oscilloscope readings
Please Log in to join the conversation.
- jblanscett
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 24
- Thank you received: 0
7 months 3 weeks ago #343834
by jblanscett
Replied by jblanscett on topic Trying to set up position control mode
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.
7 months 3 weeks ago #343848
by PCW
Replied by PCW on topic Trying to set up position control mode
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?
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
