AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Explainer

Who Owns the Position Loop in a Hydraulic Press

Pneumatics and hydraulics Published 8 min read By AutomateDirectUSA engineering team

Short answer

Exactly one controller owns the position loop: it compares the demanded position with the 4-20 mA feedback and commands the valve. The PLC's 0-10 V output is either a scaled position reference for that controller or the valve command from the PLC's own PID, never both devices regulating at once. Decide which before scaling, wiring or tuning any gain.

On this page
  1. Who owns the position loop in a hydraulic press?
  2. Is the PLC's analog signal a position reference or a valve command?
  3. How do you scale the 4-20 mA feedback into ram position?
  4. How do you scale the analog reference into a position demand?
  5. Can the PLC and the motion controller share one 4-20 mA transducer?
  6. Why does the ram hunt, overshoot or sit still before the gains are wrong?
  7. Does the position loop control pressing force too?
  8. In what order do you commission the loop?
  9. Questions asked

Exactly one controller owns the press position loop: the device that compares the demanded position with the measured position and sends the valve command. Your design — a PLC with an analog snap-in module, a 4-20 mA position transducer and a 0-10 V signal to a separate motion controller — supports two valid architectures and one broken mixture. Either the motion controller owns the loop and the PLC's analog output carries a position reference, or the PLC owns the loop and that output carries the valve command. Both devices regulating at once fight each other, and the ram shows it. Decide which architecture you are building before you select a controller, scale a signal or touch a gain.

Who owns the position loop in a hydraulic press? #

The owner is whichever device holds both ends of the loop — reading the position feedback, subtracting it from the demand and outputting the valve command — and in your panel that is either the separate motion controller or the PLC, a choice the sketch leaves open.

Trace three paths and ask one question at each end: where does the transducer current arrive, where is the error computed, and where does the valve command leave? The device that answers all three owns the loop. If the PLC is the only device reading the transducer while a separate controller is asked to close the loop, that controller has no position feedback and closes nothing — the loop is open exactly where it matters. Two clean ways to finish the drawing:

  • External owner: transducer to the motion controller's feedback input, the PLC's analog output as a position reference into that same controller, controller output to the valve amplifier. The PLC sequences and demands; it never regulates.
  • PLC owner: transducer to the PLC's analog input, the PLC's PID driving its analog output straight to the valve amplifier. The second box disappears or becomes the amplifier itself.

Is the PLC's analog signal a position reference or a valve command? #

It is one or the other, never a bit of both: a position reference is an input to the loop owner, a valve command is the loop owner's output, and the same pair of wires cannot carry both meanings.

As a position reference, the 0-10 V signal is a scaled demand — the PLC says "go to 120 mm" in volts — and the external controller does the comparing and correcting; its output, not the PLC's, drives the valve. As a valve command, the voltage is the PLC PID's output asking for valve opening, usually interpreted as ram velocity, so the loop lives in the PLC. The PLC-owned pattern, wired and tuned, is the subject of PID control of a ±10 V proportional valve from a PLC. One trap decides availability: a unipolar span used as a direct valve command reaches one direction only unless the amplifier re-maps it around a neutral, so the amplifier's input definition comes before any controller choice.

How do you scale the 4-20 mA feedback into ram position? #

For a linear transducer the scaling is position = low + ((current − 4) / 16) × (high − low), with the endpoints taken from the transducer's configured span and checked against measured ram travel.

Worked example, calculated rather than measured. The transducer spans 4-20 mA over 0-300 mm of travel; at 12 mA the arithmetic is (12 − 4) = 8 mA above the live zero, 8/16 = 0.50 of span, and 0.50 × 300 mm = 150 mm. Across that span one milliamp is worth 18.75 mm. Set the endpoints from the transducer configuration, verify them at two known positions — ram on the bottom stop and ram fully retracted — and reconcile the owner's raw counts with its engineering units at both. The wiring and filtering of that feedback path are covered in path control of a hydraulic cylinder with 4-20 mA feedback.

How do you scale the analog reference into a position demand? #

If the receiving controller maps the full 0-10 V span to the full demand, the scaling is demand = low + (voltage / 10) × (high − low), so 4.0 V is 0.40 of the stroke.

Worked example on the same stroke: at 4.0 V the demand is (4.0 / 10) × 300 mm = 120 mm. That is a calculated example for a receiver that takes the span as an absolute demand; other receivers map the same wires around a 5 V neutral as plus-or-minus travel, or treat them as a speed or remote setpoint. The interpretation is a configuration item inside the receiver, so write it on the interface drawing next to the scaling. The full span over this stroke puts 30 mm on every volt, so reference resolution is rarely the limit — the feedback and the valve are.

Can the PLC and the motion controller share one 4-20 mA transducer? #

Not by wiring both inputs in parallel: a 4-20 mA loop is one series circuit, so the transducer feeds the owner directly and any second reader needs an isolator, a splitter or a digital value from the owner.

Put the series receiver where the loop is owned. If the motion controller owns the loop, the transducer lands on its feedback input and the PLC watches position through an isolator or a communications register — a monitoring path that adds no regulation. The budget closes at the supply: 24 V DC is the usual loop supply, and the transmitter's minimum operating voltage plus the receiver burden plus cable resistance has to fit inside it, so a second series burden is not free. Two receivers can sit in series when both inputs are isolated and low-burden and the budget still closes, but only one of them may act on the current. A passive second reader is added with a signal isolator that also clears 4-20 mA ground faults, the same part that keeps shared loops from fighting through their grounds.

Why does the ram hunt, overshoot or sit still before the gains are wrong? #

Because five things outside the gains break the loop first — feedback polarity, scaling, a command the valve never sees, valve deadband and integral windup — and each one has a cheap confirming check, cheapest first.

  • Polarity. Under a small, restricted command the error grows instead of shrinking. Watch the owner's error term while jogging a few millimetres; correct the direction in the owner's configuration, not by swapping wires.
  • Scaling. The display looks right but the owner's raw counts are wrong. Measure the loop current at two known ram positions and reconcile both ends.
  • Command not reaching the valve. The output moves and the ram does not: check the amplifier's enable, its neutral offset and any latched fault, then measure the command at the amplifier terminals.
  • Deadband and stiction. The ram sits, then jumps. Note the command level where motion starts; if that deadband is wider than the position band the press needs, no gain will hold it and the fix is deadband compensation in the owner or a better valve.
  • Windup. Pressing against the work, the error persists while the ram cannot move, the integral accumulates, and the ram lurches the moment it can move again. Enable output limiting and anti-windup in the owner before adding integral action at all.

Does the position loop control pressing force too? #

No: position feedback says where the ram is, not how hard it pushes, so force is a second variable with its own sensor the moment the tool meets the work.

In a stiff press, a fraction of a millimetre after contact changes the force a great deal, so a position loop holding a demand against the workpiece is a force command in disguise, bounded only by the pressure relief valve. If the press has to repeat a force, add a pressure transducer or a load cell and either close force in the loop owner — many hydraulic controllers switch from position to force at contact — or set force by the pressure limit and verify it with the sensor. Safety stays outside all of this: position regulation replaces none of the machine's safety functions, which your risk assessment and the press safety standard ISO 16092 require — guarding, stop functions and safe entry, the stored-energy side of which is covered in hydraulic press safe entry: why a dump valve is not a restraint.

In what order do you commission the loop? #

Document the interfaces, scale the feedback, scale the reference, prove the polarity under restricted motion, then tune — five steps in that order, because each step is meaningless while the one before it is wrong.

  1. Draw the loop with the reference, feedback, valve output, enable and fault paths, and write the owner's name in one box.
  2. Scale the feedback against measured travel, at least two points: ram on the bottom stop and ram fully retracted.
  3. Scale the reference and record how the receiver interprets the span.
  4. Prove the polarity in the machine's approved commissioning mode with motion restricted and gain low: a small demand change must shrink the error, and if it grows, stop and reverse the direction setting.
  5. Tune proportional first, then add integral with output limits and anti-windup, and verify the stop repeatability at the working position — the realistic numbers for that question are in can a PLC servo valve stop a hydraulic ram repeatably.

Then the decision, both cases. If the press needs high-response servo valves, different gains for approach and pressing, or a loop update faster than the PLC's timed PID task delivers, buy the external motion controller: transducer on its feedback input, the PLC's analog output as a scaled position reference, the PLC demoted to sequencing and display — case one. If the valve is a slower proportional valve and the PLC's analog input, PID task and output update together stay well inside the valve's response time — a rule of thumb, not a measurement — keep the loop in the PLC, treat the analog output as the valve command and leave the second controller out of the panel — case two. Either way, exactly one name goes in the owner box; the other device passes signals and does nothing else.

Questions asked

Can the PLC own the press position loop instead of an external motion controller?

Yes, when its analog input sampling, PID execution and analog output update together run fast enough for the valve. As a rule of thumb, high-response servo valves want a loop update near 1 ms, while a PLC running its PID on a 10 ms timed task suits slower proportional valves. Take the true execution rate from the datasheet of the exact CPU and analog module, then measure the feedback-to-output delay on the bench before committing.

Does a 0-10 V output command both directions of a servo valve?

Not directly. Most servo valve amplifiers take a bipolar command, typically ±10 V, with 0 V as the neutral point, so the sign of the voltage picks the direction. A unipolar 0 to 10 V span works as a valve command only where the amplifier maps it around an internal neutral, and it always works as a position demand, where low to high voltage covers the whole stroke. Confirm the input definition in the amplifier's documentation before wiring.

What position resolution does the 4-20 mA feedback give?

Two limits stack: the converter and the transducer's own linearity. Calculated example: a 12-bit converter over the 16 mA span resolves 16/4096 = 0.0039 mA, and over a 300 mm stroke that is 300/4096 = 0.073 mm per count. The linearity figure in the transducer datasheet is usually several times larger, so the transducer, not the converter, sets the real resolution.

What actually happens when two controllers regulate the same ram position?

They fight. Each owner reads the other's correction as fresh error, both outputs drive toward their limits, and the ram hunts, presses harder than demanded or trips on a following-error alarm. The fix is architectural, not a tuning change: keep one owner, demote the second device to reference or monitoring, and if you want cascade control, make the inner loop a different variable such as velocity or flow, never a second position loop.

Keep reading

  • 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

  • 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

    PID control of a ±10 V proportional valve from a PLC

    Run the valve from a PID loop whose signed output is clamped to -100% to 100% and scaled linearly so +100% gives +10 V and -100% gives -10 V. Derive cylinder speed from the linear transducer, command speed as a curve of stroke position, and start the stop deadband at 2 mm so the valve does not chatter at target.

    Pneumatics and hydraulics