GreatLight CNC Machining Factory logo
CNC Machining
Rapid Prototyping
Materials
Industries
News
About GL

Get Instant Quote

CNC maintenance guide

Method to Restore CNC Machining Center Settings After Memory Loss

When a backup battery dies or a memory board is swapped, the control comes up with default values and the machine loses its zero points. This guide walks through how to restore CNC machining center settings in a fixed order, what to record first, and how to verify the result before you cut metal again.

Record parameters firstReload via DNC or CF cardVerify zero returnRe-check tool offsets
Restoring CNC machining center settings on a control panel in a machine shop
Quick answer

Key takeaways

Record before you reloadPhotograph the parameter pages and the ladder screen while the control still runs, even if an alarm is on.
Know the two parameter groupsCNC-side parameters and machine-tool-side parameters load from separate files and must both come back.
Prefer DNC or CF cardManual entry of 10,000+ values invites typos; a file transfer takes minutes and is repeatable.
Zero return is not the endAfter reload, re-set work offsets, tool offsets and the ATC arm position, then dry run one program.
Back up after every changeCopy the parameter file to two media and one off-machine location the same day.
Before you start

What causes lost settings and what you need on hand

A machining center keeps its settings in battery-backed SRAM or in flash memory on the control board. The backup battery is the weak point. On many Fanuc and Mitsubishi controls the cell is a 3.6 V lithium unit rated for about one year of power-off time; if the cabinet loses power for a long weekend and the cell is already weak, the parameter area drifts and the control boots with defaults. A board swap, a lightning strike on the 24 V supply, or a corrupted memory board does the same thing.

The second common cause is human. A technician clears the memory to chase an alarm, or a service engineer loads a parameter set from a similar machine. The control then runs, but the pitch error compensation, the stroke limits and the ATC arm positions belong to another machine. That is why the restore order matters more than the transfer speed.

Before touching anything, gather the original documents: the parameter list printed at commissioning, the ladder diagram, the machine builder's setting table, and any backup made after the last geometry adjustment. Check the control model and software series as well. Parameter layouts differ between a Fanuc 0i-MF and a 31i, and even within one series the option bits change with the purchased features.

You also need a transfer path. A CF card or USB port on the control, a laptop with the DNC software and an RS-232 or Ethernet cable, or the built-in Ethernet port. Confirm the cable pinout before the machine is down, not after. A wrong null-modem cable costs an afternoon.

  • 1
    Battery firstReplace the backup cell before any reload, or you will repeat the job.
  • 2
    Document setParameter list, ladder, setting table, last geometry record.
  • 3
    Transfer pathCF card, USB, or laptop with DNC and a known-good cable.
  • 4
    Write-protect keyHave the key or password ready for the parameter lock.
Structure

How machining center settings are organized

Settings on a machining center fall into two families, and mixing them up is the most common reason a reload fails. The CNC-side group holds the control's own behavior: option bits, servo and spindle parameters, communication settings, and the ladder program. The machine-tool-side group holds the builder's data: stroke limits, grid shift, pitch error compensation, ATC and APC positions, spindle orientation, and the lubrication and coolant timers.

On a Fanuc control the CNC parameters sit under the SYSTEM key, the ladder under the PMC screen, and the builder data under the machine builder's own screens. A builder like DMG Mori or Hyundai Wia adds its own page. Reloading the CNC side without the builder side gives you a control that powers up but will not reference-return correctly.

Pitch error compensation deserves its own file. It is a table of measured errors along each axis, usually 100 to 200 points per axis, and it is unique to that machine's ball screws and scales. Copying it from a sister machine introduces position errors that show up as 0.02 mm to 0.05 mm deviation over a 500 mm travel, which is far outside the ±0.005 mm band we hold on production parts.

Keep a written map of which file goes where. A single sheet listing file name, target screen, and load order saves hours on the next event. We keep this map in the machine folder and update it whenever a parameter changes.

  • 1
    CNC sideOptions, servo, spindle, communication, ladder.
  • 2
    Machine sideStroke limits, grid shift, pitch error, ATC positions.
  • 3
    Never share pitch errorIt belongs to one set of ball screws and scales.
Methods

Four ways to restore the parameters and when each one fits

The oldest method is to read the printed setting table and type each value at the MDI panel. On a typical vertical machining center that means well over 10,000 individual values across the CNC and builder screens. It needs no external equipment and no cable, which is the only advantage. The error rate is high, the job takes a full day or more, and a single wrong bit in the servo parameters can cause a runaway on first movement.

The second method uses a dedicated reader such as a Fanuc cassette unit or a portable punched-tape reader. These devices were common on 1980s and 1990s controls and are now rare. Spare parts are hard to find and the media degrade. If your machine still has one, use it only as a fallback and move the data to a modern medium the same day.

The third method is the practical one for most shops: transfer the parameter files from a laptop through DNC software over RS-232, or from a CF card or USB stick straight into the control. Output the current values first if any survive, then load the saved file. A complete set usually transfers in 3 to 10 minutes depending on baud rate and file size. At 19,200 baud the CNC parameters alone take about two minutes.

The fourth method is the control manufacturer's own backup utility. Fanuc's SRAM backup and restore, Mitsubishi's parameter backup, and Siemens' series commissioning archive all write a single image file. Restoring that image brings back parameters, offsets, programs and macro variables together. It is the fastest path when the image is current. It is also unforgiving: an image from a machine with different options will load values the hardware cannot support.

  • 1
    Manual entryNo equipment needed, highest error risk, slowest.
  • 2
    Legacy readerHistorical fallback only; media and parts are scarce.
  • 3
    DNC or cardThe everyday choice; minutes, not hours.
  • 4
    Full image restoreFastest, but only if the image matches the machine.
After the reload

Checks that catch a bad reload before it costs a part

A control that powers up clean is not a machine that is ready. Run the checks in a fixed order and write the results down. First, compare the option bit list against the commissioning sheet. A missing option shows up later as an unavailable canned cycle or a disabled rotary axis. Second, check the stroke limits against the travel on the builder's data plate.

Third, verify each axis by moving it a known distance with an indicator on the table. Command 100 mm and read the indicator. A deviation of more than 0.01 mm points to a pitch error or grid shift problem. Fourth, confirm the spindle orientation angle by stopping the spindle at the tool change position and checking the drive keys against the holder.

Fifth, check the ATC arm positions in manual mode at reduced speed. The arm should pick and place without contact noise. Sixth, check the lubrication and coolant timers against the maintenance schedule; a lost timer can run the way lube dry overnight.

Finally, cut a test part that uses the tolerances you actually ship. For our production work that means measuring against ±0.005 mm on critical features and confirming surface finish in the Ra 0.8–1.6 μm range when the drawing calls for it. If the test part passes, back up the parameter set to two media and log the date.

  • 1
    Option bitsCompare against the commissioning sheet line by line.
  • 2
    Axis accuracyCommand 100 mm, read the indicator, expect under 0.01 mm.
  • 3
    ATC and spindleTwo full tool changes at reduced speed, no contact noise.
  • 4
    Test partMeasure to the drawing tolerance before release.
Procedure

Step by step to restore cnc machining center settings

Work through the sequence in order. Skipping a step usually shows up as an alarm two steps later.

  • 1
    Lock out and record the current stateSwitch off the main breaker and lock it. Before clearing anything, photograph every parameter screen, the diagnosis page, the offset pages and the ladder display. Write down the alarm numbers and the control software version. If any parameters still read correctly, output them to a CF card or laptop right away.
  • 2
    Replace the backup batteryFit a new 3.6 V lithium cell with the control powered, following the builder's procedure, then power down and up once to confirm the battery alarm clears. Do this before loading data. A weak cell will drop the new parameters within days.
  • 3
    Clear the corrupted areaUse the memory clear procedure for your control, not a general reset. On Fanuc controls this is the reset and delete combination at power-up. Confirm the parameter screen shows default values before you load. Loading over corrupted data can leave a mixed set that behaves unpredictably.
  • 4
    Set communication parameters firstEnter the baud rate, stop bits, parity and port number so the control can receive. Common working values are 19,200 baud, 8 data bits, 1 stop bit, even parity for Fanuc RS-232. If you use a CF card or USB, check the file format and directory name the control expects.
  • 5
    Load the CNC-side parametersSend the CNC parameter file and the option bits. Do not cycle power yet unless the control asks for it. Watch for a mismatch alarm; it usually means the file came from a control with a different option set. Load the ladder program next if it was lost.
  • 6
    Load the machine-tool-side dataLoad stroke limits, grid shift, pitch error compensation, spindle orientation angle, ATC and APC positions, and the timer values. Enter the pitch error table per axis from the machine-specific file. This step is where a sister-machine file does the most damage.
  • 7
    Re-establish zero points and offsetsReference-return every axis in the order the builder specifies, usually Z first, then X and Y, then the rotary axis. Re-enter the work offsets and tool offsets from the job record. Check the grid shift value against the commissioning sheet, typically a whole number of encoder pulses.
  • 8
    Dry run and verifyRun a known program with the tool clear of the part, at rapid override down to 25 percent. Check the position display against the commanded values, watch the ATC change twice, and confirm spindle orientation. Then cut one scrap part and measure it against the drawing before releasing the machine.
Choose your path

Restore methods compared

Match the method to your control age, the available backup, and how much downtime you can absorb.

MethodTypical timeError riskUse when
Manual entry from paper list1 day or moreHighNo cable, no card, no laptop available
Legacy reader or cassette2–4 hoursMediumOnly this medium exists on an old control
DNC over RS-23210–30 minutesLowLaptop and known-good cable on hand
CF card or USB load3–10 minutesLowControl has a card slot and the file is current
Full image restore5–15 minutesLow if image matchesRecent SRAM or commissioning archive exists
Builder service call1–3 daysLowestPitch error and geometry data are missing

Back up first, restore in order, verify with a test part

A reload that skips the pitch error table or the zero return sequence will pass a power-up check and fail on the first tight-tolerance feature. Record the current state, load the CNC side, then the machine side, then verify with a measured test part.

FAQs

Frequently asked questions

How often should the backup battery be replaced?

Most lithium cells on CNC controls are rated for about one year of power-off time, and three to five years if the machine runs daily and keeps the cell charged. The practical rule is to replace the cell on a calendar schedule rather than waiting for the battery alarm.

Write the replacement date on the cabinet door. If the machine sits idle for weeks at a time, shorten the interval.

Can I copy parameters from an identical machine?

Only the CNC-side parameters, and only if the option set and software version match. Option bits are tied to purchased features, so an identical model may still differ.

Never copy pitch error compensation, grid shift or ATC positions from another machine. Those values belong to that machine's ball screws, scales and arm geometry.

What if no backup exists at all?

Start with the printed setting table from commissioning if it survived. If it did not, contact the machine builder with the serial number; most keep a parameter record for the machines they shipped.

For pitch error and geometry data, a builder service visit is usually the only reliable route. Budget one to three days of downtime.

Why does the machine alarm on first movement after a reload?

The most common causes are a wrong grid shift value, a stroke limit that is smaller than the actual travel, or a servo parameter set that does not match the motor and encoder.

Check the alarm number against the control manual, then compare the related parameter group against the commissioning sheet before moving the axis again.

How do I keep this from happening again?

Back up the full parameter set, the ladder, the pitch error table and the offsets after every geometry change or option addition. Store one copy on the machine, one on a shop server, and one off site.

Test the restore on a spare control if you have one. A backup that has never been read back is a guess.

Does a memory clear erase the programs too?

On most controls a full memory clear removes the part programs, the offsets, the macro variables and the work offsets along with the parameters. The ladder may survive depending on how it is stored.

Save the program library and the offset pages before any clear, and confirm whether your control keeps the ladder in flash or in battery-backed memory.

Need parts while the machine is down?

Send us the drawing and we will quote from our own 127-machine shop, with free DFM analysis inside 12 hours.

12-hour quote±0.005 mm tolerance100% inspection

Follow us

More from GreatLight

We publish setup notes, tooling trials and inspection data from the factory floor.

FacebookTikTokYouTubeLinkedInInstagramThreadsPinterest

Trusted by engineers and manufacturers worldwide

Tesla Ford Motor Company BYD Auto Denso Magna International Boeing Airbus Medtronic KUKA FANUC