Resolving SF LED on Siemens 6ES7331-7KF02-0AB0 Analog Input

David Krause15 min read
S7-300SiemensTroubleshooting
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

Resolving SF LED on Siemens 6ES7331-7KF02-0AB0 Analog Input

The SIMATIC S7-300 SM 331 analog input module 6ES7331-7KF02-0AB0 (AI 8 x 12 bit) is a high-density, group-isolated module that is widely deployed in S7-300 stations and in ET 200M distributed I/O behind an IM 153-1 interface module. Unlike the older 6ES7331-1KF02-0AB0 module it often replaces, the 7KF02 is divided into four independent channel groups, each requiring its own measuring range module setting and STEP 7 hardware configuration. A persistent SF (System Fault) LED after commissioning is almost always a result of one of three root causes: wrong measuring range module position, mismatch between the transducer type (2-wire vs. 4-wire) and the configuration, or an incompletely downloaded hardware configuration. This reference walks through the diagnostic logic, the part-number specific pinout, the measuring range module matrix, and the field-proven correction procedure.

Critical safety note: Always de-energize the backplane and the 24 V load supply before inserting, removing, or repositioning measuring range modules. Open the module door only after the SF and 24 V LEDs are off. Use a flat-blade screwdriver to slide each measuring range module; never use pliers because the white plastic carrier will crack and the contact spring will be lost inside the module housing.

1. Problem Statement

Field symptoms reported on a station composed of:

  • Main CPU: 6ES7 315-2AG10-0AB0 (CPU 315-2DP)
  • Distributed I/O head: 6ES7 153-1AA03-0XB0 (IM 153-1)
  • Original AI module: 6ES7331-1KF02-0AB0 (8 AI, 13 bit, single group)
  • Replacement AI module: 6ES7331-7KF02-0AB0 (8 AI, 12 bit, four groups)

After physically swapping the analog module and re-wiring the 24 V supply, compensation, and a 4–20 mA sensor, the SF LED on the 7KF02 stays lit. Disconnecting the sensor (open input) does not clear the fault, which indicates the SF is not solely a wire-break diagnostic. The downstream effect is that the IM 153-1 and the CPU 315-2DP also report SF, blocking any new hardware download via STEP 7 / SIMATIC Manager. The repair path is: (a) correct measuring range modules, (b) edit HW Config, (c) restore the PG/PC online link, (d) download hardware to the CPU.

2. Hardware Identification & Order Numbers

Component Order Number (MLFB) Role
SM 331 AI 8 x 12 bit 6ES7331-7KF02-0AB0 8 isolated AI channels, 4 groups, programmable per group
SM 331 AI 8 x 13 bit (predecessor) 6ES7331-1KF02-0AB0 8 AI, single group, NOT pin-compatible for configuration
IM 153-1 (used here) 6ES7 153-1AA03-0XB0 ET 200M head-end; max 8 or 12 slots depending on variant
CPU 315-2DP 6ES7 315-2AG10-0AB0 Master CPU with PROFIBUS-DP master interface
Front connector 6ES7392-1AJ00-0AA0 (20-pin screw) or 6ES7392-1AM00-0AA0 (spring) Required to land field wiring
Labeling strips 6ES7392-2XX00-0AA0 Optional channel labelling

Verify the exact variant by reading the MLFB on the side of the module. The "7KF02" suffix designates a group-configurable 8-channel module; the "1KF02" is the older single-group 8-channel variant and is not electrically or configuration-compatible. Mixing the two without re-engineering the STEP 7 project is the most common origin of the SF LED on a swap-out.

3. SM 331 AI 8x12 bit - Channel Group Architecture

The 7KF02 module divides its eight inputs into four groups of two channels each:

Group Channels Configurable as a single block
Group 0 AI 0, AI 1 Yes (must be identical measurement type)
Group 1 AI 2, AI 3 Yes
Group 2 AI 4, AI 5 Yes
Group 3 AI 6, AI 7 Yes

Each group is driven by its own measuring range module (a small white carrier with four black slider positions labeled A, B, C, D, E, F on the left side of the module housing). Both channels inside a group must be wired to the same kind of transducer and must be configured identically in HW Config. The factory default for measuring range modules is position D (4–20 mA, 2-wire transmitter).

6ES7331-7KF02-0AB0 - Side View (Door Open) MRM A (Group 0) MRM B (Group 1) MRM C (Group 2) MRM D A: ±5 V voltage B: 0…10 V / 1…5 V C: 4-wire, 4…20 mA D: 2-wire 4…20 mA E: TC types T/U/E/J/K/N/R/S F: Pt100 / Pt1000 / Ni100 / resistance

4. Measuring Range Module Position Matrix

The 7KF02 is fundamentally a multi-range module. The measuring range module acts as a hardware "key" - if its position does not match what the STEP 7 hardware configuration says it should be, the module sets SF. The complete position matrix is:

Position Measurement Type Range Channel Configuration in STEP 7
A Voltage ±5 V U (voltage) / ±5 V
B Voltage 0…10 V, 1…5 V, ±10 V U (voltage) / 0…10 V (or 1…5 V)
C Current, 4-wire 4…20 mA, 0…20 mA, ±20 mA I (current) / 4…20 mA, 4-wire
D Current, 2-wire 4…20 mA I (current) / 4…20 mA, 2-wire
E Thermocouple Types T, U, E, J, K, N, R, S TC type x
F RTD / Resistance Pt100, Pt200, Pt500, Pt1000, Ni100, Ni1000, 150 / 300 / 600 Ω RTD / resistance x

For a 4–20 mA 2-wire transmitter the slider must be in D. For a 4-wire (externally powered) 4–20 mA transmitter the slider must be in C. The difference is not just electrical - in position D the module sources the 24 V loop supply through pin 20, while in position C the loop must be powered externally and the module behaves as a passive current sink on the measurement terminals.

Configuration rule of thumb: The HW Config "Measuring type" drop-down must read 4-wire for position C and 2-wire for position D. If the dropdown says 2-wire but the slider is in C (or vice versa), the module raises SF. There is no firmware override for this - the module reads the slider via mechanical encoder and cross-checks it against the SDB loaded by STEP 7.

5. Two-Wire vs. Four-Wire Transducer Wiring

A 2-wire transmitter receives its loop power from the analog module itself. Only two wires run from the field: the +24 V supply is sourced on pin 20 (or its per-group equivalent) and the current loop returns on the channel input terminal. Total loop voltage drop budget is typically 18 V (transducer drop) + line drop; the module's internal supply compensates.

A 4-wire transmitter has a separate pair of power wires (commonly brown +24 V / blue 0 V) and a separate signal pair (signal + / signal -) that the AI module reads passively. The module must NOT source loop voltage on pin 20 for a 4-wire device; if it does, the readings will be wrong and the module will detect the configuration mismatch and raise SF.

Front connector pinout for the 6ES7331-7KF02-0AB0 (20-pin version), 4–20 mA 2-wire example on Group 0:

Pin Signal Function in 2-wire Mode (Pos D)
1 AI 0+ / M0+ Channel 0 signal in / loop return
2 AI 0- Channel 0 ground (internally tied to ManA)
3 AI 1+ / M1+ Channel 1 signal in / loop return
4 AI 1- Channel 1 ground
5…16 AI 2…7 Other groups
17, 18, 19 ManA (Mana) Ground reference, internally bonded
20 +24 V sensor supply (V+) Loop supply for 2-wire transmitters on Group 0 (channels 0, 1)

For 4-wire mode, pin 20 is unused; the sensor is powered from an external DIN-rail 24 V supply, and only the signal pair is connected to the channel input pins.

Common wiring error: A 4-wire transducer is often mistakenly wired to pin 20 because its only two visible wires look like a 2-wire loop. The third (ground) and fourth (sensor 24 V) wires are inside the cable harness, not on the front connector. Always confirm by tracing the transmitter's supply origin back to the cabinet terminals, not by counting wires at the field end.

6. SF LED - Diagnostic Decode

The SF LED on SM 331 indicates a module-internal diagnostic event, which is mirrored in the diagnostic buffer of the CPU and in the module diagnostic record (DS0/DS1). Typical 7KF02 diagnostic events that drive SF include:

Diagnostic Byte (DS0/DS1) Meaning Common Root Cause
0x01 (Module fault) Internal module error Measuring range module missing or in intermediate position
0x02 (External fault) Wire break / sensor supply Loop current < ~3.6 mA, or pin 20 not supplying
0x04 (Channel fault) Configuration mismatch HW Config range ≠ measuring range module position
0x06 (Wire break) Channel reports < 3.6 mA Open input on a 4–20 mA channel
0x07 (Upper limit exceeded) Over-range Field current > 22.8 mA (overflow)
0x08 (Lower limit exceeded) Under-range Field current < 0 mA (negative or open)

To read these on-line, open the S7 project in STEP 7 / SIMATIC Manager, go online to the CPU, and use PLC → Module Information on the 7KF02 slot. The Diagnostic Buffer tab and the IO Device / Module Diagnostic tab contain the exact channel-level event and timestamp.

7. Step-by-Step Troubleshooting Procedure

7.1 Restore the Online Link

  1. De-energize the ET 200M station.
  2. Physically remove the 7KF02 from the rail.
  3. Power the IM 153-1 / CPU only - this should clear the cascading SF on the IM and CPU.
  4. Confirm online connection between PG and CPU 315-2DP. If the CPU still has SF, see the S7-300 CPU diagnostic buffer FAQ.

7.2 Verify Measuring Range Module Positions

  1. Open the front door of the 7KF02.
  2. Locate the four measuring range module carriers on the left side.
  3. For each used channel group, slide the carrier to the correct position:
    • 2-wire 4–20 mA transmitter → Position D
    • 4-wire 4–20 mA transmitter → Position C
  4. For unused groups, either leave at factory D and disable in HW Config, or cover with the dummy carrier so no floating diagnostic appears.

7.3 Verify Field Wiring

  1. Trace the field device power supply origin:
  • If the only conductor pair leaving the cabinet is connected to the AI terminal block, it is a 2-wire loop and pin 20 must be the supply.
  • If the device has a separate M12 or terminal block for 24 V and a second pair for signal, it is 4-wire and pin 20 is unused.
  1. With the module de-energized, measure on the front connector:
  • Pin 20 against ManA (17/18/19): must read +24 V (when the module is back in and energized) for 2-wire groups.
  • Channel input pin against ManA: must read a current loop of 4…20 mA when a transmitter is connected (use a loop calibrator in series).

7.4 Edit STEP 7 Hardware Configuration

  1. Open SIMATIC Manager and double-click Hardware.
  2. Locate slot for the 7KF02 in the IM 153-1 rack. If the project still references the 1KF02, replace the order number 6ES7331-1KF02-0AB0 with 6ES7331-7KF02-0AB0 in the catalog.
  3. Double-click the module to open its properties. For each group:
  • Set Measurement type = I (current)
  • Set Measurement range = 4…20 mA
  • Set 2-/4-wire = 2-wire (Position D) or 4-wire (Position C) to match the slider
  1. Set the integration time / interference frequency (60 Hz / 50 Hz) to the local mains frequency to maximize noise rejection.
  2. Enable the Diagnostics checkbox for each group you want to monitor (wire break, overflow).
  3. Save and compile (Station → Save and Compile).

7.5 Download Hardware to the CPU

  1. Go online: PLC → Download to Target with the target CPU set to 315-2DP/AG10.
  2. Confirm the prompt that the system will go to STOP during download.
  3. After download completes, place the CPU in RUN.
  4. Insert the 7KF02 into the slot and observe the LED status. SF should extinguish within a few seconds once the module completes its self-test against the loaded SDB.
Cascading SF on IM 153-1 and CPU: If both the IM 153-1 and the CPU show SF, this is expected - the IM 153-1 propagates a station fault upward. Once the 7KF02 stops reporting diagnostics, the IM and CPU clear their SF automatically on the next DP cycle. Manual diagnostic buffer acknowledge is not required for a clearable hardware fault; acknowledge is only required for non-resettable diagnostic events.

8. Verification & Commissioning Tests

After the SF LED extinguishes, perform the following to verify the repair is complete and the process values are valid:

  1. Module Status Read: In STEP 7 online, double-click the 7KF02 in HW Config and read the module status. All four groups should report "OK" and the diagnostic byte should be 0x00.
  2. Wire-break test: Disconnect the field transmitter and confirm the corresponding diagnostic bit in the I/O area toggles, the input value falls to 0, and the SF LED remains OFF (only the wire-break diagnostic is reported, not a hard SF). If SF returns on wire break, the "Diagnostics - Wire break" checkbox is enabled in HW Config and the channel is configured correctly.
  3. Loop current verification: Inject 4.000 mA, 12.000 mA, and 20.000 mA with a calibrator. The engineering value in the PA field of the input word (PIW) should read the corresponding linearized value per the configured scale (default 0–27648 for 4–20 mA on S7-300).
  4. Channel group consistency check: Verify both channels in each configured group report identical measurement type and range in the HW Config. The 7KF02 rejects an SDB that contains different ranges within a group and raises a "parameter assignment error" diagnostic (0x04 channel fault).

9. Diagnostic Buffer Analysis - Sample Event Trace

A typical event sequence during the fault scenario from the original case study:

12:01:04.123  CPU 315-2DP  Distributed I/O fault - station failure
              IM 153-1 (6ES7 153-1AA03-0XB0)  PROFIBUS DP slave diagnostics
12:01:04.218  SM 331 (6ES7331-7KF02-0AB0)  Module fault - parameter error
              Group 0: configuration "2-wire" but measuring range module = C
12:01:04.240  CPU 315-2DP  STOP due to distributed I/O fault
12:14:11.020  CPU 315-2DP  Hardware reconfiguration downloaded (target = RUN)
12:14:14.450  SM 331 (6ES7331-7KF02-0AB0)  Module OK - all groups operational
12:14:14.456  IM 153-1                    Station OK
12:14:14.460  CPU 315-2DP  RUN

The exact diagnostic events depend on the STEP 7 version and the IM 153-1 firmware. With IM 153-1AA03 firmware ≥ V3.x and STEP 7 V5.4 SP5 or later, the parameter mismatch is also surfaced in the DP slave diagnostic buffer in addition to the module's own SF. The CPU may remain in RUN if the module's diagnostic class is configured as "non-disabling" in HW Config, but a fresh swap-in of a different MLFB (1KF02 → 7KF02) will by default be a "disabling" diagnostic and forces the CPU to STOP until the configuration is corrected and downloaded.

10. Wire-Break Behavior and 4-20 mA Diagnostic Limits

The 4–20 mA current range has well-defined diagnostic thresholds set by the S7-300 analog subsystem:

Condition Field Current Module Reaction
Normal operation 4.000 mA ≤ I ≤ 20.000 mA No diagnostic; PIW value updated
Wire break I < 3.6 mA Channel fault 0x06; PIW = 0x7FFF (over-range) or 0x8000 (wire break, depends on FW)
Under-range (sensor < 4 mA but > 3.6 mA) 3.6 mA < I < 4.0 mA Optional under-range diagnostic if enabled; PIW negative
Over-range (sensor > 20 mA) 20.0 mA < I ≤ 22.8 mA Channel fault 0x07; PIW = 0x7FFF
Overflow (sensor > 22.8 mA) I > 22.8 mA Channel fault 0x07 + overflow flag; PIW = 0x7FFF

This is why disconnecting a 4-wire 4–20 mA sensor in the original incident did not clear the SF: the SF was being driven by the configuration mismatch (diagnostic 0x04) and the missing external supply (which prevented the module from completing its parameterization), not by wire-break.

11. Cross-Reference: 1KF02 vs. 7KF02 Swap Considerations

The 1KF02 predecessor is a single-group module. The 7KF02 replacement is a four-group module with different channel pinout and different resolution (13-bit on 1KF02 vs. 12-bit on 7KF02). Engineers commonly assume the modules are drop-in compatible because they have the same number of channels and the same front-connector footprint. The actual considerations are:

Attribute 6ES7331-1KF02-0AB0 6ES7331-7KF02-0AB0
Resolution 13 bit 12 bit
Number of groups 1 (all 8 channels) 4 (2 channels each)
Range module per group No (single hardware range) Yes (4 separate sliders)
HW Config effort Single range entry Four range entries, must be consistent per group
Channel pinout Different (single ManA shared) Different (ManA is per-group on later sub-variants)

Always treat a 1KF02 → 7KF02 swap as a hardware reconfiguration and re-derive the I/O address map, the diagnostic behavior, and the conversion scaling. The number of analog input words (PIW) is identical (8), but their meaning relative to physical channels may differ if the project had previously assumed single-group uniformity.

12. FAQ

What does a steady SF LED on 6ES7331-7KF02-0AB0 mean?

The SF (System Fault) LED indicates a module-internal diagnostic event. The most frequent causes on the 7KF02 are (a) the measuring range module position does not match the STEP 7 hardware configuration, (b) the transducer is 4-wire but the module is configured as 2-wire (or vice versa), or (c) the SDB was not downloaded to the CPU after a module swap. Read the diagnostic buffer via PLC → Module Information to confirm the exact event class.

Should the measuring range module be in C or D for a 4–20 mA 2-wire transmitter?

Position D is correct for a 2-wire 4–20 mA transmitter; position C is for a 4-wire 4–20 mA transmitter with external power supply. The HW Config drop-down "2-/4-wire" must be set to match: 2-wire for slider D, 4-wire for slider C. Mismatching these two settings is the single most common cause of SF on the 7KF02.

Can I leave unused channel groups with the measuring range module at factory default D?

Yes - factory default D (2-wire 4–20 mA) is acceptable for unused groups provided that the corresponding channels are disabled in HW Config (set the group to "deactivated" or "unused"). If a group is left at default D and not configured, the module can still SF because the channel sees an open input. The correct field procedure is to either deactivate unused groups in HW Config or cover the unused input terminal to short-circuit the channel.

Why does the IM 153-1 and CPU 315-2DP also show SF?

ET 200M propagates station-level diagnostics upward. When the SM 331 in slot X reports SF, the IM 153-1 raises a station fault, which the CPU 315-2DP interprets as a PROFIBUS-DP slave diagnostic and mirrors the SF on its own status row. The cascading SF clears automatically once the 7KF02 stops reporting diagnostics on the next DP cycle. Manual acknowledge is not required for a clearable hardware fault.

How do I get back online with the PG when the CPU is in STOP due to this fault?

To recover the PG-CPU link, you must download a corrected hardware configuration to the CPU. With the 7KF02 physically removed from the rail (and the CPU back in RUN with the IM 153-1 station present but the slot empty or configured with the original 1KF02), perform PLC → Download to Target in SIMATIC Manager with target = 315-2DP. The CPU accepts the download in STOP, then place the new 7KF02 into the slot and place the CPU in RUN. Reference: S7-300 online connection troubleshooting FAQ.

Does the 7KF02 require firmware updates for 4–20 mA diagnostics?

No firmware update is required for basic 4–20 mA 2-wire/4-wire operation. The module ships with full diagnostic support out of the box. Firmware updates apply only to a very small number of historical module revisions and are documented in the Siemens product support page for 6ES7331-7KF02-0AB0 if applicable to your specific hardware version (visible as the bottom three digits of the FS (function state) field).

Back to blog