Trying to set up position control mode
- jblanscett
- Offline
- New Member
-
Less
More
- Posts: 19
- Thank you received: 0
03 Mar 2026 11:51 #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 or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 21394
- Thank you received: 7295
03 Mar 2026 17:24 #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 or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 17760
- Thank you received: 5195
03 Mar 2026 18:01 #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)
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- jblanscett
- Offline
- New Member
-
Less
More
- Posts: 19
- Thank you received: 0
03 Mar 2026 18:19 #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 or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 21394
- Thank you received: 7295
03 Mar 2026 19:54 #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 or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 17760
- Thank you received: 5195
03 Mar 2026 22:06 - 03 Mar 2026 22:07 #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)
Last edit: 03 Mar 2026 22:07 by PCW.
Please Log in or Create an account to join the conversation.
- jblanscett
- Offline
- New Member
-
Less
More
- Posts: 19
- Thank you received: 0
04 Mar 2026 11:39 #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 or Create an account to join the conversation.
- jblanscett
- Offline
- New Member
-
Less
More
- Posts: 19
- Thank you received: 0
04 Mar 2026 12:14 #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 or Create an account to join the conversation.
- jblanscett
- Offline
- New Member
-
Less
More
- Posts: 19
- Thank you received: 0
04 Mar 2026 12:28 #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 or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 17760
- Thank you received: 5195
04 Mar 2026 16:15 #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 or Create an account to join the conversation.
Time to create page: 0.107 seconds