Troubleshooting
Why a CPU 1508S F stays out of RUN after power on
Short answer
An access level cannot hold a CPU 1508S F in STOP after power on. The mode is decided by the downloaded Startup after POWER ON setting, by the startup comparison and the distributed I/O wait time, and by whether the software controller runtime starts with the IPC. Set Warm restart - RUN, download the hardware configuration, and set the I/O wait above the slowest device's ready time.
On this page
- Why the access level cannot be the cause
- Read the diagnostic buffer after a power cycle
- The setting that decides the mode after POWER ON
- Startup conditions that return the CPU to STOP
- Sizing the parameter assignment time for a device ready at 45 s
- Start the software controller runtime with the IPC
- End-to-end verification
- Decision for each symptom
- Questions asked
A CPU 1508S F on an industrial PC that sits in STOP after every power on, while the manual switch to RUN succeeds every time, does not have an access-level problem. The mode after power on is decided by three things, in this order: the Startup after POWER ON setting held in the downloaded hardware configuration, the startup conditions the CPU checks before it leaves STARTUP, and whether the software controller runtime launches automatically with the IPC's operating system. Protection settings govern what an engineering station may do online; they take no part in the CPU's own power-up. Work through the checks below in order, and expect each one to pass before you move to the next.
Why the access level cannot be the cause #
Protection & Security → Access level in the CPU properties controls which online operations a remote engineering station may perform without a password: read, write, load, change the operating mode. The CPU leaves STOP at power on by its own internal logic, before any station is connected, so no access level, the most restrictive one included, can hold it back. The fact that the manual switch to RUN succeeds proves the opposite of what the Full access experiments assumed: the CPU accepts mode commands from the station exactly as its protection setting allows. Raising the level on a CPU that runs an F safety program only widens what any station that reaches it may do, so set the access level back to what your security concept requires and leave it there.
Check: with the access level your security concept requires, the manual switch to RUN still succeeds. Expected: yes. That confirms the fault sits in the startup path, not in a blocked mode change.
Read the diagnostic buffer after a power cycle #
The diagnostic buffer records every operating-mode transition with a time stamp and a cause. Open Online & diagnostics → Diagnostics → Diagnostic buffer online in the engineering station, power-cycle the IPC, and refresh the view. The entries around the power-on moment identify your cause:
- No startup entry at all: the CPU object never ran its power-up logic, because the runtime did not launch. Go straight to the runtime autostart check.
- Startup begins, then a module or comparison entry, then STOP: a startup condition failed. Either the installed hardware did not match the configured one, or distributed I/O was not ready within the wait time. Read which module the entry names.
- A stop entry from the user program or an earlier fault: something requested STOP, and the startup path is not the cause. Chase the requesting source instead.
If the time-of-day looks wrong after the power loss, read the event order, not the clock. Keep the buffer open: its time stamps are the input for sizing the I/O wait time below.
The setting that decides the mode after POWER ON #
In the CPU properties under Startup, the Startup after POWER ON setting defines what happens at the next power on:
- No restart: the CPU stays in STOP at every power on.
- Warm restart - RUN: the CPU runs a warm restart and goes to RUN.
- Warm restart - operating mode before POWER OFF: the CPU returns to the mode it held before the power loss. A CPU that was in STOP when power failed comes back in STOP, by design.
That third option explains many apparently broken auto-starts: the plant was stopped for maintenance when power was cut, so the CPU faithfully reproduces the STOP at every power on while the setting still looks like an auto-start in the project.
The setting is part of the hardware configuration and takes effect only after you download the hardware configuration to the CPU; editing it offline and downloading only the software blocks leaves the old value active. Compile and download the hardware configuration, and the safety program too if its data changed, then confirm with the online/offline comparison that the displayed startup setting is Warm restart - RUN.
A warm restart initializes the process image and all non-retentive data, so runtime-written setpoints do not survive one; a readback routine that recovers setpoints lost on a CPU restart is worth having in place before you enable an unattended start.
One safety note: with automatic RUN enabled, the CPU goes to RUN unattended after every power interruption, and a peripheral can hold an output high across a warm restart, exactly the failure documented for an IM-151-8 PN output that stays high after a warm restart. Confirm that the process and the safety concept allow an unattended start before you enable it.
Check: the online/offline comparison reports no difference and shows Warm restart - RUN. Expected: yes.
Startup conditions that return the CPU to STOP #
Two startup parameters keep a correctly downloaded CPU out of RUN when the station is not ready. Comparison preset to actual configuration defines what the CPU does when the installed hardware differs from the configured one; on the strict option, start only if compatible, one module that is configured but absent, or configured but not yet ready during startup, fails the comparison and the CPU ends the startup in STOP. The parameter assignment time for distributed I/O sets how long the CPU waits for the PROFINET devices to boot and take their parameters; when that time elapses with a device still missing, the same comparison failure follows.
This is why the manual switch works every time. When an operator commands RUN by hand, seconds to minutes have passed since power on: every device has booted, the configuration matches, and both conditions pass. At power on, the IPC and its distributed I/O often come up together, and the slowest device is still down when the CPU's patience runs out. Read the failing module from the buffer entry, then fix the timing: extend the parameter assignment time past the slowest device's ready time. Loosening the comparison so the CPU starts even when the hardware differs is a design decision for the process and safety engineers; on an F-system, defined module presence is normally not negotiable.
Check: power-cycle with the distributed I/O powered at the same instant as the IPC and read the buffer. Expected: startup begins, then RUN, with no comparison or I/O entry in between.
Sizing the parameter assignment time for a device ready at 45 s #
Example case: the CPU from this fault, with a PROFINET field device group that powers up together with the IPC. Both inputs below are example readings; take yours from your own station before you change anything.
- Current parameter assignment time: 30 s, read in the CPU properties under Startup.
- Slowest device ready time: 45 s, from the diagnostic buffer time stamps between the power-on entry and the last module-ready entry.
The rule in words: the CPU leaves STARTUP when all distributed I/O has taken its parameters or when the parameter assignment time elapses, whichever comes first, so the time must be greater than the slowest device's ready time for an unattended start to succeed.
The arithmetic: 45 s - 30 s = 15 s shortfall. The wait elapses 15 s before the last device is ready, the strict comparison fails on the missing device, and the startup ends in STOP.
Set the parameter assignment time above the device's ready time; the example sets 60 s, which leaves 60 s - 45 s = 15 s of margin for a device that boots slower on a cold morning. Result: the wait covers the slowest device with margin to spare. The decision threshold is simply this: with a device ready at 45 s, anything above 45 s works and 60 s is a sound choice; if your measured ready time is below the configured wait, this parameter was never your fault. Re-run the power-cycle check from the previous section with the I/O powered at the same instant as the IPC.
Start the software controller runtime with the IPC #
The CPU 1508S F is a software controller: the runtime is a program on the IPC, and the CPU's power-up logic runs only when that program launches. If the runtime starts after a user logs in, or is started by hand from the desktop, the CPU's power-on moment is whenever the runtime happens to start, and with nobody logged in nothing starts at all.
Verify in your installed software controller version's service or autostart configuration that the runtime launches with the operating system, before any login; the option names and their location differ between versions, so use the documentation for your exact version. When the runtime is installed or moved, follow the installation guide for an S7-1500 software controller on an approved IPC.
Keep the runtime installation on a persistent local drive, and shut Windows down normally: a runtime that was last left in STOP, combined with the operating-mode-before-POWER-OFF setting, comes back in STOP by design. If the IPC itself fails to power back on after a Windows shutdown, the case where the power switch has to be cycled, fix that first, because the CPU startup can only run on a machine that switches on.
Check: cold-boot the IPC with no user logged in. Expected: the runtime process running and the CPU reachable online before any operator action.
End-to-end verification #
- Download the hardware configuration with Warm restart - RUN and confirm the online/offline comparison reports no difference.
- Shut Windows down normally, remove power, wait until the IPC is fully off, and restore power without touching the engineering station. Expected: the CPU run indicator shows RUN with no manual command.
- Open the diagnostic buffer. Expected: a startup entry followed by the transition to RUN, with no comparison or I/O entries between them.
- Repeat the cycle once with the distributed I/O powered at the same instant as the IPC, then with the I/O powered several seconds later. Expected: RUN both times, which proves the wait time covers the slowest device.
- Interrupt power without a shutdown and restore it. Expected: RUN again, and no F-system or retentive-data diagnostics that stop the CPU.
Decision for each symptom #
- Buffer shows no startup entry at power on: the runtime did not launch with the operating system. Fix the runtime autostart; the CPU settings were never the problem.
- Buffer shows startup begin, then a comparison or I/O entry, then STOP: the wait time is shorter than the slowest device's ready time, or the strict comparison failed on hardware absent at power on. Extend the wait time as in the worked example; change the comparison only as a documented design decision.
- Online/offline comparison still shows the startup setting differs: the hardware configuration was not downloaded. Compile and download it, not just the software.
- Every test passes and the CPU still sits in STOP after the next power cut: the CPU was in STOP when power failed, under Warm restart - operating mode before POWER OFF. Switch the setting to Warm restart - RUN and download the hardware configuration again.
None of these paths touches the access level. Once the automatic start is proven, put the protection setting back where your security concept keeps it.
Questions asked
Where does a CPU 1508S F keep retentive data across a power failure?
The software controller documentation gives two places for retentive data: the IPC's mass storage or the CPU's onboard NVRAM, used when the CPU is stopped or a power failure occurs. Keep the runtime installation on a persistent local drive and do not move it between drives, so a startup after a power loss never begins from inconsistent retentive data.
How do I deliberately keep the CPU out of RUN after a power on?
The CPU documentation is explicit: automatic startup after a power-on is reliably prevented only while the STOP control stays pressed. A CPU observed in STOP once is not being held by anything; the next power cycle follows the downloaded Startup after POWER ON setting. Plan a deliberate stop as an active hold, never as a one-time switch action.
The diagnostic buffer shows nothing from the power-on moment. What does that mean?
It means the CPU object never came up: no runtime, no startup logic. Before touching any CPU setting, confirm in the IPC's Windows event logs that the runtime service launched at boot, and check the runtime's own service state. When the runtime starts reliably with the operating system, the power-on entries appear in the buffer and the CPU settings become readable evidence.
What comes up first on the IPC: Windows, the runtime, or the CPU?
Windows boots first, the software controller runtime launches as part of Windows, and only then does the CPU run the startup defined in its downloaded configuration. The IPC's power supply switching on is not the CPU's power-on moment; the runtime's launch is. Time every automatic-start test from the runtime launch onward, not from the moment power reaches the machine.


