How-to
Pneumatic Counterbalance for a Vertical Z Axis
Short answer
Run the Z-axis cylinder as a passive constant-force counterbalance: feed its lower port from a relieving regulator set to head weight divided by piston area (about 0.85 bar for a 20 kg head on a 50 mm bore), vent the upper port through a silencer, and let the motor keep position with no synchronization. Add a 3-way normally closed solenoid only as air enable, then prove the circuit with rapid full-travel moves while watching the gauge.

On this page
- Split the job: air carries weight, the motor carries position
- Pick the cylinder and its stroke
- Plumb the constant-force circuit
- Worked example: setting the balance pressure for a 20 kg head on a 50 mm bore
- Why the regulator has to relieve
- Add the solenoid as air enable only
- Prove the circuit at rapid travel
- If pneumatics will not keep up
- Questions asked
A vertical head that stalls a stepper and hammers a ball screw does not need a bigger motor first; it needs its weight taken off the screw. Run the pneumatic cylinder as a passive, constant-force counterbalance: feed its lower port from a relieving pressure regulator set so the cylinder pushes up with most of the head's weight at every point of travel, and let the motor and controller keep position with no synchronization at all. The sizing is one division — support force divided by piston area — and for a typical 20 kg head on a 50 mm bore it lands at 0.85 bar (12.3 psi) for an 85% balance. Add a 3-way, normally closed solenoid valve only if you want the controller to connect and dump the air, then prove the whole circuit with rapid full-travel moves while watching the gauge.
Split the job: air carries weight, the motor carries position #
The cylinder has one job: a constant upward bias that cancels most of the head's weight — the same force-equalizing role counterbalances serve on production machines. Everything else stays with the stepper or servo, the ball screw and the controller: position, stiffness, repeatability, acceleration. Nothing in the control has to know the cylinder exists. There is no following error to share, no profile to synchronize, no command to send. The regulator holds the force steady; the controller holds the position. Get the air path right — chamber pressure steady while the piston moves — and the axis behaves as though the head weighed a fraction of what it does, which is exactly what shows up as lower motor current on vertical moves.
Pick the cylinder and its stroke #
Choose a cylinder whose stroke is longer than the Z axis's full travel, so the piston cannot reach either of its own ends before the axis reaches its limits — a bottomed piston would drop the balance to zero or drive the head into a hard stop mid-move. Mount it in line with the Z axis so the rod carries no side load. Pressurize the rodless side so the full bore area works for you; if packaging forces the rod side to be the pressurized one, the effective area is the annulus around the rod and the required pressure goes up. Bore trades only against pressure and volume: a bigger bore needs less pressure for the same force and holds a larger air volume, which slows pressure change during moves — both welcome here. Take bore, stroke and pressure rating from the datasheet of the exact cylinder.
Plumb the constant-force circuit #
Build the air path as a one-way, always-pressurized run:
- Feed the lower port — the one that pushes the head up — from the outlet of a pressure regulator fitted with a gauge. Put the gauge on the cylinder side of any valve in that run, so it reads chamber pressure; that gauge is the number every later check watches.
- Fit no flow controls in this line. Metering air here turns the balance into a damper and drags the axis; remove any that are installed.
- Leave the upper port open to atmosphere through a silencer. The rod side stays unpressurized, and the silencer keeps the vent quiet and the chips out.
- Keep tubing and fittings short and generously sized; every restriction becomes a flow limit at rapid speed.
- If the controller will switch the air, insert a 3-way, 2-position, normally closed solenoid valve between the regulator outlet and the cylinder. Without it, a manual shutoff on the supply is all you need.
- Tee a small reservoir into the line if your strokes are long and fast; extra volume flattens the pressure swings the flow check will look for.
Worked example: setting the balance pressure for a 20 kg head on a 50 mm bore #
Inputs, each from its source:
- Head mass m = 20 kg — weigh the complete moving assembly (spindle motor, mounting plate, toolholder) on a bench scale; 20 kg is a typical compact-mill figure, and the arithmetic below is a calculated example for these inputs, not a measured result.
- Bore d = 50 mm — from the cylinder datasheet; the rodless side is pressurized, so the effective area is the full bore.
- Target balance 85% of weight — a rule of thumb, borrowed from gas-spring practice of supporting 80–90% of the weight: balance most but not all, so gravity keeps the screw nut loaded and a small pressure overshoot cannot run the axis upward.
- Stroke 250 mm and rapid 3,000 mm/min — this example machine's travel and rapid rate, used for the flow check below.
The rule, in words: balance pressure equals the target support force divided by the piston area, where force is mass times gravity and area is π/4 times the bore squared.
A = π/4 × (50 mm)² = 0.7854 × 2500 mm² = 1963 mm² = 0.0019635 m²
W = 20 kg × 9.81 m/s² = 196.2 N (44.1 lbf)
P at full balance = 196.2 N ÷ 0.0019635 m² = 99,900 Pa ≈ 1.0 bar (14.5 psi)
P at 85% balance = 0.85 × 1.0 bar = 0.85 bar (12.3 psi)
The decision: set the regulator to 0.85 bar (12.3 psi) gauge, then confirm it physically — with air on and the drives disabled, the head must hold still or sink very slowly. Rising means pressure above the balance point: turn it down. Free falling means turn it up. The same 20 kg head on a 1 in bore (area 0.785 in²) would need 44.1 lbf ÷ 0.785 in² ≈ 56 psi; a smaller bore buys force with pressure and changes nothing else.
Now the check that disqualifies the wrong regulator. The chamber volume and its rate of change are:
V = 1963 mm² × 250 mm = 0.491 L
At 3,000 mm/min = 50 mm/s, one second of travel changes volume by
1963 mm² × 50 mm/s = 0.098 L — 20% of V every second.
If no air could leave during a down-move, one second would compress that volume until absolute pressure rose from about 1.85 bar to 1.85 × (0.491 ÷ 0.393) ≈ 2.31 bar — gauge pressure 1.31 bar, an upward force of 1.31 bar × 0.0019635 m² ≈ 257 N against a 196.2 N weight. The axis would drive itself up. So the relief path must pass roughly 0.098 L/s of chamber volume — about 6 L/min at chamber pressure, near 11 L/min of free air — and regulators publish flow curves, not single numbers: take the relieving capacity at your setpoint from the regulator's own datasheet and compare it to that figure. With a 1 L reservoir teed in, the same second of travel moves pressure only to about 0.98 bar gauge (≈192 N), because the displaced 0.098 L spreads over 1.49 L — that is what step 6 is for. The decision this leads to: if the flow path cannot hold the setpoint within about 0.1 bar at rapid speed, fit a larger relieving regulator or add the reservoir; do not tune around it.
Why the regulator has to relieve #
A plain pressure-reducing regulator only throttles supply into the chamber. It can replace air while the piston rises and the volume grows, but when the axis moves down and the volume shrinks it has no way to let air out, so pressure climbs above setpoint and stays there. That is the same trapped-volume behavior that makes an air spring circuit spike when a cylinder retracts. It is why the regulator here must be a relieving type: one with an internal relief seat that vents downstream air through the regulator's own vent port whenever downstream pressure climbs above the setpoint.
The ceiling is flow, not pressure. The relief seat, the ports and the tubing pass only so much air per second — the same flow limit that explains why a pneumatic cylinder will not sustain 5 m/s motion. If the gauge swings up on down-moves and recovers slowly, fix the flow path — larger regulator port, shorter and wider tubing, or the reservoir — and retest. One boundary belongs on the drawing: the relieving vent is a control function, not certified overpressure protection, which the page venting is not overpressure protection sets out in detail. Where the machine's risk assessment calls for overpressure protection on a trapped-volume circuit, fit a separate relief valve sized and set for the job.
Add the solenoid as air enable only #
If a manual shutoff covers the shop's habits, stop here — at rest, balanced below full weight, nothing moves. If you want the air to come on with the program and drop at shutdown, fit a 3-way, 2-position, normally closed solenoid valve between the regulator outlet and the cylinder. Energized, it connects the regulated air. De-energized, it exhausts the cylinder line, so power off means balance off and the head's full weight returns to the screw.
Drive the coil from a spare controller output through an interposing relay sized for the coil current; the output number, terminal and command names come from the documentation for your own controller and relay, not from any generic list. Treat the valve as a switch, never a motion function: it changes state once at cycle start and once at stop, and it is never timed or modulated during a move. If the head must stay supported through a power loss, leave the solenoid out — a normally closed valve cannot hold the line when its coil drops.
Prove the circuit at rapid travel #
Nothing above is verified until the axis moves at full speed. Work down this list in order:
- Clearance first. Jog the Z axis to both ends of travel and confirm the piston never reaches a cylinder end before the axis does.
- Balance point. With drives disabled and air on, the head must hold still or sink very slowly; adjust the regulator until it does — the physical confirmation of the calculation.
- Stability at speed. Run the fastest programmed Z move across full travel in both directions and watch the gauge. For the worked example's numbers, keep swings within about 0.1 bar (1.5 psi) of the 0.85 bar setpoint; a sag on up-moves, a spike on down-moves that grows with speed, or slow recovery all mean the flow path is too small.
- Motor load. With the balance set, motor current on vertical moves should drop, most visibly on rapid up-moves. On a screw that will not backdrive, the current still shows the difference even though the head would never have fallen on its own.
- Air enable. Energize and de-energize the solenoid and confirm chamber pressure builds when energized and decays when not — checked with the relay on, off, and control power removed.
ISO 4414, the general rules and safety requirements for pneumatic fluid power systems, requires isolating and venting stored energy before anyone works on the circuit — so before working under a raised head, shut the air off, let the line exhaust through the silencer, and block the head mechanically: a vented counterbalance hands the full weight straight back to gravity.
If pneumatics will not keep up #
Constant-force springs need no air path at all, which removes the flow problem entirely. A gas spring supports 80–90% of the weight with no plumbing, but ask the supplier for its permitted cycling rate before committing it to rapid Z work, and mount it rod down so the oil film keeps the rod seal lubricated. A counterweight is immune to flow limits, but it adds its own mass to the moving system: balance the head fully and the moving inertia roughly doubles, and every acceleration and stop pays for it twice. Pick the limit your machine can live with — flow for pneumatics, cycle rate for gas springs, inertia for the counterweight.
Questions asked
What happens to the Z axis if air pressure drops while the machine sits or runs?
The balance force decays and the head's full weight returns to the screw: an up-move stalls, a down-move gets heavier, and with the drives off the head sinks. A relieving regulator holds its setpoint whenever supply pressure is present, so a gauge that sags over hours points to a leaking fitting, a worn cylinder seal or a cracked air line. Soap-test the joints and look for a wet trace at the rod before touching the setting.
How do I pick the cylinder bore before I own the cylinder?
Solve the sizing backwards. Pick the largest pressure you want at full balance — a common choice is a quarter of shop supply, so a 6.5 bar line gives 1.6 bar — and compute d = sqrt(4W divided by πP). For the example's 196.2 N head, d = sqrt(4 × 196.2 ÷ (π × 160,000 Pa)) ≈ 0.0395 m, so 40 mm bore or larger. The 50 mm bore in the example puts full balance at 1.0 bar, about 15% of a 6.5 bar supply, leaving adjustment range both ways.
Does a working counterbalance let me fit a smaller Z motor?
It removes the gravity term from vertical moves, so current drops most on rapid up-moves and a marginal motor may stop stalling. The rest of the duty stays: cutting torque, accelerating the remaining moving mass, friction, plus a little seal drag from the cylinder. Log motor current on rapid Z moves before and after the balance is set, and size any new motor from the worst-case move, not from the improvement you see with the machine idle.
