- Posts: 4793
- Thank you received: 1480
Servo Wiring and Tuning detailed How To example Mesa 7i77.
- Todd Zuercher
- Offline
- Platinum Member
-
A plot of the PID output might also be a little telling, to try to see if the f-error spikes are due to delay in response of the servo or simply a lack of FF2.
Please Log in or Create an account to join the conversation.
- viesturs.lacis
- Offline
- Premium Member
-
- Posts: 114
- Thank you received: 3
Todd Zuercher wrote: That is my suspicion. The plots of your other axis also look like FF2 could use some more attention. (And maybe a little less P for the X.)
A plot of the PID output might also be a little telling, to try to see if the f-error spikes are due to delay in response of the servo or simply a lack of FF2.
Ok, thank you for a suggestion! I will try that the next time I visit that place!
Please Log in or Create an account to join the conversation.
- Gene1934
- Offline
- Elite Member
-
- Posts: 174
- Thank you received: 13
I'm having tuning trouble with a quadrature encoder on the motor, and 2 stages of worm drive, mounted on the side of a BS-1 clone.
And what appears to be both high friction due to motor brushes, and possibly high drag in the BS-1 worm engagement although that seems to be wearing in. The clone, on inspection. has not a real contoured bull gear or a good worm so the fit isn't exactly perfect and will wear in if I crank in a little drag to kill backlash.
Worm gear ratio in the motor was unk, so the overall was measured by recording encoder counts, running it 100 turns using the home switch to count turns, and dividing the subtraction result by 360*100=666.66666667 for a SERVO_SCALE per degree in the ini file.
Everything else is volatile at this point.
Should I be tuning P-I-D or FF# for a position servo?
And since I seem to be running in degree's but a full turn of the BS-1 is 360 degrees, whats a ballpark pid_a.FF0 value as that does not seem to have much effect here.
Thanks all.
Cheers, gene
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page < geneslinuxbox.net:6309/gene >
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
- Posts: 19899
- Thank you received: 4655
Gene1934 wrote: In this thread, are the terms torque mode and position mode interchangeable?
Not at all. They are opposite ends of the scale.
torque mode -> velocity mode -> position mode.
In torque mode the command from LinuxCNC is motor current.
In velocity mode it is a velocity command to the drive.
In position mode it is a position command to the drive.
Please Log in or Create an account to join the conversation.
- Gene1934
- Offline
- Elite Member
-
- Posts: 174
- Thank you received: 13
Position mode is my target.
Thanks Andy.
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page < geneslinuxbox.net:6309/gene >
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
- Posts: 19899
- Thank you received: 4655
Gene1934 wrote: ok, then describe exactly what defines these differences in the hal hookups.
The HAL is exactly the same. Encoder position comes in, numbers go out.
All that changes is what the numbers going out represent.
Please Log in or Create an account to join the conversation.