EtherCAT Servo Tuning and LinuxCNC PID Tuning

More
03 Dec 2024 23:22 #315923 by DeckelCNC
Hello, i am looking for some guidance on the interaction of LinuxCNC PID Tuning +  EtherCAT + Servo Drive Tuning.

Would i still need to setup  PID + FF components in the .hal file and .ini file to tune a ethercat system or should all the tuning be in the drive only ?  or a combination of both ?  i would think the servo and the drive are tuned for being dynamic and critically damped to step responces then LinuxCNC  tuning terms are used to reduce following errors.

I have grown my .hal and and .ini file from bare bones and i am unsure on what i need to add to make a PID system work with ethercat.

I am not having any sucess in reducing following error, and my feeling is i need to alter gains in Linuxcnc.
as most people are using steppers and i am using AC servos over ethercat i have not been able to find much direction of how to setup files to enable the calibration feature to work with ethercat. i get an error opening the calibration module saying no tunable gains are in the .ini file

i realize its not as simple as adding the gains to the .ini file
looking at some examples do i need to load the following into a .hal file:-
load at_pid num_chan=2             (for two axis system)
addf pid.0do-pid-cals servo-thread  (for each axis)
set pid.0.Pgain [JOINT_0]P            (for each gain)

then add the gains to the .ini file ?

does anyone have any insight into this type of configuration.








 

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
05 Dec 2024 03:18 #315993 by tommylight
Replied by tommylight on topic EtherCAT Servo Tuning and LinuxCNC PID Tuning
Are you using only EtherCAT drives?
Do you have any Mesa card or use parallel port?
Are the encoders in any way talking back to LinuxCNC, be it through Mesa or Pico or parallel port or any other interface?
If using EtherCAT with no feedback to LinuxCNC, no tuning in LinuxCNC.

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

More
06 Dec 2024 05:51 #316075 by DeckelCNC
Replied by DeckelCNC on topic EtherCAT Servo Tuning and LinuxCNC PID Tuning
Hi Tommylight

I am only using EtherCAT drives.
No Mesa or parallel port.

yes the encoders are reporting back, but to the drive, and the drive is sending the following info back to LinuxCNC
"actual-position" and "actual-velocity"

LinuxCNC is then sending out to the drive
"target-position" and "target-velocity".

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
06 Dec 2024 06:21 #316076 by tommylight
Replied by tommylight on topic EtherCAT Servo Tuning and LinuxCNC PID Tuning
OK, in that case you will have to monitor both commanded position and reported actual position to measure the time it takes, then try some tuning if the result is something reasonable.
Perfect would be no delay at all, but that never is the case.
In any case, you should absolutely remove the fedback from the drives, tune the drives to work properly with feedback from stepgens, only after you get that working, then switch to drive feedback and tune PID and FF1 values.

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

Time to create page: 0.062 seconds
Powered by Kunena Forum