Tuning 2 servo at same time (master/slave axis)
Moderators: TomKerekes, dynomotion
Tuning 2 servo at same time (master/slave axis)
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.
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.
- TomKerekes
- Posts: 2676
- Joined: Mon Dec 04, 2017 1:49 am
Re: Tuning 2 servo at same time (master/slave axis)
Regards,
Tom Kerekes
Dynomotion, Inc.
Tom Kerekes
Dynomotion, Inc.
Re: Tuning 2 servo at same time (master/slave axis)
Is there a way to observe in step response screen the position of the slave axis together with the position of the master?
- TomKerekes
- Posts: 2676
- Joined: Mon Dec 04, 2017 1:49 am
Re: Tuning 2 servo at same time (master/slave axis)
Hi cnc_freak,
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.
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.Is there a way to observe in step response screen the position of the slave axis together with the position of the master?
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.
Regards,
Tom Kerekes
Dynomotion, Inc.
Tom Kerekes
Dynomotion, Inc.
Re: Tuning 2 servo at same time (master/slave axis)
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.
Regards.
- TomKerekes
- Posts: 2676
- Joined: Mon Dec 04, 2017 1:49 am
Re: Tuning 2 servo at same time (master/slave axis)
Hi cnc_freak,
HTH
They actually independently follow the same trajectory.It's not very clear to me about tuning the master/slaves axis. The slave should follow the master.
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".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.
HTH
Regards,
Tom Kerekes
Dynomotion, Inc.
Tom Kerekes
Dynomotion, Inc.
Re: Tuning 2 servo at same time (master/slave axis)
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)? Thanks and kind regards!
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)? Thanks and kind regards!
- TomKerekes
- Posts: 2676
- Joined: Mon Dec 04, 2017 1:49 am
Re: Tuning 2 servo at same time (master/slave axis)
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.
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.
Regards,
Tom Kerekes
Dynomotion, Inc.
Tom Kerekes
Dynomotion, Inc.