AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Troubleshooting

Why a Hydraulic Axis Oscillates and What a Notch Filter Can Fix

Pneumatics and hydraulics Published 10 min read By AutomateDirectUSA engineering team

Short answer

Measure the oscillation on the real motion feedback and the valve command at the same time, and repair hydraulic and feedback faults first. If one narrow resonance peak holds within roughly 10-20% of the same frequency across speed, load and direction, a fixed notch filter in the valve command path can mask it — accepting the phase lag near its band and the integral-windup risk that come with it.

On this page
  1. Where the frequency comes from
  2. Measure it on the real motion, with the valve command alongside
  3. Fix these before you filter
  4. Worked example: predict the oil frequency, then compare
  5. When a notch belongs in the valve command
  6. Set it, then verify it
  7. The decision, case by case
  8. Questions asked

A hydraulic axis that oscillates at a steady frequency is ringing a resonance: the oil column between valve and motor acting as a spring against the load inertia, or a softer element in the mechanical path. Before reaching for a filter, measure the frequency on the actual motion feedback with the valve command captured alongside it, and repair the hydraulic and feedback faults first — entrained air, long soft lines, an unstable supply pressure, a worn coupling, a sensor that reports motion the machine does not make. Then filter only what a healthy machine still rings at. A fixed notch filter in the valve command path is the right tool when a single narrow peak holds within roughly 10-20% of one frequency across speed, load and direction, and the wrong tool when the peak migrates, when the command sits at its limits, or when the fault is still in the machine.

Where the frequency comes from #

Three energy stores set the ringing: the compressibility of the oil, the inertia the oil accelerates, and any softer element in series such as a long shaft or a worn coupling. The hydraulic one is predictable from dimensions read off the machine:

f_n = (1/2π) · √(β · D² / (V · J))

where β is the effective bulk modulus of the oil in Pa, D the motor displacement per radian in m³/rad, V the oil volume compressed between valve and motor — both lines plus the motor chambers — in m³, and J the inertia reflected to the motor shaft in kg·m². A cylinder drive takes the same form with the piston area squared in place of D² and the moving mass in place of J.

Two consequences matter for the diagnosis. The valve command is a flow command, not a torque command: the opening sets flow into the motor, and torque comes from the pressure difference across it, which is why the ringing holds near one frequency while speed and load change — the oil spring and the inertia set the frequency, not the command level. The valve itself is a dynamic element with its own lag: a published model of a proportional-valve cylinder drive found the actuator's natural frequency significantly higher than the valve's, so on a machine like that the valve is the slow element, and no notch tuned to the oil will stabilize the loop.

Measure it on the real motion, with the valve command alongside #

Work down these steps and record as you go.

  1. Capture the actual position or velocity feedback and the valve command in the same recording, sampled at least ten times the highest frequency of interest — a rule of thumb; a suspected mode below 30 Hz needs 300 samples per second or faster.
  2. Excite it the way production does: a direction reversal or a command step at a normal operating point, then repeat slow, fast, unloaded and loaded.
  3. Read the frequency from the motion trace, by spectrum or by counting cycles between cursors. A component that lives only in the command or only in the feedback, with no matching real motion, is controller activity or measurement error; the machine rings only at frequencies the motion trace confirms.
  4. Note the peak's centre at every operating point. One centre holding within roughly 10-20% of itself across the envelope is a notch candidate; a centre that migrates means a physical quantity moved — air content, trapped volume, an inertia engaging — and that is a plant problem, not a filtering one.
  5. Compare steady motion with the transitions. Ringing only after reversals points at excitation, and command shaping is the cheaper cure; ringing that persists at constant command points at loop margin or the hydraulics.

A fixed notch presumes the frequency stays put. If the measured centre wanders between operating points by more than about a fifth of itself, a fixed notch will miss it at some points and lag it at others, and the plant — not the filter — is the thing to fix.

Fix these before you filter #

Cheapest check first; each item says what it looks like and what confirms it.

  • Honest feedback. Put a dial indicator against the load while the trace shows oscillation. If the machine is not moving as much as the trace says, repair the sensor, its coupling or its wiring before anything else, because every later decision rests on that trace.
  • Command at its limit. If the recorded valve command pins at a rail while the axis oscillates, the loop has lost authority and the problem is non-linear; no linear filter helps. Cut the demand or slow the ramp and re-test.
  • Loop margin. Halve the proportional gain for one test. If the oscillation dies, the loop lacks phase margin, and that is a tuning problem first — the same reason why PI tuning is slow on a high-inertia hydraulic drive is its own subject — before any filter goes in.
  • Supply pressure. Log pressure at the valve's supply port during the event, with a transducer rated for the circuit's maximum working pressure — never crack a fitting to look, because a high-pressure oil injection injury is a surgical emergency. If the oscillation follows pressure dips, the disturbance enters through the supply: check accumulator gas precharge, and check whether the pump's enable logic follows the cycle, as set out in why a hydraulic pump command should follow the cycle, not the valves.
  • Entrained air. Air collapses the effective bulk modulus and drags the frequency down with it; a measured peak well below the calculated value is the tell. Look for suction leaks, a foaming reservoir, a return line discharging above the oil surface; bleed the high points and re-measure, because bleeding raises the frequency.
  • Trapped volume and soft lines. Every metre of hose between valve and motor adds compressed volume, and doubling the volume multiplies the frequency by about 0.7. Check the routing; hard pipe near the valve and shorter runs raise it again.
  • The mechanical path. Check coupling fit, keyways and bearing blocks for play, and inspect the coupling between the hydraulic motor and the load for wear or cracking; a tired coupling adds a series spring with a mode of its own. If inspection shows it worn, the repair is replacement rather than filtering: a flexible shaft coupling matched to the two shaft ends and the transmitted torque.

Worked example: predict the oil frequency, then compare #

Take a rotary axis as a calculated example: a hydraulic motor of 16 cm³/rev displacement driving a load whose inertia reflected to the motor shaft is 0.020 kg·m², with 250 cm³ of oil trapped between valve and motor including both lines and the motor chambers, and short steel lines with clean degassed oil giving an effective bulk modulus of 1.0 GPa. Hoses, entrained air or long runs would push that modulus down, and the frequency with it.

Convert the displacement: 16 cm³/rev ÷ (2π rad/rev) = 2.55e-6 m³/rad. Then:

f_n = (1/2π) · √(1.0e9 Pa × (2.55e-6)² / (2.5e-4 m³ × 0.020 kg·m²))

The numerator is 1.0e9 × 6.5e-12 = 6.5e-3, the denominator is 5.0e-6, the quotient is 1.3e3 1/s², its square root is 36.1 rad/s, and 36.1 ÷ (2π) gives 5.7 Hz.

Every figure here is calculated for these inputs, not measured on your machine. The sensitivities are the useful part: doubling the inertia to 0.040 kg·m² drops the frequency to 4.1 Hz, doubling the trapped volume to 500 cm³ with longer hoses drops it to 4.1 Hz, letting half the bulk modulus disappear into entrained air drops it to 4.1 Hz, and all three together land near 2 Hz. A measured peak well below the calculation therefore means air, extra volume or a series compliance such as a worn coupling; a measured peak well above it points at the valve or a mechanical mode.

The same capture gives the damping. For a lightly damped second-order mode, the peak stands about 20·log10(1/(2ζ)) dB above the smooth response, and its half-power width is roughly 2ζ·f_n. A peak 14 dB tall implies ζ near 0.1 and a width near 1.1 Hz — the numbers the notch below is set from.

When a notch belongs in the valve command #

A notch — a bandstop filter — attenuates one narrow band and passes everything else, which matches the shape of a tuned resonance's gain spike. It earns its place only after the checklist above comes back clean, and only when three things hold at once: one peak, one centre holding within roughly 10-20% across the envelope, and a valve command that stays off its limits while it rings. Compare the peak against the valve datasheet as well: the -90° phase point of the frequency-response plot is the valve's own limit, and a measured peak at or below it belongs to the valve, so detune the loop or specify a faster valve instead of filtering.

Placement decides what the notch can do. On the motion command, before the loops, it shapes what you ask for; it cannot destabilize anything, but it only cures ringing the command excites. In the manipulated-variable channel, between the loop output and the valve, it masks a plant resonance the loop would otherwise fight — and it changes the loop dynamics, so the loop must be re-verified after it goes in. On the feedback it is the wrong place for a real resonance, because it hides the oscillation from the loop, which then drives the machine harder at that frequency; reserve that position for a sensor artifact proven with an independent instrument.

Two costs come with the command-channel placement. The notch adds phase lag around its band, and a deeper or wider notch than the measurement justifies steepens that phase swing for nothing, so match the depth to the peak — in the worked example, 15 to 20 dB of attenuation against a 14 dB peak. And where integral action sits in the loop, command swallowed by the filter or the valve limit accumulates in the integrator and discharges as overshoot when the limit clears; tie the anti-windup to the command after the filter if the controller offers it, and otherwise cap the ramp rates so the command stays off the rails.

Set it, then verify it #

Set from the measurement, as a starting point and not as universal values:

  • Centre: the measured peak centre from the mid-drift operating point — 5.7 Hz in the worked example.
  • Bandwidth: the peak's width plus the drift on both sides. With the example's 1.1 Hz width and ±10% drift (±0.6 Hz), that is a band of about 2.5 Hz, from roughly 4.5 to 7 Hz; widening it further to chase a migrating peak is the signal to stop filtering and fix the plant.
  • Depth: the peak height plus a few decibels — 15 to 20 dB against the example's 14 dB peak.
  • Execution: a fixed, deterministic update interval in the fastest cyclic task that touches the valve command; a variable rate detunes the notch and adds delay.

Then verify at the worst case — highest speed, load on, direction reversal — against three checks: the peak is knocked down, no new peak has appeared anywhere in the spectrum, and end-of-move overshoot has not grown. A new peak means the notch moved the trouble to the next mode in line; grown overshoot means windup or lost margin. Treat controller self-tuning or adaptive notches as suspect unless the vendor documents how the adaptation is bounded — an adaptive notch is itself a feedback loop and can go unstable on its own — and do not stack a second notch without a fresh stability check, because each notch adds phase.

The decision, case by case #

  • One fixed peak, clean hydraulics and feedback, command off its limits: a fixed notch in the valve command channel, set and verified as above; it masks the mode, and the margins you verify afterwards keep it safe.
  • A peak migrating more than the 10-20% band allows across the envelope: no fixed notch. Find which quantity moved — air, volume, an inertia engaging — or reshape the command with rate and jerk limits, then re-measure.
  • A peak at or below the valve's -90° phase point: the valve is the limit; lower the loop bandwidth or specify a faster valve.
  • Ringing only after command transitions: shape the command with ramps and jerk limits, not a filter.
  • Oscillation on the trace without matching real motion: repair the feedback path; do not notch the feedback.
  • A command pinned at a limit while it oscillates: an authority problem; reduce the demand, slow the ramps, or add valve and pump capacity.

Filter the frequency a healthy machine still rings at; never use a filter to keep a fault running.

Questions asked

Can a low-pass filter on the valve command replace the notch?

Only at the cost of response. A low-pass strips everything above its corner, so it takes the resonance out but also the command content the loop needs, and the phase lag is paid across the whole band rather than at one narrow peak. Choose a low-pass when the capture shows broadband noise, a notch when it shows one narrow peak. Machines often end up with both: the notch first, so the low-pass corner can sit as high as the loop margin allows.

How fast should I record to measure the oscillation frequency?

Sampling theory demands just over twice the highest frequency of interest; practice wants about ten times so the shape is visible. For a suspected mode below 30 Hz, record feedback and command at 300 samples per second or faster, using the controller's own cyclic trace or a recorder with proper anti-alias filtering. A slow HMI trend undersamples the ringing and shows a slower, invented oscillation that will send you hunting for a mode that does not exist.

The notch killed the oscillation, but the axis now overshoots at the end of moves. Why?

Two usual suspects. Integral windup: if the filter or the valve limit swallows command the integrator believes it delivered, the accumulated integral discharges as overshoot when the limit clears — bind the anti-windup to the command after the filter and the limit, or cap the ramp rates so the command stays off its rails. Lost phase margin: the notch's phase swing may land near the loop's crossover. Halve the integral gain and re-test; if overshoot persists, widen the band slightly or move the shaping upstream of the loops.

Where do I find the valve's own frequency response to compare with my measured peak?

In the manufacturer's datasheet for the exact valve model and size, not the family brochure: the frequency-response plot gives amplitude and phase against frequency at a stated input amplitude, supply pressure and oil viscosity, and the -90° phase point is the figure to compare with your measurement. It moves with the rated flow size, so take the number from the datasheet of the valve actually installed. If your measured peak sits at or below that point, the valve is the limiting dynamics.

Does the notch have to run in the same cyclic task as the motion loop?

Yes, and at a constant interval. A notch is a tuned delay structure: its centre frequency and depth depend on the update rate, so a filter tuned in one task behaves differently in another, and a rate that varies with load on the controller detunes it while adding delay. Place it in the fastest cyclic task that touches the valve command, keep that task's interval fixed in every operating mode, and re-verify the notch after any change to task configuration or execution times.

Keep reading

  • Troubleshooting

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

    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.

    Pneumatics and hydraulics

  • How-to

    Running Three Phase-Shifted Hydraulic Cylinders With PLC PID

    Yes. Run one position PID loop per cylinder and feed all three from a single master phase computed once per fixed control interval: the cycle period is 60 divided by RPM in seconds, cylinder 2 leads by a third of it and cylinder 3 by two thirds. A lookup table can supply the setpoints if you commit all three as one set; the real limit is analog-channel sampling skew.

    Pneumatics and hydraulics

  • 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