IMDHMIControls LibraryShop main store

Troubleshooting

Fix the S7-300 event 16#38CB startup rack failure

PLC programming Published 7 min read By IMDHMI controls team

Short answer

Event 16#38CB is an OB86 rack-failure diagnostic recorded when a configured PROFINET station answers wrongly at startup. In this failure the four G120 drives connect and BF clears, but the CPU still holds a station diagnostic, so SF stays on until the drive identity is corrected. Read the buffer, verify each drive one at a time, add OB86 logic, and never suppress the event with SFC39 or SFC40.

On this page
  1. What event 16#38CB tells you
  2. Why BF clears while SF stays on
  3. Diagnose the failing station
  4. Match the device name, the IP address and the telegram
  5. Set the ready-monitoring time from a measurement
  6. Give OB86 logic instead of disabling the event
  7. Verify with a full simultaneous power-up
  8. Questions asked

Event 16#38CB in an S7-300 diagnostic buffer is a rack-failure entry reported through OB86, and it is not a fault you can switch off. In a panel with this symptom, four G120 drives finish booting on PROFINET, every BF LED goes out, and the CPU still holds the SF LED on with the entry sitting in its buffer. The fix combines network identity and program handling: read the buffer before anything else, verify each drive's PROFINET device name and IP address one isolated drive at a time, match the telegram on both sides, and give OB86 logic that records the failure and the return. Cycling the mode selector from STOP to RUN clears the LED only because it re-tests with the drives already booted, and SFC39 or SFC40 would hide the event without repairing anything.

What event 16#38CB tells you #

OB86 is the rack-failure organization block of the S7-300. When a configured PROFINET station is missing, drops out, or fails during startup, the CPU writes an event into the diagnostic buffer and calls OB86 with start information that names the affected station; 16#38CB is that startup station failure. Read the buffer before you touch the mode selector, because every mode change adds its own entries and buries the original one.

Go online, open the diagnostic buffer, and select that entry. Note its timestamp, the station address it reports, and whether a return entry follows it later in the buffer. A failure followed by a return describes a station that came up late or blipped once; a failure with no return describes a station the CPU still considers missing. Either way, the entry names the station to inspect first.

Why BF clears while SF stays on #

BF and SF answer different questions. BF reports the state of PROFINET communication: it flashes while the IO controller searches for its configured stations and the drives boot, and it goes out once cyclic data flows with all of them. SF reports that a system diagnostic is current in the CPU. This panel ends startup with both statements true at once, so BF is off while SF is on: communication is up with all four drives, and the 16#38CB diagnostic is still held.

That combination is also why the STOP-to-RUN trick works. The restart reruns the station check while every drive is already powered and named, so every configured station answers immediately, no new failure is recorded, and the diagnostic state comes up clean. The panel now passes a test it failed cold, which confirms a startup condition and changes nothing about its cause.

Diagnose the failing station #

Work down the sequence in order: the first three steps read the CPU, the last three touch the drives.

  1. Connect the programming device, go online, and open the diagnostic buffer. Write down the timestamp and the station address that the station-failure entry reports.
  2. Open the online hardware configuration and check every configured PROFINET node. A node that stays marked faulty while the BF LED is off is the first station to inspect.
  3. Open accessible nodes with all four drives interconnected. All four should appear. A drive carrying the wrong identity still appears here, so treat this step as a census, not as proof.
  4. Connect the programming device to one drive alone, isolated from the rest of the network, and read that drive's actual device name and IP address. Repeat for each of the four drives. Only an isolated read proves which physical drive carries which identity.
  5. Compare the telegram configured in the CPU's hardware configuration with the telegram actually set in each drive. A drive with the wrong telegram can join the cyclic exchange and still leave module diagnostics pending, which keeps SF on.
  6. Read parameter p2040, the drive-side communication monitoring time, in all four drives and compare the four values.

Steps 1 and 2 usually point at the station; steps 4 to 6 prove why it failed. If a drive drops its cyclic connection later in operation rather than at startup, that is a separate symptom, covered by why a PROFINET drive reports A08526 no cyclic connection.

Match the device name, the IP address and the telegram #

The IO controller identifies each configured station by its PROFINET device name and then assigns the configured IP address to the device carrying that name during startup. Every PROFINET device therefore needs a device name and an IP address, defined with STEP 7, and the address handout follows the name, not the cable position. A reachable drive with a misspelled name, a duplicated name, or another drive's name is not the configured station, however healthy its link looks. The same identity rule sits behind the case where ping succeeds but the PROFINET device is not found: reachability is not identity.

Make these decisions in this order: assign each drive the exact name configured for its physical position and check uniqueness across the four; check that every IP address is unique and belongs to the intended drive; align the drive-side telegram with the configured one; download whichever side changed, then re-read each drive's identity once more, one drive at a time.

Set the ready-monitoring time from a measurement #

The startup monitor for this check on the CPU 314C-2PN is the property "Ready message from modules". This panel had the default 60 s there, raised it to 65 s, and the SF condition stayed, which is the expected result once you put numbers on it.

Worked example with an illustrative measurement: power the panel cold and time the interval from power-on to the moment the last drive's BF LED goes out. Take 18 s as the measured value. The margin rule for boot delay is to set the ready-monitoring time to at least twice that interval: 2 × 18 s = 36 s. The panel's 65 s already leaves 65 s − 18 s = 47 s of margin, a factor of 65 ÷ 18 ≈ 3.6 over the measurement, so raising the value again only adds margin to a timer that never expires. The drives completed their search and BF went out inside the window; the entry records a wrong or missing station identity, which no ready-monitoring value can repair.

Decision: leave the ready-monitoring time at 65 s, or put back the 60 s default (still 42 s of margin on the measured example) once the identities are proven, and spend the effort on the device names.

Give OB86 logic instead of disabling the event #

An empty OB86 blocks the CPU stop on this event but records nothing, and this panel stayed in RUN with only SF lit, which shows OB86 already exists there — open the block and check what it holds.

OB86 gives the program a controlled place to react to the failure and to the return. It does not repair a wrong device name, an address conflict, a telegram mismatch, or a timeout, so pair it with the identity checks above. In the block, latch one "drive unavailable" bit per configured station, record the failure and the return as separate events — your own entries reach the diagnostic buffer through SFC WR_USMSG — and gate the drive's setpoints behind the latch until cyclic data is healthy again. Keep that gating active so a drive cannot restart under power the instant its station returns.

Illustrative OB86 logic; the variable names are this example's own, and OB86 and WR_USMSG are the documented identifiers:

VAR
    DriveUnavailable : ARRAY[1..4] OF BOOL := [FALSE, FALSE, FALSE, FALSE];
END_VAR
IF StationFailureIncoming THEN
    (* FailedStationNumber : INT, read from the OB86 start information *)
    DriveUnavailable[FailedStationNumber] := TRUE;
    (* write your own diagnostic-buffer entry here with SFC WR_USMSG *)
ELSIF StationFailureOutgoing THEN
    DriveUnavailable[FailedStationNumber] := FALSE; (* release only after cyclic data is healthy *)
END_IF;

SFC39 and SFC40 are the wrong tool. They switch the processing of these event OBs off and on again; neither reads a station, clears a diagnostic, or fixes a name. Using them to kill the SF indication leaves the machine running while the CPU believes a configured station has failed, which is exactly the state the entry reports.

Verify with a full simultaneous power-up #

The failing condition is a cold start of CPU and drives together, so test exactly that:

  • Power everything down together, then power everything up together. Do not verify with a STOP-to-RUN cycle, which skips the sequence that fails.
  • Expect BF to flash on the CPU and on the drives during the search, then go out on all of them.
  • Expect SF to stay off with no mode-selector intervention.
  • Expect the diagnostic buffer to show no new 16#38CB entry, or a failure entry followed cleanly by its return with no station or module diagnostic left active.
  • Run the full cold power-up a second time; the first clean start can be luck, the repeat is the result.

If any check fails, go back to the isolated per-drive identity read — that step is the one that finds a swapped name no online inspection will show.

Questions asked

Why does the SF LED stay lit after every BF LED goes out?

BF reports PROFINET communication only: it flashes while the controller searches for its configured stations and goes out once cyclic data flows with all of them. SF reports a system diagnostic in the CPU. In this panel the CPU still holds event 16#38CB, a station failure recorded during startup, so SF stays on although all four drives exchange data again.

Why does cycling the mode selector from STOP to RUN clear the SF LED?

The mode change reruns the CPU's station check while every drive is already booted, so all configured stations answer immediately, no new failure is recorded, and the diagnostic state comes up clean. The old 16#38CB entry stays in the buffer. The trick therefore proves nothing about the original startup fault and cannot be the operating procedure for the panel.

What is parameter 2040 in the G120 drives and which value should it have?

It is the drive-side communication monitoring time for the PROFINET connection. The default for a given drive version belongs in that drive's own parameter documentation, and this diagnosis compares the four drives against each other. Keep one identical value in all four drives and change it only with a measured reason, because a mismatched drive is the first suspect when exactly one station fails.

What happens if the program has no OB86 at all?

On an S7-300, a station failure with no OB86 in the program takes the CPU to STOP. The panel described stayed in RUN with only SF lit, which shows an OB86 already exists there, even if it is an empty block. Keep the block and fill it with logging and per-drive gating logic; an empty OB86 only prevents the STOP and records nothing.

Keep reading

  • Troubleshooting

    Why a replacement 331-7KF02 shows a red SF LED

    The solid red LED on a replacement 6ES7331-7KF02 is SF, the module's group fault. With the order number matching, no programming is needed — the CPU rewrites the stored parameters at every restart — so set each measuring range module letter to face the arrow marker on the housing (A for thermocouples) and read the CPU diagnostic buffer, which needs no program password.

    PLC programming

  • How-to

    What an S7-1200 upload recovers and what the IO devices need

    The documented upload of an S7-1200 recovers the CPU program and the controller-stored PROFINET configuration, including device names, IP addresses and module arrangements. It recovers nothing stored in the ten third-party IO devices: install each vendor's GSDML description separately and back up each device's own settings with its vendor tool, then verify byte counts and addresses online before building on the project.

    PLC programming

  • How-to

    Read DP slave diagnostic addresses with SFC51 on an S7-300

    SFC51 RDSYSST with SSL ID 0x00B4 selects a DP slave by its configured diagnostic address, and that address never comes from the 0x0092 station list: station numbers and diagnostic addresses live in separate addressing domains with no conversion between them. Read the address from the documented 0x00B status list family or from the hardware configuration, then call 0x00B4 once per address.

    PLC programming

Why the S7-315-2PN/DP 8-module limit stops at the central rack