AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Troubleshooting

Why PI Tuning Is Slow on a High-Inertia Hydraulic Drive

Pneumatics and hydraulics Published 7 min read By AutomateDirectUSA engineering team

Short answer

Your manual voltage-decrement test took the motor from 2100 to 2000 RPM in about 1 s, while the tuned PI loop manages about 3.3 RPM/s — roughly 30 times slower — so the hydraulics can respond and the slowness points to output scaling, output limits or valve-command mismatch. Fix those, then retune against the measured benchmark.

On this page
  1. What your own tests already proved
  2. Why the oscillation recipe left the loop slow
  3. Checks in order of cost
  4. Worked example: the 100 kW motor's 2100 to 2000 RPM correction
  5. Retune against the measured benchmark
  6. Reading the two traces: the decision
  7. Questions asked

A PI loop that needs half a minute to do what your hand did in one second is not fighting the hydraulics — it is fighting its own command path. Your manual voltage-decrement test took the motor from 2100 to 2000 RPM in about a second, while the best tuned loop averaged about 3.3 RPM/s over the same span: roughly 30 times slower. The motor, the proportional valve and the circuit have already demonstrated the response you want, so the slowness points at output scaling, output limits and rate clamps, loop update timing, or a mismatch between the controller's analog span and the valve's command input. Fix those, then retune against the measured benchmark instead of the oscillation recipe.

What your own tests already proved #

Two of your measurements settle the first question. The manual test — two decrements of the valve command voltage — brought the shaft down at circuit flows up to 200 LPM (53 GPM). The closed-loop figure is a reported tuning result, not a plant limit, and every check below is aimed at closing that gap.

Measurement Result What it establishes
Manual valve-command decrement, two steps 2100 to 2000 RPM in the manual-test time The plant corrects that speed error quickly, on its own
Open-loop acceleration on the valve 0 to 2000 RPM in 2 to 2.5 s Acceleration authority in the other direction
Circuit flow at the operating point Up to 200 LPM (53 GPM) The flow condition any diagnosis must hold
Best tuned PI loop About 3.3 RPM/s average over the same span Roughly half a minute for a correction the manual test makes in a second

Why the oscillation recipe left the loop slow #

Raising proportional gain until the loop sustains oscillation, then backing off and adding integral, finds the stability edge of the loop the controller actually drives. If the output is rescaled, clamped or rate-limited on its way to the valve, that oscillation point arrives at gains that barely move the spool, and you land exactly where you did: stable, usable, and close to 30 times slower than the plant demonstrably is.

Hydraulics compound it in two ways. Orifice flow varies with the square root of pressure drop, so plant gain shifts with pressure and speed, and a gain set found at one operating point degrades at another. The compressible oil between valve and motor also acts as a spring working against a large inertia, which sets a low hydraulic natural frequency and caps the usable gain before oscillation. None of that argues against PI — for a speed loop on encoder feedback, PI is the normal form, and derivative mostly amplifies speed quantization.

Checks in order of cost #

Work down this list before touching the gains again; each item names its confirming check.

  • Output scaling. Meter the analog output at the valve terminals with the controller forced to 0, 50 and 100 percent: the swing must span the valve's full rated command input. It is the same check made when controlling a hydraulic cylinder position from a 0-10V analog input — the volts leaving the controller have to be the volts the valve is rated to receive.
  • Output limits and rate clamps. Read the configured output high and low limits and any slew or ramp setting in the controller software. Then step the setpoint and watch the output trace: a staircase, where your manual test applied two clean decrements, means a rate clamp is throttling the loop.
  • Loop update interval and speed filtering. Servo-valve practice runs the controller 5 to 10 times faster than the loop response. Check the configured task interval and the encoder speed filter time constant; a filter of that order or slower adds lag that looks exactly like low gain. If the configured numbers look right and the loop is still slow, apply the method used to measure PLC-to-SCADA command response time end to end: timestamp the command at the controller and the resulting voltage change at the valve terminals, and see which half of the path eats the time.
  • Control direction and magnitude. Trace speed error and controller output together: when measured speed exceeds the reference, the output must fall, by roughly the step you applied manually. A correct but tiny decrement points straight back at scaling or limits. A command path that rescales or clamps its output causes trouble elsewhere too — it is what makes it hard for a PLC servo valve to stop a hydraulic ram repeatably, with position scatter as the symptom there and sluggish speed correction here.
  • Valve command range at the operating flow. You characterized this valve while building its model, so the data exists. Confirm the characterization covers the 200 LPM (53 GPM) point and the command levels the loop actually reaches, and that valve and controller are matched: the valve must meet the motor's flow demand, and its command input must match what the controller delivers.
  • Model versus plant. Replay the same correction in your simulation model and compare the command-to-speed transient against the measured one at the same reference, speed and flow. Where they diverge is the parameter to correct before any gain from that model is worth retrying.

Worked example: the 100 kW motor's 2100 to 2000 RPM correction #

Inputs, each with its unit and source:

  • Speed span and manual correction time: from the manual two-step decrement test quoted in the opening paragraph.
  • Closed-loop average rate over the same span: about 3.3 RPM/s, the reported best tuned result.
  • Target loop response: the demonstrated manual response time.
  • Circuit flow at the operating point: up to 200 LPM (53 GPM), machine operating data.
  • Motor rating: 100 kW, machine data — context only, it does not enter the arithmetic.

Rule in words: average correction rate is speed change divided by elapsed time; the ratio of manual rate to loop rate is the tuning shortfall; and the update-interval rule of thumb (5 to 10 times faster than the loop response) sets the controller timing the target demands.

The arithmetic:

  • Manual rate: (2100 − 2000) RPM ÷ 1 s = 100 RPM/s.
  • Loop time for the same span: (2100 − 2000) RPM ÷ 3.3 RPM/s ≈ 30 s.
  • Shortfall: manual rate ÷ loop rate ≈ 30.
  • Update interval for the target: divide the target response by 10 and by 5, giving 0.1 to 0.2 s or faster.

The result, calculated from your two reported results rather than a new measurement: the plant demonstrated the manual rate, the loop delivers about a thirtieth of it, and the controller must execute the loop at the update interval derived above for the target response to even be reachable.

Decision for this machine: any tuning that needs more than about 10 s for this speed correction — a factor of 10 below the demonstrated rate — means the command path is throttling the loop; fix scaling, limits, clamps or timing before raising gains. Only if those are cleared and the loop still cannot approach the manual-test response without sustained oscillation do you re-open the hydraulic side at the operating flow.

Retune against the measured benchmark #

  1. Record reference speed, encoder speed, controller output in volts and time on one timebase during a manual decrement correction. That trace is the target trajectory.
  2. Clear the command path first: scaling proven with a meter, limits and rate clamps raised or removed to sane values, loop update at the interval the worked example derives.
  3. Tune with proportional action only and integral at zero or very slow. Raise the proportional gain until the correction time approaches the recorded manual trace, watching overshoot toward the reference.
  4. Add integral to remove the steady offset, and stop at the first sign of growing oscillation.
  5. Accept the tuning when the loop repeatably closes that speed error in about the manual-test time, without sustained oscillation, verified at the 200 LPM operating point.

Tune in a machine state your risk assessment allows for a 100 kW drive near 2000 RPM — reduced pressure or an unloaded step if the process permits — and stop at the first growing oscillation; refusing to let an automatic tuner excite this machine was the right call. Working from the machine's own measured response instead of a generic recipe is the same discipline that pays off when tuning a closed-loop stepper with linear scale feedback.

Reading the two traces: the decision #

  • Output moves more slowly than the manual trajectory: the controller is throttling its own command. Scaling, limits, rate clamps or update interval — gains cannot recover what the output never delivers.
  • Output matches the manual trajectory but speed responds more slowly: the hydraulic operating condition differed between tests — pressure, oil temperature or load. Retune at the actual operating point.
  • The loop only oscillates at gains that still need multi-second corrections: the oscillation belongs to the scaled or clamped loop, not the plant. Remove the restriction and the usable gain range widens.
  • Traces match and the loop closes the error in the time the manual test showed: done. Log the gains, the traces and the operating point together, because hydraulic loop gain shifts with pressure and speed, and the next retune should start from that record.

Questions asked

How fast should this hydraulic speed loop be?

Use your own measured manual correction as the machine-specific benchmark: about a second for a 5 percent speed error at a 2000 RPM setpoint. A loop that closes that error in one to two seconds without sustained oscillation is properly tuned for this plant. Demanding meaningfully faster needs new testing, because nothing measured shows the machine can do better.

Why did the gains from my simulation model fail on the real machine?

Gains transfer only when the model reproduces the measured command-to-speed transient at the same speed, flow and pressure. A model matched to steady-state points can still miss the valve dynamics, the controller update interval and the output scaling, and those are the terms that dominate a speed loop. Correct the model from measured transients first, then re-derive the gains.

Is the proportional valve the bottleneck?

Probably not, since you characterized it while building its model. The open question is whether the loop commands reach the range where that characterization applies. Confirm the valve passes the 200 LPM (53 GPM) operating flow at the command levels the loop actually produces, and that its rated command input matches the controller analog output span.

Should I run the controller autotuner on this machine?

Not on a 100 kW motor running near 2000 RPM. Autotuners excite the loop to find its stability limit, and you already declined that excitation with good reason. Manual tuning against recorded traces, with the manual decrement as the target, reaches a defensible result without injecting relay steps into a large rotating system.

What loop update interval does a one-second speed loop need?

Follow the servo-valve rule of thumb: run the controller 5 to 10 times faster than the response you want. Keep the encoder speed filter at the same order or faster, because a slow filter adds phase lag that behaves exactly like missing gain.

Keep reading

  • Selection guide

    Controlling Hydraulic Cylinder Position From a 0-10V Analog Input

    No. An analog voltage into a hydraulic valve commands spool position and therefore flow, not cylinder position. Use it as the position reference to a closed-loop motion controller with an in-cylinder displacement transducer, and size the valve near 10 L/min for the 7.8 L/min peak of the 1.5-inch-bore example.

    Pneumatics and hydraulics

  • Explainer

    Can a PLC Servo Valve Stop a Hydraulic Ram Repeatably

    No — not on a PLC analog output alone. Oil compressibility, load and valve null drift move an open-loop stop, so the loop must close on a ram-mounted transducer, which a Delta Motion note says can position heavy loads to better than 0.0005 in. Decide by measuring today's stopping spread against the part tolerance: if the stop switch meets it, modernize the servo positioner and keep the manual fallback.

    Pneumatics and hydraulics

  • Troubleshooting

    Diagnosing a Hydraulic Winder That Stalls Under Tension

    When raising the tension command stalls the drive roll of a hydraulic winder, first measure the speed-valve command: if the controller is already at full output, the fault is hydraulic capacity — pump flow, relief setting, filter or internal leakage — not control logic. A top speed of 75 against a documented 150 m/min confirms the drive motor is getting about half its designed flow.

    Pneumatics and hydraulics