Overview
This reference covers the end-to-end wiring of a Siemens SIMATIC S7-300 rack: incoming 24V DC (or 120/230V AC mains) entering the Power Supply (PS) module, the load-current bus feeding the Signal Modules (SMs), the front-connector pinout for each SM, and the field terminal block that bridges the SM to the actual sensor or actuator. The procedure is laid out for first-time panel builders who already have access to the Siemens S7-300 Module Data Manual and the S7-300 Automation System Manual but need a more practical, sequence-based walkthrough.
The S7-300 architecture splits power into two buses inside the PS: a 5V/24V backplane bus for module electronics, and a 24V DC load-current bus for field-side switching. The two are galvanically isolated but originate at the same PS. Wiring them correctly is the single most important step in panel commissioning, and mis-wiring them is the most common first-panel failure mode.
Prerequisites and Required Documentation
Before touching a wire, gather the following:
- S7-300 Module Data Manual — pin assignments, isolation diagrams, and load-current limits for every SM in the panel.
- S7-300 Automation System Manual — rack layout rules, addressing, and the S7-300 grounding philosophy.
- Siemens S7-300 Hardware Installation Guide — torque values and DIN-rail mounting distances.
- Front connectors matched to the modules:
- 20-pin screw:
6ES7392-1AJ00-0AA0 - 40-pin screw:
6ES7392-1AM00-0AA0 - 20-pin spring:
6ES7392-1BJ00-0AA0 - 40-pin spring:
6ES7392-1BM01-0AA0
- 20-pin screw:
- Shield terminal clamps:
6ES7390-5AA00-0AA0(10 mm) or6ES7390-5AB00-0AA0(6 mm). - Field-side terminal blocks (Phoenix UK-10N, Weidmüller WDU 10, Wago 2002-1201, or equivalent).
- Wire stripper calibrated to 0.5-1.5 mm² stranded.
- Torque screwdriver with 0.6-0.8 Nm range for front-connector screws.
Verify the controller firmware. CPU 314/315/315-2 DP/317/319 with firmware V2.x or later supports the full SM 327 and HART-capable SM catalog. Mixing older firmware with newer SMs is a common source of "module does not respond" errors at startup, because the module's GSD file is rejected during rack configuration in STEP 7 HW Config.
S7-300 Power Architecture
The S7-300 rail is 480 mm (basic) or 2000 mm (extended) of 35 mm DIN rail. Slot 1 is the PS, slot 2 is the CPU, slots 3-8 are reserved for I/O. A second rack can be added via an IM 360/361 pair, in which case slot 1 of the second rack is again the PS, but slot 2 is the IM 361 (receive).
The PS module performs two independent functions:
- Converts incoming mains (or 24V DC) to the 5V/24V backplane rails that power the CPU, IM, SM, FM, and CP electronics.
- Provides a separate, fused 24V DC "load current supply" (L+/M terminals) that powers the inputs of the digital input modules and the field-side supply of the digital output modules.
Power Supply Modules: PS 305 and PS 307
Two PS families support the S7-300. The PS 307 accepts 120/230V AC mains; the PS 305 accepts 24V DC. Both provide the same internal backplane rails and the same load-current bus, but with different MLFBs and ratings.
| Order Number | Input | 24V DC Output | Typical Application |
|---|---|---|---|
6ES7307-1BA01-0AA0 |
120/230V AC | 2A | CPU 312/314 + 4 SMs |
6ES7307-1EA01-0AA0 |
120/230V AC | 5A | CPU 315 + 8 SMs |
6ES7307-1KA02-0AA0 |
120/230V AC | 10A | CPU 317/319 + full rack + extension rack |
6ES7305-1BA80-0AA0 |
24V DC (16-40V range) | 2A | DC-only cabinets: solar, telecom, substation auxiliary |
The PS 307 face plate has four screw terminals labeled L1, N, PE (mains input) and a separate 24V DC terminal block with L+, M, PE (load current + chassis ground). The L+/M terminals feed only the load-current bus; the backplane 24V is generated internally and is not available at the face plate.
Sizing the load-current supply
The 24V DC output of the PS must satisfy three demand components:
- Backplane current of all modules in the rack (5V rail). Sum the 5V consumption from each module's datasheet: CPU 314 = 700 mA, SM 321-1BH02 = 25 mA, SM 322-1BH01 = 40 mA, SM 331-7KF02 = 60 mA, SM 332-5HD01 = 60 mA.
- Load current of the digital input modules: SM 321 at 24V DC pulls 6-9 mA per channel. A 16-channel SM with all inputs ON pulls roughly 130 mA.
- Load current of the digital output modules: 0.5 A per channel (or 2 A on the relay variant). Sum the maximum simultaneous output load and add 25% derating for thermal headroom.
If the sum exceeds the PS rating, upgrade to the next tier. Two PS modules on the same rack are not supported; paralleling requires an external decoupling diode or DC bus.
Front Connectors and Terminal Mechanics
Every SM is wired through a removable front connector that mounts to the bottom edge of the module. The connector is keyed to the module and locks in place with a single lever. Three termination types are available.
| Connector | Order Number | Wire Range | Torque (Screw) |
|---|---|---|---|
| 20-pin screw | 6ES7392-1AJ00-0AA0 |
0.25 - 1.5 mm² | 0.6 - 0.8 Nm |
| 40-pin screw | 6ES7392-1AM00-0AA0 |
0.25 - 1.5 mm² | 0.6 - 0.8 Nm |
| 20-pin spring | 6ES7392-1BJ00-0AA0 |
0.25 - 1.5 mm² | N/A (tool-actuated) |
| 40-pin spring | 6ES7392-1BM01-0AA0 |
0.25 - 1.5 mm² | N/A (tool-actuated) |
Screw-type is the field default. Spring-type (push-in) connectors offer faster termination, vibration resistance, and reduced cabinet wiring time — published comparisons in the Rockwell 1492-BR018 terminal block solutions guide document up to 50% termination-time reduction for push-in versus screw when termination time per wire is the bottleneck.
Pin numbering convention
The 20-pin connector is numbered 1-20 across two rows (A and B). The standard 8-channel SM uses pins 1-7 for channel signals and pin 20 for the M terminal. The 16-channel SM uses a 40-pin connector with pins 1-16 for signal channels and pins 21-40 for common rails. Always verify the exact map for the specific MLFB in the S7-300 module data manual; pin assignments vary by module variant and channel count.
Digital Input Module (SM 321) Wiring
The SM 321 family is the standard digital input module. The most common variant is the 6ES7321-1BH02-0AA0 (16 DI, 24V DC, sink/source selectable by group), with a 20-pin front connector.
Pin assignment for SM 321-1BH02 (16 DI, 24V DC)
| Pin | Signal | Pin | Signal |
|---|---|---|---|
| 1 | I0.0 | 2 | I0.1 |
| 3 | I0.2 | 4 | I0.3 |
| 5 | I0.4 | 6 | I0.5 |
| 7 | I0.6 | 8 | I0.7 |
| 9 | I1.0 | 10 | I1.1 |
| 11 | I1.2 | 12 | I1.3 |
| 13 | I1.4 | 14 | I1.5 |
| 15 | I1.6 | 16 | I1.7 |
| 17 | Reserved | 18 | Reserved |
| 19 | 24V DC L+ (group supply) | 20 | 24V DC M (ground) |
Wiring sequence
- Pull the 24V DC load-current bus from the PS 307 (terminals L+ and M) to the front connector of the SM 321. Use 1.0 mm² stranded wire with 10 mm ferrules for the supply pair.
- Land L+ on pin 19 and M on pin 20. The SM 321-1BH02 is organized as two groups of 8 inputs each; both groups share the same 24V supply pair on this variant.
- Wire each sensor return to the appropriate M terminal of the field terminal block, then bridge to pin 20 of the front connector with a single jumper or daisy-chain.
- Wire each sensor "high" side to the assigned input channel on the field terminal block, then bridge to the corresponding pin.
- Apply a 1.0 A slow-blow fuse (e.g., Siemens 5SE2325 or equivalent) on the L+ lead to the SM 321 to protect the load-current bus from a wiring short.
For PNP (sourcing) sensors, route the positive supply from the field device to the input channel and the negative return to M. For NPN (sinking) sensors, the SM 321-1BH02 requires a configuration jumper on the module for "P-type" sensors, or you must select the 6ES7321-1BP00-0AA0 variant, which is hardware-configured for NPN.
Digital Output and Combined I/O Module Wiring
The SM 322 family is the workhorse digital output module. Common variants:
| MLFB | Outputs | Voltage | Current/Channel | Type |
|---|---|---|---|---|
6ES7322-1BH01-0AA0 |
16 DO | 24V DC | 0.5 A | Transistor, source |
6ES7322-1BL00-0AA0 |
32 DO | 24V DC | 0.5 A | Transistor, source |
6ES7322-1HF01-0AA0 |
8 DO | 230V AC (relay) | 2 A | Changeover contact |
6ES7322-1FF01-0AA0 |
8 DO | 24-120V DC | 0.5 A | Transistor, source |
Pin assignment for SM 322-1BH01 (16 DO, 24V DC)
| Pin | Signal | Pin | Signal |
|---|---|---|---|
| 1 | Q0.0 | 2 | Q0.1 |
| 3 | Q0.2 | 4 | Q0.3 |
| 5 | Q0.4 | 6 | Q0.5 |
| 7 | Q0.6 | 8 | Q0.7 |
| 9 | Q1.0 | 10 | Q1.1 |
| 11 | Q1.2 | 12 | Q1.3 |
| 13 | Q1.4 | 14 | Q1.5 |
| 15 | Q1.6 | 16 | Q1.7 |
| 17 | Reserved | 18 | Reserved |
| 19 | 24V DC L+ (V load) | 20 | 24V DC M |
Wiring sequence for sourcing 24V DC outputs
- Land 24V DC L+ from the PS 307 on pin 19 of the SM 322 front connector. This is the "V load" supply, not the backplane supply.
- Land the 24V DC M return on pin 20.
- Each output Qx.y switches L+ to the load. The load's return goes to a shared M terminal on the field terminal block.
- For inductive loads (solenoids, contactors, motor brake coils), install a free-wheeling diode (1N4007) directly across the coil, cathode to the high side, anode to the low side. For 230V AC inductive loads, use an RC snubber (100 Ω + 0.1 µF X2-rated) across the contact.
- For the 0.5 A per-channel type, do not exceed 4 A total per group of 8 outputs; the group shares a common V load fuse inside the module.
Relay output (SM 322-1HF01)
For the 8 DO relay variant, the pin assignment is different. Each of the 8 outputs is a changeover contact: pin 1 = common, pin 2 = NO, pin 20 = NC for the first channel. The dry-contact outputs are voltage-agnostic (24V DC, 120V AC, 230V AC up to 2 A). The relay coil is powered from the backplane; no field supply is required for the coil itself, but the switched contact voltage is supplied externally to the field terminal block.
Combined I/O (SM 323 / SM 327)
The SM 323 (6ES7323-1BH01-0AA0) combines 8 DI and 8 DO in a single 24-pin front connector. Wiring combines the SM 321 and SM 322 sequences: pins 1-8 are inputs (with shared L+/M), pins 9-16 are outputs (with separate V load L+/M).
The SM 327 (6ES7327-1BH00-0AA0) is a 16-channel configurable DI/DO with a 40-pin front connector. Eight channels are DI by default and eight are DO; the firmware allows flexible remapping through STEP 7 HW Config.
Analog Input Module (SM 331) Wiring
The SM 331 family handles voltage, current, RTD, and thermocouple inputs. The 6ES7331-7KF02-0AB0 is the standard 8 AI, 4-wire variant. It uses a 40-pin front connector and supports ±10V, 1-5V, 0-10V, ±20 mA, 0/4-20 mA, RTD, and TC depending on the wiring configuration and HW Config setting.
Pin assignment (4-wire RTD on channels 0-3, example)
| Pin | Signal (Ch 0) | Pin | Signal (Ch 1) | Pin | Signal (Ch 2) | Pin | Signal (Ch 3) |
|---|---|---|---|---|---|---|---|
| 1 | IC+ (current+) | 2 | IC+ | 3 | IC+ | 4 | IC+ |
| 11 | IC- (current-) | 12 | IC- | 13 | IC- | 14 | IC- |
| 21 | Comp+ (compensation) | 22 | Comp+ | 23 | Comp+ | 24 | Comp+ |
| 31 | Comp- | 32 | Comp- | 33 | Comp- | 34 | Comp- |
Pin layout for the SM 331 is interleaved by channel across the 40-pin connector. Pin assignment for voltage/current input (no RTD compensation) is different; the two modes share a connector but the channel-to-pin mapping changes. Always confirm against the module data manual for the actual MLFB.
Wiring sequence for 4-20 mA current loop
- Run the 4-20 mA field signal on a shielded twisted pair (STP). Use 2-conductor with overall shield, e.g., Belden 8760 or equivalent.
- Land the field-side shield on the shield terminal clamp (Siemens
6ES7390-5AA00-0AA0) on the S7-300 mounting rail. The shield must continue directly to the field device ground bar at the field end with a 360° bond. - Connect signal+ to the IC+ pin of the assigned channel and signal- to the IC- pin.
- Do not short IC+ to M (analog ground) on the module — the SM 331 is a differential input. For single-ended current, place a 500 Ω precision resistor across the input terminals; the 4-20 mA becomes 2-10 V at the ADC.
- Configure the channel for the appropriate measurement type using STEP 7 HW Config. For RTD, set the channel to "RTD 4-wire" and select the appropriate resistance range (Pt100, Pt1000, Ni1000, etc.).
Compensation jumper for thermocouples
When wiring thermocouples, the cold-junction compensation (CJC) is performed by either an internal RTD in the 6ES7331-7PF11-0AB0 variant with CJC, or by an external isothermal block. The compensation leads are pinned to the Comp+ and Comp- terminals. Do not leave the CJC inputs floating when using TC mode — this causes 7FFF/7FFF overrange errors in the diagnostics buffer, which STEP 7 surfaces as "channel fault" entries in the CPU diagnostic buffer.
SM 331 measurement type summary
| Mode | Hardware Pins | HW Config Setting | Typical Sensor |
|---|---|---|---|
| ±10V voltage | M+ / M- | Voltage ±10V | ±10V analog output |
| 0-10V voltage | M+ / M- | Voltage 0-10V | Pressure transmitter |
| 4-20 mA current | IC+ / IC- | Current 4-20 mA | 2-wire loop-powered sensor |
| 2-wire RTD | IC+ / IC- | RTD 2-wire | Pt100 in a short cable |
| 3-wire RTD | IC+ / IC-, Comp+ jumpered to M+ | RTD 3-wire | Pt1000, mid-length |
| 4-wire RTD | IC+ / IC-, Comp+ / Comp- | RTD 4-wire | Pt100, high accuracy |
| Thermocouple | IC+ / IC- | TC type J/K/T/N/E/R/S | Type K probe |
Analog Output Module (SM 332) Wiring
The SM 332 family is the standard analog output module. The 6ES7332-5HD01-0AB0 provides 4 AO channels of ±10V / 4-20 mA / 0-10V in a 20-pin front connector. Each channel has both QV (voltage output) and QI (current output) terminals; you use one or the other per channel, never both.
Pin assignment for SM 332-5HD01 (4 AO)
| Pin | Signal (Ch 0) | Pin | Signal (Ch 1) | Pin | Signal (Ch 2) | Pin | Signal (Ch 3) |
|---|---|---|---|---|---|---|---|
| 1 | QV0 | 2 | QV1 | 11 | QV2 | 12 | QV3 |
| 3 | QI0 | 4 | QI1 | 13 | QI2 | 14 | QI3 |
| 5 | S0+ (sense+) | 6 | S1+ | 15 | S2+ | 16 | S3+ |
| 7 | S0- (sense-) | 8 | S1- | 17 | S2- | 18 | S3- |
| 9 | M (analog gnd) | 10 | M | 19 | M | 20 | M |
Wiring sequence for 4-20 mA output
- Use shielded twisted pair; ground the shield at the cabinet entry only (cabinet side), not at the field device.
- Land the current output QI on the (+) terminal of the field device; land M (analog ground) on the (-) terminal of the field device.
- Keep the sense terminals (S+ and S-) tied to the corresponding QV/QI and M pins on the module, or leave unconnected if not used. The sense leads compensate for voltage drop on long cable runs.
- Configure the channel type and output range in STEP 7 HW Config. Selecting "Current" mode for a channel that is physically wired for voltage (or vice versa) can produce 24V DC on the output terminals, which can damage the field device. Always re-confirm the HW Config setting matches the physical wiring before energizing the field loop.
Terminal Block Selection, Wire Sizing, and Color Coding
The front connector of the SM terminates on the field terminal block. The field terminal block is typically a DIN-rail-mounted screw or push-in terminal block carrying each channel signal and a shared M or L+ return. Selection criteria:
- Wire range: 0.5-1.5 mm² stranded. Use 0.75 mm² for analog signals and 1.0 mm² for digital signals.
- Rated voltage: 250V AC minimum for digital outputs that switch 230V AC; 50V is adequate for 24V DC digital I/O.
- Current rating: 8 A minimum, 12 A preferred, to handle inrush and short-circuit transients.
- Termination type: screw (lower cost, slower) versus push-in/spring (faster, vibration-resistant). The Rockwell 1492-BR018 terminal block solutions guide documents up to 50% wiring-time reduction with push-in technology.
- Ribbon-cable transition: for pre-wired harnesses, the AutomationDirect chapter 3 wiring reference provides a 40-pin to 40-discrete transition pattern using 0.100" pitch connectors.
- Redundant wiring topology: for high-density or DCS-adjacent panels, the Emerson DeltaV M-series traditional I/O datasheet describes redundant terminal block pairs as a wiring topology reference.
- Module-specific terminal block procedure: the Schneider EcoStruxure Building IP-IO module wiring reference describes the "disconnect 24 VAC/DC power, then wire" sequence, which applies to S7-300 as well: always de-energize the field supply before landing or unlanding wires.
Color coding per IEC 60204-1 / NFPA 79
| Wire Color | Function |
|---|---|
| Red or Red/Blue | 24V DC L+ (positive supply) |
| Blue | 24V DC M (negative supply / common) |
| Black | 24V DC digital signal (input or output) |
| Yellow | 230V AC line (L) |
| Light Blue | Neutral (N) for 230V AC |
| Green/Yellow | Protective Earth (PE) |
| White or Violet | Analog signal+ / signal- |
Wire sizing calculation
A 24V DC digital signal at 0.5 A per channel and a 100 m loop length drops:
V_drop = I × R × 2 / 1000 (for 1 mm² copper, R ≈ 18.5 mΩ/m, factor 2 for the return path)
For 1.0 mm² wire at 100 m loop, 0.5 A: V_drop = 0.5 × 0.0185 × 200 = 1.85 V. This is acceptable for 24V inputs with a 15-30V working range, but it puts a 3-wire analog sensor at the low end of its supply tolerance. Use 1.5 mm² for analog signal lines exceeding 50 m.
Shielding, Grounding, and EMC Practices
EMC compliance is the single largest wiring failure mode for first-time S7-300 panels. The S7-300 backplane is designed to be mounted on a grounded metal subpanel or, more commonly, on a DIN rail with a separate ground bus.
Best-practice sequence
- Mount the S7-300 on a 35 mm DIN rail (Siemens
6ES7390-1AE80-0AA0, 2000 mm). - Connect the DIN rail to the cabinet protective earth (PE) bus at both ends of the rail using 4 mm² green/yellow conductors and ring lugs.
- Each analog SM is shipped with a shield terminal clamp (e.g.,
6ES7390-5AA00-0AA0) that snaps onto the rail next to the SM. The shield of each analog signal cable is clamped to this terminal, providing a 360° low-impedance bond to the PE bus. - For digital signals longer than 3 m, also apply the shield at the SM end only. Do not ground the shield at both ends of a digital signal cable — this creates a ground loop that injects 50/60 Hz noise into the input.
- Separate 24V DC load-current wiring (high dI/dt) from analog signal wiring (low-level) by at least 100 mm. Cross them only at 90° if they must intersect.
For more information, see the "Shielding and Grounding" section of the S7-300 module data manual, which is part of the S7-300 module data manual entry on Siemens Industry Online Support.
Wiring Errors, Diagnostics, and Commissioning Verification
After all wiring is complete, perform the following checks in sequence before powering the CPU. The verification matrix below combines visual inspection, electrical test, and STEP 7-driven I/O check.
Common wiring errors and diagnostic indicators
| Symptom | Likely Cause | Diagnostic Step | Resolution |
|---|---|---|---|
| All inputs read "1" (no input acts) | L+ to SM 321 missing or reversed | Check pin 19 with voltmeter; should read 22-26V DC | Reconnect PS 307 L+ terminal to SM 321 pin 19 |
| Inputs flicker at 50/60 Hz | Ground loop on shield | Verify shield grounded at SM end only | Lift shield ground at field end |
| SF LED on SM 331 red | Configuration mismatch or wire break | Check STEP 7 HW Config: "Diagnostic: Wire break" enable | Re-seat field wires; verify channel range |
| BF LED on analog output, value frozen at 0 | Field device polarity reversed | Check QI+ and M- polarity at field terminal | Reverse field wires at terminal block |
| All outputs stuck OFF | V load 24V missing at SM 322 | Check pin 19 and pin 20; check fuse on L+ | Reset 1 A slow-blow fuse on L+ line |
| CPU stops intermittently | PS 307 overloaded | Sum 5V backplane current and 24V load current; compare to PS rating | Upgrade to next-tier PS or split load across two PS modules |
| Analog reading stuck at 7FFF | Open thermocouple / overrange | Verify TC connection at CJC block | Tighten CJC terminals; check polarity |
| Outputs chatter on at low Hz | Inductive kickback damaging driver | Check for missing free-wheeling diode on each inductive load | Install 1N4007 or equivalent across each coil |
Verification and commissioning procedure
- Visual: confirm every front-connector screw is torqued to 0.6-0.8 Nm and every field terminal is seated. Mark each completed connection on the wiring diagram.
- Continuity: with the PS 307 disconnected, use a continuity tester to verify that the L+ bus reaches pin 19 of every SM that requires it, and the M bus reaches pin 20 of every SM.
- Insulation: use a 500V megger between L+ and PE, M and PE, and the 230V AC L/N terminals and PE. Reading > 1 MΩ at 500V is acceptable.
- Polarity: verify no L+ and M are swapped on any SM. This is a one-time check but a 100% reversible-fault prevention.
- Power up: turn on the PS 307. Check that the 5V DC and 24V DC rails come up; the green "24V OK" LED on the PS should illuminate.
- CPU: turn on the CPU. The CPU should boot to RUN if the program is valid and the wiring matches the HW Config.
- I/O check: force each input and read it in the VAT (Variable Table) in STEP 7. Force each output and verify the field device responds.
- Analog calibration: for SM 331, use the STEP 7 "Calibrate" function in HW Config to apply the auto-calibration. For the first commissioning, validate the 4 mA and 20 mA points with a precision current source.
- EMC verification: run the panel for 1 hour, then check the CPU diagnostic buffer for any "SM 331 wire break" or "SM 331 channel fault" entries. Repeat after 24 hours of burn-in.
Specific diagnostic error codes
| Module | Error Code | Meaning | Likely Cause |
|---|---|---|---|
| SM 321 | None (binary only) | All inputs "1" | L+ supply missing |
| SM 322 | SF LED solid red | Output short circuit or V load missing | Fuse on L+ blown; field wiring short |
| SM 331 | 7FFF (7FFF hex) | Overrange / wire break | Sensor disconnected, polarity reversed, or input range misconfigured |
| SM 331 | 8000 (8000 hex) | Underrange / signal below 4 mA | Loop-powered sensor without supply, or wire break on signal lead |
| SM 331 | F9xx (hex) | Channel-specific diagnostic event | Refer to the S7-300 module data manual for the channel event decode table |
| SM 332 | SF LED solid red | Output open or V load short | Field wire break on QI or QV; current loop not completed |
| PS 307 | DC 24V LED off | 24V rail not established | Input undervoltage, output overcurrent, or PS internal fault |
Frequently Asked Questions
Can I power the S7-300 entirely from 24V DC without a PS 307?
Yes, by using the PS 305 (6ES7305-1BA80-0AA0) which accepts 24V DC input and provides the same backplane and load-current rails as a PS 307. The PS 305 is rated for 2A output and is suitable for small configurations up to roughly four SMs. For larger configurations, the PS 307 remains the standard choice.
What is the maximum wire size accepted by the S7-300 front connector?
1.5 mm² (AWG 16) stranded with a 10 mm ferrule, per the S7-300 module data manual. For larger wires, you must transition to a field terminal block adjacent to the front connector. Solid wire up to 1.0 mm² is also accepted; for 0.5 mm² stranded, a ferrule is recommended to prevent stray strands.
Why does my SM 321 read all inputs as "ON" even when the sensors are not connected?
You are missing the 24V DC L+ supply on pin 19 of the front connector, or the L+ and M are reversed. With no L+, the SM 321 input comparator floats and the input register reads "1". Apply 24V DC between pins 19 and 20 and the inputs will go to "0" when the sensor is open. This is the single most common first-time-panel issue.
Do I need to ground the analog cable shield at both ends?
No. Ground the shield at the S7-300 cabinet end only, using a shield terminal clamp (Siemens 6ES7390-5AA00-0AA0). Grounding at both ends creates a ground loop that injects 50/60 Hz common-mode noise into the analog signal. The only exception is when the cable is shorter than 1 m and both ends share the same PE bus — then double-end grounding is acceptable.
Can I use a 4-wire RTD with the SM 331-7KF02?
Yes. Configure the channel as "RTD 4-wire" in STEP 7 HW Config and connect the two current leads to IC+ and IC- and the two compensation leads to Comp+ and Comp-. The SM 331-7KF02 supports Pt100, Pt200, Pt500, Pt1000, Ni100, Ni120, Ni1000, and Cu10 RTD types in 4-wire mode.
What is the difference between the SM 322-1BH01 and SM 322-1BH02?
The SM 322-1BH01 is the original 16 DO 24V DC module with 0.5 A per channel. The SM 322-1BH02 is a functionally equivalent successor with the same pin assignment but updated firmware and a more recent MLFB suffix; it is the variant shipped today. Wiring is identical between the two.