When machine shops discuss backup power, they habitually ask, "How many hours can it last?" This question makes sense for warehouses and office buildings, but in a CNC machining workshop it misses the point. What machine tools truly fear is not the duration of a power outage, but the moment at which it occurs. Stopping mid-tool-change, mid-cut, or while the spindle is still rotating at high speed differs by an order of magnitude in loss compared with stopping after a cycle has ended.
What Happens Inside the Machine Tool at the Instant of Power Loss
Servo drives rely on electrical power to hold position. When the main power is cut, the drives lose power within milliseconds, and the motors lose holding torque. For structures such as horizontal machining centers or turn-mill multitasking machines, the tool turret and vertical slide may sink by a few microns under their own weight. A few microns sounds negligible, but if the tool is cutting a feature with a tolerance band of only ±0.005 mm at that moment, those few microns are enough to make the feature out of tolerance.
The spindle's problem is heat. A spindle running at 12,000 rpm stores a large amount of heat in its bearings and housing, and the cooling circuit is powered in sync with the spindle. After a power loss, cooling stops immediately, but the spindle continues to rotate and generate heat under inertia, then cools unevenly. Bearing preload changes because of this uneven cooling—not because it is broken, but because the precision reference has drifted. The industry's standard practice is to let the spindle coast to a stop under its own inertia and not to brake it manually, precisely for this reason.
Components in the electrical cabinet also dislike sudden power loss. Contactors opening under load produce arcs, and the inrush current at the instant power is restored surges into the drives. Repeated instances of such surges cause more wear to the equipment than a single properly executed shutdown.
A Real-World Retraction Accident
The Siemens CNC4YOU technical platform documented a case that is worth a look for anyone in a machine shop.
A worm grinding wheel gear grinding machine suddenly lost power during machining. By design, the machine should have performed a retraction action after power loss, withdrawing the grinding wheel away from the workpiece. What actually happened was: the machine not only failed to retract, but moved toward the workpiece, and both the grinding wheel and the workpiece were damaged by the collision.
Investigation revealed two layers of causes. One was the configuration of the retraction parameters—the X-axis retraction trigger signal was connected to ALM's r863.0 instead of the correct SERVO3_3:r2817.0. The other was more subtle: the drive's DC bus capacitors stored energy, and after power loss this energy continued to drive the motor. On-site measurement showed that the capacitor energy on this machine was sufficient to move the X-axis by 117.6 mm. When the retraction distance was set to 20 mm, the capacitor energy was not exhausted; after the machine retracted to position, the remaining energy continued to drive the motor, and the machine instead moved toward the workpiece until the X-axis stalled.
The final resolution was to change drive parameter P1240 from 3 back to 0 (the original setting had put the drive into generator mode), change the retraction distance to 60 mm, and adjust ALM's P2108[0] time parameter to 30 ms, so that the drive would consume part of the capacitor energy before executing retraction (Source: Siemens CNC4YOU technical article).
This case illustrates one thing: what a machine tool does after a power loss is not entirely determined by the operator, but by a combination of parameters and stored energy states. These parameters are invisible during normal production and only take effect during those few seconds of power loss.
When the Tool Stops Inside the Material, the Trouble Comes Later
If power is lost during cutting, the tool stops inside the workpiece material, the drive has lost power, and position cannot be maintained. After power returns, the control system may not know where each axis has actually stopped.
At this point there are two paths. One is to directly perform homing and let the machine re-establish its reference points. The other is to manually withdraw the tool first. Both paths lead to the same result: this workpiece is essentially scrapped, and re-tooling, re-setting the workpiece coordinate system, and trial cutting take several hours in total.
Five-axis machine tools carry higher risk. With more axes, there are more axes to home, and if the reference point of any one axis is not correctly established, all subsequent programs are invalid. Machines with rotary tables must also consider whether the table angle is trustworthy.
Absolute Encoders Are Not a Panacea
Many machine tool salespeople will say, "We use absolute encoders, so position is not lost after a power outage." This statement is half true.
Absolute encoders can indeed maintain multi-turn position data during a power outage using backup batteries, eliminating the need to home every time the machine is started. But maintaining this depends on the battery. Fanuc systems use Li-SOCl2 lithium batteries with a nominal design life of 5 years (at 25°C); in actual workshop environments of 40 to 55°C, the life is shortened to 1.5 to 3 years.
The consequence of battery depletion is not "a slight loss of accuracy," but complete loss of position data. Recovery requires replacing the battery, clearing alarms, manually moving each axis to the mechanical reference point, writing zero-point parameters, power-cycling to verify, and confirming with low-speed homing. This process takes anywhere from 30 minutes to several hours, depending on the number of axes and machine structure. And the system has a hard limit: after data loss, the axis motor must complete a full revolution before homing is permitted—there is no shortcut.
The premise for "position is not lost after a power outage" is that the battery is in good condition. This premise is maintained through annual inspection and maintenance, not through the encoder itself.
Two Other Areas More Prone to Trouble Than Position
Hydraulic fixtures. For machines where the workpiece is clamped hydraulically or pneumatically, clamping pressure gradually bleeds off after a power outage. In heavy cutting with large workpieces, the workpiece may shift or even be thrown at the moment pressure is lost. Backup power schemes for such machines usually require the fixture circuit to be included in the security load—it is not enough to protect only the control system.
Machines without mechanical braking on the Z-axis. After a power outage, the Z-axis will fall under its own weight, and if it lands on the workpiece or worktable, it is a crash. Some machines are equipped with balance cylinders or brakes; some are not. Clarifying this at the time of purchase is far cheaper than retrofitting afterward. Machines on the same production line often have different brake configurations and cannot be glossed over with a single statement like "all our machines are vertical machining centers."
Different Machine Tools Have Different Risk Points
Vertical machining centers. The Z-axis is usually equipped with a brake and can stop after a power outage. The main risk is the tool stopping inside the material and the workpiece being scrapped.
Horizontal machining centers. The tool magazine and pallet changer are hydraulically or servo-driven. If a power outage occurs during a tool change, the robot arm may stop midway and require manual reset during recovery; improper handling can crash into the tool magazine.
Turn-mill multitasking machines and Swiss-type lathes. The main spindle and subspindle need to be synchronized; after a power outage the synchronization relationship is lost, and re-establishing it requires dedicated steps. For machines with bar feeders, the bar position in the channel must also be re-confirmed.
Grinding machines. The grinding wheel has large inertia and continues rotating under inertia for a long time after a power outage. If coolant stops simultaneously, the contact surface between the wheel and workpiece may be burned. The Siemens case above involved a gear grinding machine.
Five-axis machines. With more axes, the homing workload is greater, and both the rotary table angle and tool tip follow-up must be re-verified.
The auxiliary systems of machine tools are also often overlooked. When the air compressor stops, pneumatic fixtures, air seals, and chip blowing all fail. When the cooling water circulation stops, heat exchange for multiple machines is interrupted simultaneously. These devices are usually not on the "production equipment" list, but they are essential during the recovery phase after a power outage. They must be listed separately when preparing the load list; otherwise, the situation arises where "the generator set can drive the machine tools but cannot drive the air compressor."
Which Segment Should Backup Power Protect?
Pulling the above together, the logic for machine shops configuring diesel generator sets becomes clear: it is not about keeping the entire machine running without interruption, but about ensuring a safe stop plus rapid recovery.
Specifically, it is divided into three segments.
The first 10 seconds after a power outage rely on a UPS or a hybrid scheme with the generator set supplying the UPS. What must be protected in this segment is the control system, encoders, hydraulic fixture pressure maintenance, and the drives that execute safe retraction. The power is not large, but the requirements for transfer time are high.
The few minutes to several hours after a power outage rely on the generator set. What must be protected in this segment is lighting, fire protection, circulating water, air compressors, and the auxiliary equipment needed during the recovery phase. The spindles and feeds needed for actual production recovery can wait until utility power returns or until the generator set is stable, then be brought online one by one.
The recovery phase is the segment often missed in many schemes. Re-energizing a machine tool follows a fixed sequence: main circuit breaker, control system, drives, hydraulics. A complete startup of Fanuc and Siemens systems takes 30 to 90 seconds, and energizing the drives too early will cause communication faults. The spindle must first run at 25% of maximum speed for 10 minutes, then at 50% for 10 minutes to establish thermal stability; otherwise, the first workpiece may be acceptable, and drift may begin by the third. Before formal machining, the program must also be run dry once to confirm that tool compensation, workpiece coordinate system, and the program itself are correct.
These steps add up to half an hour to an hour, and all of them require power. When diesel generator set suppliers prepare schemes for machine shops, if capacity is calculated only on the basis of "production load," this recovery-phase segment is often insufficient.
There is another detail: the recovery phase involves putting loads online in batches, which means the generator set must withstand the steps caused by batch loading. A 400 kW generator set may first carry 50 kW of control and lighting, then 120 kW of air compressors and circulating water, and finally 200 kW of spindles; each load application is a surge. Whether the generator set capacity is sufficient depends not only on the total, but also on the magnitude of the step limit for a single load application.
Three Inputs for Capacity Calculation
When preparing a scheme for a machine shop, capacity calculation requires three inputs: the machine tool list and their spindle power, the number of machines running simultaneously, and the circuits that must be maintained during a power outage.
Among the three inputs, the second is most easily overestimated—many plants calculate by the number of installed machines, while the actual simultaneous operation rate is only 60% to 70%. The third is most easily omitted—control systems, fixture pressure maintenance, circulating water, and air compressors often add up to 20% to 30% of total capacity, but they are not included in the "production load" basis. If a diesel generator set supplier quotes based only on the machine tool list, the figure quoted is usually inaccurate.
Treat the Timing of Power Loss as a Design Condition
Among the machine shop projects Kaichen has handled, those with smooth schemes usually asked the same question: when this machine tool loses power, what is the worst step at which it can fail?
The answer is often tool change, deep-hole drilling, or five-axis simultaneous machining. Find the worst step, then look at which circuits are needed to hold it up and for how long; capacity and transfer method follow naturally. Conversely, sizing the generator set only by total power will also work once installed, but whether it can protect those critical few seconds on the day of an actual outage is another matter. When reviewing such schemes, the first thing Kaichen looks at is whether the load list has an "allowable power interruption time" column—a list without this column is essentially a list that has not been grouped.
In the machining industry, equipment precision has reached the micron level, but when it comes to redundancy in power supply, many plants are still at the level of the previous era. This gap is not difficult to close; the difficulty is first recognizing that it exists.





