Troubleshooting
Why a replacement 331-7KF02 shows a red SF LED
Short answer
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.
On this page
The solid red LED on your replacement 331-7KF02 is SF, the group fault: the module itself is reporting a condition, and a like-for-like replacement needs nothing programmed. When the order number configured in HW Config matches the card on the rail, the CPU re-pushes the stored parameters whenever it starts. That makes the prime suspect the one thing you changed by hand: the measuring range modules. You rotated them off the factory position to the thermocouple setting, and the trap is that the letter on each block must face the arrow marker on the housing, not the installer. Verify that first, then read the CPU diagnostic buffer, which needs no program password.
What the red SF LED is telling you #
On an S7-300 signal module the red LED is SF, the group fault indicator: the module has detected a condition it reports as a fault. The S7-300 module data manual narrows SF to this list:
- module fault
- internal fault
- external fault
- channel error present
- external auxiliary voltage missing
- front connector missing
- module not parameterized
- wrong parameters
The CPU logs the same event in its diagnostic buffer with the rack and slot number. The red LED is a diagnosis waiting to be read, not a wiring or program symptom you have to guess at.
What your evidence already rules out #
| Observation | Rules out | Leaves open |
|---|---|---|
| A 331-7KF02 from another machine reads temperature in the same slot | CPU, MMC program, HW configuration, backplane, front connector wiring, 24 V supply | Anything specific to the two new cards |
| Both new cards also stay red in a second machine with the same CPU type | This machine's wiring and slot | Range module setting, module version, defective cards |
| 24 V measured across pins 1 and 20 of the front connector | Supply missing at the connector | Supply that collapses under load, so re-measure with the card fitted |
| Range modules rotated by hand off the factory position | The factory setting as the cause | A rotation error: letter to the arrow, not to the installer |
| Other I/O on the new CPU runs normally | CPU RUN state and program execution | A module-specific parameter or diagnostic condition |
Two dead cards out of one batch is possible, but it is the last hypothesis, not the first. The rotation check and the label comparison cost nothing.
Set every measuring range module letter against the arrow #
The 6ES7331-7KF02-0AB0 measures voltage, current, resistance or thermocouple, and the input type is not set in software alone: each measuring range module, the small coded block at the side of the housing, must physically match the range configured for its channel group in HW Config. The blocks take four positions, A through D; thermocouple measurement is position A, and units leave the factory with the blocks at C, so every new card needs them turned before use.
The trap is in how you judge the position: the letter must face the arrow marker on the module housing. A block pressed in with the letter facing you reads as A from the front while sitting electrically at one of the other positions — a 180-degree flip looks right and is not.
Worked count, from the module documentation: the card has 8 channels in 4 groups, so one measuring range module sets 2 channels (8 ÷ 4 = 2). Your machine has 2 cards, so the full verification is 4 blocks × 2 cards = 8 settings, each judged by the letter at the arrow. One flipped block takes out its 2 channels; four flipped blocks take out all 8, and every group reports wrong parameters.
The rule behind it is not Siemens-specific — input hardware must match the sensor, the same way FX5U thermocouple readings need a dedicated TC input rather than a shared universal channel.
A matching order number needs no programming #
HW Config stores the configured order number for each slot, and the CPU compares it with the module that reports in. When the replacement carries the identical order number, the CPU writes the stored parameter record into the card at power-up and again at every STOP-to-RUN transition — no download, no project change, nothing for you to program into the card. A newer hardware or firmware version of the same order number normally still identifies as that number; a different suffix or family member does not, and shows up as a wrong-module entry instead. So compare the label on the working old card with the labels on the new ones, order number and hardware version, and read the versions in Module Information before concluding anything about the electronics.
Read the fault without the program password #
The password question has a clean answer: the protection level on the machine program restricts reading and changing blocks, not online diagnostics. The diagnostic buffer and module status are open to you.
- Connect with STEP 7 over MPI on port X1, on the left of the CPU 315-2DP, or over PROFIBUS. If the tooling itself is the open question, what STEP 7 is in a PLC project, and which one you need settles it.
- Open Accessible Nodes in SIMATIC Manager; the CPU appears with its MPI address.
- Go online, select the CPU, open Module Information and read the Diagnostic Buffer tab, beginning with the entries after the last power-up.
- In HW Config online, open Module Information for the 331 slot. The eight conditions listed above are the bits of diagnostic byte 0; confirm the bit layout in the module manual before decoding a raw value.
- Use Upload Station to PG to pull the configuration for reference, and download nothing: a CPU whose MMC holds the only good copy of the program keeps that copy until you have archived it.
Isolate it in the rack #
- Power the rack down first — S7-300 signal modules are not hot-swappable.
- Pull the front connector and remove one new card. Take out each of the four measuring range modules and refit it with the letter A facing the arrow marker on the housing. Repeat on the second card.
- Refit cards and connectors, power up, and watch SF as the CPU reaches RUN; the restart makes the card re-read its blocks and receive its parameters again.
- If SF stays red, run the slot swap with the power off: put the known-good card in the new card's slot and the new card where the good one ran. A fault that stays with the card is the card's condition; a fault that follows the slot is that slot's configuration or connector.
- Re-measure the 24 V at pins 1 and 20 with the card fitted, so the supply is checked under load rather than open-circuit.
The decision, case by case #
- SF clears after the blocks are refit letter-to-arrow: done. No download, no program change.
- The buffer shows module not parameterized or wrong parameters with the blocks verified: the configured order number and the card do not agree. For a repair on a running machine, fit the exact order number the configuration calls for rather than reworking the project.
- The buffer shows internal fault with the blocks verified and 24 V present under load: the card is defective; replace it, and the slot-swap result is your evidence.
- The buffer shows external auxiliary voltage missing: the 24 V feed to the front connector collapses under load; repair the feed, the card is fine.
- The fault follows the slot rather than the card: read that slot's diagnostics and reseat its front connector before touching any module.
In your case the evidence points hard at the rotation error: two new cards fail identically in two machines while a card nobody rotated runs in the same slots. Fix the arrows, power-cycle, and read the buffer only if anything is left.
Questions asked
Do I have to program a replacement 331-7KF02?
Not when the order number matches the one configured in HW Config. The CPU writes the stored parameter record into the card at power-up and at every STOP-to-RUN transition, so no download of any kind is needed. Only the physical measuring range modules have to match the configured ranges. A different suffix or family member is the exception: it reports as a wrong module and needs the exact part fitted or the configuration reworked.
Does reading the diagnostic buffer need the machine program password?
No. The protection level on the program restricts reading and changing blocks, not online diagnostics. Accessible Nodes, Module Information and the Diagnostic Buffer tab all work without it. The caution runs the other way: do not download anything to a CPU whose MMC holds the only good copy of the program until you have archived it, because a download overwrites what is on the card.
The range modules look set to A from the front. Why is the card still faulted?
Because the letter must face the arrow marker on the module housing, not the person installing it. A block pressed in with the letter toward you sits 180 degrees from where it appears, and its electrical position is one of the other three. Judge every block by the letter at the arrow, then power-cycle so the card re-reads the blocks and the CPU rewrites its parameters.
Can I swap the card with the rack powered up?
No. S7-300 signal modules are not hot-swappable. Power the rack down before pulling the front connector or the card; working live risks the card and the channels sharing its group.
Is it really two dead modules from one batch?
Unlikely, and it is the last thing to conclude. Both cards fail identically in two machines while a known-good card runs in the same slots, which points at something shared: the range module rotation or a version mismatch. Only an internal-fault diagnostic with verified blocks, a seated connector and 24 V present under load convicts the hardware.