How-to
Why a timed hydraulic cylinder return can replace a limit switch
Short answer
Yes — if the table is level exactly when the cylinder bottoms out against a fixed stop, a return timer preset just past the measured extension interval replaces the limit switch. The preset comes from a stopwatch measurement of the full return at cold oil temperature, and the tilt and return solenoid commands must be mutually interlocked so no pedal transition ever energizes both. Without a stop at the level position, keep the switch or add position feedback.

On this page
A tilting table that returns to level when you lift your foot off the pedal does not need a limit switch, provided the table is level exactly when the tilt cylinder reaches full extension against a fixed stop. A timer then does the switch's job: hold the return solenoid on for the measured return interval, then drop it. Two conditions make the substitution valid. The stop, not the timer, must set the level position, so a preset that runs long cannot overshoot. And the tilt and return solenoid commands must be mutually interlocked, because a pedal transition at the wrong moment can leave both outputs high on the 4/3 closed-center valve and park the spool in an undefined state. This article sets the timer from a measured interval, builds the interlock step by step, and gives the decision for the case where time cannot do the job.
Why time can stand in for a limit switch #
A timer substitutes elapsed time for position feedback. It never measures where the table is; it predicts where the cylinder must be, and the prediction is trustworthy only when the controlled position coincides with a repeatable mechanical endpoint. A table that is level exactly when the cylinder bottoms out has that endpoint: whatever the oil temperature or the load on the table, the cylinder cannot extend past the stop, so the position at timer expiry is bounded by hardware. A preset longer than the return needs is then harmless to position. A preset shorter than the return needs is the failure to design against: the table halts short of level with the return solenoid still energized and the pump deadheading.
One safety note before the numbers: the stop now absorbs full cylinder force on every cycle, so the stop and its mounting must carry it, and swapping a switch for time is a control change that belongs in the machine's risk assessment. ISO 4413, the general safety standard for industrial hydraulic systems, expects a machine's unexpected-movement hazards to be worked through exactly that assessment.
A timer fits a single repeatable endpoint. A cylinder that must reverse every cycle from a trigger is a different pattern; the guide to auto-reversing a double-acting hydraulic cylinder covers the reciprocating circuit.
Reading the 4/3 closed-center valve #
The valve behind this sequence is a 4/3 closed-center unit with on/off solenoids: four ports — pressure, tank and the two cylinder lines — and three spool positions, the same ports-and-positions count the ISO 1219-1 schematic symbols encode. One solenoid shifts the spool to tilt, the other shifts it to return, and springs or a detent center it. Two consequences drive the logic. With the spool centered, pump flow has nowhere to go, so on a fixed-displacement pump without an unloader it all crosses the relief valve, and a solenoid held past the end of motion only heats oil. And with both solenoids commanded at once, the spool sits in no commanded position — the centering method decides where — so motion when one solenoid drops is uncontrolled. If what the circuit actually has is a closed-center 3/3 valve and a swap to 4/3 is on the table, when a 4/3 valve can safely replace a closed-center 3/3 valve takes that question on its own terms.
Every state of a correct sequence, plus the fault state to design out:
| Pedal | Tilt solenoid | Return solenoid | Timer | Table motion |
|---|---|---|---|---|
| Pressed | On | Off | Cancelled | Tilts |
| Released, timer running | Off | On | Running | Cylinder extends, table returns to level |
| Released, timer expired | Off | Off | Done | Holds level at the stop |
| Both commands high (fault) | On | On | Any | Spool position undefined |
Setting the timer for a return that measures 9.6 s #
Worked example; every input below is one you measure or read on your own machine, and the results are calculated for these inputs, not measured on a reference machine. The full return interval — pedal released to table level at the stop — is 9.6 s, the longest of three complete returns timed with a stopwatch, taken with cold oil at the start of a shift because cold oil flows slower and gives the worst case. The margin factor is 1.3, a rule of thumb rather than a datasheet figure, covering the spread between that cold measurement and warm running. For the heat check, the pump delivers 5 gpm against a relief valve set to 1500 psi; both figures are illustrative, and yours come from the pump nameplate and the gauge.
The rule in words: timer preset equals the longest measured return times the margin factor, and while a solenoid is held past the end of motion on a closed-center valve, the heat rate into the oil equals relief pressure times pump flow divided by 1714, which yields horsepower.
The arithmetic: preset = 9.6 s × 1.3 = 12.48 s, rounded to 12.5 s. Heat rate = 1500 psi × 5 gpm ÷ 1714 = 4.38 hp, and 4.38 hp × 0.746 = 3.27 kW, call it 3.3 kW. Each second the return output stays on past the stop therefore adds roughly 3.3 kJ to the oil.
The result for these inputs: preset 12.5 s, with the return output dropping unconditionally at expiry.
The decision: keep the preset at or above the longest measured return — below it, the table halts short of level under power, the failure mode named above. Above it, the stop bounds the position, and extra preset costs only deadhead time, about 3.3 kW for this pump and relief. Set 12.5 s here, hold the padding to the 30 percent rule of thumb, and let expiry drop the output.
Building the interlocked timed return #
-
Confirm the endpoint. Watch the rod through a full cycle: the return must end because the cylinder bottoms out or the table meets the stop at the level point, not because valve timing happens to work out. If level falls anywhere mid-stroke, stop here — the last section lists what does the job instead.
-
Time the return. Three complete returns, stopwatch, cold oil at the start of a shift; keep the longest reading. That measurement, not a guess, sets the preset, and the worked example above shows the arithmetic.
-
Start the timer on the pedal's release transition. Let its output be the only path that energizes the return solenoid, make expiry drop that output unconditionally, and so leave both solenoids de-energized whenever no motion is commanded.
-
Interlock the two outputs with three transition rules. Pedal pressed: cancel the timer and drop the return output in the same logic pass that permits the tilt output. Pedal released: drop the tilt output, start the timer, permit the return output. Timer expired: drop the return output. Then add a hard guarantee: build each output from the other's inverse — tilt equals pedal and not return, return equals timer-running and not tilt — so no scan order can leave both high.
-
Check the inversion markers in the function-block editor. A dot on a block input means that input enters inverted, and an OR block with one dotted input does not behave as a plain OR; verify each block against the logic you intend, not the shape it draws.
-
Simulate every transition — press during return, release just before expiry, release well before it — and confirm no path leaves both outputs high.
-
Verify once at the machine with the table area clear: watch the solenoid indicator lights through a full tilt-return cycle, and through a pedal pressed mid-return, before the sequence goes into service.
A software interlock lives and dies with the controller. Where a wrong motion can hurt someone, pair it with an external hardwired cross-check so no single controller fault can command both solenoids; why a CNC axis needs an external interlock with a cylinder works through that reasoning.
When the level point is not the end of the stroke #
The other case gets a plain verdict: if the table is level anywhere other than the cylinder's full extension against the stop, time alone cannot do this job. Mid-stroke, oil temperature, load, supply pressure and valve shift time move the stopping point from cycle to cycle by more than a level table's usual tolerance. Keep the limit switch, or replace prediction with measurement: controlling hydraulic cylinder position from a 0-10 V analog input shows the closed loop on an analog position signal, and path control of a hydraulic cylinder with 4-20 mA feedback does the same over a current loop that survives long cable runs. A reed or inductive switch clamped to the cylinder tube at the level point is the middle option, a real position signal without an analog loop. The decision in one line: fixed stop at level — timer, preset from the measured return, interlocked outputs; no stop — switch or feedback, never time alone.
Questions asked
The machine has a second foot pedal — what should it do in the program?
Decide before you program anything, because an undefined input becomes a latent bug. If the second pedal tilts the table the other way, give it its own command branch with the same mutual exclusion against the first pedal and the return timer. If it has no job, tie it off in logic so no state of that pedal can energize either solenoid.
How do I confirm the stop, not the timer, is setting the level?
After a normal cycle the timer has expired and the return solenoid is off: the table must sit level and motionless, held there by the stop with the cylinder pressurized. Time one cold-start return and one warm return as well; the cold one is longer and is the one that sets the preset. If warm and cold returns differ by more than your margin, fix the oil temperature problem rather than padding the timer.
Does a closed-center valve put any requirement on the pump?
Yes. With the spool centered, every port is blocked, so pump flow has nowhere to go except across a relief valve or into a compensator. On a fixed-displacement pump the whole flow crosses the relief whenever a solenoid is held after motion ends, which heats the oil quickly; a pressure-compensated pump stands at cut-off with almost no flow instead. Find out which one your machine has before you judge the timer margin.
Why does an OR block with a dotted input behave differently in simulation?
The dot marks an inverted input. That input enters the block as NOT of its own signal, so the output is high when the other inputs are high or the dotted one is low — not when any raw input is high. The block is doing exactly what it was built to do; replace it with a plain OR only if you deliberately move the inversion elsewhere.
Does the measured return interval stay valid over time?
No. Re-time the return after an oil change, after any pump or valve replacement, and when the season shifts shop temperature, because viscosity moves the interval. A return that keeps growing slower between checks points at a wearing pump or a valve that no longer shifts fully — treat the drift as a diagnostic, not as a reason to keep padding the preset.
