1. Module Identification and Functional Block Diagram
The Siemens SIMATIC S7-300 analog input module covered in this guide carries order number 6ES7331-1KF02-0AB0. It is the high-speed 8-channel SM 331 variant with 13-bit resolution across four channel groups, and is documented under Siemens Industry Online Support entry ID 8859629. The functional schematic on that entry shows the eight inputs grouped around a measuring negative bus (M-), an internal supply rail fed from the backplane +5 V (item ⑤), and a galvanic isolation barrier (item ⑦) between the analog front-end and the backplane logic. The module accepts voltage, current, RTD (PT100 / PT1000 / Ni100 / Ni1000), and thermocouple inputs, which makes it the canonical S7-300 choice when a single AI slot must host a heterogeneous mix of process signals such as 4-20 mA loops and resistance temperature detectors.
Key characteristics that influence the bonding decision:
- 8 differential inputs organized as 4 channel groups, 2 channels per group.
- Resolution 13 bits, conversion time 0.276 ms per channel (high-speed mode).
- Galvanic isolation between backplane (logic), +24 V supply, and the process side of the channel groups.
- Front connector with per-pair M- terminals rather than a shared MANA pinout, which is the source of the recurring bonding question for this variant.
- Common-mode voltage range and overvoltage protection per channel group as specified in the device manual.
2. Terminal Layout, Channel Groups, and Pinout
The 40-pin front connector of the 1KF02 is split into two rows. Each channel occupies two pins: the positive input (CHx) and its associated negative return (M-x). The M- pins of the two channels in the same group are tied together internally; the M- pins of different groups are galvanically isolated. The simplified terminal map for the 1KF02 is shown below.
| Pin (top row) | Signal | Pin (bottom row) | Signal |
|---|---|---|---|
| 1 | CH0+ | 20 | CH4+ |
| 2 | M- (group 0) | 21 | M- (group 2) |
| 3 | CH1+ | 22 | CH5+ |
| 4 | COMP0 | 23 | COMP2 |
| 5 | CH2+ | 24 | CH6+ |
| 6 | M- (group 1) | 25 | M- (group 3) |
| 7 | CH3+ | 26 | CH7+ |
| 8 | COMP1 | 27 | COMP3 |
| 9-19 | n.c. / shield clamps | 28-40 | n.c. / shield clamps |
Pin numbering and exact assignment must be verified against the wiring diagram printed on the inside of the front connector flap for the specific hardware version. The relevant convention is: M- on the front connector is the negative return of the differential input, not the module's analog ground. This is the key distinction that drives the equipotential bonding topology.
2.1 Input Range Selection
Each channel group can be configured independently in STEP 7 (HW Config) for the measurement type. The most common selections for a mixed transducer slot are:
| Measurement type | Range | Channel wiring | STEP 7 group config |
|---|---|---|---|
| Current | 4-20 mA | 2-wire loop, external 24 V supply | 2-wire current, 4-20 mA |
| Current | 0-20 mA | 2-wire loop, external 24 V supply | 2-wire current, 0-20 mA |
| RTD | PT100 standard | 4-wire, 3-wire, or 2-wire (per range setting) | Resistance thermometer, PT100 std |
| RTD | PT100 climatic | 4-wire, 3-wire, or 2-wire | Resistance thermometer, PT100 clim |
3. Current Loop (4-20 mA) Wiring on SM 331
A 2-wire 4-20 mA transmitter is powered from the loop supply and returns its signal on the same pair. The transmitter is wired to the SM 331 as follows:
- Connect the positive terminal of the transmitter loop to the +24 V loop supply rail (typical: PS 307 +24 V output, fused).
- Connect the negative terminal of the transmitter to the SM 331 CHx+ input pin.
- Connect the SM 331 M- pin of the same channel group to the loop supply 0 V (M) terminal.
For a 4-wire 4-20 mA transmitter the field device has separate power terminals, and the signal pair is wired to CHx+ and M- of the same group.
PS 307 +24V ---+--- [TX +]
| |
| +--- SM331 CHx+ (pin 1/3/5/7)
| |
| +--- [TX -] (signal return)
| |
PS 307 M ---+-----------------+--- SM331 M- (pin 2/6/21/25)
The M- terminal is the return path of the loop current; it is not a chassis or protective earth. However, because the loop supply 0 V is itself bonded to the cabinet ground bar, M- ends up at the same potential as the cabinet ground when the topology is correct. If the cabinet ground bar and the +24 V M terminal drift relative to each other due to load current on the 24 V rail, the SM 331 channel will see that drift as a common-mode error on M-.
4. PT100 RTD Wiring on SM 331
PT100 sensors are passive resistive devices and are wired directly to the SM 331 without any external supply. The 1KF02 supports 2-wire, 3-wire, and 4-wire RTD connection per group:
| Wiring | Use case | Connections per sensor |
|---|---|---|
| 4-wire | Highest accuracy, long cable runs, low resistance lead error | 2 current source leads (I+, I-), 2 sense leads (S+, S-) |
| 3-wire | Compensated lead resistance, typical industrial standard | 2 current source leads shared with 1 sense lead, 1 return |
| 2-wire | Short cable, lead resistance negligible | 2 leads total, no compensation |
For 3-wire PT100 on the 1KF02, the typical pinout per group is:
Sensor lead 1 (red) --- SM331 CHx+ (current source I+)
Sensor lead 2 (white) --- SM331 M- (current source I-)
Sensor lead 3 (red) --- SM331 COMPx (sense S+)
The 3-wire connection internally compensates for the lead resistance by using the M- and COMPx pins as a Kelvin measurement pair. Critically, the M- terminal is reused as the negative current source for the RTD; this is the same physical pin that carries the 4-20 mA return on a different group. If both 4-20 mA and PT100 are wired to the same group, the M- terminal would be asked to carry two different signal types simultaneously, which is the central reason the configuration must be segregated by group and the M- topology must be carefully designed.
5. Mixed Transducer Configurations in One Slot
The scenario in the original query is a 1KF02 that must accept both 4-20 mA loops and PT100 RTDs in the same module. Because each channel group is configured independently, this is fully supported; the constraint is the bonding topology of the four M- pins (one per group).
The recommended assignment of channel groups in STEP 7:
| Group | Channels | Measurement type | Loop supply | M- function |
|---|---|---|---|---|
| 0 | CH0, CH1 | 4-20 mA, 2-wire | External 24 V from PS 307 | Current return to PS M |
| 1 | CH2, CH3 | 4-20 mA, 4-wire | Field device powered separately | Signal return to PS M |
| 2 | CH4, CH5 | PT100, 3-wire | None (passive) | Current source I- to internal reference |
| 3 | CH6, CH7 | PT100, 4-wire | None (passive) | Current source I- to internal reference |
There is no electrical conflict between the two transducer types when they occupy different groups. The M- pins are still isolated between groups, but the reference potential seen by each group must be the same, otherwise the ADC conversions will be offset by the inter-group reference difference.
6. Equipotential Bonding Principles for S7-300
Equipotential bonding is the practice of forcing all reference points of a system to the same electrical potential so that no spurious current flows between them. In an S7-300 installation the relevant reference points are:
- The CPU M terminal (M of the backplane / backplane bus ground).
- The PS 307 power supply M terminal (24 V return).
- The main cabinet ground bar (protective earth, PE).
- The M- terminal of each SM 331 channel group.
- The cable shields of analog signal cables at the cabinet entry.
The S7-300 Automation System manual specifies that the CPU/IM ground, the PS M terminal, and the main cabinet ground bar must be the same potential, and that all analog signal cable shields and analog M- references must be bonded back to the same equipotential point. The relevant manual sections are:
- Section 4.7, page 267 — wiring of M- and M (CPU) for analog modules.
- Section 6.6 — general cabinet grounding.
- Section 4.2 — analog module wiring examples (MANA variants).
- Pages 248-266 — general wiring and connection guidelines.
- Pages 358-360 — recommended equipotential bonding topology for analog signal cables.
The canonical S7-300 practice is:
- Bond the PS 307 M terminal to the main ground bar with a short, fat conductor (minimum 6 mm² / 10 AWG, shorter than 0.5 m where practical).
- Bond the CPU M terminal to the same ground bar through the backplane bus, or via a dedicated conductor on the mounting rail if the CPU has an external M terminal.
- Bond the shield of every analog signal cable to the ground bar at the cabinet entry using EMC cable glands or shield clamps.
- For modules with M- terminals, bus all M- pins together at a common terminal block, then run a single conductor from that block to the main ground bar (or to the PS M terminal, which is itself bonded to the ground bar).
7. M- vs MANA — Functional and Topological Distinction
The confusion in the original query arises from a real ambiguity in the Siemens manual: the 1KF01 and 1KF02 are documented in adjacent pages, and older SM 331 variants used a single MANA pin per group instead of M-. The distinction matters because the wiring diagram differs.
| Term | Function | Found on | Topology |
|---|---|---|---|
| MANA | Analog ground reference for the ADC; one pin per channel group, used as the negative return for all inputs in that group | SM 331 1KF01 and earlier | Bond MANA to ground bar; can sometimes be left floating for isolated thermocouples |
| M- | Negative signal return for each input channel, with two M- pins per group (one per channel) internally tied | SM 331 1KF02 and similar high-speed variants | Bond all M- pins together; route single conductor to ground bar / PS M |
On the 1KF02 specifically, there is no MANA pin on the front connector. The M- pins of each pair are the only field-side ground reference. Section 4.7 of the S7-300 manual is explicit that the M- of the analog module should be connected to the M of the CPU (which is itself bonded to the ground bar). The recommendation in the field report to "connect all M- terminals together, then connect to the main ground line" is the standard interpretation of section 4.7.
8. Recommended Wiring Topology for Mixed 4-20 mA and PT100
The following topology is the recommended implementation for a 1KF02 with both 4-20 mA and PT100 channels. All M- pins are bused to a single distribution terminal, and the distribution terminal is connected to the main cabinet ground bar with a dedicated conductor. The PS 307 M terminal and the CPU M terminal are also bonded to the same ground bar.
Key rules encoded in the diagram:
- All four M- pins land on a single M- bus terminal block inside the cabinet.
- The M- bus terminal is connected to the main cabinet ground bar with a dedicated conductor (recommended 4 mm² / 12 AWG, as short as practical, ≤ 0.5 m).
- The PS 307 M terminal is bonded to the same ground bar.
- The CPU M terminal is bonded to the same ground bar (typically through the backplane bus and the rack mounting rail).
- No M- conductor is run to a "clean earth" or to a remote ground rod; the bond must be at the same equipotential point as the rest of the system.
8.1 What NOT to do
The following anti-patterns are observed in field installations and should be avoided:
- Multiple ground points. Running M- to the PS 307 M terminal and the cabinet ground bar creates a ground loop if those two points are not at the same potential under load. Bond to one point only.
- Floating M-. Leaving any M- pin unconnected on a 4-20 mA group causes the loop current to find an undefined return path, producing erratic ADC readings and overvoltage faults.
- Long M- conductors. Routing the M- bonding wire through a cable duct with parallel AC power conductors picks up common-mode noise and degrades ADC accuracy, especially on the 13-bit channel group.
- Daisy-chained M- between modules. The M- of one SM 331 should not be the source for the M- of another. Each module's M- should be bonded back to the same equipotential point individually.
9. Shielding, Cable Routing, and EMC Considerations
The 4-20 mA loop cables and the PT100 sensor cables must be shielded for industrial EMC compliance. The shield is bonded at the cabinet entry to the same equipotential point that the M- bus lands on. The cable shield and the M- conductor serve different functions:
| Conductor | Function | Bonding |
|---|---|---|
| Signal pair (CHx+ / M-) | Carries the actual process signal | Bonded to the SM 331 front connector and to the field device terminals |
| Cable shield (foil + braid) | Diverts coupled RF / ESD to ground | Bonded at the cabinet entry via EMC gland; optionally at the field device end per sensor manufacturer |
| Drain wire | Continuity of the shield when not using a gland | Landed on the shield clamp terminal at the cabinet entry |
Keep analog signal cables separated from AC power cables by a minimum of 200 mm in the cabinet, and use separate cable ducts. Crossings should be at 90°. For PT100 sensors in 3-wire mode, route the three leads together in the same cable to keep their temperature coefficients matched; a 4-wire PT100 should use a four-core shielded cable with all four cores of identical cross-section.
10. Power Supply, CPU M, and Ground Bar Coordination
The S7-300 manual prescribes that the PS 307 M terminal, the CPU M terminal, and the main cabinet ground bar must be at the same potential. In practice this is achieved with a star-ground topology inside the cabinet:
- One main ground bar near the cabinet floor entry, bonded to the building protective earth.
- One short, fat conductor from PS 307 M to the ground bar.
- One conductor from the backplane mounting rail to the ground bar (this carries the CPU M).
- One conductor from the M- bus terminal of every analog module to the same ground bar.
- One conductor from every analog cable shield clamp to the same ground bar.
If the installation uses an IM (interface module) in a remote ET 200M station, the IM grounding follows the same rule: the IM ground must be at the same potential as the CPU M, otherwise the PROFIBUS shield current will find a path through the analog M- conductors.
11. Verification, Commissioning, and Loop Checks
After wiring the SM 331 1KF02 per the topology in section 8, perform the following verification before powering the system:
- De-energize the PS 307, the loop supplies, and the field devices.
- Use a multimeter on continuity / low-ohm range to verify: M- (Grp 0) to M- (Grp 1) to M- (Grp 2) to M- (Grp 3) — all should read < 1 Ω.
- Verify M- bus to main ground bar: < 1 Ω.
- Verify PS 307 M to main ground bar: < 1 Ω.
- Verify CPU M (backplane) to main ground bar: < 1 Ω.
- Verify no continuity between M- and any CHx+ pin (should be open circuit).
- Verify shield continuity from cabinet entry to each analog connector, < 2 Ω.
After powering up:
- Force a known 12.000 mA signal into a 4-20 mA channel; read the corresponding input word in STEP 7 (online > monitor). The expected count is approximately 12 mA / 16 mA × 27648 ≈ 20736 for 4-20 mA unipolar. Deviation should be within the module's accuracy spec.
- Apply a 100.00 Ω precision resistor (or a calibrated PT100 simulator at 0 °C / 100.00 Ω) to a PT100 channel; verify the read value.
- Run a 24-hour drift log; the channel-to-channel reference offset should be stable to within the module's drift spec.
- Verify that no SF (group fault) LED is lit on the SM 331. SF indicates a configured-vs-wired mismatch, overrange, wire break, or short.
12. Troubleshooting Matrix for Common M- Bonding Defects
| Symptom | Likely cause | Verification | Remedy |
|---|---|---|---|
| All 4-20 mA channels read approximately 0 mA regardless of input | M- bus not bonded; loop current has no return | Measure voltage between M- and PS 307 M; should be < 50 mV | Connect M- bus terminal to ground bar |
| 4-20 mA channels read approximately 0 mA or near 4 mA erratically | M- bonded to wrong point (e.g., to shield instead of ground bar) | Trace conductor; verify < 1 Ω to ground bar | Re-route M- bond to main ground bar |
| Channels read correctly at low values but saturate at high values | M- conductor too long or too thin; voltage drop under loop current | Measure M- to PS M at full-scale current | Shorten and thicken M- bond; use ≥ 4 mm² |
| PT100 channel reads ~ -200 °C or off by 30+ °C | 3-wire COMPx not connected, or M- of group not connected (current source open) | Check COMPx and M- wiring for that group | Re-wire 3-wire PT100 per section 4 |
| Channel-to-channel offset that varies with PS 307 load | M- bonded to PS M but PS M drifts under load relative to ground bar | Measure PS M to ground bar at full load | Bond M- directly to ground bar; verify PS M to ground bond is short and fat |
| Group fault (SF) LED on, "Wire break" diagnostic on 4-20 mA channel | M- not connected, or signal pair open at field end | Loop-test with mA source; check field terminals | Restore M- continuity; re-terminate field end |
| Group fault (SF) LED on, "Short" diagnostic on PT100 channel | Sensor leads shorted, or M- and COMPx reversed | Measure resistance between each lead pair at the field end | Correct PT100 wiring; replace damaged sensor |
| Erratic readings with switching of nearby AC loads | Shield not bonded, or M- conductor routed parallel to AC power | Inspect cable routing; check shield continuity | Re-route signal cable; bond shield at cabinet entry |
| Reading drifts by tens of counts over a few minutes | Thermocouple-style cold-junction effect from M- conductor temperature gradient | Touch M- conductor and watch reading | Use matched cable, route away from heat sources, shorten M- conductor |
| Module reports "Configuration error" in STEP 7 after first download | STEP 7 group config does not match physical wiring (e.g., group set to voltage but wired for current) | Compare HW Config > Inputs setting to actual wiring | Reconfigure the group in HW Config to match wiring (4-20 mA or PT100 std / clim) |
13. Frequently Asked Questions
Should the M- terminals of mixed 4-20 mA and PT100 channels share one ground point?
Yes. Bond all M- pins of the 1KF02 to a single bus terminal and connect that bus to the main cabinet ground bar. The PS 307 M and the CPU M must be at the same equipotential point. The S7-300 manual section 4.7 (page 267) is the reference for this rule.
Can the M- be connected to the 24 V power supply M terminal instead of the main ground bar?
Yes, but the PS 307 M terminal must itself be bonded to the main ground bar. A direct run from the M- bus terminal to the ground bar is preferred because it eliminates an extra connection point and is the topology shown in the S7-300 manual on pages 358-360.
Is the M- terminal the same as MANA on the 1KF02?
No. The 1KF02 has no MANA pin on the front connector. M- is the negative signal return per channel pair, and the four M- pins (one per group of two channels) are internally isolated from each other. M- must be bonded at the cabinet; MANA on older variants is the analog ground reference and serves a similar but not identical role.
What wire cross-section is acceptable for the M- bonding jumper?
Use 1.5-4 mm² (16-12 AWG) stranded copper with ferrules. The M- bond is not a load conductor; it only equalizes reference potential. Keep the jumper as short as practical, ideally under 0.5 m, and run it next to the cabinet ground bar without sharp bends.
Do I need to bond the analog cable shield at both ends?
No. For analog signal cables in S7-300 installations, single-ended bonding at the cabinet entry is standard practice to break ground loops. Use EMC cable glands or shield clamps that provide a 360° low-impedance bond to the cabinet ground bar. The far end of the shield is typically left floating or terminated per the field device manufacturer's recommendation.
Why does STEP 7 report a wire break on a 4-20 mA channel that is clearly wired correctly?
The 1KF02 uses a small sense current to detect wire break on 4-20 mA inputs; if the M- return path is not bonded to the loop supply M, the sense current cannot complete the circuit and the module reports wire break. Verify M- continuity to the PS 307 M terminal or directly to the ground bar before suspecting the field wiring.