Overview of S7-400 Power Module Battery Backup
The Siemens SIMATIC S7-400 PLC retains RAM content, retentive bit memory, internal timers and counters, and the diagnostic buffer through a backup battery system integrated into the PS 405 (AC) or PS 407 (DC) power supply module. The battery compartment accepts up to two 3.6 V lithium cells in parallel. A three-position slide switch on the front of the power supply selects how the internal battery-monitoring circuit operates. Choosing the correct switch position is essential for reliable CPU data retention, predictable fault annunciation via the BAF (Battery Fault) LED, and safe, alarm-free battery replacement.
This article documents the meaning of each switch position, the relationship between switch position and the BAF LED, the diagnostic-buffer entries generated by the power supply, the recommended position for normal operation, and the controlled procedure for hot-swapping batteries without losing the CPU's retentive data. It applies to S7-400 PS 405 4 A, PS 405 10 A, PS 407 4 A, and PS 407 10 A modules that are equipped with a battery compartment and a BAF LED. PS modules without a battery compartment do not have the switch and do not provide backup after line-power loss. For the full module data and wiring, refer to the SIMATIC S7-400 Automation System Manual.
Hardware Reference and Module Variants
The selector switch is fitted only to PS modules that ship with a battery holder. Confirm the variant before assuming backup-battery support. The relevant MLFBs are listed below; the battery holder, the BAF LED, and the selector switch are present in each of the variants shown.
| Module | Input | Output | Battery holder | BAF LED | Typical MLFB |
|---|---|---|---|---|---|
| PS 405 4 A | 120/230 V AC | 5 V/24 V DC, 4 A | Yes, holds 1 or 2 cells | Yes | 6ES7405-0DA02-0AA0 |
| PS 405 10 A | 120/230 V AC | 5 V/24 V DC, 10 A | Yes, holds 1 or 2 cells | Yes | 6ES7405-0KA02-0AA0 |
| PS 407 4 A | 24 V DC | 5 V/24 V DC, 4 A | Yes, holds 1 or 2 cells | Yes | 6ES7407-0DA02-0AA0 |
| PS 407 10 A | 24/48/60 V DC | 5 V/24 V DC, 10 A | Yes, holds 1 or 2 cells | Yes | 6ES7407-0KA02-0AA0 |
The backup cell itself is a 3.6 V lithium AA-size cell, Siemens MLFB 6ES7971-0BA00 or a manufacturer-equivalent with the same chemistry, voltage, and form factor. The two cells are wired in parallel inside the battery holder; the module does not balance them. The cells begin supplying the CPU RAM-retention current the moment they are inserted, even before the PS module is powered from line. Detailed module data is in the S7-400 Module Data Manual.
The Three-Position Battery Selector Switch
The selector switch is a small three-position slide switch on the front of the power supply, just below the battery holder. It is labelled, in silkscreen, with three positions:
- 1 BATT — the monitoring circuit supervises only the cell in the upper holder (battery 1).
- 2 BATT — the monitoring circuit supervises both cells; the BAF LED is lit if either cell is below the alarm threshold.
- OFF — the monitoring circuit is disabled; the BAF LED is forced off and no battery-diagnostic events are generated.
The switch has no effect on the physical backup function. As long as a healthy cell is installed in either holder, the CPU is held in RAM retention when line power is lost. The switch only changes what the module reports about the cells. This is the single most important concept in the topic: the position you choose does not make the backup better or worse — it changes only the alarm behaviour.
Position: 1 BATT (Single-Cell Monitoring)
In the 1 BATT position, the monitor measures only the cell in the upper holder. If that cell's terminal voltage drops below the alarm threshold of the monitoring circuit, the front-panel BAF LED is lit and a diagnostic event is written to the CPU's diagnostic buffer. The lower cell, if fitted, is still electrically in parallel and will provide backup, but the monitoring circuit never inspects it. A deeply discharged, missing, or reversed lower cell therefore produces no BAF alarm and no diagnostic event.
Use the 1 BATT position when only a single cell is fitted, or when the system designer wants a clean, low-noise alarm path during a period when the lower cell is intentionally empty. It is not the recommended position for a fully populated, two-cell installation: it silently disables half of the alarm function for which the second cell was purchased. Engineers migrating from a single-battery cabinet should leave the switch at 1 BATT only until the second cell is installed, then move it to 2 BATT.
Position: 2 BATT (Dual-Cell Monitoring - Recommended)
In the 2 BATT position, the monitor checks both cells. The BAF LED is lit and a diagnostic event is generated as soon as either cell falls below the alarm threshold. This is the most conservative and the most informative mode of operation, and it is the position Siemens recommends for normal service. With two healthy cells installed, a single cell failure is detected early; the remaining cell continues to hold the CPU in RAM retention, and the maintenance crew has time to schedule a battery replacement before the second cell also discharges.
Two practical rules follow from this:
- Always fit two cells when the holder accepts two.
- Replace both cells at the same service interval, and replace both whenever one cell has triggered a BAF alarm. Mixing cells of different ages defeats the redundancy the switch is designed to monitor.
Position: OFF (Monitoring Disabled)
In the OFF position, the monitoring circuit is fully disabled. The BAF LED is not driven and no battery-diagnostic events are written to the diagnostic buffer. The cells, if fitted, still provide backup as long as they are healthy. This position exists for one purpose only: to silence the BAF LED and the diagnostic event that would otherwise fire the moment a cell is half-disconnected during a hot-swap.
Leaving the switch in OFF during normal operation is a maintenance error. The next genuine battery failure will be silent: the CPU will still be held in RAM by the remaining healthy cell, but no annunciation will be generated, no diagnostic event will be written, and the failure will not appear in any maintenance log. After the cell replacement is complete, the switch must be returned to 2 BATT (or 1 BATT, if only one cell is fitted) and the BAF LED verified off.
BAF LED and Diagnostic Buffer Events
The BAF (Battery Fault) LED on the front of the PS module is the only local annunciator. Its behaviour in each switch position is summarised below.
| Switch position | Cell 1 state | Cell 2 state | BAF LED | Diagnostic buffer event |
|---|---|---|---|---|
| 2 BATT | Healthy | Healthy | Off | None |
| 2 BATT | Low or missing | Healthy | On (red) | "Battery 1 empty" / backup fault |
| 2 BATT | Healthy | Low or missing | On (red) | "Battery 2 empty" / backup fault |
| 2 BATT | Low or missing | Low or missing | On (red) | Combined "backup battery" event |
| 1 BATT | Low or missing | any | On (red) | "Battery 1 empty" / backup fault |
| 1 BATT | Healthy | Low or missing | Off | None (cell 2 not monitored) |
| OFF | any | any | Off | None |
In addition to the local LED, the PS module reports battery status to the CPU over the backplane. The CPU in turn writes an event to its diagnostic buffer. The exact event text and identifier vary between CPU firmware versions, but the typical entries seen in STEP 7 or TIA Portal are:
"Backup battery exhausted""Battery 1 failure""Battery 2 failure""Backup voltage too low"
On CPUs with an SF (System Fault) LED, a battery fault may also drive the SF LED depending on the CPU firmware. In STEP 7 v5.x, view the diagnostic buffer via PLC › Diagnostics/Settings › Diagnostic Buffer. In TIA Portal, navigate to the online device, then Online & diagnostics › Diagnostics › Diagnostics buffer. The event timestamp is wall-clock from the CPU, not from the PS module.
Hot-Swap Battery Replacement Procedure
The cells are intended to be replaced with the PLC powered, so that the CPU never loses backup. A typical hot-swap sequence is:
- Verify that line power to the PS module is healthy. If the PS module itself is unpowered, the cells are the only thing holding the CPU in RAM; stop and restore PS input power before proceeding.
- Slide the selector switch on the front of the PS module to OFF. This prevents the transient low-voltage condition of a half-disconnected cell from triggering a false BAF alarm and a diagnostic-buffer entry that has to be acknowledged and explained later.
- Open the battery compartment cover.
- Remove the first cell. Note the polarity marking on the holder; the new cell is installed in the same orientation.
- Insert the new cell, observing polarity. Hold the cell in place until the retainer clip engages; a partially seated cell can produce an intermittent contact and a phantom BAF fault.
- Repeat for the second cell if both are being replaced.
- Close the battery compartment cover.
- Slide the selector switch back to 2 BATT (or to 1 BATT if only one cell is fitted).
- Verify that the BAF LED is off and that the CPU diagnostic buffer is free of any new battery entry since the switch was moved.
- Record the replacement date, the cell lot or supplier, and the next scheduled replacement on the maintenance label of the PS module and in the plant CMMS.
Commissioning and Maintenance Best Practices
For a new S7-400 installation, or for a PS module being put back into service after a long outage, follow this sequence:
- With line power off, install the cells. The cells begin supplying the CPU as soon as they are inserted, even before the PS module is powered from line.
- Leave the switch in OFF while the CPU is first powered up. This avoids false BAF events during the first few minutes of operation as internal rails stabilise.
- Apply line power and wait for the CPU to complete its start-up sequence (STOP or RUN, depending on the project).
- Move the switch to 2 BATT.
- Confirm the BAF LED is off and that the diagnostic buffer contains no new battery entry since the switch was moved.
- Document the cell lot, installation date, and expected replacement date in the plant maintenance system.
For periodic maintenance, a simple checklist is sufficient:
| Interval | Action |
|---|---|
| Monthly | Visual check of BAF LED; verify switch is at 2 BATT |
| Quarterly | Open diagnostic buffer in STEP 7 / TIA Portal; confirm no battery entries |
| Annually | Measure open-circuit voltage of each cell; replace if voltage has dropped significantly |
| Every 2 years (cabinet < 40 °C) or 1 year (cabinet > 40 °C) | Replace both cells; reset switch to 2 BATT; clear diagnostic buffer |
Cell self-discharge is strongly temperature dependent. Cells installed in a cabinet that runs above 40 °C age significantly faster than cells in a 25 °C cabinet, and the maintenance interval must be shortened accordingly. Cells stored at room temperature for longer than the manufacturer's published shelf life should be discarded rather than installed; the shelf life is typically several years for fresh lithium thionyl chloride cells but the exact value depends on the cell supplier.
Troubleshooting Matrix
| Observed symptom | Likely cause | Corrective action |
|---|---|---|
| BAF LED on, switch in 2 BATT, both cells freshly replaced | One cell not fully seated; cell polarity reversed; cell batch is faulty | Remove and re-seat both cells; verify polarity; verify cell lot and date code; measure open-circuit voltage |
| BAF LED on, switch in 2 BATT, cells older than 2 years | End of cell service life | Replace both cells; reset switch to 2 BATT; clear diagnostic buffer |
| BAF LED off, switch in 1 BATT, but cell 2 missing | 1 BATT position does not monitor cell 2 — alarm is suppressed by design | Move switch to 2 BATT to confirm cell 2 health; install cell 2 and revert to 2 BATT |
| BAF LED off in 2 BATT, but diagnostic buffer shows battery events | Transient contact bounce during a previous hot-swap | Clear the diagnostic buffer; re-seat both cells; monitor for recurrence |
| CPU loses retentive data on power-off | Both cells depleted; switch in OFF with no cells; PS module not battery-capable variant | Replace both cells; verify switch position; verify PS module MLFB supports battery backup |
| BAF LED never lights, even with a known-dead cell | Switch in OFF | Move switch to 2 BATT and re-test |
| SF LED on CPU plus BAF LED on PS | PS module has reported the battery fault to the CPU over the backplane | Resolve the battery condition first; acknowledge and clear the CPU diagnostic buffer |
| BAF LED on only at power-up, then off | Cells near end-of-life; internal impedance high; recovers under light load | Replace both cells at the next maintenance window; do not wait for a hard fault |
| BAF LED on, switch in 2 BATT, but both cells measure above 3.5 V out of circuit | Cells not under load — open-circuit voltage can read normal even when the cell cannot deliver load current | Replace both cells; do not trust open-circuit voltage alone as a health indicator for cells near end of life |
Field-Proven Caveats and Environmental Notes
- The selector switch is a small slide switch and is easy to bump into the OFF position during maintenance. After any work near the PS module, verify the switch position visually and check the BAF LED.
- The BAF LED is a single, shared indicator. It does not tell you which of the two cells is low. If you need to know which cell to replace, you must lift the cover and measure each cell's open-circuit voltage with a calibrated meter, or temporarily lift one cell at a time and watch the BAF LED.
- Cell self-discharge is strongly temperature dependent. A cabinet at 50 °C ages the cells roughly twice as fast as a cabinet at 25 °C. Adjust your maintenance interval accordingly.
- If the PLC has been stored without line power for longer than the cell shelf life, replace both cells before applying line power. The cells may have self-discharged below the alarm threshold and the switch will report a fault the moment monitoring is enabled.
- Some PS 405/PS 407 variants ship without a battery compartment. In those variants, retentive data is held only while line power is present; the CPU will not survive a power outage. Confirm the MLFB before commissioning.
- Do not use the OFF position to "save the cells" during a long shutdown. The cells are not measurably discharged by the monitoring circuit; the OFF position only silences the alarm.
- When the PLC is decommissioned, remove the cells before the module is scrapped. Lithium cells are hazardous waste and must be disposed of per the cell supplier's instructions and local regulations.
- The S7-400 backup architecture differs from the S7-300 (single battery on the CPU) and from the S7-1500 (no serviceable backup battery; data is held in non-volatile memory or in the SIMATIC memory card). Engineers migrating a working program from one platform to another should not assume the new platform supports the same battery-based retention model.
FAQ
Which switch position should I use during normal operation?
Use the 2 BATT position. It monitors both cells and triggers the BAF LED as soon as either cell drops below the alarm threshold, giving you the earliest warning of a battery failure while the second cell still provides RAM retention.
When is the OFF position correct?
Use OFF only during battery replacement. The monitoring circuit is disabled in OFF, so the BAF LED will not be lit by the transient low-voltage condition of a half-disconnected cell. Return the switch to 2 BATT (or 1 BATT if only one cell is fitted) as soon as the replacement is complete.
What happens if one of the two cells fails while the switch is in 2 BATT?
The BAF LED is lit and a diagnostic event is written to the CPU's diagnostic buffer. The remaining cell continues to back up the CPU, so retentive data is preserved. Schedule replacement of both cells at the next maintenance window.
Why does the BAF LED stay off even when the switch is in 2 BATT and one cell is missing?
It should not. In the 2 BATT position, a missing or depleted cell in either holder should drive the BAF LED. If the LED is genuinely off, suspect that the cell in the monitored holder is still healthy, that the switch is in OFF, that the cell contacts are dirty, or that the PS module is a no-battery variant.
Which replacement battery part number is approved and how long do the cells last?
Use the 3.6 V lithium thionyl chloride cell listed in the S7-400 module data manual, Siemens MLFB 6ES7971-0BA00, or an equivalent cell with the same chemistry, voltage, and form factor. Do not use alkaline, lithium-ion, or rechargeable cells, and do not mix batches, manufacturers, or production dates. Typical cell service life is one to three years depending on the CPU retention current, ambient temperature, and the cell manufacturer; above 40 °C plan on a 12-month replacement interval, below 30 °C 24 months is usually safe. Always replace both cells together.