AutoTune stepper servos in 7i95 and 7i95t boards
- Nathan40
- Offline
- New Member
Less
More
- Posts: 16
- Thank you received: 0
29 Feb 2024 14:43 #294778
by Nathan40
AutoTune stepper servos in 7i95 and 7i95t boards was created 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!
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.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19479
- Thank you received: 6532
29 Feb 2024 15:45 #294784
by tommylight
Replied by tommylight on topic AutoTune stepper servos in 7i95 and 7i95t boards
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.
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.
- Nathan40
- Offline
- New Member
Less
More
- Posts: 16
- Thank you received: 0
29 Feb 2024 17:43 #294788
by Nathan40
Replied by Nathan40 on topic AutoTune stepper servos in 7i95 and 7i95t boards
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.
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.
- PCW
- Offline
- Moderator
Less
More
- Posts: 17967
- Thank you received: 4825
29 Feb 2024 18:07 #294789
by PCW
Replied by PCW on topic AutoTune stepper servos in 7i95 and 7i95t boards
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.
- Nathan40
- Offline
- New Member
Less
More
- Posts: 16
- Thank you received: 0
01 Mar 2024 01:03 #294810
by Nathan40
Replied by Nathan40 on topic AutoTune stepper servos in 7i95 and 7i95t boards
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.
- PCW
- Offline
- Moderator
Less
More
- Posts: 17967
- Thank you received: 4825
01 Mar 2024 01:18 - 01 Mar 2024 01:18 #294811
by PCW
Replied by PCW on topic AutoTune stepper servos in 7i95 and 7i95t boards
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
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.063 seconds