AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Selection guide

Hydraulic Cylinder Position Sensing in Mud and Sand

Pneumatics and hydraulics Published 8 min read By AutomateDirectUSA engineering team

Short answer

Select the sensing method from the maximum permissible position mismatch, not from the environment alone. At four samples per second, a cylinder moving 100 mm/s travels 25 mm between updates; sensor error and stopping travel add to that. An externally mounted magnetostrictive transducer is the first choice for continuous feedback, a protected cable-extension encoder the second; ultrasonic survives only if the timing arithmetic fits.

On this page
  1. Pick the sensor from the mismatch budget, not from the mud
  2. The timing arithmetic at four samples per second
  3. Sensing methods compared for mud, sand and water
  4. Mounting and protection details that decide survival
  5. Checks to run before you order
  6. The decision
  7. Questions asked

Mud, sand and water rule out the corroded cam-and-pull-wire arrangement, but the environment should not pick its replacement. The deciding quantity is the maximum position mismatch the walking mechanism tolerates between its seven cylinders, because the controller only ever sees samples: at 4 samples per second, a cylinder moving 100 mm/s travels 25 mm between updates. For continuous coordination, an externally mounted magnetostrictive transducer is the first choice and a protected cable-extension encoder the second; low-frequency ultrasonic is a fallback that survives only when the timing arithmetic fits the budget, and inductive proximity switches are the cheap answer when only discrete positions are needed. The sections below give the arithmetic, the method comparison, the mounting practice and the decision.

Pick the sensor from the mismatch budget, not from the mud #

The walking action keeps seven cylinders in step by throttling or stopping whichever cylinder leads, so the first engineering number is what the mechanism forgives before its members interfere: call it the mismatch budget. Three things spend it.

  • Measurement error: the difference between the reported position and the true rod position at the worst point of the stroke.
  • Staleness: the distance the rod moves between two samples, equal to speed multiplied by sample interval. Finer resolution does nothing about it; only a faster update or a slower cylinder does.
  • Stopping travel: the distance covered after the sample that detects the lead, through the PLC scan, the valve shift and the oil coasting to a standstill.

Set the budget from the mechanism drawings and its worst attitude, and charge the stopping term with the response of the throttle itself, not only of an emergency stop. Whether a PLC-driven servo valve can stop a hydraulic ram repeatably is exactly the question examined in can a PLC servo valve stop a hydraulic ram repeatably.

Range is the other requirement: the sensor must measure at least the 500 mm stroke plus the bracket offsets at both ends, a figure to take from the datasheet of the exact part and stroke rather than from a family brochure.

The timing arithmetic at four samples per second #

Everything here is a calculated example for the stated inputs; measure the real speeds and stopping travel on the machine before trusting the result.

Inputs, each an example value:

  • Cylinder speed: 100 mm/s extension under representative load
  • Update rate: 4 Hz
  • Sensor error: plus or minus 1 mm, an allowance for a mid-range transducer; take the real linearity figure from the datasheet of the part you buy
  • Detection-to-standstill response: 0.20 s, covering PLC scan, valve shift and hydraulic coast

Arithmetic:

  • Sample interval: 1 / 4 Hz = 0.25 s
  • Staleness: 100 mm/s × 0.25 s = 25 mm
  • Stopping travel: 100 mm/s × 0.20 s = 20 mm
  • Worst-case mismatch at standstill: 25 mm + 1 mm + 20 mm = 46 mm

Decisions for the two cases:

  • A budget of 50 mm: 46 mm fits with 4 mm of margin. That is thin; a mud-slowed update, a heavier load or a colder, lazier valve erases it. Passing, but watched.
  • A budget of 20 mm: 46 mm fails, and no sensor can fix it, because stopping travel alone consumes the whole budget.

Two repairs, ordered by cost:

  1. Slow the flow. At 40 mm/s: staleness = 40 mm/s × 0.25 s = 10 mm, stopping travel = 40 mm/s × 0.20 s = 8 mm, total = 10 mm + 1 mm + 8 mm = 19 mm. Fits the 20 mm budget. The cost is cycle time.
  2. Sample and stop faster. At 20 Hz with a 0.08 s response: staleness = 100 mm/s / 20 Hz = 5 mm, stopping travel = 100 mm/s × 0.08 s = 8 mm, total = 5 mm + 1 mm + 8 mm = 14 mm. Fits. The cost is a transducer and valve rated for that speed of response.

This is where the continuous transducer families earn their place. A magnetostrictive sensor updating in the millisecond range (1 ms is a typical datasheet figure; verify it for your part) gives staleness of 100 mm/s × 0.001 s = 0.1 mm, which collapses the mismatch to sensor error plus stopping travel. Ultrasonic at 4 Hz cannot make that claim.

"Relatively slowly" is an impression, not an input. Log position against time on one cylinder under load, in both directions, and put the measured number in place of the example speed; if retraction runs slower, its case passes more easily.

Sensing methods compared for mud, sand and water #

Method What it gives you Main constraint in mud and water Where it fits
External magnetostrictive transducer, shielded side mount Continuous absolute position, noncontact between magnet and sensing element, millisecond updates The magnet must track the rod over the full stroke; the profile needs a shield against impact and packed grit First choice for continuous feedback
Protected cable-extension (wire-draw) encoder Continuous position from a unit mounted beside the cylinder at the rod end Cable, drum and return spring stay exposed; the cable run and its entry are the items to protect Second choice where no shielded transducer mount fits
Ultrasonic distance sensor No mechanical linkage to the cylinder Mud reshapes the target echo, water on the face weakens transmission, nearby steel returns competing echoes; blind zone must clear the nearest target Fallback where the acoustic path stays usable and the timing fits
Inductive proximity switches on a rod flag Noncontact confirmation of chosen positions Discrete positions only; the flag must not pack mud against the switch face Sequences that need end positions, not continuous travel
Reed switches with an internal piston magnet Discrete positions with nothing exposed on the rod Needs cylinder construction that accepts the magnet and switch slot, the same retrofit problem as an internal transducer Only when cylinders are being replaced anyway
Enclosed optical linear scale Sealed measuring path with high resolution Needs a straight mounting surface along the whole stroke and its own impact protection Rarely justified at a walking-mechanism budget
Valve timing estimate, no sensor Nothing to foul or corrode on the cylinder Error follows oil temperature, load and leakage and drifts without warning Cross-check only, never the sole feedback

Manufacturer documentation supports the top two rows: Balluff documents its magnetostrictive linear position sensors as suited to position feedback in hydraulic cylinders, and SICK documents its HighLine wire-draw encoder family for positioning tasks in harsh environments and very long measuring ranges. Both are family statements; range, mounting style, ingress rating, output and response time come from the current datasheet of the exact part.

Noncontact does not mean maintenance-free: the magnet or target still needs a rigid relationship to the moving rod, and anything outside the cylinder can be struck, buried or packed with grit. Ultrasonic sensing adds a second dependency, the echo itself: check the blind zone and beam footprint across the entire travel including the nearest target position, and across seven channels use the manufacturer's documented synchronization or sequencing so only one sensor transmits at a time, then calculate the resulting per-cylinder update interval.

Outputs to order: SSI or start/stop pulse for absolute digital position, or a 4-20 mA and 0-10 V analog output where an analog input already exists. Reading those signals into the controller is the subject of path control of a hydraulic cylinder with 4-20 mA feedback and of controlling a hydraulic cylinder from a 0-10 V analog input.

Mounting and protection details that decide survival #

The assembled installation is only as protected as its least protected joint. A rating printed on the transducer body does not carry through a field-fitted connector, a gland installed off-specification or a cable entry facing upward. Verify the ingress rating of every element, sensor body, connector, gland and cable, on its own datasheet, and note that an immersion figure does not by itself cover washdown jets or corrosive water; the tested conditions behind the ingress code decide.

Mounting practice for this mechanism: put the transducer profile or encoder body under a shield plate offset from the rod spray; run cables clipped along the frame with a drip loop before each entry, never draped across the cylinder; keep the magnet strip or cable clear of the pinch points at both stroke ends; and check magnet-to-profile alignment at the mechanism's worst rack and squat attitude, not only with the cylinders square.

One safety note: isolate, lock off and relieve stored hydraulic pressure before opening any fitting at the cylinder, and do not drill, tap or otherwise modify the pressure boundary; internal transducer fitting belongs to the cylinder manufacturer or a cylinder builder working from the drawings.

Checks to run before you order #

  1. Measure extension and retraction speed under representative load by logging position against time on one cylinder.
  2. Command a stop mid-stroke and log to standstill; the measured time is the response term in the arithmetic above.
  3. Write the mismatch budget from the mechanism drawings and its worst attitude.
  4. Run the timing arithmetic with the measured values for both directions; the slower direction usually decides.
  5. Shortlist parts whose range covers stroke plus brackets, whose update and linearity fit the budget, and whose documented ingress rating covers the site's mud, standing water and washdown.
  6. Trial the preferred method on one cylinder through a full shift before buying seven.

The decision #

For the seven-cylinder walking mechanism in mud:

  • Continuous coordination is required, so the choice is an external magnetostrictive transducer on a shielded side mount. Its millisecond updates reduce staleness to a tenth of a millimetre at the example speed, leaving sensor error and stopping travel as the only budget spenders.
  • Where no shielded external mount fits, the second choice is a protected cable-extension encoder at the rod end, with the cable run as the item to protect and inspect.
  • If the sequence only needs discrete positions, inductive proximity switches on a rod flag are the correct cheap answer.
  • Ultrasonic at 4 samples per second is the fallback, not the plan: it adds an acoustic path that mud attacks, it needs synchronization across seven channels, and in the worked example it cannot meet the tighter budget even with a perfect sensor. Keep it only where the measured arithmetic fits with margin.

Whichever method wins, the three numbers that decide it are measured on the machine: speed, stopping travel and budget. The sensor is the cheapest part of that decision.

Questions asked

Does the 200 mm piston diameter let me calculate the cylinder speed?

No. A diameter alone gives neither the bore area nor the oil flow, so it cannot predict thrust or travel speed. Log position against time on one cylinder under the normal load, in both directions, and use the measured speeds in the timing arithmetic. If extension and retraction differ, run the mismatch calculation for each direction separately.

What sensor output should I order for the controller?

For continuous absolute position, order SSI or start/stop pulse output and read it with a suitable interface module; a 4-20 mA or 0-10 V analog output also works where an analog input exists. Watch the input's resolution: a 12-bit input spanning the 500 mm stroke resolves 500 mm / 4096, about 0.12 mm per step, comfortably inside a millimetre-scale budget.

Will seven ultrasonic sensors interfere with one another?

They can: a sensor fired while a neighbour transmits can receive that burst and report a wrong distance. Use the manufacturer's synchronization or sequencing input so only one sensor transmits at a time. Seven channels polled in a 250 ms round preserve the group rate for every cylinder; free-running channels at 4 Hz each do not, because transmissions collide.

Why not mount the transducer inside the cylinder after all?

Internal fitting means opening the pressure boundary: machining the rod or head, seating the transducer stem and sealing it against system pressure. That path was already ruled out for the existing cylinders. If no shielded external mount can be protected from impact, the remaining route is new cylinders specified with a built-in transducer and the same 500 mm stroke and mounting envelope.

How accurate does the sensor itself need to be?

Let the budget decide. Keep the sensor's linearity error near a tenth of the mismatch budget, so a 20 mm budget wants roughly plus or minus 2 mm from the sensor. That is easy for magnetostrictive families to meet; take the exact figure from the datasheet of the part and stroke ordered, because linearity is normally quoted as a fraction of full stroke.

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

  • How-to

    Path control of a hydraulic cylinder with 4-20 mA feedback

    Yes, a 4-20 mA transducer closes a hydraulic cylinder position loop as a slow process value, never as an encoder substitute. Scale the 16 mA span to the calibrated stroke, run acquisition, trajectory, control and valve output in one fixed-period task, treat out-of-range current as a motion-stopping fault, and keep the measured input-to-output delay below the following-error budget your velocity allows. Worked example: 250 mm stroke, 200 mm/s, 25 ms budget.

    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