The BATF LED on a Siemens S7-300 CPU does not indicate an imminent failure — it is a warning that the backup battery has discharged to the point where it can no longer maintain CPU RAM data through a mains power interruption. This Siemens S7-300 BATF battery fault guide walks through replacing the CPU battery without losing retain data, covering both hot-swap and cold-swap procedures. The CPU continues running on mains power. Production can continue. But this warning has a hard deadline: the next time the 24VDC supply to the CPU fails (planned maintenance, accidental disconnection, power outage), all data stored in CPU RAM — including retain variables, data block values not backed up to MMC, and the CPU’s internal clock — will be lost. This guide covers the safe replacement procedure that preserves retain data by replacing the battery with the CPU powered on.
- What BATF Means: RAM Loss Risk vs. Operational Impact
- S7-300 Battery Specifications by CPU Model
- Hot-Swap Battery Replacement — Step-by-Step
- Cold-Swap Procedure When Hot-Swap Is Not Possible
- Verifying the BATF LED Clears After Replacement
- Technical Validation
- Frequently Asked Questions
What BATF Means: RAM Loss Risk vs. Operational Impact
The S7-300 CPU’s backup battery serves two functions: 1. Maintains CPU internal RAM content (user program blocks and retain data) during mains power loss 2. Powers the real-time clock (RTC) during mains loss to preserve date and time
What is at risk with a discharged battery: – Retain data (marked REMANENT in data blocks and variable declarations) — setpoints, process totals, recipe parameters stored in CPU RAM – CPU real-time clock accuracy — after mains restore, the clock will show the factory default (typically 2000-01-01 00:00:00)
What is NOT at risk (not affected by battery state): – Programs on the SIMATIC MMC (the MMC has its own non-volatile storage; it does not require the battery) – Programs on the MMC are automatically loaded back to CPU RAM after power restore even without the battery
In practice, if the S7-300 CPU has a SIMATIC MMC with the user program stored on it, the program itself is safe. Only retain data that is NOT saved to the MMC is at risk. If the process requires retain data to survive power loss, the battery must be functional.
S7-300 Battery Specifications by CPU Model
The S7-300 uses a lithium coin cell battery. The cell type varies by CPU generation:
| CPU Series | Battery Type | Typical Service Life |
|---|---|---|
| CPU 313, 314, 315 (pre-2000) | BR2032 (3V Lithium) | 4–8 years |
| CPU 315-2DP, 317, 318 | CR2032 (3V Lithium) | 4–8 years |
| CPU 312C, 313C, 314C, 315-2DP (compact) | CR2032 | 5–10 years |
| CPU 317-2PN/DP, 319-3 PN/DP | CR2032 | 5–10 years |
| Older CPU 312 (early versions) | 3.6V 1/2AA Lithium | 5–10 years |
Verify by reading the CPU faceplate or documentation: the battery compartment cover on the CPU shows the battery type, or the CPU’s technical manual (downloaded from Siemens SIOS by searching the exact CPU order number) specifies the battery type.
Use only the Siemens recommended battery or an exact equivalent — some S7-300 CPUs have polarity protection that differs from standard coin cell orientation.
Hot-Swap Battery Replacement — Step-by-Step
Replacing the battery with the CPU powered on (hot-swap) preserves CPU RAM content because the mains supply continuously powers the RAM. The battery is only required when mains power is absent:
Procedure:
1. Prepare the replacement battery (verify type per table above)
2. CPU must be in RUN or STOP mode with 24VDC supply connected and active
— Do NOT power down the CPU before or during battery replacement
3. Locate the battery compartment on the CPU faceplate (hinged cover, same area as MMC slot)
4. Open the battery cover
5. Remove the discharged battery:
— Note the orientation (+/- marking) before removal
— Use a non-conductive tool (plastic spudger) to avoid short-circuiting adjacent terminals
6. Insert the new battery in the same orientation
7. Close the battery cover
8. Wait 30–60 seconds for the CPU to detect the new battery
9. Observe the BATF LED: it should extinguish within 60 seconds of battery insertion
10. Verify the BATF entry in the diagnostic buffer has an "Outgoing" event (fault cleared)
Critical: steps 5 and 6 must be performed quickly — the window between removing the old battery and inserting the new one is the only period when RAM is at risk. With 24VDC supplied, the CPU provides an internal capacitor buffer for a few seconds. Do not leave the battery slot empty for more than 10 seconds while the CPU is powered.
Cold-Swap Procedure When Hot-Swap Is Not Possible
If the CPU must be powered down before battery replacement (no hot-swap access, safety interlocks prevent working on powered equipment):
- Save all retain data to MMC before powering down. In STEP 7, use SFC84 (WRIT_DBL) to copy retain DB content to MMC storage, OR configure the CPU to automatically save retain data to MMC on power-down (requires firmware V3.0 or later and MMC inserted).
Alternative: record all critical retain data values (setpoints, totals) by reading them online in STEP 7 before the power-down.
-
Power down the CPU.
-
Replace the battery (polarity per compartment marking).
-
Power on the CPU. The program reloads from MMC. Retain data is restored from MMC if auto-save was configured.
-
If retain data was NOT automatically saved to MMC: manually restore the recorded values via online variable table in STEP 7.
Verifying the BATF LED Clears After Replacement
After correct battery installation, the BATF LED should extinguish within 60 seconds. If the BATF LED remains on after battery replacement:
- Wrong battery type: a non-CR2032 battery may not be recognized by the CPU’s battery monitor circuit
- Battery inserted backwards: verify the + terminal on the battery faces the correct direction per the compartment marking
- New battery is also discharged: this happens with old stock from suppliers — test the new battery voltage with a multimeter (must read 3.0V or higher)
- CPU battery monitoring circuit failure: rare hardware failure — if two verified new batteries fail to clear the BATF LED, the monitoring circuit may have failed (does not affect CPU operation, but battery monitoring is unavailable)
For the complete S7-300 SF LED diagnosis that includes BATF as one of the possible SF-activating conditions, see Siemens S7-300 Sf Led Error Diagnosis Step By Step Fix. For S7-300 MMC memory card considerations when retain data must be preserved across power cycles, see Siemens S7-300 Mmc Memory Card Corruption Recovery Fix.
For S7-1200 error code diagnosis including battery-related OB events, see: Siemens S7-1200 Error Codes Complete List
Technical Validation
S7-300 BATF battery fault code and CPU backup battery behavior reference from the Siemens STEP 7 Error Code Reference Document 770453. Siemens S7-300 battery fault diagnostics for SCADA and OPC integration from Honeywell Process Solutions Siemens S7 PLC Error Codes reference. Industrial PLC preventive maintenance training from Moraine Park Technical College PLC manufacturing boot camps.
Frequently Asked Questions
Can the S7-300 CPU run without any battery installed?
Yes. The S7-300 CPU runs normally on mains power with no battery installed. The battery is only required to maintain RAM content during mains power-off periods. If the S7-300 has a SIMATIC MMC with the program stored on it, the program reloads from the MMC automatically after mains restore — the battery is not needed for program recovery. The only data that cannot be recovered without a battery (and without MMC-based retain save) is RAM-resident retain data that was not explicitly saved to MMC before the power interruption.
How often should the S7-300 battery be replaced proactively?
Siemens recommends proactive battery replacement every 5 years regardless of BATF indication. The actual battery service life depends on temperature — at 25°C ambient, a CR2032 cell lasts approximately 8–10 years in an S7-300 CPU with mains power supplied (the battery is not supplying any current when mains is present). At 40°C ambient (common in industrial enclosures), the battery self-discharge rate increases and effective life may be reduced to 5–6 years. Document the battery replacement date on the CPU module label.
The BATF LED cleared after battery replacement but reappeared 48 hours later. The new battery tests at 3.0V. Why does BATF return with a confirmed good battery?
BATF returning quickly after replacement with a battery that tests at rated voltage indicates a contact problem, not a battery voltage issue. The most common cause is that the new battery is thinner than nominal — some off-brand CR2032 cells measure 2.9 mm actual thickness instead of 3.2 mm, reducing contact force in the spring-loaded battery slot. Try a Panasonic CR-2032 or other branded cell with verified 3.2 mm thickness. If the contact spring in the CPU’s battery slot has weakened from years of compression cycles, the reduced contact force may be insufficient for thinner cells. Siemens does not support field repair of the battery contact spring — if the slot consistently fails to hold contact with genuine Siemens-spec batteries, CPU replacement is the recommended resolution.