Troubleshooting Analog Input SM 331 16#7FFF Overflow Value on 6ES7331-7KF02-0AB0
An analog input reading 16#7FFF (Hexadecimal 32767) across all channels on an S7-300 / ET 200M SM 331 module (6ES7331-7KF02-0AB0) indicates an Overflow or hardware fault state. In SIMATIC S7, 16#7FFF represents input signal overflow (exceeding 118.519% of nominal range) or open-circuit saturation. The primary root causes are: first, a catalog mismatch in HW Config (selecting 7KF02 when physical hardware is actually 1KF02); second, physical measuring range coding keys (jumpers A/B/C/D on the module side) mismatched with HW Config measuring types; and third, ungrounded floating reference potentials (Mana not connected to M). Verify module MLFB, set side coding keys to match configuration, and bridge Mana to system ground.
Table of Contents
- S7-300 Analog Representation and the 16#7FFF Overflow State
- Root Causes: Hardware Selection, Side Coding Keys, and Floating Ground
- Diagnostic Matrix for SM 331 Channel Status and Fault Codes
- Step-by-Step Troubleshooting and Wiring Remediation Procedure
- Verification
- Limitations and Operational Precautions
- Engineer FAQ
- Technical References
- Related Articles
- Related Tags
S7-300 Analog Representation and the 16#7FFF Overflow State
In SIMATIC S7-300 and ET 200M distributed I/O, analog input modules digitize physical field measurements ($4-20\text{ mA}$, $0-10\text{ V}$, PT100) into 16-bit integer values. Standard measuring ranges are scaled such that nominal $100\%$ equates to integer 27648.
The S7 operating system reserves specific values for out-of-bounds conditions:
- 16#7FFF (+32767): Indicates Overflow (signal $> 118.519\%$) or channel hardware saturation.
- 16#8000 (-32768): Indicates Underflow (signal $< -118.519\%$, wire break on $4-20\text{ mA}$, or unconfigured input).
When a module outputs 16#7FFF across all channels simultaneously—even with no sensors connected or with normal signals applied—the analog-to-digital converter (ADC) front-end is saturated.
Root Causes: Hardware Selection, Side Coding Keys, and Floating Ground
Three technical issues account for project-wide 16#7FFF errors on SM 331 modules:
1. MLFB Catalog Mismatch (7KF02 vs 1KF02): Engineers frequently select 6ES7331-7KF02-0AB0 (AI 8 x 12 Bit) in HW Config when the physical module installed on the DIN rail is actually 6ES7331-1KF02-0AB0 (AI 8 x 13 Bit), or vice versa. The two modules utilize completely different internal address mappings, channel groupings, and parameter structures.
2. Side Measuring Range Coding Plugs: The 7KF02 module features four physical range cubes on its side (labeled A, B, C, D) corresponding to channel pairs 0/1, 2/3, 4/5, and 6/7. If HW Config is set for 2-wire current (2DMU), the physical cube must be aligned to position D. If the cube is set to C (4-wire) or B (voltage), the module's internal 24V loop power supply is disconnected, saturating the channel.
3. Floating Analog Ground ($M_{ANA}$ to $M$): If the analog measuring reference potential ($M_{ANA}$, Pin 11) is not connected to the CPU / power supply ground ($M$, Pin 20), common-mode voltage ($U_{CM}$) floats beyond the allowed threshold ($U_{CM} > 2.5\text{ V}$), driving all differential amplifiers into positive saturation (16#7FFF).
Diagnostic Matrix for SM 331 Channel Status and Fault Codes
The table below details analog input status values, side coding positions, and corrective engineering actions:
16#7FFF16#80000 to 27648D2DMU)C4DMU)Step-by-Step Troubleshooting and Wiring Remediation Procedure
- Confirm Exact Hardware Part Number (MLFB):
- Inspect the front door label of the physical module: confirm whether it is6ES7331-7KF02-0AB0or6ES7331-1KF02-0AB0.
- In STEP 7 HW Config, verify that the module inserted in the rack slot matches the physical MLFB character-for-character. - Verify Side Measuring Range Keys (Coding Plugs):
- Remove the module from the rack.
- Locate the four square plastic coding plugs on the left side of the module.
- Set the plugs matching HW Config parameterization: for 2-wire current ($4-20\text{ mA}$ loop-powered), orient marker toD.
- For 4-wire active current sensors, orient marker toC. - Establish Proper Reference Grounding ($M_{ANA}$):
- On the 20-pin front connector, install a jumper wire between Pin 11 ($M_{ANA}$) and Pin 20 ($M$).
- Connect Pin 20 to central cabinet protective earth (PE) ground to eliminate common-mode potential drift. - Deactivate Unused Channels in HW Config:
- In HW Config, double-click the module ->Inputstab.
- For channels without sensors connected, set the measuring type to Deactivated (this prevents floating inputs from inducing cross-talk on active channels). - Save, Compile, and Download:
- Download the hardware configuration to the CPU in STOP/RUN mode.
- In HW Config, select Monitor/Modify: confirm that channels read within normal ranges (0 to 27648).
Verification
Verify analog input health through the following steps:
1. Connect an active 4-20 mA signal calibrator to Channel 0 (Pins 2 and 3): inject $12.0\text{ mA}$ ($50\%$).
2. In STEP 7 Variable Table (VAT) or HW Config Monitor, inspect the input word (PIW): verify that it reads approximately 13824 ($50\% \pm 0.5\%$).
3. Check the module SF LED: confirm that the red system fault LED is dark.
Limitations and Operational Precautions
Never adjust side coding plugs while the module is powered on in the rack. Changing coding keys while 24V DC is applied can damage internal precision measuring resistors. Always power down the ET 200M rack before extracting modules or re-orienting coding cubes. Additionally, when wiring 2-wire transmitters (2DMU), never connect an external 24V power supply directly across the input pins; the module provides loop power internally on Pin M+.
Engineer FAQ
Technical References
- SIMATIC S7-300 Module Data Manual (A5E00105505)
- SIMATIC ET 200M Distributed I/O Device System Manual
- Siemens Technical Support: Wiring and Parameterizing SM 331 Analog Modules (SIOS Entry ID 17473828)
Related Articles
- Displaying Raw Field Channel Values in WinCC Analog Faceplates
- Troubleshooting Failsafe F_CH_DI Output Zero When Input Value Is True in S7-400FH Systems
- Integrating Third-Party GE Fanuc RSTi-EP PROFINET IO with CPU 410-5H
Related Tags
- SM 331
- 6ES7331-7KF02-0AB0
- Analog Input
- 7FFF Overflow
- Measuring Range Plug
- ET 200M