AutoTune stepper servos in 7i95 and 7i95t boards

More
29 Feb 2024 14:43 #294778 by Nathan40
Hi All
I have tried manual tuning for P,I ,D, FF0, FF1 etc. values.
However, I would like if anyone can help in Autotuning the hybrid servos (stepper with encoder).
Please share results/thoughts if any one has done it.  Thanks!

Please Log in or Create an account to join the conversation.

More
29 Feb 2024 15:45 #294784 by tommylight
Do you mean with loop closed in LinuxCNC?
If yes, then:
-in the hal file, set feedback to stepgen, omit the encoder feedback
-set P to 1000, FF1 to 1, the rest to 0
-set the scaling properly so machine moves the correct distance it was commanded
Only after this is correct:
-in hal set feedback to encoders, omit the stepgen feedback
-open the "calibration" from the "machine" menu
-set P value to 15 or 50 or 100, test, check motor for vibrations, lower that value till vibrations are barely noticeable
-try jogging that axis/joint slowly and gradually increase speed
-might also need lowering FF1, only after checking above
-Test values till you get smooth motion at whatever speed is OK for you
- do not forget to save settings by clicking on "save to file"
Make chips.

Please Log in or Create an account to join the conversation.

More
29 Feb 2024 17:43 #294788 by Nathan40
Thanks for your reply.
However, I was looking for some autotune functionality if Linuxcnc had one to tune servos with these settings. Perhaps some kind of hal / script files to do the process automatically every single time Linuxcnc loads up.

Please Log in or Create an account to join the conversation.

More
29 Feb 2024 18:07 #294789 by PCW
What are you actually tuning? Is this a system with encoder feedback to LinuxCNC?
 

Please Log in or Create an account to join the conversation.

More
01 Mar 2024 01:03 #294810 by Nathan40
That is correct. Wanted to autotune stepgens/ pwmgens with encoder feedback using some kind of script/ hal files. Thanks!

Please Log in or Create an account to join the conversation.

More
01 Mar 2024 01:18 - 01 Mar 2024 01:18 #294811 by PCW
I don't think there is a decent autotune for LinuxCNC,
especially one that deals with FF1, FF2, backlash etc

Better to do it by hand
Last edit: 01 Mar 2024 01:18 by PCW.

Please Log in or Create an account to join the conversation.

Time to create page: 0.107 seconds
Powered by Kunena Forum