Will CNC Machines Run Off Generator?
Yes, with the right sizing and power quality. This page explains what a generator has to deliver before a CNC will hold tolerance, which machine classes tolerate it, and where the setup stops working. Written for engineers and buyers running machines off-grid or on backup power.

What the CNC actually needs from the supply
A CNC does not draw a steady load. It draws a low idle current, then a spindle ramp of several times that, then short peaks every time an axis accelerates. The question of will cnc machines run off generator power comes down to whether the generator can follow that load profile without letting voltage or frequency move.
Servo drives and spindle drives have a DC bus behind a rectifier. If input voltage sags, the bus sags. The drive compensates by pulling more current, which sags the voltage further. On a weak generator this loop can run away until the drive trips on undervoltage. That is the first limit you hit, and it shows up as a fault code, not as a bad part.
Controls and encoders are a different problem. They draw little current but they need a clean waveform. Harmonic distortion on the supply can couple into signal lines and cause position errors that look like mechanical faults.
- 1Voltage windowMost industrial CNC controls tolerate ±5% on a steady basis and ride through a 10% dip for a few cycles.
- 2Frequency window50 Hz or 60 Hz nominal, ±1%. Spindle speed and feed sync scale with it.
- 3WaveformTotal harmonic distortion under 5% keeps drives and controls happy.
Sizing: kW, kVA and the inrush nobody counts
Add up the continuous loads first: spindle motor, axis drives, coolant pump, chip conveyor, hydraulic unit, cabinet cooling. That total is your running load. A small 3-axis vertical mill with a 7.5 kW spindle often lands around 12 to 15 kW running.
Then add the transient. When a spindle accelerates from zero to 12,000 rpm, the drive can pull three to six times its rated current for half a second to a few seconds. A generator sized only for the running load will drop voltage during every tool change and every spindle start.
Power factor matters too. Motors and drives run at a power factor below unity, often 0.8 to 0.9, so kVA is always higher than kW. Generators are rated in both, and the kVA figure is the one that limits you. A 30 kW / 37.5 kVA set is not the same as a 30 kVA set.
A practical starting point is running load plus 30 to 50% headroom, then check that the generator's transient recovery meets the drive's ride-through. If the machine has a large spindle or a hydraulic pump that starts under load, go higher.
- 1Running loadSum every motor and pump that can run at the same time.
- 2TransientSpindle ramp and axis acceleration, 3–6× for under 3 seconds.
- 3Power factorSize on kVA, not kW. Motors sit near 0.8–0.9.
- 4Headroom30–50% above running load as a floor, not a target.
Where the setup goes wrong
Undersizing is the most common mistake. A generator that runs a machine at idle can still fail on the first heavy cut. The symptom is a voltage dip during acceleration, and the machine either faults out or, worse, keeps cutting with a position error.
The second mistake is ignoring waveform quality. A cheap set with a distorted output can run a drill press fine and still upset a servo drive. If the drive has an input filter it may mask the problem at light load and reveal it at full load.
Transfer switching is the third. On backup power, an open transition transfer switch drops the machine for 100 ms or more. Most CNC controls will fault and require a home cycle. A closed transition switch keeps the ride-through short enough for many controls, but not all.
Grounding and neutral bonding are the fourth. A generator with a floating neutral behaves differently from a bonded one, and drives with EMI filters can trip residual current devices. Get the bonding scheme right before the first power-up.
- 1Voltage dip on rampGenerator too small or governor too slow.
- 2Position error without a faultWaveform distortion coupling into encoder signals.
- 3Fault on transferOpen transition switch, control loses ride-through.
- 4Nuisance RCD tripNeutral bonding or EMI filter leakage, check the scheme.
Which machines tolerate generator power best
Older machines with analog drives and simple controls are usually the most tolerant. They ride through voltage dips better because there is less digital logic to reset, and their drives have wider input windows. That does not make them accurate, but they keep running.
Modern machines with full digital drives and absolute encoders are less tolerant. They need a clean supply and they fault fast. The trade is worth it when the power is good, because the same drives deliver the position accuracy that lets us hit ±0.005 mm on tight work.
Spindle type matters as much as the control. A belt-driven spindle has less inrush than an integral motor spindle of the same power. A high-speed spindle with a small frame can still pull a big transient because the drive ramps it hard.
If you run a mixed shop, size the generator for the worst machine you will start, then add headroom for whatever runs at the same time. Do not average across the shop floor.
- 1TolerantAnalog drives, belt spindles, older controls, generous input windows.
- 2SensitiveFull digital drives, absolute encoders, high-speed integral spindles.
- 3Size forThe largest single machine start, plus concurrent running load.
How to verify a generator setup before production
Do not trust the nameplate. Load the machine and watch the voltage. Put a meter on the incoming supply and log it through a spindle ramp, a rapid traverse, and a heavy cut. If voltage stays inside ±5% and frequency inside ±1%, the supply is usable for most work.
Run a test part that exercises the machine. A circle interpolation at high feed shows following errors clearly. If the circle comes out lobed or out of round, the supply or the tuning is the cause, and you need to separate them before running customer parts.
Check the drive fault history after the test. Even if the part passed, a logged undervoltage event means the margin is thin. On a cold morning the generator makes slightly less power, and the margin can disappear.
For backup power, test the transfer with the spindle running. That is the worst case and the one that decides whether the setup is production-ready.
- 1Log the rampSpindle start and rapid traverse with a meter on the supply.
- 2Cut a test circleHigh-feed interpolation reveals following errors.
- 3Read the fault logAny undervoltage event means the margin is too thin.
- 4Transfer under loadTest the switch with the spindle running, not at idle.
Machine class vs generator demand
Use this to sanity-check a proposed setup before you buy a set.
| Machine class | Typical running load | Transient demand | Generator note |
|---|---|---|---|
| Small 3-axis mill, 5–7.5 kW spindle | 8–15 kW | 3–4× for under 1 s | Portable inverter sets can work if THD stays low |
| Production 3-axis VMC | 15–30 kW | 4–5× on spindle ramp | Diesel set with electronic governor preferred |
| 4-axis mill with rotary table | 20–35 kW | Adds axis accel peaks | Watch simultaneous 4th-axis and spindle load |
| 5-axis simultaneous center | 30–60 kW | 5–6× on ramp and reversal | Undersizing shows up as servo following errors |
| Mill-turn center | 35–70 kW | Both spindles can ramp at once | Sequence spindle starts in the program |
| Large gantry, 4,000 mm travel | 50–100 kW+ | High, long ramp times | Usually needs a dedicated prime-rated set |
The short version
If the generator holds ±5% voltage and under 5% THD with 30–50% headroom over running load, run the machine. If it cannot, run the spindle and axes off the grid and keep the generator for lights and the compressor.
Questions engineers ask next
Can I run a small 3-axis CNC off a portable generator?
Sometimes. A 5 to 7.5 kW spindle machine draws 8 to 15 kW running and pulls a transient on every spindle start. An inverter set with low THD and enough surge rating can carry it.
Check the surge rating, not the running rating. A set rated 15 kW continuous with a 20 kW surge is a different tool from one that only quotes continuous power.
How do I size a generator for a CNC machine?
Add the continuous loads, then add the largest transient. Size on kVA, not kW, because motors run at a power factor below unity.
A working rule is running load plus 30 to 50% headroom, then confirm the generator's transient recovery is fast enough for the drive's ride-through.
Does generator power shorten CNC machine life?
Not if the power is in spec. Drives and controls are built for industrial supplies with some variation.
It shortens life when the supply is out of spec. Repeated undervoltage events stress the DC bus capacitors and the contactors, and waveform distortion adds heat in the drive input stage.
What happens if the generator drops during a cut?
The control loses power and the machine stops. On a good setup the drives fault before the tool breaks, but on a heavy cut the tool can mark or snap.
The part in the fixture is usually scrap. Restart the cut from a known reference and inspect the feature before you continue.
Can you machine parts for a remote site that only has generator power?
We machine in Dongguan and Singapore on grid power, so generator quality does not enter our process. That is one reason customers send tight-tolerance work to us instead of running it on-site.
If your site has unstable power, we can ship finished parts in 3 to 5 days and you avoid the risk entirely. Uploads are handled under NDA on request.
Do I need a sine wave filter on the generator?
Only if the measured THD is above 5% at load. Measure first, then decide. Filters add cost and can introduce their own resonance.
An isolation transformer is often a better fix because it also blocks common-mode noise from reaching the control.
Send us the part, not the power problem
Upload your drawings and get a quotation with free DFM analysis within 12 hours. No minimum order quantity, from one prototype to 10,000+ part runs.
12-hour quote100% inspection±0.005 mm toleranceNDA on request