Tuning a Position Axis

The following manual tuning procedure may be used to tune many position axes, hydraulic axes and motors in velocity mode. This procedure works for Position PID control. Please read the Tuning Overview topic before following this procedure. There is no substitute for experience when tuning an axis. This procedure offers some guidelines, tips, and suggestions for tuning your system. While these steps will work for some systems, they may not be the best for a particular system.

Before beginning the tuning procedure, set all the gains and feed forwards on the axis to zero.

Tuning Procedure

Before beginning the tuning procedure, make sure you have completed the steps in the StartUp Procedure up to the Tuning section. You must be able to move your actuator properly (a positive Control Output causes increasing position) and have valid feedback.

Pre-Tuning Steps:

These steps come before actually tuning the gains.

1. ClosedTest Wiring and Polarity

This step is for verifying that the system wiring and setup is correct before doing any closed loop control.

DANGER: The Direct Output (9) command disables the safety features on the RMC! Use this command carefully!

 

  

2. ClosedCheck the Deadband

If the axis exhibits a deadband, you may need to use the Deadband parameters.

Check Whether the System Exhibits a Deadband:

  1. Give increasing amounts of Output to the axis with the Direct Output (9) command until the system starts to move.

  2. The value of Output at which the system starts to move is your deadband. If this value is approximately 0.4 V or greater, or if the axis begins to move quickly at the deadband value, you should probably use the deadband parameters. If the point at which it begins to move it is less than 0.4 V, it is left to the discretion of the designer.

 

Set the Deadband Parameters:

If you found that your system has a deadband, set the deadband parameters in the following manner:

  1. On the RMCTools toolbar, click the Axis Tools button .

  2. In the Axis Parameters Pane, on the All tab, expand the Output section.

  3. Set the Output Deadband parameter to the value of your deadband.

  4. Set the Deadband Tolerance to a small value.

  5. Click the Download button to apply the changes to the RMC.

 

3. ClosedNon-linear Valves

If you are using a non-linear hydraulic valve, set the valve linearization parameters as described in the Valve Linearization topic. Delta does not recommend using a non-linear valve if a linear valve is available.

 

4. ClosedAdjust the Output Bias

Some systems may drift significantly when the Control Output is at zero volts, which may adversely affect control. Use the Output Bias parameter to adjust the output such that the axis does not move when you issue an Open Loop command with zero volts Control Output. The RMC always adds the Output Bias to the Control Output.

Check if your system need Output Bias:

  1. Issue an Open Loop Rate (10) command to the axis. Use an Output of zero and a Ramp Rate of 100.

  2. If the axis moves significantly, you need to set the Output Bias.

 

Set the Output Bias:

  1. In the Axis Tools, in the Axis Parameters Pane, on the Tune tab, enter a small number in the Output Bias parameter, such as 0.05 V or -0.05 V.

  2. Keep increasing (or decreasing) the number until the axis stands still.

  3. Click the Download button to apply the changes to the RMC.

5. ClosedSet Up the Tuning Tools

In the Tuning Tools, set up the command buttons so that one button will move the axis one direction, and the other will move it in the other direction.

  1. Click the down arrow on the command button .

  2. Enter the Position, Speed, Acceleration, Deceleration, and Direction (Nearest for linear axes) for the Move Absolute command, then click OK.

Tip:
For a typical hydraulic cylinder, the Accel and Decel parameters of the Move absolute command are typically on the order of 10 to 100pu/sec2. The speed is typically between 1 and 30pu/sec.

Example:


 

  1. Repeat the previous step for the other command button. Enter the same velocity, acceleration, and deceleration, but a different position.

6. ClosedSet Symmetrical/Ratioed

If your system behaves differently in each direction of motion, you will need to set the Symmetrical/Ratioed parameter is set to Ratioed. This will provide two Velocity Feed Forwards, one in each direction of motion. The other gains will be ratioed according to the Velocity Feed Forwards, resulting in the same control in both directions.

If you have a single-rod hydraulic cylinder, choose Ratioed.

The Symmetrical/Ratioed parameter can be accessed in the Tuning Tools on the Tune tab in the Axis Parameters section. Remember to download the changes by clicking the Download button.

 

Tuning Steps:

These steps are for adjusting the tuning gains. Use the Tuning Tools for these steps.

6. ClosedAdjust the Proportional Gain

The Proportional Gain must be adjusted to gain some control over the system for continuing the tuning procedure. You will fine-tune it later.

Tip:
For a typical hydraulic cylinder, the Accel and Decel parameters of the Move absolute command should be on the order of 20 -100. The speed is typically between 1 and 30.

 

If the system begins to oscillate, decrease the gain. In this step, do not expect the Actual Position to track the Target Position very well during the move.

 

Plots

Look at these plots for examples of good and bad plots at this step. Be aware that not all systems will be like these examples.

ClosedToo little Proportional Gain

The Actual Position lags the Target Position and takes a long time to get to the Command Position.

 

ClosedToo much Proportional Gain

The axis has started to oscillate, which is evident from the Actual Speed and Control Output.

 

ClosedCorrect Proportional Gain

The Actual Position parallels the Target Position during the constant velocity portion of the move and does not overshoot.

 

7. ClosedAdjust the Velocity Feed Forward

In many systems the Velocity Feed Forward parameter is the most important parameter for position tracking during a move. To adjust the Velocity Feed Forward:

Tip:
Use the Adjust VFF button in the Tuning Tools to automatically determine the Velocity Feed Forward. Make a move, wait for it to complete, then click Adjust VFF. Repeat for the other direction.

 

 

If the Symmetrical/Ratioed parameter is set to Ratioed, you will have two Velocity Feed Forwards, one for each direction of motion. Make sure to tune both.

Plots

Look at these plots for examples of good and bad plots at this step. Be aware that not all systems will be like these examples.

ClosedToo little Velocity Feed Forward

The Actual Position lags the Target Position during the entire move.

 

ClosedToo much Velocity Feed Forward

The Actual Position starts leading the Target Position.

 

ClosedCorrect Velocity Feed Forward

The Actual Position tracks the Target Position perfectly during the latter half of the move.

 

8. ClosedAdjust the Acceleration Feed Forward

The Acceleration Feed Forward parameter is particularly useful for systems moving large masses with relatively small cylinders. Such systems often have a delay before the start of movement. The Acceleration Feed Forward terms can help compensate for this delay.

Tip:
For a 2.5 in bore hydraulic cylinder with a max velocity of 30 in/sec, the Acceleration Feed Forward is typically on the order of 0.01 to 0.3. Start with a small value.

 

 

Plots

Look at these plots for examples of good and bad plots at this step. Be aware that not all systems will be like these examples.

ClosedToo little Acceleration Feed Forward

The Actual Position lags the Target Position during the acceleration at the beginning of the move, and overshoots during the deceleration at the end of the move.

 

ClosedToo much Acceleration Feed Forward

The Actual Position starts leading during the acceleration and undershoots during the deceleration.

 

ClosedCorrect Acceleration Feed Forward

The Actual Position tracks the Target Position well during the acceleration and deceleration.

 

9. ClosedReadjust the Proportional Gain

Proportional Gain affects the responsiveness of the system. Low gains make the system sluggish and unresponsive. Gains that are too high make the axis oscillate or vibrate.

Tip:
For a 2.5 in bore hydraulic cylinder with a max velocity of 30 in/sec, the Proportional Gain is typically on the order of 20 to 300. Start with a small value.

 

10. ClosedAdjust the Integral Gain

Many hydraulic systems do not require a large Integral Gain. However, it is usually desirable to have some Integral Gain to help compensate for valve null drift or changes in system dynamics. Some systems may require larger Integral Gain, in particular if they are moving a large mass or are nonlinear. Too much Integral Gain will cause oscillations and overshoot. The Integral Gain is helpful for getting into position and for tracking during long, slow moves. It will not significantly affect tracking during short, fast moves.

Tip:
Typically, the Integral Gain should be 3 to 5 times greater than the Proportional Gain.

 

 

Too little Integral Gain:

The system may not get into position very quickly, and it will take a long time to recover from quick changes in the system, for example static friction, load changes, or obstacles.

Too much Integral Gain:

The system will begin oscillating.

Correct Integral Gain:

The system will get into position quickly, and any system changes will be quickly corrected.

 

11. ClosedAdjust the Differential Gain

Differential Gain may greatly enhance performance on many hydraulic systems. It is used mainly on systems that have a tendency to oscillate. This happens when heavy loads are moved with relatively small cylinders. Differential Gain will tend to dampen out oscillations and help the axis track during acceleration and deceleration. This will positively affect short, fast moves.

A disadvantage of Differential Gain is that it amplifies position measurement noise. If there is too much noise or the gain is too high, this can cause the system to chatter or oscillate. However, this can be compensated for by using the Output Filter. Systems that are difficult to tune can sometimes be drastically improved by using the Output Filter together with the Differential gain.

Many systems do not require any Differential Gain.

Tip:
For a 2.5 in bore hydraulic cylinder with a max velocity of 30 in/sec, the Differential Gain, if any, is typically on the order of 0.01 to 2. Start with a small value.

 

Note:
If you use Differential Gain, you may be able to increase the Proportional Gain somewhat without making the system oscillate.

 

Too little Differential Gain:

The system will not keep up during acceleration and deceleration.

Too much Differential Gain:

The system will exhibit rapid oscillation.

Correct Differential Gain:

The system will track properly during acceleration and deceleration.

 

12. ClosedAdjust the Output Filter

If the axis is not tracking very well at this point, the Output Filter may help. It can significantly improve control of difficult systems. Without the Output Filter, the Differential Gain can cause the Control Output to oscillate, causing oscillation of the axis. By using the output filter, the Differential Gain can be increased significantly to help the Actual Velocity track the Target Velocity.

Typically, the Output Filter can be set to a value close to the natural frequency of the system. For example, if a system tends to oscillate at 10 Hz, a good starting value for the Output Filter is 10 or higher. After setting the Output Filter, you may be able to increase the Differential and Proportional Gains to improve control. If it does not help, try smaller and higher values of Output Filter, then try increasing the Differential and Proportional Gains again.

Keep in mind that the Output Filter does not always help.

13. ClosedIncrease System Speed

If you have not yet done so, increase the Speed and Acceleration values of the moves. Look for following errors, overshoot, or oscillations.

 

14. ClosedSave your Settings to Flash

To retain your settings in the RMC in the event of a power loss, you must save the settings to Flash:

 

See Also

Tuning Overview


Send comments on this topic.

Copyright © 2024 Delta Computer Systems, Inc. dba Delta Motion