Servo tuning problems
- Todd Zuercher
-
Topic Author
- Online
- Platinum Member
-
- Posts: 5000
- Thank you received: 1409
I am running a 5i25-7i77 combo. With some Teknics SST-3100-UCX drives in analog torque mode. servo period is 400000 (as low as I could get it without getting rtai error messages)
I have been trying to get a basic tune on the bench with one drive and motor before I started putting it on the machine, but I absolutely can not seem to get this thing stable. The motor is very "springy" and no amount of D seems to dampen it for me. Finally I hooked it up to the machine to see if more mass and friction would help and it did. I was able to get a decent movement up (against gravity) but it still rattled like crazy going down.
The attache halscope picture was a movement with my hand on the shaft to dampen it abit. It sure did not seem to be vibrating like the picture showed, it felt like a relatively smooth movement. Without my hand on the shaft it would have began to ossilate wildly durring the movement, but it does remain still when undisterbed
Please Log in or Create an account to join the conversation.
If the motors are small enough to safely turn the shaft by hand, you can get a feel for what D does by setting all the
PID parameters to 0 except D, Now you should be able to turn the motor shaft by hand and "feel" the D term (viscous damping)
Motors in torque mode will be hard to tune without a load and sometimes need as much as 4 KHz update rates
Please Log in or Create an account to join the conversation.
- Todd Zuercher
-
Topic Author
- Online
- Platinum Member
-
- Posts: 5000
- Thank you received: 1409
Are there any tricks to getting a faster update rate. What kind of latency numbers do I need to see in order to bump my servo thread up from the 2.5Khz I have now. I am afraid I am not going to get 4Khz with this MB combination I am using now.
If it matters I used PNCconfig to make my basic setup.
When you say increase P till it oscillates. Do you mean oscillates when still or when disturbed or moved? I had assumed the latter. If you meant the former then maybe I just need to throw a whole lot more P at it.
Please Log in or Create an account to join the conversation.
- Todd Zuercher
-
Topic Author
- Online
- Platinum Member
-
- Posts: 5000
- Thank you received: 1409
I know most others haven't had much success with it, but what's the harm in trying?
Please Log in or Create an account to join the conversation.
I have very little experience with the LinuxCNC PID, but it is not unusual for the DGain to need to be negative. (as it acts to resist the motion)That is what I've been trying, but as I add D, I can't seem to find any improvement.
Please Log in or Create an account to join the conversation.
linuxcnc.org/docs/html/man/man9/at_pid.9.html
John
Please Log in or Create an account to join the conversation.
In this page www.teknic.com/products/servo_drive.php Teknics SST-3100-UCX is not a torque drive.Teknics SST-3100-UCX drives in analog torque mode
May you give me a link to the PDF user manual of this servo drive to see what can i do?... I do not promise you anything
![;) ;)](/media/kunena/emoticons/wink.png)
Please Log in or Create an account to join the conversation.
- Todd Zuercher
-
Topic Author
- Online
- Platinum Member
-
- Posts: 5000
- Thank you received: 1409
Please Log in or Create an account to join the conversation.
- Todd Zuercher
-
Topic Author
- Online
- Platinum Member
-
- Posts: 5000
- Thank you received: 1409
In torque mode you need to add P until it oscillates then D until its stable and the repeat (at some point D will simply make it worse)
If the motors are small enough to safely turn the shaft by hand, you can get a feel for what D does by setting all the
PID parameters to 0 except D, Now you should be able to turn the motor shaft by hand and "feel" the D term (viscous damping)
Motors in torque mode will be hard to tune without a load and sometimes need as much as 4 KHz update rates
I tried setting every thing to 0 except D and I could not feel any damping, some small jerks and growls but no damping. If I made D to large with every thing 0 it would take off spinning.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.