Sinumerik 840D Powerline PLC STOP on Power Cycle: Causes & Fixes

David Krause21 min read
PLC HardwareSiemensTroubleshooting
Licensed PE Working through this on a live machine? A Maine-licensed engineer can take it from here — included with IMD hardware, by the hour for everything else. Book an engineer

Sinumerik 840D Powerline PLC STOP on Power Cycle: Causes & Fixes

A Sinumerik 840D powerline turning machine boots into PLC STOP after every complete mains power-down, even when a fresh PLC backup has just been loaded. The 7-segment status display reads 6, the SF (System Fault) LED and BF (Bus Fault) LED are both red, and the rotary selector switches on the NCU are confirmed at position 0. A new backup battery has been installed. The standard "delete PLC and re-upload backup" procedure recovers operation temporarily, but the next complete power cycle reproduces the fault. This reference covers the complete diagnostic matrix, root cause analysis, and a verified recovery sequence for the SIMATIC S7-300 PLC integrated inside the Sinumerik 840D powerline NCU.

Problem Description

The 840D powerline was released as the predecessor of the Sinumerik 840D sl (Solution Line) and uses an integrated SIMATIC S7-300 CPU as its PLC. Unlike the sl generation, the powerline NCU combines the NC kernel, the PLC, and the operator-panel interface on a single hardware module with a battery-buffered SRAM and an optional Flash EPROM card for retentive program storage.

The reported symptom chain is:

  1. Machine operates normally for an extended period.
  2. Without warning, the HMI reports connection to NC/PLC lost or PLC not responding.
  3. Operator performs an emergency procedure: delete the PLC project, re-upload the most recent backup, and confirm.
  4. Control restarts and resumes production.
  5. On the next complete mains power-down (not just an NC reset), the PLC returns in STOP state with the 7-segment display reading 6.
  6. The upload procedure must be repeated; otherwise the NC cannot be commissioned.

Because the PLC is the only subsystem failing to retain its user program, the root cause is local to the PLC side of the NCU — not the NC kernel, the drive bus, or the HMI. The combination of a 6 on the 7-segment display, a red SF LED, and a red BF LED narrows the diagnostic search considerably.

Critical: Repeatedly clearing and reloading the PLC without identifying the cause accelerates wear on the battery holder, the Flash EPROM card slot, and the memory module contacts. Resolve the root cause before the failure becomes permanent.

Affected Hardware

Identify the exact NCU model before troubleshooting. The classic 840D powerline ships with the following variants:

NCU Module PLC CPU Type Memory Battery
NCU 571.x CPU 314 / CPU 315-2 DP 96 KB work, 256 KB load 3.6 V lithium, 2 Ah
NCU 572.x CPU 315-2 DP 128 KB work, 256 KB load 3.6 V lithium, 2 Ah
NCU 573.x CPU 317-2 DP 256 KB work, 512 KB load 3.6 V lithium, 2 Ah
NCU 580.x CPU 317-2 DP 512 KB work, 4 MB load 3.6 V lithium, 2 Ah

All variants share a common battery slot on the NCU front, a single multi-pin connector for the operator panel (MCP/HT6), and the rotary selector switches. The X130 port carries MPI/DP, the X120 port carries the PROFIBUS DP external master, and the X122/X132 ports carry the drive bus to the SIMODRIVE 611D or Sinamics S120 modules.

Diagnostic Indicators: 7-Segment, SF, BF

Seven-Segment Status Display

The integrated PLC CPU reports its current state on the 7-segment display located on the NCU front. The codes relevant to the reported fault are:

Display PLC State Implication
0 CPU in RUN, no error Normal operation; PLC executing OB1
1 CPU in RUN, request for warm restart OB100 pending; non-critical
2 CPU in RUN, RAM content lost Battery depleted or memory reset
3 CPU in RUN, IP/DP interface diagnostic PROFIBUS diagnostic pending
4 CPU in STOP, internal error Hardware or firmware fault
5 CPU in STOP, restart blocked OB request missing or PG access conflict
6 CPU in STOP, MRES requested or RAM lost Matches reported fault
7 CPU in RUN, output disabled PG forced output disable active
8 CPU in RUN, battery low warning Replace battery within one week
9 CPU in RUN, battery exhausted Replace battery immediately
F CPU in STOP, firmware update active Update via SIMATIC Manager in progress

Display 6 is the most significant indicator. The CPU has either received an MRES command (memory reset) or has detected a non-retentive memory condition at the moment OB1 start was requested. Combined with the operator performing a delete-and-upload each time, the PLC is reporting that its work memory is empty when the start request is evaluated.

SF LED (System Fault)

The SF LED is lit solid red whenever the CPU detects an internal diagnostic event. On the S7-300 CPUs used in 840D powerline the most common SF triggers are:

  • Memory card missing or unreadable.
  • Flash EPROM write error (write-protect switch active, card full, or card failing).
  • Hardware fault in the CPU module.
  • Firmware checksum mismatch after a partial update.
  • Battery missing while a battery-backed area is configured.
  • Time-of-day or bit-memory retentive area larger than the battery can hold.

SF red on cold-start with display 6 is a strong pointer to a memory-retention problem and not a transient bus or slave failure.

BF LED (Bus Fault)

The BF LED on the integrated PLC illuminates red whenever the PROFIBUS DP master (the PLC) cannot communicate with one or more configured slaves. The BF LED can also illuminate when the DP master is not yet parameterised, which is normal during PLC STOP. Distinguish the two cases:

  • BF red while PLC is in RUN: active bus fault — investigate cabling, terminators, slave addresses, and slave power.
  • BF red while PLC is in STOP: expected because the DP master has not yet started token passing; informational and clears once RUN is established.

In the reported case, the BF is red because the PLC is in STOP and the DP master has not started. Once the PLC is brought to RUN, the BF may clear automatically if the PROFIBUS network is healthy. If it does not clear, the network must be inspected separately.

Rotary Selector Switches S2 / S3 / S4

The 840D powerline NCU module carries two or three rotary selector switches on the front. The exact designation varies by hardware revision. The original post references "S2 & S3" while the operator reply references "S3 and S4 both are in 0" — the ambiguity reflects the NCU variant in use. Treat the following as the canonical mapping:

Switch Function Position 0 Position 1 Position 2
S2 (PLC mode) PLC operating mode RUN STOP MRES (memory reset)
S3 (NC mode) NC kernel operating mode Normal Service / commissioning Reset
S4 (optional) Some NCU revisions add a switch for HMI / boot source Standard Service —

All PLC-related switches must be in position 0 for normal operation. Position 2 on the PLC switch (MRES) issues a memory reset on the next power-up; if a switch is left in 2, every boot deletes the PLC program from work memory. The operator has confirmed the switches are at 0, which rules this out as the cause. The PLC STOP and display 6 must therefore have another origin.

Verification step: Power down the machine, remove the NCU cover, and physically inspect the switch detents. A switch that visually shows 0 can still have a detent that engages position 1 internally. Cycle each switch through 0 → 1 → 2 → 0 with the power off and confirm a positive click at each position.

PLC Memory Architecture and Battery Backup

The integrated S7-300 PLC of the 840D powerline stores its user program and data across three physical areas:

  1. Load memory on the Flash EPROM card (PC card or Memory Card). Non-volatile; persists without battery.
  2. Work memory (RAM) on the CPU module. Volatile; battery-backed.
  3. Retentive data (bit memory, timers, counters, instance DBs marked retentive). A subset of work memory; backed by battery.

The normal boot sequence is:

  1. Power ON.
  2. CPU performs self-test and reports any diagnostic events on SF LED.
  3. If load memory contains a project, the CPU copies it to work memory (or runs in place from the Flash card, depending on CPU generation).
  4. CPU enters RUN, executes OB100 (restart), then OB1 (cyclic).
  5. If a battery is present and healthy, work memory and the configured retentive data survive the power-down.

When the PLC enters STOP with display 6 after a power-down, one of the following must be true:

  • The Flash EPROM card is not seated, has lost contact, or has been write-protected while a write was pending.
  • The load memory is empty — the project lives only in work memory, which is volatile.
  • The battery is new but the polarity is reversed, the connector is loose, or the contact resistance is too high to keep the RAM refreshed during power-down.
  • The retentive area has been mis-configured in STEP 7 to include more data than the battery can hold (rare; normally triggers a different code).
  • The CPU module has a hardware fault that prevents reading the Flash card.

Battery and Memory Card Verification

Battery Test

A "new battery" is the most common misleading data point. A lithium thionyl chloride 3.6 V cell that has been on the shelf for several years can measure 3.6 V open-circuit but fail under the 50–200 µA load required to back up a 256 KB SRAM. Always verify the battery under load.

Test Expected Value Failure Indication
Open-circuit voltage 3.6 V ± 0.05 V Cell depleted or shorted
Voltage under 100 µA load > 3.4 V after 60 s High internal resistance; replace
Insertion in NCU battery holder Click and locked Cell not making contact
Holder spring tension Firm Replace holder
Continuity from battery + to CPU BAT pin < 1 Ω Broken trace or loose connector

If any of these checks fail, replace the battery with a fresh cell from a sealed package and rerun the boot test. Genuine Siemens part numbers for the 840D powerline backup battery include 6FC5247-0AA18-0AA0 (single cell) and 6FC5247-0AA19-0AA0 (double cell for NCU 580).

Flash EPROM / Memory Card Verification

Once the battery is confirmed good, the next suspect is the Flash EPROM card (also called the PC card, Memory Card, or S7 Memory Card). The card holds the load memory for the PLC project. If the project has been deleted from the card, every power cycle returns the PLC to an empty state.

Part Number Family Type Capacity Use
6ES7951-... (various) Flash EPROM 128 KB – 4 MB PLC load memory in 840D powerline
6ES7952-... (various) RAM card 128 KB – 1 MB Volatile; requires battery
6FC5447-0AA... Custom PC card for NCU 2 – 8 MB NC + PLC combined

Verification procedure:

  1. Power down the NCU completely; wait 30 s for the power supply to discharge.
  2. Open the NCU front cover and remove the memory card.
  3. Inspect the card edge connector for oxidation, bent pins, or contamination. Clean with isopropyl alcohol and a non-abrasive swab.
  4. Insert the card into a SIMATIC Field PG or an external prommer.
  5. Open SIMATIC Manager and select PLC > Memory Card Object > Properties to read the project ID and timestamp.
  6. Confirm the project timestamp matches the most recent PLC backup. If the card is empty, the original upload procedure has only written to work memory, not to the card.
Critical: The PLC upload performed from the HMI Startup > PLC menu writes only to work memory by default. To write to the Flash EPROM, the STEP 7 Download User Program to Memory Card function or the menu PLC > Save to Memory Card must be used. Verify that the operator's procedure performs a Save to Memory Card and not just a Download to Target System.

Root Cause Matrix

The following table consolidates the most common causes of "PLC does not retain program after power cycle" in a 840D powerline, ranked by frequency in field service reports.

Rank Cause Indicator Confirm By Fix
1 PLC project written only to work memory, not to Flash card Display 6, SF red, BF red, program lost on power cycle Read card on PG; empty or stale Re-upload project with "Save to Memory Card" enabled
2 Battery present but not supplying current (reverse, weak, bad contact) Display 6, intermittent SF red Voltage under load test Replace battery, clean holder, verify polarity
3 Memory card not fully inserted or write-protected Display 6, SF red, card looseness visible Physical inspection, write-protect slider Re-seat card; remove write-protect
4 PLC mode switch detent on 1 or 2 Display 6 or STOP, switch visually 0 Cycle switch through all detents Set switch firmly to 0
5 PROFIBUS topology fault preventing PLC RUN BF red persistent after PLC brought to RUN, SF intermittent PROFIBUS diagnostics from STEP 7 Check connectors, terminators, slave power
6 NCK–PLC handshake fault (NC expecting PLC in RUN, PLC in STOP) NC alarm 2000–2999 range, PLC STOP NC alarm log via HMI Resolve PLC first; then NC clears
7 CPU module hardware fault SF red on every boot, display cycles 4/5/6, no response to MRES Swap with known-good NCU Replace NCU module or CPU sub-module
8 Firmware mismatch between NC and PLC sub-images SF red, display 6, MRES does not clear Read NC and PLC firmware via HMI service menu Re-flash both sub-images to a matched pair

Step-by-Step Resolution

Follow the procedure in order. Do not skip a step; each diagnostic test produces a result that determines the next action.

Prerequisites

  • SIMATIC Field PG (or any PG with STEP 7 V5.5 or TIA Portal with the appropriate compatibility package) connected to the NCU X130 (MPI/DP) port.
  • Most recent PLC project backup on a USB stick or PG hard drive.
  • Most recent NC archive (series start-up file) available.
  • Replacement lithium battery from sealed packaging.
  • Spare Flash EPROM card formatted to the matching part number.

Step 1 — Capture the Current State

  1. Power up the machine, leave the PLC in STOP.
  2. Connect the PG to X130, set PG/PC interface to PC Adapter (MPI) or CP 5611 (PROFIBUS).
  3. Open SIMATIC Manager and select PLC > Diagnose/Set > Module Information.
  4. Record the diagnostic buffer entries, the CPU type, the firmware version, and the order number.
  5. Take screenshots of the Diagnostic Buffer tab, the Memory tab, and the Performance Data tab.

The diagnostic buffer is the most informative single tool. Look for entries such as Memory card removed/inserted, Battery voltage low/failed, STOP because of memory reset, and Power off/on. The timestamps on these entries identify whether the failure happened during normal operation or during the operator's upload procedure.

Step 2 — Verify the Battery Under Load

  1. Power down the NCU.
  2. Remove the battery and measure open-circuit voltage.
  3. Apply a 100 µA load through a 36 kΩ resistor and measure voltage after 60 s.
  4. If voltage drops below 3.4 V, replace the cell with a sealed fresh unit.
  5. Reinstall the battery, confirm the holder detent is engaged, and reconnect.

Step 3 — Verify the Flash EPROM Card

  1. Power down the NCU.
  2. Remove the memory card and inspect contacts.
  3. Insert the card into the PG prommer slot.
  4. In SIMATIC Manager, select File > Memory Card > Open and read the project ID.
  5. If the card is empty or shows a stale project, the load memory is the problem.

Step 4 — Reload the PLC Project

  1. Connect the PG and open the matching STEP 7 project (or open the most recent backup).
  2. Set the PG/PC interface to MPI or PROFIBUS and reach the target CPU.
  3. Select PLC > Download to Target System. This writes to work memory and brings the CPU to RUN if the switch is in position 0.
  4. Once the CPU is in RUN, select PLC > Save to Memory Card (or the toolbar icon). This writes the project to the Flash EPROM card.
  5. Confirm the operation completes without error. The diagnostic buffer should show Save to Memory Card completed.
Critical: In some STEP 7 versions the Save to Memory Card action is only enabled if the CPU is in STOP. The full sequence is: bring CPU to STOP, save to card, bring CPU to RUN. If the upload is performed from the HMI, ensure the operator selects the option "PLC project including card" and not the option "PLC project only".

Step 5 — Verify Retention by Power-Cycle Test

  1. Power down the machine completely (mains OFF, not just NC reset). Wait 60 s.
  2. Power up. Observe the 7-segment display sequence: it should read 0 after approximately 30–60 s and the SF and BF LEDs should go off.
  3. From the HMI, open the PLC service menu and confirm the project timestamp matches the latest upload.
  4. Repeat the power cycle three times consecutively. Each time, the PLC must come up in RUN with display 0.

Step 6 — Clear the BF LED if Persistent

If the BF LED remains red after the PLC reaches RUN, the PROFIBUS network has a separate fault. Follow the network diagnostic procedure in the next section.

PROFIBUS Network and NCK–PLC Handshake

PROFIBUS Verification

If the BF LED stays red after RUN is established, walk the bus segment by segment:

  1. Confirm the bus terminator is enabled at both physical ends of the segment and disabled at every node in between.
  2. Measure the bus voltage at each drop: 5 V at the connector with respect to the shield; idle A–B differential near 0 V; alternating during traffic.
  3. Confirm the slave addresses match the HW Config assignment.
  4. Check the slave diagnostic buffer for missing configuration or parameter errors.
  5. Look for duplicate slave addresses; Siemens DP allows only one master per segment, but slaves can have address collisions if not set correctly.

Common slaves on a 840D powerline turning machine include the spindle drive (611D or Sinamics S120), the feed drives, the I/O stations (ET 200S or ET 200M), and the hand-held terminal. Any of these becoming unreachable will light the BF LED.

NCK–PLC Handshake

The 840D NCK periodically reads a status word from the PLC to confirm that the PLC is alive. If the PLC is in STOP at the moment the NCK queries, the NC raises an alarm and refuses to continue. The relevant NC alarms are in the 2000–2999 range and typically read:

  • Alarm 2000: PLC sign-of-life monitoring
  • Alarm 2100: NCK sign-of-life monitoring
  • Alarm 2200: PLC not in RUN

These alarms clear automatically once the PLC is in RUN and the handshake is restored. Do not attempt to clear them with the NCK RESET key; the root cause is the PLC, and the NCK will re-trigger the alarm on the next cycle. Refer to the Sinumerik 840D powerline diagnostics manual for the full alarm list.

Firmware and Sub-Image Consistency

The 840D powerline stores its NC firmware and the PLC runtime on the NCU Compact Flash Card (CF card) or on the hard disk of the PCU 50. The PLC sub-image version is reported in the HMI under Startup > System Info > PLC Firmware. The NC sub-image version is reported under Startup > System Info > NC Firmware. A mismatch in which the PLC sub-image is older than the version expected by the NC can cause a cold-start failure where the PLC never leaves STOP.

Match the PLC sub-image version to the NC bundle version as documented in the Sinumerik 840D powerline commissioning manual. The combination is encoded in the boot order number, for example NCK 75.10 + PLC 75.10. If the sub-images are not paired, reflash both to the matching pair using the SINUMERIK boot disk and the procedure described in the Siemens Industry Online Support documentation library.

Verification Matrix and Related Cases

Verification Matrix

After every corrective action, run the following matrix. Each test has a pass criterion; if any test fails, return to the corresponding root cause.

Test Procedure Pass Criterion
1. Power cycle 1 Mains off 60 s, mains on Display reaches 0 within 90 s; SF off; BF off after PLC in RUN
2. Power cycle 2 Mains off 60 s, mains on Same as above
3. Power cycle 3 Mains off 60 s, mains on Same as above
4. NCK handshake Read NCK status word NCK reports PLC in RUN; no alarm 2000/2100/2200
5. PROFIBUS Read slave diagnostic buffer All slaves in data exchange; no diagnostic interrupt active
6. HMI commissioning Open HMI service menu PLC project timestamp matches latest upload
7. Battery test Remove battery, measure loaded voltage > 3.4 V at 100 µA load
8. Retentive data Set MB100 = 0xAA, power cycle, read MB100 MB100 still 0xAA after power cycle

Related Fault Scenarios

The same symptom (PLC STOP after power cycle) can be produced by several other conditions. Review them before closing the case.

Defective Memory Card. Flash EPROM cards have a finite write-cycle endurance (typically 100 000 cycles). A card that has been written to excessively can develop unreadable sectors. The CPU detects this and refuses to load the project, falling back to STOP. Confirm by cloning the card to a known-good unit and repeating the power-cycle test.

NCK Retentive Data Corruption. If the NCK has marked its own non-volatile area as corrupt, the NC may request a cold restart that includes a PLC reset. This is controlled by the machine data family MD20150 $MC_G_CODE_DEFAULT_VALUE and MD11240 $MN_PROFIBUS_SDB_NUMBER. Inspect the machine data for non-default values that may have been changed accidentally.

Improper Shutdown Sequence. Powering down the machine while the PLC is in the middle of a Flash card write can corrupt the card. The CPU detects the corruption on next boot and refuses to load. Always shut down the NC properly via the HMI Shutdown sequence before opening the mains breaker. A UPS on the NCU line is recommended for production environments.

EMI or Ground Loop. An unstable 24 V supply to the NCU or a ground loop on the PROFIBUS shield can cause the CPU to detect a memory parity error and enter STOP. Check the 24 V rail for ripple and the shield for single-point grounding.

Preventive Measures and Field Notes

Preventive Measures

  • Replace the backup battery on a fixed schedule: every 3 years for production machines, every 5 years for low-utilisation machines. Mark the replacement date on the cell.
  • Always use the HMI Save to Memory Card command, never the simple Download, when deploying a new PLC project.
  • Maintain a 6-monthly backup of the PLC project, the NC archive, and the drive parameters in a versioned repository.
  • Install a UPS on the NCU 24 V supply to avoid corruption from sudden mains loss.
  • Verify the rotary switch detents during every major service.
  • Train operators to perform the proper upload procedure from the documented service manual, not from improvised memory.

Field Notes

Two field patterns are common in 840D powerline service. The first is the "intermittent battery" — a battery that passes a quick multimeter check but fails to back the RAM because of a cracked internal tab or a holder that has lost spring tension. Always buy cells from a sealed package and prefer the original Siemens part number. The second is the "stale project on the card" — operators often keep an old backup on the card because it is easier than flashing a new one, and a power-down event reveals the staleness when the NC asks for the live project. The 7-segment 6, the red SF, and the red BF together are unambiguous: the PLC has nothing to run with at the moment it is asked to start. Reading the diagnostic buffer and confirming whether the Flash EPROM card holds a current project is the single highest-value diagnostic step.

Why does my Sinumerik 840D powerline PLC enter STOP with 7-segment display 6 after every power cycle?

Display 6 means the PLC CPU has lost its work memory or has been told to MRES. The most likely cause is that the PLC project was downloaded only to RAM and not to the Flash EPROM card, or that the backup battery is not actually supplying current to back up the RAM. Re-upload the project with the "Save to Memory Card" option and verify the loaded battery voltage under a 100 µA load.

What do the SF and BF red LEDs indicate together on a 840D powerline?

SF (System Fault) red means the CPU has an internal diagnostic event — most often a memory, battery, or module fault. BF (Bus Fault) red is expected while the PLC is in STOP because the PROFIBUS master has not started. Bring the PLC to RUN by uploading a valid project; the BF LED should clear on its own. If the BF LED stays red after RUN, the PROFIBUS network itself has a fault.

What is the correct position for the S2 and S3 rotary switches on a 840D powerline NCU?

Both switches must be in position 0 for normal operation. S2 controls the PLC mode (0 = RUN, 1 = STOP, 2 = MRES). S3 controls the NC mode. If S2 is left in position 2, every power-up will reset the PLC memory. Visually confirm the detent and cycle the switch through all positions with the power off to clean the contacts.

How do I write the PLC project to the Flash card and not just to RAM?

From the HMI service menu, select the option that includes the memory card, or from STEP 7 use the menu "PLC > Save to Memory Card". A plain "Download to Target System" only writes to work memory. Without a "Save to Memory Card" action, the project is lost at the next power cycle.

Is a new battery guaranteed to fix the PLC STOP after power cycle?

No. A new battery is necessary but not sufficient. The PLC must also have a valid project in load memory (the Flash EPROM card) and the S2 switch must be in position 0. Verify the battery under load, verify the card contents on a PG, and verify the switch detent before concluding that the battery is the only issue.

Back to blog