Hi Sven,
No Ki or Kd sounds a bit strange. Are you tuning without any load on the motors? Without Ki and Kd the "stiffness" of the motor will be fairly low, I think.
/Henrik.
I'm tuning a bunch of R990H cards I never used with a bunch of Yaskawa/Nidec minertia servo's (cute a powerful small things, by the way). They are rated to 65 V but now when tuning I'm only using 12 V.
When test running the setup with R990H.exe's tune command, I get a really steap and steady curve up to top of the graph and only a overshoot of 14 steps. That is with following config:
Kp: 6016
Ki: 0
Kd: 0
But when I read the suggestions in the nice howto at http://www.eaglemotion.com/home/R9xHbdi/pg5.htm it seems that a servo config should have a Ki-dampening and pretty much Kd. If I test with values closer to the suggestion:
Kp: 6016
Ki: 150
Kd: 4000
The curve becomes a lot more bouncy and I have an overshoot at 80-120 steps.
To me, the first config and graph looks a lot better, but is it normal or okay to run with no Ki/Kd?
Regards,
Sven
Hi Sven,
No Ki or Kd sounds a bit strange. Are you tuning without any load on the motors? Without Ki and Kd the "stiffness" of the motor will be fairly low, I think.
/Henrik.
Yes, no load. They are on my desk. The servos are really compact and I know some says they are a little odd to run, but no Ki/Kd at all and a perfect tune is strange to me too.
Try loading them just a bit with your fingers or whatever, without any Ki they probably won't reach the target position. Also, when the motor is stationary at try deflecting the shaft, without Ki and Kd it will probably feel "soft and sluggish". But if it works to your satisfaction without Ki and Kd then what the heck...if it ain't broken..... ;-)
/Henrik.
Check it out.
EDIT: Hmm... Will the characteristic be different when I'm feeding with max voltage? I used 12 V only now, and they're supposed to get 65.
Well, everything seems fine so... <swedish>...vad tusan. Jag kör på det.</swedish>
Hi,
That sure looks like a near perfect step-response! You will definetly need to retune after raising the voltage since that is basically the same as raising the gain (Kp). If it changes the impact on the "no Ki or Kd issue" is hard to say, I guess the only way to know for sure is to try it.
Nice compact motors there, what are you going to use them for?
/Henrik.
On a steel monster.![]()
I ended up with Kp at 4000 and still no Ki and Kd. Got a sampling rate less than 0.3 seconds. Pretty awsome acceleration on a servo that small. A lot more overshoot though, but I believe it's a minor issue.
Hi Sven,
Try adding som differential gain (Kd) then, it should decrease that overshoot. When you add Kd you may need to add even more Kp though.
I went to this page. Nicest explanation of P, I, and D I ever seen.
5.1.1. Kp – proportional gain. Proportional gain is directly proportional to the torque. It is the main force in the whole PID loop. The kp provides a multiplier for the position error between the commanded position (from the CNC control) and the counter which tracks the feedback from the encoder.
5.1.2. Kd – differential gain. It is like oil in a shock absorber. It makes the servo settle in the desired velocity.
5.1.3. Ki – integral gain. It is like a flywheel in a toy car. You have to push it harder (more Kp) to move it, but it runs smoother then a toy car without a flywheel. The I part of the PID filter integrates the following error and this integral is directly added to the P term and keeps the following error small during the motion or in steady condition. In fact, correctly tuned Ki can keep the following error within +/- 1 encoder count during constant velocity motion (or in steady condition) while the motor can deliver full torque. The other great advantage of Ki is that it can make from a simple trapezoid velocity profile a profile very similar to a typical “S” profile. A trapezoid velocity profile is when the motor acceleration is constant (an increment of velocity) until it reaches the desired velocity. In S profile, the acceleration at the start is rather low, then it exponentially goes up till it reaches the maximum possible acceleration. Then, just before reaching the desired velocity the acceleration gradually decreases. You can see the typical S velocity profile on the faces of the astronauts in the space rocket while taking of.
BTW, I have some servos in a Hardinge HNC that liked almost no I and D