Problem Statement: SM331 AI 2x12Bit Module Not Visible in TIA Portal V13 Hardware Catalog
Engineers commissioning, training on, or maintaining legacy SIMATIC S7-300 systems frequently encounter a missing device when they try to add the SM331 AI 2x12Bit analog input module with order number 6ES7331-7KB01-0AB0 in the TIA Portal V13 hardware catalog. The module does not appear in the device tree under SIMATIC S7-300 > Analog input/output > SM331, and no entry for "AI 2x12Bit" is generated when the user expands the catalog node. Attempting to drag-and-drop the device into the device view produces no result, and a manual search by order number in the catalog search field also returns zero hits.
According to the original Siemens technical support response, this module was phased out in 2004 and is no longer included in the TIA Portal hardware catalog. No Hardware Support Package (HSP) or catalog update is available to add the legacy order number back into the TIA Portal device pool. Engineers working on educational, training, or maintenance projects therefore cannot configure the module inside TIA Portal V13 (or any subsequent TIA Portal version through V20) without first applying a workaround.
Affected Hardware Identification
Confirm the exact MLFB (machine-readable product designation, also called the order number) printed on the front panel of the physical module before selecting a remediation path. The descriptive label "SM331 AI 2x12Bit" is shared by multiple variants in the S7-300 family; only the order number unambiguously identifies the affected module.
| MLFB Order Number | Description | Resolution / Channels | Lifecycle | TIA Portal V13+ Support |
|---|---|---|---|---|
6ES7331-7KB01-0AB0 |
SM331, AI 2x12Bit (original release) | 12-bit, 2 channels, isolated | Phased out 2004 | Not in catalog |
6ES7331-7KB02-0AB0 |
SM331, AI 2x12Bit (successor) | 12-bit, 2 channels, isolated | Active | Supported |
6ES7331-7KB02-4AB1 |
SM331, AI 2x12Bit (SIPLUS) | 12-bit, 2 channels, -25 to +70 °C | Active | Supported |
6ES7331-7PF01-0AB0 |
SM331, AI 8xRTD / 4xTC | 15/16-bit, 8 RTD channels | Active | Supported |
6ES7331-7PF11-0AB0 |
SM331, AI 8xTC | 15/16-bit, 8 TC channels | Active | Supported |
6ES7331-7NF00-0AB0 |
SM331, AI 8x15Bit | 15-bit, 8 channels | Active | Supported |
6ES7331-7KB02-0AB0. Verify the order number on the physical module label before ordering replacement hardware and confirm the active part number against the current Siemens Industry Mall catalog before purchase.Root Cause: TIA Portal V13 Catalog Behavior and Lifecycle Filtering
The TIA Portal hardware catalog is built from a curated device database that ships with the installation media. Modules are included only if they meet two conditions at the time of release:
- The product is in active sales status (not announced for phase-out or already phased out) at the TIA Portal release date.
- The product is covered by an installed Hardware Support Package (HSP) or by the base catalog revision of the installed TIA Portal version.
The original 6ES7331-7KB01-0AB0 was phased out in 2004, ten years before TIA Portal V13 was released. Because the module was already out of active sales for a decade, it was never integrated into the TIA Portal V13 (or V14, V15, V16, V17, V18, V19, V20) hardware catalog. The TIA Portal online help explicitly states that the component selection in the "Catalog" pane contains the installed hardware components and that you move devices or modules you want from the catalog to the device view; legacy devices that were never added to the catalog cannot be retrieved by any in-product action. See the TIA Portal V20 hardware catalog documentation for the catalog structure and HSP behavior.
The Siemens support response for this specific issue is unambiguous: "this module is phased out since 2004 and not supported in TIA Portal. There is no Support Package/Catalog Update available!"
TIA Portal vs. STEP 7 V5.x Compatibility for Legacy S7-300 Hardware
Engineers working with S7-300 systems must understand the split between the two Siemens programming environments:
| Environment | Supported PLC Families | Legacy Module Support | Typical Use Case |
|---|---|---|---|
| STEP 7 V5.x (V5.5 and later) | S7-300, S7-400, C7 | Full, including modules phased out before TIA Portal existed | Maintenance of installed S7-300/S7-400 bases, training on legacy hardware |
| TIA Portal V13 (STEP 7 V13) | S7-1200, S7-1500, ET 200SP / ET 200MP, S7-300/400 (subset) | Limited to active modules covered by the installed catalog and HSPs | New projects with current hardware |
| TIA Portal V13 SP1 and later | Adds S7-1200 PLCSIM simulation | Same hardware subset as V13, plus simulated S7-1200 | Training, classroom use, S7-1200 commissioning |
| TIA Portal V14 / V15 / V16 / V17 / V18 / V19 / V20 | Adds newer S7-1500 CPUs, ET 200SP HA, and WinCC Unified | Catalog window slides forward; legacy gaps remain | New S7-1500 and ET 200SP projects |
The original Siemens support response notes: "Step7 V5.x can however only program the S7-300 and S7-400 family of PLCs." This is a deliberate separation: TIA Portal's newer engineering paradigm does not duplicate the entire legacy S7-300 module catalog because STEP 7 V5.5 remains the supported, actively maintained toolchain for legacy S7-300/400 hardware. STEP 7 V5.5 is still kept up to date and is the official environment for installing, configuring, and programming the 6ES7331-7KB01-0AB0 module.
For this reason, the first remediation path is to install or activate STEP 7 V5.5 (or a later V5.x version) on the engineering workstation and use SIMATIC Manager's HW Config to add the SM331 module to the S7-300 rack. The module, the rack, and the S7-300 CPU can all be configured even if the workstation also has TIA Portal installed — the two toolchains coexist on the same PC.
Hardware Support Package (HSP) Installation in TIA Portal
For modules that are in the active catalog but missing from the local TIA Portal installation, the standard mechanism is to install a Hardware Support Package (HSP). HSPs are downloadable archives from the Siemens Industry Online Support. They are imported via Options > Support Packages > Install in TIA Portal, after which the new modules become available in the hardware catalog under the appropriate path (for example, SIMATIC S7-300 > Analog input/output > SM331).
For the 6ES7331-7KB01-0AB0, no HSP exists because the module was phased out long before the TIA Portal catalog window opened. Attempting to import any S7-300 HSP and search for the part number returns no result. This confirms the official Siemens support position: the module is not recoverable in TIA Portal by any in-product action.
Solution Path 1: Migrate to the Successor SM331 Module (6ES7331-7KB02-0AB0)
If the application can tolerate a brief hardware swap, replace the legacy module with the active successor 6ES7331-7KB02-0AB0. The successor module is pin-compatible with the original at the backplane connector and the front-side terminal block, so the existing S7-300 rack slot, the backplane wiring, and the field-side terminal wiring can be retained.
Hardware Compatibility
| Characteristic | 6ES7331-7KB01-0AB0 (original) | 6ES7331-7KB02-0AB0 (successor) |
|---|---|---|
| Number of analog inputs | 2 | 2 |
| Resolution | 12-bit (14-bit with integration) | 12-bit (14-bit with integration) |
| Galvanic isolation | Yes (to backplane) | Yes (to backplane) |
| Supported measurement types | ±10 V, ±5 V, 0 to 10 V, 1 to 5 V, ±20 mA, 0/4 to 20 mA, RTD (Pt100, Ni100), TC (J, K, etc.) | Same set as original, plus refined diagnostic support |
| Diagnostic interrupts | Limited (wire break on some ranges) | Enhanced (wire break, overflow, underflow, hardware fault) |
| Front connector | 20-pin screw-type | 20-pin screw-type, identical pin-out |
| Slot compatibility | Any free S7-300 slot (excluding CPU/IM fixed slots) | Any free S7-300 slot (excluding CPU/IM fixed slots) |
| Power consumption from backplane | 0.6 W typical | 0.6 W typical |
Replacement Procedure
- Power down the S7-300 rack and apply lock-out/tag-out (LOTO) procedures. Remove the 24 V DC field supply from the analog module's front connector.
- Record the wiring at the front connector: each wire's terminal number, signal type, and channel assignment. The SM331 AI 2x12Bit uses terminals 1 to 20 with two channels typically assigned to terminal pairs (e.g., channel 0 on 1-2 sense, 3-4 measurement; channel 1 on 5-6 sense, 7-8 measurement; terminals 19-20 for the 24 V loop supply when used).
- Unlock the front connector (slide the release tab), disconnect the front connector from the module, and place it on a clean surface.
- Press the module release lever at the top of the module and swing the module out of the rack. The module is released from the backplane bus connector.
- Insert the new
6ES7331-7KB02-0AB0module in the same slot. Ensure the backplane connector engages fully. - Re-seat the front connector. The screw terminals accept the same wire terminations as the original.
- Re-apply the 24 V DC field supply and rack power. Verify the SF (group fault) LED is off.
- Re-download the STEP 7 / TIA Portal hardware configuration and user program.
Solution Path 2: Use STEP 7 V5.5 for the Original Module
If hardware replacement is not an option — for example, the system is in a validated production line and a revalidation cycle is not feasible — keep the 6ES7331-7KB01-0AB0 module and use STEP 7 V5.5 (or the latest V5.x service pack) as the configuration and programming environment.
Installation and Project Setup
- Install SIMATIC STEP 7 V5.5 with the latest Service Pack and Hotfix. The product DVD (or downloaded installer) is the official Siemens delivery medium. License keys are transferred with the Automation License Manager (ALM).
- Open SIMATIC Manager and create a new S7-300 project. Add an S7-300 station with the matching CPU order number (e.g.,
6ES7315-2EH14-0AB0or the appropriate CPU variant in use). - Open HW Config from the station object. The hardware catalog on the right side of HW Config includes the full SM331 family, including the legacy
6ES7331-7KB01-0AB0entry. - Drag the SM331 AI 2x12Bit entry onto the selected rack slot. Slot 4 is the default; the module can be placed in any slot from 4 to 11 (depending on the rack type and CPU).
- Double-click the module to open its properties. Configure the measurement type per channel (voltage, current, RTD, or thermocouple) and the integration time / resolution. The HW Config dialog writes the configuration to the module on the next download.
- Save and compile the hardware configuration. Download to the CPU via PLC > Download to Target or via online accessible nodes.
Reading the Module in the User Program
After configuration, the analog values are read from the process image of the analog module. The base address is assigned in HW Config (e.g., PIW 256 and PIW 258 for the two channels). Use the standard FC105 "SCALE" or FC106 "UNSCALE" blocks from the STEP 7 standard library to scale the raw integer (0 to 27648 nominal range) to engineering units, or read the value directly and apply the linear scaling formula:
// Unscaled raw value from channel 0
L PIW 256
T #iRawValue
// Scale 0...27648 to 0.0...100.0 (engineering units)
CALL "SCALE"
IN := #iRawValue
HI_LIM := 1.000000e+002
LO_LIM := 0.000000e+000
BIPOLAR := FALSE
RET_VAL := #iScaleRet
OUT := #rEngValue
Diagnostic Interrupt (OB82) Structure
When a diagnostic event occurs on the SM331 module, the S7-300 CPU calls OB82. The local variables of OB82 contain the diagnostic data structure. Key fields include:
| Local Variable | Declaration | Description |
|---|---|---|
| OB82_EV_CLASS | BYTE | Event class (B#16#38 = incoming, B#16#39 = outgoing) |
| OB82_FLT_ID | BYTE | Fault ID (B#16#42 = channel fault, B#16#43 / B#16#44 = module fault) |
| OB82_MDL_ADDR | INT | Base address of the module reporting the fault |
| OB82_MDL_DEFECT | BOOL | Module defect flag |
| OB82_RACK_FAIL | BOOL | Rack failure (SM331 removed or no response) |
| OB82_IO_FLAG | BOOL | Input module flag (TRUE = input, FALSE = output) |
| OB82_CHANNEL | BYTE | Channel number reporting the fault |
Solution Path 3: Educational Platform Migration to S7-1200
For training and classroom use — the original use case described in the source — Siemens recommends migrating to the S7-1200 family. TIA Portal V13 SP1 (and later) added the ability to simulate the S7-1200 PLC with the integrated PLCSIM, which is ideal for instructor-led and student-led training without physical hardware.
Benefits of the S7-1200 Migration Path
- Native TIA Portal support: All S7-1200 CPUs (CPU 1211C, 1212C, 1214C, 1215C, 1217C) and signal modules (SM1231, SM1232, SM1234) are in the base TIA Portal V13 hardware catalog.
- Integrated PLCSIM: TIA Portal V13 SP1 added S7-1200 simulation. The student can write, download, and test a complete program without connecting to real hardware.
- Modern programming model: Optimized data blocks, symbolic addressing, and IEC 61131-3 languages are consistent across the S7-1200 and S7-1500 families.
-
Analog input replacement: The SM1231 AI4x13Bit (
6ES7231-4HD30-0XB0) and SM1231 AI8x13Bit (6ES7231-4HF30-0XB0) provide 4- and 8-channel analog inputs at 13-bit resolution with native TIA Portal configuration.
PLCSIM Setup for S7-1200 in TIA Portal V13 SP1
- Install TIA Portal V13 SP1 (or later) on the engineering workstation. PLCSIM V13 SP1 (or later) is included in the TIA Portal installation package as an optional component.
- Create a new project and add an S7-1200 CPU (e.g., CPU 1214C DC/DC/DC,
6ES7214-1AG40-0XB0). - Open the project, switch to the project view, and select the CPU in the device view.
- From the menu, select Online > Simulation > Start (or press Ctrl+Shift+U). TIA Portal starts the PLCSIM instance and connects it to the project.
- Download the hardware configuration and the user program to the simulated CPU. The simulated CPU executes the program, updates the process image, and responds to all online functions (monitor, force, trace).
- For the SM1231 analog input, inject test values via the PLCSIM variable table. Set the input word (e.g., IW64) to a known raw value (e.g., 0 for 0 V, 27648 for 10 V) and confirm the user program scales the value correctly.
To configure the S7-1200 analog input in TIA Portal V13 (or later), open the device view, add the SM1231 module, and open the module's properties. Set the input type (voltage or current) and the range (e.g., 0 to 10 V or 4 to 20 mA) per channel. The process image is updated automatically and is accessible in the user program via the symbolic tag name assigned in the PLC tag table.
Configuration Migration: Old vs. New Module Property Pages
The configuration dialog of the original SM331 (in STEP 7 V5.5 HW Config) and the successor SM331 (in TIA Portal V13+) are conceptually similar but differ in operational flow.
| Configuration Step | STEP 7 V5.5 HW Config (original module) | TIA Portal V13+ (successor module) |
|---|---|---|
| Select measurement type | Drop-down per channel (Voltage, Current, RTD, TC) | Drop-down per channel in the module properties inspector |
| Select measurement range | Drop-down per channel (e.g., ±10 V, 0 to 10 V) | Drop-down per channel in the same properties view |
| Set integration time | Drop-down per channel (2.5 / 16.67 / 20 / 100 ms) | Drop-down per channel, with the same nominal options |
| Enable diagnostic interrupts | Checkbox in the module properties | Checkbox in the module properties, expanded for wire break and overflow |
| Configure hardware interrupt limits | Tab "Inputs" with high/low limit fields per channel | Same tab structure in the device view |
When migrating a project from the original SM331 to the successor SM331 within TIA Portal, no application code changes are required. The input word addresses (PIW) remain the same when the module is placed in the same slot. The scaling function blocks (FC105, FC106, or TIA Portal's NORM_X and SCALE_X) work identically because the raw value encoding is preserved across the 12-bit and 14-bit integration modes.
Measurement Type and Wiring Reference
The SM331 AI 2x12Bit supports a broad set of measurement types. The wiring depends on the signal type and the channel assignment. Use this table as a quick reference when commissioning the original or successor module:
| Measurement Type | Wiring at the Front Connector | Typical Range | Notes |
|---|---|---|---|
| Voltage (±10 V) | Channel n signal on M-/M+ (two-wire) | -10 V to +10 V | Bipolar; integration time 2.5 ms for 12-bit, 20 ms for 14-bit |
| Voltage (0 to 10 V) | Channel n signal on M-/M+ (two-wire) | 0 V to 10 V | Unipolar; integration time 2.5 ms for 12-bit, 20 ms for 14-bit |
| Current (±20 mA) | Channel n signal on M-/M+ (two-wire) | -20 mA to +20 mA | Bipolar; external loop supply required |
| Current (4 to 20 mA) | Channel n signal on M-/M+; 24 V loop on Vs+ | 4 mA to 20 mA | Wire-break detection supported |
| RTD (Pt100, Ni100) | Two-, three-, or four-wire to terminals M-/M+/I+/I- | -200 °C to +850 °C (Pt100) | Linearization handled in module |
| Thermocouple (type J, K, etc.) | Two-wire to M-/M+ with internal or external cold-junction compensation | Depends on TC type | Use TC standard tables from IEC 60584 |
Hardware Installation and Replacement Procedure (Step-by-Step)
- De-energize. Open the main disconnect and apply lock-out/tag-out. Remove the 24 V DC supply to the analog module.
- Document the wiring. Photograph the front connector, or draw a wiring diagram with each terminal number, signal tag, and channel assignment. The SM331 front connector is 20-pin; pin 1 is the upper-left when viewed from the front.
- Unlock the front connector. Press the release tab at the top of the connector and pull it forward.
- Remove the module. Press the module release lever at the top of the module and swing the module out of the rack. Lift it clear of the backplane connector.
-
Insert the replacement. Slide the new
6ES7331-7KB02-0AB0(or the original6ES7331-7KB01-0AB0if returning the module to service) into the same slot. Ensure the backplane connector engages fully; the module should click into place. - Re-seat the front connector. Slide the front connector onto the module pins and lock the release tab.
- Verify the wiring. Re-check each terminal against the documented diagram. Confirm that the shield (if used) is landed on the module's shield terminal, not on a power terminal.
- Re-apply power. Restore the 24 V DC supply and the rack power. Watch the SF LED on the new module during power-up. The SF LED should be off within 2 seconds if the configuration matches the inserted module.
- Re-download the configuration. In TIA Portal or STEP 7 V5.5, perform a full download of the hardware configuration and the user program to the CPU. Perform a CPU restart (STOP then RUN) if requested by the engineering tool.
- Verify the analog inputs. Use a calibration source (e.g., a precision voltage calibrator or a 4-20 mA source) to inject a known signal on each wired channel. Read the process image word (PIW) and confirm the scaled engineering unit matches the expected value within the module's accuracy spec.
Verification and Commissioning Checks
After applying any of the three remediation paths, run the following verification checks to confirm the system is operating correctly:
- Module presence. Open the online diagnostics in TIA Portal or STEP 7 V5.5. Confirm that the SM331 (or SM1231) module is detected in the expected slot with the correct order number and firmware version.
- SF LED off. The group-fault LED on the front of the module must be off. An illuminated SF LED indicates a configuration mismatch, a wire break, or a hardware fault.
- Channel value plausibility. Apply a known reference signal (e.g., 5.000 V on a 0 to 10 V channel) and verify the scaled engineering unit in the user program matches within the module's accuracy spec (typically ±0.5 % of full scale for the 12-bit SM331, ±0.3 % for the 14-bit integration mode).
- Diagnostic interrupt path. Force a wire break on a 4-20 mA channel and confirm that OB82 is called and that the diagnostic buffer in the CPU contains the expected entry. Restore the loop and confirm OB82 is called again with the "outgoing" event.
- User program execution. Run the S7 program for at least 5 minutes in RUN mode and confirm the scan time, the cyclic interrupt OB (if used), and the analog value updates are operating within expected bounds.
Troubleshooting Matrix
| Symptom | Likely Cause | Remediation |
|---|---|---|
| SM331 not in TIA Portal V13 catalog | Module 6ES7331-7KB01-0AB0 phased out in 2004; not in TIA Portal device database |
Use STEP 7 V5.5 HW Config, or migrate to successor 6ES7331-7KB02-0AB0
|
| "Module does not support this firmware version" online | Module inserted but the CPU or HSP does not recognize the order number | Install the latest HSP for TIA Portal, or downgrade to STEP 7 V5.5 |
| SF LED on after module replacement | Configuration mismatch, missing channel configuration, or wire break | Re-download hardware configuration; check channel ranges; verify wiring |
| CPU goes to STOP on a 4-20 mA channel | OB82 (diagnostic interrupt) is not loaded in the CPU | Load OB82 (empty OB82 is sufficient) into the CPU |
| Raw value stuck at 32767 (0x7FFF) | Overflow (input above range), or wire break on a 4-20 mA / TC / RTD channel | Check the input signal; verify the range; check the wiring |
| Raw value stuck at -32768 / 0x8000 | Underflow (input below range), or unconfigured channel | Set the channel to "Deactivated" or to a matching range; verify the signal |
| SM331 cannot be placed in slot 0-3 | Slots 0-3 are reserved for the PS, CPU, and IM on an S7-300 rack | Place the SM331 in slot 4 or higher |
| PLCSIM does not show the S7-1200 CPU | TIA Portal V13 (without SP1) does not support S7-1200 PLCSIM | Upgrade to TIA Portal V13 SP1 or later |
Recommendations for Education and Long-Term Maintenance
For a training environment where the 6ES7331-7KB01-0AB0 is being used as a teaching aid, the most sustainable path forward is to migrate the lab to the S7-1200 family. TIA Portal V13 SP1 supports PLCSIM for the S7-1200, which removes the dependency on a physical rack for the majority of classroom exercises. The S7-1200 SM1231 analog modules have a much simpler configuration model and the web server of the CPU provides a built-in dashboard for student visualization.
For long-term maintenance of an installed S7-300 base, retain a STEP 7 V5.5 license and engineering workstation in addition to the TIA Portal workstation. STEP 7 V5.5 is the supported engineering environment for any S7-300 module that pre-dates the TIA Portal hardware catalog window. The two toolchains coexist on the same PC and can use the same Ethernet / MPI / PROFIBUS connection to the rack.
FAQ
Why is my SM331 AI 2x12Bit (6ES7331-7KB01-0AB0) not visible in the TIA Portal V13 hardware catalog?
The module was phased out by Siemens in 2004. TIA Portal V13 (released in 2014) and all later versions do not include the device in the base hardware catalog, and no Hardware Support Package (HSP) is available to add it back. Use STEP 7 V5.5 HW Config for the original module, or replace it with the active successor 6ES7331-7KB02-0AB0 which is in the TIA Portal V13+ catalog.
Can I install a Hardware Support Package (HSP) to add the legacy SM331 module to TIA Portal?
No. The official Siemens support response for this order number is explicit: there is no Support Package or catalog update available for the 6ES7331-7KB01-0AB0. The module is permanently excluded from the TIA Portal device database. The supported migration path is to STEP 7 V5.5 or to the successor module.
What is the recommended replacement for the 6ES7331-7KB01-0AB0?
The active successor in the SM331 AI 2x12Bit family is the 6ES7331-7KB02-0AB0. It has the same number of channels, the same resolution, the same front connector pin-out, and the same basic measurement type set as the original. The successor adds enhanced diagnostic interrupts (wire break, overflow, underflow) and is fully supported in TIA Portal V13 and later versions.
Can I keep the existing S7-300 wiring when migrating to the successor SM331 module?
Yes. The 6ES7331-7KB02-0AB0 uses the same 20-pin front connector with the same pin assignments as the original 6ES7331-7KB01-0AB0. The field wiring can be re-installed on the new module's front connector terminal-for-terminal, provided the wire terminations are in good condition and the torque on the screw terminals matches the module manual specification (typically 0.5 to 0.6 Nm for the SM331 front connector).
Which Siemens toolchain should I use for training on the S7-300 family with TIA Portal?
For training on the original S7-300 hardware, use STEP 7 V5.5 with the legacy SM331 modules. For new training programs, Siemens recommends the S7-1200 family with TIA Portal V13 SP1 (or later) and the integrated PLCSIM. The S7-1200 platform is fully in the TIA Portal catalog, supports program simulation without physical hardware, and exposes a web server on the CPU for student visualization.