Skip to main content
CNC.wikiCNC.wiki

Fanuc SRAM Backup and Restore: Advanced Recovery Guide

Master Fanuc SRAM backup and restore procedures on CNC controls. Avoid PS0519 and 910 alarms with proper PCMCIA or USB backups and parameter 10340 settings.

Hakan Gündoğdu
Hakan Gündoğdu

CNC CARE Co-founder

Preventing CNC Parameter Catastrophe: The SRAM Backup Shield

A sudden drop in main breaker voltage or an operator prematurely flipping the power switch while a Fanuc controller actively writes background memory halts the data stream, corrupting the memory allocation table and triggering a severe PS0519 alarm on the next boot. When the battery-dependent SRAM module is completely depleted after extended disuse or corrupted by severe physical transportation shock, it displays a catastrophic 910 or 911 SRAM parity alarm, wiping out the entire volatile memory matrix. The CNC instantly loses every critical parameter, custom macro, part program, and tool offset register, completely halting production. Bypassing the native BOOT SYSTEM utility or attempting a restore with a corrupted backup breaks absolute kinematic tracking, setting parameter 1815 bit 4 (APZ) to 0. If the operator runs an automatic cycle without re-establishing absolute machine reference zero points, the axes will execute uncontrolled motions, resulting in high-speed tool crashes, destroyed spindles, and catastrophic mechanical damage.

Technical Summary of SRAM Backup and Restore Utilities

SpecificationDetails
Command CodeBOOT SYSTEM / IPL Monitor Screen Utilities (SRAM DATA UTILITY / USB MEMORY UTILITY)
Modal GroupSystem utility (non-G-code environment)
BrandsFanuc (BRAND_FILTER="fanuc")
Critical ParametersParameter 10340 (ABP/AAP/EEB auto backup), Parameter 10342 (Max backup states), Parameter 1815 bit 4 (APZ)
Main Kinematic ConstraintSRAM restoration breaks kinematic position tracking; parameter 1815.4 (APZ) is reset to 0, requiring physical re-establishment of absolute reference zero points. FAT32 formatted media is completely unrecognized; cards/USB must be formatted strictly to FAT16.

Quick Read: Key SRAM Backup and Restore Rules

  • Access the bare-metal BOOT SYSTEM or IPL Monitor screens during controller power-up to run manual backup and restore operations from the "SRAM DATA UTILITY" or "USB MEMORY UTILITY".
  • Configure parameter 10340 bit 0 (ABP) to 1 to enable autonomous mirroring of fragile SRAM data to the battery-less permanent Flash ROM (FROM) during CNC startup.
  • Enable parameter 10340 bit 7 (EEB) to force an automatic background SRAM backup the instant the machine enters an emergency stop state, capturing the failure environment.
  • Format all PCMCIA memory cards or USB flash drives strictly to FAT16 via quick format, as the Fanuc BOOT system cannot recognize FAT32 partitions.
  • Keep the main power breaker active during backup and restore transfers to prevent memory allocation table corruption and stop the occurrence of the PS0519 alarm.
  • Manually reset parameter 1815 bit 4 (APZ) to 0 and physically recalibrate absolute encoder reference zero points immediately after restoring SRAM to prevent axis travel errors.

Basic Concepts of Volatile SRAM and Redundant Flash Storage

The practical programming and operational effect of the SRAM Backup and Restore function is guaranteeing that the CNC's entire volatile memory matrix—including critical parameters, tool offsets, custom macros, and part programs—is securely archived and recoverable in the event of a catastrophic hardware failure or battery depletion. Operators must meticulously watch the state of their memory cards and backup batteries. Attempting to execute a backup to a card with insufficient space will halt the process, though the Fanuc system intelligently allows the operator to swap in sequential cards (up to 999 cards) to bridge massive backup files.

A major common failure cause is prematurely shutting off the main power breaker while an automatic data backup or memory card transfer is actively writing. This forcefully severs the data stream, corrupting the memory allocation table and guaranteeing that the CNC will trigger an alarm code, such as PS0519, the next time it boots. Safe use notes explicitly dictate that if an SRAM restoration is performed on a machine utilizing absolute pulse coders, the kinematic position tracking is fundamentally broken. The operator must manually navigate to parameter 1815 bit 4 (APZ), set it to 0, and physically re-establish the absolute reference zero points before running any automatic cycles.

Within its own ecosystem, Fanuc's handling of data retention is heavily distinguished by its multi-tiered, battery-less redundancy architecture. First, Fanuc uniquely integrates an Automatic Data Backup function directly into the CNC hardware, automatically mirroring the fragile, battery-dependent SRAM data into the permanent, battery-less FROM (Flash ROM) in the background. The system can be configured to autonomously capture and hold up to three distinct historical machine states (e.g., at power-on, at set day intervals, or immediately upon an emergency stop), allowing operators to instantly roll back the CNC to a previous known-good state without needing an external PC or memory card.

Second, Fanuc distinctly isolates its bare-metal recovery tools into an independent BOOT SYSTEM and IPL Monitor environment. This ensures that even if the primary CNC operating system is completely corrupted or deleted, the maintenance technician can still safely boot the screen, format memory cards, and restore the foundational SRAM and FROM data architectures natively at the hardware level.

System Utility Interface and Command Structure

SRAM Backup and Restore operations are not executed through standard G-code machining blocks; instead, they are executed via the CNC's BOOT SYSTEM or IPL Monitor screens, accessed during power-up, or triggered automatically in the background. In the BOOT SYSTEM, the operator navigates to the "SRAM DATA UTILITY" menu to select backup or restore actions. The BOOT SYSTEM operates independently of the main Fanuc CNC software, allowing low-level access directly to the physical storage modules.

When utilizing PCMCIA slot interfaces, the menu provides "SRAM DATA UTILITY" selections targeting a memory card. For systems equipped with USB interfaces, the "USB MEMORY UTILITY" menu provides identical backup and restore selections targeting a USB flash drive. Operators select these options to write the SRAM content directly to physical media or read it back.

BOOT SYSTEM SRAM DATA UTILITY Menu Paths:

  • 1. SRAM BACKUP (CNC -> MEMORY CARD): Backs up physical SRAM to PCMCIA card.
  • 2. RESTORE SRAM (MEMORY CARD -> CNC): Restores physical SRAM from PCMCIA card.
  • 1. SRAM BACKUP (CNC -> USB): Backs up physical SRAM to USB drive.
  • 2. RESTORE SRAM (USB -> CNC): Restores physical SRAM from USB drive.
Parameter AddressDescriptionValue Range
10340 bit 0 (ABP)Controls whether automatic background data backup of SRAM is executed when CNC power is turned on.0 (Disabled), 1 (Enabled)
10340 bit 2 (AAP)Determines if NC programs and directory info in FROM (Flash ROM) are included in automatic backups.0 (Disabled), 1 (Enabled)
10340 bit 7 (EEB)Controls whether an automatic SRAM backup is triggered when the machine enters an emergency stop.0 (Disabled), 1 (Enabled)
10342Determines the maximum number of automatic backup data states the CNC will hold in the FROM.1 to 3 (limits depend on FROM/SRAM size)
1815 bit 4 (APZ)Absolute reference zero point flag (APZ). Set to 0 after SRAM restoration to force homing calibration.0 (Not established), 1 (Established)

Brand Applications: Fanuc's Native Recovery System

Fanuc

Fanuc controls govern SRAM backup operations at the boot loader level, preventing standard OS interference during critical file transfers. Absolute reference zero points are tracked using parameter 1815 bit 4 (APZ), which requires physical calibration whenever memory is restored.

Automatic background backup redundancy is configured using parameter 10340. The control can autonomously write backup states to the FROM module based on power startup, emergency stops, or specific time intervals.

  • SRAM DATA UTILITY: Accessed by holding down the two rightmost softkeys under the CNC screen during power-on. This opens the BOOT SYSTEM menu, allowing manual PCMCIA backup.
  • USB MEMORY UTILITY: Available on modern controls equipped with front or cabinet USB ports, allowing direct backing up to USB flash drives formatted in FAT16.
  • Automatic Redundancy: Governed by parameter 10340 (ABP, AAP, EEB) and parameter 10342 to hold up to three backup states in FROM, completely eliminating battery dependence for archives.

Brand Comparison: Version and Series Redundancy

Fanuc Control SeriesMedia Interface SupportFile Naming and Extension SchemaAutomatic FROM Redundancy
Fanuc Series 15i / 16i / 18i / 21i (Legacy Boot 60W1/06 & Earlier)Strictly limited to physical PCMCIA memory card slot on the CNC main board.Backup files named strictly SRAMBAK.xxx containing solely raw SRAM data modules.No background backup; relies completely on manual PCMCIA backups or SRAM battery retention.
Fanuc Series 0i (Model C/D/F with Boot 60W1/07 & Later)Supports PCMCIA slots and front/cabinet USB interfaces in the BOOT SYSTEM menu.Unified backup naming format SRAM_BAK.xxx pairing SRAM data with Flash ROM ATA PROG data.Full automatic background mirroring to battery-less Flash ROM (FROM) governed by parameter 10340.
Fanuc Series 30i / 31i / 32i (Modern High-Speed Hardware)Dual support for high-capacity PCMCIA cards and USB flash drives directly via BOOT/IPL menus.Module-specific extensions: Main board uses .FDB, PMC-RE uses .PMC, CAPII uses .CAP, LCB uses .LCB.Multi-tiered background redundancy holding up to 3 historical states in Flash ROM controlled by parameter 10342.

Technical Analysis of Boot Software and Extension Architectures

An analytical review of Fanuc's data retention architecture shows that the BOOT SYSTEM behaves differently depending on the boot software edition. For boot software versions 60W1/06 and earlier, the backup file is named SRAMBAK.xxx and only contains SRAM data. For versions 60W1/07 and later, the file is named SRAM_BAK.xxx and intentionally pairs the SRAM data with ATA PROG data from the Flash ROM. This unified approach prevents mismatched offsets when restoring part programs alongside core parameters.

Additionally, file extensions change based on the specific hardware board being backed up. The main board uses .FDB, the PMC-RE board uses .PMC, the CAPII board uses .CAP, and the LCB board uses .LCB. This granular separation allows modular service interventions, ensuring technicians can restore a single corrupted subsystem (such as the PMC ladder) without disturbing standard parameter configurations. Finally, modern controls allow backups directly to USB drives via the IPL menu, whereas older controls rely exclusively on PCMCIA memory cards, representing a shift from legacy solid-state media to standard serial bus storage.

Program Examples and Register Offsets

O2000 (FANUC SRAM REGISTER WRITING EXAMPLE) ;
N10 G90 G21 G17 (Absolute positioning, metric units, XY plane selection) ;
N20 G10 L50 (Initiates programmable parameter input to modify SRAM data) ;
N30 G10 L2 P1 X-150.250 Y-85.120 Z-320.450 (Writes workpiece coordinate offset G54 directly to SRAM registers) ;
N40 G11 (Cancels programmable parameter input and resumes normal execution) ;
N55 G54 (Selects G54 coordinate system; coordinates reflect the newly written SRAM offsets) ;
N60 G00 X0 Y0 (Rapid traverse axes to the active G54 zero datum) ;
N70 M30 (Program end command, which dictates the completion of program registration into SRAM) ;

Dry Run Analysis:

  1. N10 sets absolute coordinate programming (G90), metric input (G21), and selects the XY work plane (G17) to establish the active modal environment.
  2. N20 executes G10 L50, which initiates the programmable parameter input mode. This opens direct communication to write new parameter and coordinate offset values directly into the nonvolatile SRAM storage area.
  3. N30 utilizes G10 L2 P1, which targets the first workpiece coordinate system offset register (G54). The coordinate offsets of X-150.250, Y-85.120, and Z-320.450 are written directly into the controller's active SRAM memory bank.
  4. N40 commands G11 to cancel the programmable parameter input mode, closing the SRAM write channel and returning the CNC to standard path command processing.
  5. N55 commands G54, activating the first workpiece coordinate system. The CNC reads the updated offsets from the SRAM memory and shifts the machine origin coordinate tracker to the newly registered part datum.
  6. N60 rapid traverses the X and Y axes to coordinate zero (X0 Y0) relative to the newly defined G54 WCS.
  7. N70 executes M30, which acts as the program end and rewind command. On Fanuc controllers, this command signals the completion of program execution and forces the final registration and flushing of any buffered data into the nonvolatile SRAM storage module.

Error Analysis and Troubleshooting Workflows

Alarm CodeTrigger ConditionOperator SymptomRoot Cause and Actionable Fix
Fanuc PS0519CNC power supply is suddenly turned off while the controller is actively saving part programs or updating parameters to nonvolatile memory.The CNC stops execution; on power-on, the screen displays a severe "PS0519 PROGRAM FILES ARE BROKEN AND CLEARED" alarm.Power supply was prematurely shut off, severing the active write stream and corrupting the memory allocation table. Fix: Turn the controller back on. The CNC will automatically detect and clear the broken files. Operators must then restore the clean part programs from an existing SRAM backup.
Fanuc 910 / 911A parity error is detected in the part program storage RAM (Byte 0 for 910, Byte 1 for 911) during startup diagnostic routines.System boot is blocked; the screen displays a critical "910 SRAM PARITY" or "911 SRAM PARITY" system alarm.The machine was subjected to severe physical shock during transportation, or left unused for an extended period, causing the SRAM backup battery to completely deplete. Fix: Replace the SRAM memory backup battery while CNC power is active, execute a full SRAM clear from the BOOT screen, and restore all files from an SRAM backup.
Fanuc BOOT SYSTEM ERRORAn attempt to write a backup file to a PCMCIA memory card or USB drive fails during the BOOT SYSTEM or IPL utility sequence.The backup transfer aborts; the boot loader display screen shows a flashing "SRAM DATA BACKUP ERROR" message.The target memory card battery is exhausted, the card is completely full, or the card is formatted to an unsupported partition scheme like FAT32. Fix: Verify the memory card's remaining storage space, format the media strictly to FAT16 using a quick format, or replace the PCMCIA SRAM card's coin cell battery.

Application Note: Safeguarding absolute encoder coordinates

A major common failure cause is prematurely shutting off the main power breaker while an automatic data backup or memory card transfer is actively writing. This forcefully severs the data stream, corrupting the memory allocation table and guaranteeing that the CNC will trigger an alarm code (such as PS0519) the next time it boots. Safe use notes explicitly dictate that if an SRAM restoration is performed on a machine utilizing absolute pulse coders, the kinematic position tracking is fundamentally broken; the operator must manually navigate to parameter 1815 bit 4 (APZ), set it to 0, and physically re-establish the absolute reference zero points before running any automatic cycles. Operators must meticulously watch the state of their memory cards and backup batteries; attempting to execute a backup to a card with insufficient space will halt the process, though the Fanuc system intelligently allows the operator to swap in sequential cards (up to 999 cards) to bridge massive backup files. While the provided sources extensively document how memory faults trigger an alarm code, they do not contain direct references to a vise jaw, chuck, clamp, turret, hard collision, or scrap part occurring specifically during SRAM backup or restore operations; therefore, those specific outcomes are omitted to adhere strictly to the source material.

Related Command Network and Internal Links

To program safe, efficient setup transitions, programmers must master the surrounding ecosystem of auxiliary codes and calibration cycles:

  • M00, M01, M02, M30 Program Stop and End Commands: The M30 command signals the completion of program registration and forces the final flushing of buffered coordinate data into the nonvolatile SRAM storage module.
  • M03, M04, M05 Spindle Commands: Spindle control blocks must be suspended during parameters-to-SRAM modifications (G10 L50) to prevent rotational command conflicts while writing to active memory.
  • CNC Zero Points Explained: Restoring SRAM wipes the absolute pulse coder status (APZ) and resets coordinate systems, requiring operators to re-establish machine and part origins.
  • FOCAS2 Upload/Download functions (e.g., cnc_upstart3 / cnc_upload3): System-level API functions utilized to read and write memory data from active SRAM to an external PC over an Ethernet connection.
  • IPL Monitor Clear Memory utilities: A bare-metal monitor menu utilized to format flash memory and erase corrupted SRAM data before restoring clean backup archives.

Conclusion: The Ultimate Workholding Protection Strategy

Securing a machine tool's parametric identity requires absolute discipline in executing periodic SRAM backups. Implement a strict schedule to archive system states before any software update or mechanical overhaul, and verify that the target media is formatted to FAT16. Maintain the physical health of both the PCMCIA card and the controller backup batteries, and ensure parameter 10340 is optimized to enable automatic Flash ROM backups. Taking these preventive actions guarantees that the CNC can be fully restored to a known-good state within minutes of a hardware failure, eliminating the risk of catastrophic parameter loss and minimizing costly production downtime.

Frequently Asked Questions

Why does a Fanuc controller fail to recognize a high-capacity USB drive or memory card during the BOOT SYSTEM sequence?

This failure occurs because the low-level BOOT SYSTEM boot loader only supports the legacy FAT16 file system and cannot read FAT32 or exFAT partitions. If you insert a modern USB drive or memory card formatted in FAT32, the system will trigger an SRAM DATA BACKUP ERROR and abort the transfer. To resolve this, insert the media into a PC, open the disk management utility, select a partition size under 2GB, and execute a quick format strictly to the FAT16 (often labeled just 'FAT') file system before attempting the backup again.

What physical actions must be taken if a 910 or 911 SRAM Parity alarm locks the controller on startup?

An SRAM parity alarm indicates that the data stored in the program memory has been corrupted, usually due to a fully depleted backup battery or a severe physical shock during machine relocation. Because the controller locks all operations in this state, you must replace the lithium battery on the main board while the CNC is powered ON to prevent further data loss. Once the battery is replaced, turn off the CNC, hold the rightmost softkeys to access the BOOT SYSTEM, select the SRAM DATA UTILITY to clear the parity error, and restore the parameters and offsets from your latest SRAM backup file.

How does parameter 10340 safeguard a Fanuc machine from catastrophic parameter loss during a sudden power outage?

Parameter 10340 governs the Automatic Data Backup function, which mirrors the volatile, battery-dependent SRAM data to the permanent, battery-less Flash ROM (FROM) in the background. By setting parameter 10340 bit 0 (ABP) to 1, the system automatically runs a backup during CNC power-on, while setting bit 7 (EEB) to 1 triggers an automatic backup the instant an emergency stop is pressed. Operators should verify that parameter 10342 is set to hold multiple historic states, ensuring that a clean, parameter-perfect backup is always stored safely in the FROM module even if the primary battery fails completely during a power cut.

Still not resolved?

Ask our AI assistant about this topic in natural language. Grounded in verified sources, no hallucinations.

Ask AI Assistant
Hakan Gündoğdu
Hakan Gündoğdu
  • CNC CARE Co-Founder (May 2025 - Present)
  • Mitsubishi Electric NC Sales & Service Section Manager (2008 - 2025)
  • Reis CNC Service Engineer (2003 - 2005)
  • Ören Kalıp CNC Mold Line Team Leader (1999 - 2002)

With over 25 years of experience working in all areas of the CNC machine industry, I continue my activities as a co-founder of CNC CARE, where we offer brand-independent consulting, engineering, and original spare parts services.

Related Articles

Other articles on this topic