Sinumerik 840D sl PLC Stopped: Recovering the S7-300 317F CPU With the S4 IBN Master Reset
Problem Overview
On a Sinumerik 840D sl system equipped with an S7-300 317F (fail-safe) PLC, the controller occasionally drops into a hard STOP condition where:
- The HMI (Sinumerik Operate / HMI Pro) loses every connection to the NCK and PLC and shows only the connection fault overlay.
- The NCU 7-segment display shows the Ready plus Stop LED combination (Stop LED flashing, no application cycle running).
- The PLC is unreachable from STEP 7 / TIA Portal over MPI, PROFIBUS, PROFINET, or the NCU routing channel.
- Even a direct laptop connection to the NCU service interface (X127) or to the PLC's PROFINET port (X150) does not bring the CPU back online.
- The PLC does respond to
ping 192.168.214.1(the default NCU/PLC PROFINET address on the 840D sl), confirming that the network interface and the embedded Ethernet switch are still alive, but the CPU's user program is not executing. - A full power off/on of the NCU line-up (NCU, PLC, HMI, drive line-up) does not clear the condition.
- The standard PLC reset / restart pushbutton path from the HMI (HMI softkey
PLC→Reset PLC) is acknowledged but has no effect.
When the controller reaches this state, the only field-proven recovery documented in this guide is a master reset of the 317F CPU using the IBN (commissioning) switch S4 on the front of the PLC, followed by download of the last good PLC.arc backup. The procedure below is taken from the Siemens 840D sl commissioning manual and the SIMATIC S7-300 installation manuals and is reproduced here in field-engineer order.
PLC.arc backup exists on the HMI's CFast/SD card or on a project archive before performing the sequence. Without a backup, the machine cannot be returned to service.Affected Hardware and Firmware
| Component | Typical catalog / order number | Notes |
|---|---|---|
| NCU 7x0.3 PN | 6FC5371-0AA30-0AA0 (NCU 720.3 PN) or 6FC5372-0AA30-0AA0 (NCU 730.3 PN) | Sinumerik 840D sl line-up, NCU software 4.x / 5.x typical |
| SIMATIC S7-300 CPU 317F-2 PN/DP | 6ES7317-2FK14-0AB0 (F-variant) or 6ES7317-2EK14-0AB0 (non-F) | Fail-safe CPU, integrated PROFINET and MPI/DP interfaces |
| F-Signal module SM 326F / ET 200S | 6ES7326-1BK02-0AB0 etc. | Distributed F-I/O over PROFINET |
| HMI (TCU / OP / PCU) | OP 010, OP 015, OP 019, TCU 30.3 | Sinumerik Operate on Linux / Windows |
| Drive line-up | SINAMICS S120 with CU320-2 PN / CU320-2 DP | Drives communicate with the NCU over PROFINET, not with the PLC |
The 317F CPU is the standard integrated PLC on 840D sl. It is a true SIMATIC controller with its own firmware (e.g., V3.3 for the 2FK14 / 2EK14 hardware), its own retain/load memory, and a separate IBN switch S4 on the front door. The PLC and NCK are tightly coupled over PROFINET but they are independent CPUs and can fail independently.
System Topology and Default IP Addressing
The 840D sl system bus on a 317F-based line-up is a single PROFINET segment with fixed default addresses. Knowing these is required to determine whether a "ping works but no STEP 7 connection" symptom is network or CPU related.
| Device | Default IP | Default subnet mask | Default PROFINET device name | Physical port |
|---|---|---|---|---|
| NCU | 192.168.214.1 | 255.255.255.0 | NCU | X150 (PN) on the NCU, also routed to integrated switch |
| PLC (317F PN port X1) | 192.168.214.241 | 255.255.255.0 | PN-IO | X1 on CPU (sometimes labelled X150 on the PLC side) |
| PLC (317F PN port X2) | 192.168.214.242 | 255.255.255.0 | PN-IO-2 (port 2 ring/2nd subnet) | X2 on CPU |
| HMI / TCU | 192.168.214.10 / .20 / .30 / .40 | 255.255.255.0 | assigned per slot | X127 (TCU ring) or service port |
| NCU service port (DHCP) | DHCP 169.254.x.x / 192.168.215.x | 255.255.255.0 | n/a | X127 on NCU |
Network reachability test: from a service laptop on the same subnet, run ping 192.168.214.1 (NCU) and ping 192.168.214.241 (PLC port X1). If only the NCU replies, the PLC's PROFINET stack is up but the CPU is not running user code. That is the signature of a CPU in STOP with a reachable PROFINET interface — a very common state on the 317F when the F-I/O watchdog trips or after a cold restart with a corrupted project.
Diagnostic Decision Tree
Before reaching for the IBN switch, walk through the following checks. They isolate the failure to a specific layer and prevent unnecessary master resets.
-
NCU 7-segment display — record the number and the dot. A continuous
6with a dot means the NCU is in boot; a steady0or blank means ready; a flashing value indicates a fault. Reference the NCU diagnostics manual to interpret the number. -
PLC LED pattern — on a 317F the front panel shows
SF(red, group fault),BF(red, bus fault),DC5V(green),FRCE(yellow, force active),RUN(green, CPU running),STOP(yellow, CPU in stop). In the failure described above,STOPis solid yellow,RUNis off, andSForBFmay be lit. - ICR / SIMATIC diagnostics buffer — if you can get online, the diagnostic buffer is the source of truth. If you cannot get online, this is exactly the case where the master reset applies.
- Ping test — from a service laptop on the system bus, ping the NCU and the PLC PN ports. The fact that ping works but STEP 7 cannot open a connection is the textbook symptom of a CPU in STOP with the PROFINET stack still alive.
-
NCU service interface (X127) and DHCP — connect a laptop to NCU port X127 with DHCP enabled. The NCU typically serves
169.254.200.200as a default. Use the Sinumerik sc command set or VNC to access the NCU shell and runshowto read the PLC state. -
VNC / WinSCP into the NCU — on the NCU side, the
plc_arcdirectory under/cardor/oemholds the lastPLC.arcarchive. If the file is timestamped and intact, the master reset procedure below is safe. -
Try online over X150 (PN port 1) — with a direct crossover cable from the laptop to the PLC's PROFINET port, assign the laptop a static IP in the
192.168.214.xrange (e.g.192.168.214.99mask255.255.255.0) and try to go online with STEP 7 over TCP/IP. If the CPU is truly in STOP and not crashed, this still fails — which is the trigger to escalate to the IBN switch reset.
Root Cause Analysis
The 840D sl PLC is a stock SIMATIC S7-300 CPU; it follows standard S7-300 stop behaviour. The most common root causes that produce the "ping works, no online, restart does not help" signature are:
| Root cause | Trigger | Diagnostic buffer entry |
|---|---|---|
| F-I/O discrepancy / PROFIsafe channel fault | Wire break on a fail-safe input, mismatched F-source/destination address, hot-swapped F-module without re-parameterization | "F-Peripheral fault", "PROFIsafe communication fault" |
| OB not loaded / OB85 / OB121 / OB122 | I/O access error or removed module without corresponding OB; the CPU goes to STOP because no error OB is configured | "OB not loaded", "I/O access error" |
| CRC / project corruption after power loss | Power removed during write of load memory, corrupted SIMATIC.0FF file |
"Flash error", "Memory card error" |
| F-CPU password forgotten / access-protected | CPU is online but password-protected after a security policy push | "Access to CPU protected" |
| PN device name mismatch | NCU or PLC was replaced; PROFINET device name does not match the configured topology | "Device name error", "PN-MRP ring open" |
| Watchdog / SF LED due to 24 V dip on F-I/O | Brown-out on a remote ET 200S station; PLC sees F-peripheral timeout | "Station failure", "F-WD timeout" |
A standard HMI-side Reset PLC and even a power-cycle will not recover a corrupted project or a password-locked CPU. The master reset clears the load memory and brings the CPU to a known-factory condition so that a fresh PLC.arc download can be performed.
Step-by-Step Master Reset Using IBN Switch S4
This is the field-proven recovery used on the 317F-2 PN/DP when the CPU is unreachable from STEP 7, no project will download, and the HMI cannot restart the PLC. The procedure is taken from the SIMATIC S7-300 CPU 31xC and CPU 31x installation manual and is reproduced in operator order.
-
Confirm that a PLC.arc backup exists. On the HMI, go to
Start-up → System data → Series start-upor on the NCU file system check/card/user/system/for a recentPLC.arc(or olderPLC_xx.arcseries-archive set). Without this file, do not proceed with the master reset.Tip: copy the entire/cardtree to a USB stick before continuing, so the current state of the NCU can be examined later if the recovery is unsuccessful. -
Open the PLC front door on the 317F. Locate the four-position IBN switch S4. The positions are
0(RUN),1(RUN-P),2(STOP), and3(MRES — master reset). The same switch on the 317F is also sometimes labelled with the F-variant's mode selector symbols, but the positions are identical. - Set S4 to position "2" (STOP). The yellow PS (Power Supply / Status) LED on the PLC will light up. Wait for at least one second; the CPU is now definitively in STOP regardless of the previous state.
- Set S4 to position "3" (MRES) and hold for 3 seconds. The PS LED will go out briefly and then come back on. The 3-second hold arms the master-reset state machine. Releasing before 3 seconds cancels the procedure.
-
Within 3 seconds of the PS LED coming back on, perform the toggle sequence:
- Move S4 from "3" to "2".
- Move S4 from "2" back to "3".
- Move S4 from "3" back to "2".
- Wait for the PS LED to be steady on (not flashing). The CPU is now in factory condition. The load memory is empty and the diagnostic buffer is reset.
- Set S4 to position "0" (RUN). At this point the CPU will start in a clean state and will sit in STOP because there is no project loaded.
Post-Reset: Reconnect and Download the Project
-
Confirm laptop connectivity. Connect a service laptop directly to the PLC's PROFINET port X1 (X150) with a static IP in the 192.168.214.x range, for example
192.168.214.99mask255.255.255.0. Verify thatping 192.168.214.241now replies promptly. On a freshly-master-reset CPU, the PN port will still respond to ICMP because the PROFINET stack is up; STEP 7 will now be able to open a TCP connection because the CPU is no longer in a partial-startup deadlock. -
Open STEP 7 (Classic) or TIA Portal with the project that matches the machine, or open the saved
PLC.arcfrom the HMI. In STEP 7, the project file is typically*.s7p; in TIA Portal it is a.ap15/.ap16project archive. -
Go online via TCP/IP to the PLC's IP 192.168.214.241. The master-reset CPU has default empty access protection, so you should be prompted for no password. If the CPU does still prompt, enter the project password that matches the
PLC.arcarchive — do not skip the prompt by entering a wrong password repeatedly or the CPU may temporarily lock. -
Perform a full download (not delta). In STEP 7 this is
PLC → Download to Target System → Hardware and Software (entire project). The download will reset the CPU, write load memory, and restart the CPU. - Wait for the PLC to reach RUN. The RUN LED will come on steady green; STOP LED will be off; SF and BF should be off. If SF is lit, read the diagnostic buffer — typically a PROFIsafe address mismatch that must be re-acknowledged in the Safety Administration Editor.
-
Re-acknowledge the F-signature (F-CPU only). In STEP 7 open
Safety → F-Configuration → F-Signatureand accept the compiled F-signature. The F-CPU will then enter productive F-mode. If the machine is a non-F variant (317F-2 PN/DP non-F) this step is not required. -
Verify NCK-PLC hand-shake on the HMI. On the HMI, open
Diagnostics → Bus Diagnosticsand confirm that the NCK, PLC, and drive objects all show active. The HMI overlay connection fault should clear on the next polling cycle.
Verification Checklist
| Check | Method | Expected result |
|---|---|---|
| PLC RUN LED | Visual on the 317F front | Steady green, STOP off |
| NCU 7-segment | Visual on NCU front | Steady 0 (or as per the machine's idling display), no Stop-LED on PLC |
| HMI alarm bar | Visual on Sinumerik Operate | No "NCK connection", "PLC connection", or "Drive connection" faults |
| STEP 7 online | Online → Monitor/Modify | Variable monitor shows live process data, not all zeros or frozen values |
| PROFIsafe status | Safety Administration Editor, F-status word | F-CPU in RUN, F-I/O in passivation cleared |
| Drive enable | Operator panel → enable | All axes able to be moved in JOG |
| F-I/O feedback | Force table or VAT | Safe door, e-stop, light curtain feedback all updating |
Troubleshooting Matrix
| Symptom | Likely cause | Action |
|---|---|---|
| Ping to 192.168.214.1 OK, ping to .241 OK, no STEP 7 online | CPU in STOP, project present but stalled | HMI PLC reset → if no effect, master reset as above |
| Ping to .1 OK, ping to .241 fails | PLC PROFINET stack down or wrong port | Verify cable on X1, check PN device name on the CPU |
| NCU shows 6 (boot) and never leaves it | NCU firmware / CFast card issue, not the PLC | Refer to NCU-specific recovery; do not touch PLC S4 |
| Master reset PS LED does not blink at 2 Hz | Toggle sequence too slow or wrong starting position | Return to step 3 and repeat; ensure S4 is in "2" before the toggle |
| After download, SF LED is on | PROFIsafe signature mismatch | Recompile F-signature and acknowledge in Safety Admin |
| After download, BF LED blinks | PROFINET device name or topology mismatch | Assign device name with Topology Editor or PRONETA |
| After download, PLC goes to STOP again within seconds | OB for the fault not loaded (OB85/OB121/OB122) | Add the relevant OB to the project and re-download |
Preventive Practices
-
Series commissioning archive (Reihen-Inbetriebnahme). On 840D sl, configure a series start-up in the HMI's start-up area so that a numbered set of
PLC_xx.arcfiles is kept automatically with each NCU backup. This is the single most valuable preventive measure for any PLC-related recovery on this platform. - Mandatory F-I/O acknowledgement procedure. Document the F-signature workflow for the specific machine. A master reset always invalidates the F-signature, and the recovery should be rehearsed in cold-state so the on-call engineer does not need to debug Safety Administration under production pressure.
- Diagnostic buffer export to USB. After every PLC STOP event, export the diagnostic buffer to USB before resetting. The buffer is the only way to determine whether the root cause is a F-peripheral fault, OB85, or corrupted project — all of which require different corrective actions after the master reset.
- UPS on the 24 V supply. Many PLC STOP events on 317F-based 840D sl systems are caused by brown-out on the 24 V supply feeding remote F-I/O stations. A small UPS on the 24 V distribution prevents the watchdog from triggering.
Related Siemens Documentation
- SIMATIC S7-300 CPU 31xC and CPU 31x: Installation manual — contains the canonical S4 MRES sequence and timing.
- SINUMERIK 840D sl Operator Components and Networking Manual — default IP plan and PROFINET device names for the NCU/PLC/TCU.
- SINUMERIK 840D sl Commissioning Manual, NC part — NCU boot / 7-segment diagnostics.
- SINUMERIK 840D sl Commissioning Manual, PLC part — PLC.arc backup and series start-up procedure.
- SIMATIC S7 F-CPU Programming and Operating Manual — F-signature workflow after a master reset.
FAQ
What does the PS LED do during a successful S4 master reset on a 317F?
The PS LED is on while S4 is in "2" (STOP), goes out briefly and comes back on when S4 is held at "3" for 3 s, then blinks at 2 Hz during the triple-toggle, and finally shows a steady on when the reset has completed. If the LED does not behave in that exact sequence, the reset has not been accepted and you must return to step 3 of the procedure.
Why can I ping 192.168.214.241 but STEP 7 reports "connection to partner could not be established"?
The 317F's PROFINET interface and TCP/IP stack are powered and reachable even when the CPU is in STOP. STEP 7 requires the CPU's user-application layer to be running, so a CPU in STOP rejects S7 connections while still answering ICMP. This signature — ping OK, STEP 7 not — is the standard trigger for the S4 master reset described in this article.
Will the master reset delete the F-signature on a 317F-2 PN/DP?
Yes. The master reset wipes load memory including the F-signature and the F-configuration. After the subsequent PLC.arc download you must re-compile the F-signature in the Safety Administration Editor and acknowledge it in the F-CPU before the fail-safe I/O will passivate-clear and the machine can move axes.
What is the difference between the HMI "Reset PLC" and the S4 master reset?
The HMI Reset PLC performs a warm restart of the CPU — it stops, clears the process image, and re-runs the same project from load memory. The S4 master reset wipes the load memory entirely and leaves the CPU in a factory-fresh state, requiring a full project download. Use the HMI reset first; only escalate to S4 when the HMI reset has no effect and the diagnostic buffer is inaccessible.
Can I perform this procedure on a non-F S7-300 CPU 317-2 PN/DP that is in STOP?
Yes. The S4 IBN switch master reset is the same sequence on the 317, 317-2, 317T, 317F-2 and 317F-2 PN/DP variants. On a non-F CPU you can skip the F-signature re-acknowledgement step after the download, and the machine is ready to run as soon as the PLC reaches RUN and the drives are enabled.