Hello Jester,
How to autotune these drives seems a rather
frequent request.
I had a look in the full manual (144 pages). There seem to be only limited autotune features provided by this servo kit.
I could find those parameters that have something to do with the functionnality :
Pr0.00 Mode loop gain
Pr0.01 Control Mode Setup
Pr0.02 Real-time Auto-gain Tuning
Pr0.03 Selection of machine stiffness at real- time auto-gain tuning
I guess you will have to make most of the adjustement and tuning manually. There seems to be only a loop gain involved in autotune. I could not find any Integral or Derivative parameter in the manual. Pretty weird, unless there's a different kind of control regulator than a PID that is used inside the drive. The post of 'joeavaerage' in the thead linked above talks about multiple 'notch filters' and underscores the importance of calculating the moment of inertia ratio. I have to admit that position/velocity control loops using notch filters (*) are uncharted territory for me, and it might certainly be interesting to dive into that subject.
Perhaps that other members on this forum have extensive knowledge of how to deal with this kind of control loop ?
(*) Notch filters were used in the past with PIDs to limit chassis ringing or general noise issues. But this seems to be something different.
Did you install the 'Debug software' where it seems that
parameters of current loop, velocity loop, position loop, and change the value of input and output signals and the parameter of motor can be adjusted ?
I found this video '
Auto Tuning with Motion Studio'. Is it the same software than the one provided by Stepperonline or was it actually beefed-up by Basicmicro ?
You can google 'CNC PID Control loop adjustment' and 'CNC Notch filter Control loop adjustment' for howtos documents. It is a good practice to stick an accelerometer and/or a digital linear scale on the axis to see how it behaves : If your ballscrew has some backlash or chassis shows up some resonance or lack of stiffness, the internal software oscilloscope will not be able to show the true motion of the axis.
Pièce of adviceBefore buying a closed loop (or dual closed loop) servo drive system, it is wise to check the features the drive and it's setup software provide.
We are here in a different realm than for open loop steppers, where acceleration ramps, current per phase and # of steps per revolution are the main parameters.
In closed loop systems (for steppers and for 3 phase brushless servos), electrical (winding inductance), mechanical (motor + load static and dynamic inertia), control loop type (PI, PID), mechanical brake or regenerative resistor management, resonance management and autotune convergence algorithm become very important.
Always prefer brushless servos with a brake (quite compulsory for the Z axis of a mill, unles the latter is weight compensated). For a small lathe, the brake feature is not really required.
Depending on the drive setup, the result on the machined part can start from total fail (dents, round corners) to full respect of all tolerances especially on curved trajectories, showing a very smooth surface finish.
Most of the time, the result of the autotune feature is just average, and you have to go manually to improve it. Especially when it goes to vibration/chassis ringing avoidance, much effort and patience is required.
For your guidance, on a fully unknown CNC PID based control system, a skilled technician needs two to four days to perform the setup of a medium sized 4 axis CNC production workshop mill that weights between 3 to 6 tons.
Update #1 : contents enhanced, especially about notch filters control loops.