Page 1 of 1
Tuning 2 servo at same time (master/slave axis)
Posted: Fri Mar 29, 2019 1:55 pm
by rdpdo2002
Hello,
I need to tune an axis with 2 servo (master/slave). I think I will do that like if it was an unique servo, so I will view the step response of only one servo (the master ?) Is it correct ?
I don't think it is possible to view the response of the 2 servo simultaneously ?
Do you have some special recommandation to tune a master/slave axis ? Some error to avoid ?
Thanks you very much.
Re: Tuning 2 servo at same time (master/slave axis)
Posted: Fri Mar 29, 2019 6:41 pm
by TomKerekes
Please see this
wiki article.
HTH
Re: Tuning 2 servo at same time (master/slave axis)
Posted: Sat May 16, 2020 5:42 am
by cnc_freak
Is there a way to observe in step response screen the position of the slave axis together with the position of the master?
Re: Tuning 2 servo at same time (master/slave axis)
Posted: Sat May 16, 2020 9:48 pm
by TomKerekes
Hi cnc_freak,
Is there a way to observe in step response screen the position of the slave axis together with the position of the master?
Not with the Step Response Screen. Since they both follow the same trajectory if you verify one follows the trajectory properly and also the other that is usually sufficient.
Otherwise you could use a User C Program to capture the data and then analzye it yourself with some application like Excel. See the CaptureXYMotionPosDest.c example.
Re: Tuning 2 servo at same time (master/slave axis)
Posted: Wed May 27, 2020 7:39 pm
by cnc_freak
It's not very clear to me about tuning the master/slaves axis. The slave should follow the master. Do i need to but anything in the slave configuration. Should i copy the p,i,d,max error etc ,parameters which i find by tuning the master, or does not have any influence.
Regards.
Re: Tuning 2 servo at same time (master/slave axis)
Posted: Wed May 27, 2020 8:18 pm
by TomKerekes
Hi cnc_freak,
It's not very clear to me about tuning the master/slaves axis. The slave should follow the master.
They actually independently follow the same trajectory.
Do i need to but anything in the slave configuration. Should i copy the p,i,d,max error etc ,parameters which i find by tuning the master, or does not have any influence.
Both axes need to be configured independently. If both axes are identical then the same parameters may work for both, but this is not necessarily the case. Often while homing the axes are moved independently (not slaved) so the axes can be "squared".
HTH
Re: Tuning 2 servo at same time (master/slave axis)
Posted: Tue Sep 20, 2022 12:58 am
by awjennin
Good evening Tom !
My machine is similar; a gantry system with independent ballscrews for the left and right sides. The right-side stepper motor is the master axis, and has a feedback mechanism (optical encoder), while the left-side stepper motor is the slave axis and has no feedback. My question and application are similar therefore I think its OK to piggyback on the original thread : )
I have read the forums and the wiki, however i'm not sure I fully understand what signals are passed to the slave axis.
Will the master's pre-control-loop commands be mirrored and sent to the slave axis (left image), or will the output of the masters control loop be passed to the slave (right image)?
- ctrl_loop_ms.png (11.3 KiB) Viewed 4459 times
Thanks and kind regards!
Re: Tuning 2 servo at same time (master/slave axis)
Posted: Tue Sep 20, 2022 4:58 pm
by TomKerekes
Hi Jennin,
What type of Drives and Configuration Modes are you using?
Normally your left diagram is used where basically both Axes are commanded to the same Destination.
With an exception when the Master is Closed Loop Step/Dir (or Closed loop Microstep with SnapAmp) and the Slave is Open Loop Step/Dir (or Open Loop Microstep). In this case the Master Output represents a correction of a number of extra +/- steps that were required to get the Master Axis Encoder to be at the commanded Destination. In this case the Master's Output is also applied to the Slave.
This is different from your right diagram where the Slave would try to follow the actual encoder position of the Master which I don't think would really make sense.
You might see this
Closed Loop Step/Dir page.