Wiring S7-1200 CM 1234 Analog Inputs to 4-Wire Sensors

David Krause12 min read
S7-1200SiemensTechnical Reference
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

1. Overview

This reference describes how to connect 4-wire analog transmitters (CO2 and temperature in the field case described) to the SIMATIC S7-1200 signal module CM 1234 (order number 6ES7 234-4HE30-0XB0) attached to a CPU 1214C DC/DC/Rly (6ES7 214-1HE30-0XB0). It covers the full field wiring path: 4-wire current-loop topology, the requirement to short unused analog input channels, the common-ground rule between sensor supply, sensor return, and PLC reference, and the TIA Portal configuration that turns the raw counts into engineering units.

The most common wiring mistake on first-time installations of the CM 1234 is leaving unused channels floating or, conversely, tying the sensor signal return to chassis ground at multiple points. Both conditions cause diagnostic nuisance faults (channel break, overflow) and unstable readings. The wiring procedure below eliminates those classes of error by enforcing a single equipotential reference and by bridging every unused X+ to its own X-.

Why 4-wire and not 2-wire: A 4-wire (also called "actively powered") transmitter has a separate pair for power supply and a separate pair for the analog output. The PLC only sources or sinks the low-current signal pair; the field supply delivers 24 V to the transmitter. This decouples the loop voltage from the sensor supply and is the recommended topology for CO2 and high-accuracy temperature transmitters because it eliminates the 3.6 mA minimum compliance burden of 2-wire loops.

2. Hardware Identification and MLFB Decode

Before wiring, confirm the exact module on the DIN rail. The CM 1234 and CM 1231 are commonly confused.

Order Number (MLFB) Description AI AO Notes
6ES7 214-1HE30-0XB0 CPU 1214C DC/DC/Rly 2 (built-in, 0-10 V only) 0 14 DI / 10 DO relay; firmware V3.x at manufacture
6ES7 234-4HE30-0XB0 CM 1234 (4 AI / 2 AO) 4 differential, ±10 V, 0-10 V, 0-20 mA, 4-20 mA 2, ±10 V / 0-20 mA / 4-20 mA Resolution 12-bit + sign (signed 16-bit raw)
6ES7 231-4HD30-0XB0 CM 1231 (8 AI) 8, same ranges as CM 1234 0 Often mistakenly ordered in place of CM 1234

The trailing block of the MLFB encodes the variant:

  • 1HE30 on the CPU = 1214C, DC supply, DC inputs, relay outputs, hardware revision 30.
  • 4HE30 on the CM = 4AI/2AO combination, hardware revision 30.
  • 0XB0 = original release. Later -0XB1, -0XB2 etc. denote revised hardware; firmware is selected separately in TIA Portal device configuration.

The CM 1234 ships in TIA Portal as AI 4 x 12 bit / AO 2 x 12 bit. If the device is missing from the project, install the HSP (Hardware Support Package) for S7-1200 signal modules or upgrade TIA Portal to V15.1 or later.

3. Prerequisites

  1. CPU 1214C DC/DC/Rly powered up, firmware V3.0 or later, TIA Portal project compiled without errors.
  2. CM 1234 mounted to the right of the CPU (or another S7-1200 module) on the DIN rail and detected in the device configuration. Confirm the green DIAG LED is off before continuing.
  3. 24 V DC field power supply sized for the transmitters plus a 20% margin. For two 4-wire transmitters drawing 50 mA each, a 1 A supply is sufficient.
  4. Shielded twisted-pair cable (e.g., Belden 8761 or Lapp Ölflex 110CY) for the analog runs. Conduit or cable tray bonded to ground at one end only.
  5. Sensor datasheet identifying whether the output is 0-10 V, 0-20 mA, or 4-20 mA. Most CO2 and TE (temperature element) transmitters in the field use 4-20 mA.
  6. Slim (2.5 mm) screwdriver for the CM 1234 cage-clamp terminals.

4. CM 1234 Analog Input Pinout and Signal Types

The CM 1234 exposes four differential input channels on the front connector, plus two analog outputs. Each input is a true differential pair; the PLC does not internally short X+ to a shared common at the terminal block. This is why unused channels must be jumpered, and why the sensor return wire must land on X- rather than on the M terminal of the field supply.

Terminal Signal Function
1, 2 AI0+ , AI0- Analog input channel 0, differential
3, 4 AI1+ , AI1- Analog input channel 1, differential
5, 6 AI2+ , AI2- Analog input channel 2, differential
7, 8 AI3+ , AI3- Analog input channel 3, differential
9, 10 AQ0+ , AQ0- Analog output channel 0
11, 12 AQ1+ , AQ1- Analog output channel 1
13, 14 L+ , M 24 V backplane power for the module (supplied through the bus connector)
Common error: tying X- to the M terminal of the field 24 V supply rather than back to the sensor's own signal return. This forms a ground loop and injects 50/60 Hz common-mode noise into the low end of the 4-20 mA range, where CO2 transmitters typically operate (400-2000 ppm).

5. 4-Wire Current Sensor Connection Procedure

The example below uses channel 0 for the CO2 transmitter and channel 1 for the TE (temperature) transmitter. Channels 2 and 3 are unused and will be bridged in step 6.

5.1 Wire the transmitter power pair

  1. Run a 2-conductor shielded cable from the field 24 V supply to the transmitter terminal block labeled +V and GND (or PWR+ / PWR-).
  2. Bond the cable shield to the ground bar at the panel entrance only. Do not terminate the shield at the sensor end; pigtail to the transmitter housing ground if the manufacturer specifies a chassis ground stud.
  3. Verify 24 V DC at the transmitter terminals with a meter before proceeding.

5.2 Wire the signal pair back to the CM 1234

  1. Run a second 2-conductor shielded cable from the transmitter's OUT+ and OUT- (or SIG+ / SIG-) to the CM 1234 front connector.
  2. Connect OUT+ to terminal 1 (AI0+) for the CO2 sensor. Connect OUT- to terminal 2 (AI0-).
  3. For the temperature transmitter on channel 1, repeat: OUT+ to terminal 3 (AI1+), OUT- to terminal 4 (AI1-).
  4. Terminate the signal-cable shield at the panel ground bar only.

5.3 Establish the common reference

The sensor datasheet states whether the signal return is galvanically isolated from the supply return. For 4-wire transmitters, the two pairs are usually isolated, so the only common point between the field supply, the sensor, and the PLC is the panel ground bar. Tie the following to the same ground bar:

  • Field 24 V supply M terminal (DC negative).
  • Sensor supply GND.
  • Sensor signal return (this is the wire you brought back to X-; the PLC X- terminal is the preferred termination point because it is already at the same potential as the backplane).
  • CM 1234 M terminal (backplane 24 V common) and the CPU's M terminal.

The single-point ground at the panel prevents the shield currents and the 4-20 mA return current from finding a parallel path through the building steel.

6. Shorting Unused AI Channels

The CM 1234 manual explicitly states that unused voltage and current input channels must be bridged between X+ and X- to prevent noise pickup that the module's diagnostic logic would otherwise flag as out-of-range or wire-break.

  1. On the front connector, install a short insulated jumper between terminal 5 (AI2+) and terminal 6 (AI2-).
  2. Install a second jumper between terminal 7 (AI3+) and terminal 8 (AI3-).
  3. Use the same wire gauge as the signal cable (typically 0.5 mm² / 20 AWG stranded) and keep the jumper length under 20 mm.
  4. In TIA Portal, set the unused channel measurement type to Voltage with the range set to ±10 V (the most tolerant default) and disable diagnostics. This prevents the wire-break diagnostic from firing on the jumpered pair.
Why not just leave the channel unconfigured? The CM 1234 still scans the ADC on disabled channels and applies its diagnostic thresholds. A floating channel with no jumper will report 0x7FFF (overflow) or a wire-break event because the differential input has no defined common-mode reference. The jumper forces the input to 0 V differential, which the module interprets as a healthy "zero" reading.

7. Configuration in TIA Portal

After the wiring is mechanically complete, configure the two active channels in the device view.

  1. Open the project in TIA Portal, expand Device configuration > CM 1234 > Analog inputs.
  2. Select channel 0. Set:
    • Measurement type: Current
    • Current range: 4-20 mA
    • Smoothing: leave at None for first commissioning; enable later for slower-changing processes.
    • Diagnostics: enable Wire break and Overflow / underflow.
  3. Repeat for channel 1 with the same settings if the temperature transmitter is also 4-20 mA.
  4. Set channels 2 and 3 to Voltage, ±10 V, diagnostics disabled.
  5. Compile the project and download to the CPU.

Scale the raw word (%IW64 for AI0 of the first CM 1234) to engineering units with the standard NORM_X and SCALE_X instructions, or the legacy SCALE FC105 if you are on firmware V3.x:

// 4-20 mA on AI0 (%IW64), 0-2000 ppm CO2
// Raw 0 = 4 mA = 0 ppm, Raw 27648 = 20 mA = 2000 ppm
// Scaled = NORM_X(VALUE := %IW64, MIN := 0, MAX := 27648) * 2000.0
// Cleaner with SCALE_X and bipolar-disable:
"CO2_ppm" := SCALE_X(
    MIN := 0.0,           // 4 mA end
    MAX := 2000.0,        // 20 mA end
    VALUE := NORM_X(
        VALUE := %IW64,
        MIN    := 0,      // 0x0000 = 4 mA on unipolar 4-20 mA
        MAX    := 27648   // 0x6C00 = 20 mA
    )
);

8. Analog Module Diagnostics in TIA Portal

After download, open Online & diagnostics on the CM 1234 in the project tree. The Online and diagnostic tools > Analog module diagnostics page in the S7-1200 manual collection enumerates the diagnostic events the module can raise. The ones that matter for a 4-wire current installation are:

Diagnostic Event Meaning Likely Cause
Wire break Input current < 3.6 mA on 4-20 mA range Open signal wire, missing jumper on unused channel, sensor unpowered
Overflow Reading > upper range limit Sensor output exceeds 20 mA, range mismatch in TIA Portal
Underflow Reading < lower range limit Reversed polarity, range set to ±10 V while sensor is 4-20 mA
Common-mode voltage out of range Vcm between X+ and M exceeds ±12 V Ground loop, sensor return not at PLC reference
Channel temporarily unavailable Module reconfiguration in progress Normal during project download; clears in <2 s

Each event populates a bit in the channel status word (%IW66 for the diagnostics of the first CM 1234 on the CPU) and the module's DIAG LED flashes red. Map the relevant bits to a global tag for HMIs and alarm logs.

9. Verification and Commissioning Checklist

Run through this list with a multimeter and TIA Portal online view before energising the transmitters for the first time.

  1. Power down the field 24 V supply and disconnect the transmitters.
  2. Measure resistance between AI0+ and AI0- on the unplugged field cable: should be < 50 Ω if a current-loop transmitter is connected, or 0 Ω if the channel is jumpered.
  3. Verify no continuity between AI0- and chassis ground at the panel; the loop return must be isolated except at the common ground bar.
  4. Reconnect the transmitters, restore power, and watch the TIA Portal online Watch table for %IW64 and %IW66.
  5. Force the CO2 sensor to read a known value (e.g., zero-gas calibration gas, or a current calibrator in series with the loop). The scaled CO2_ppm tag should agree within the sensor's stated accuracy.
  6. Force a wire-break by disconnecting one signal wire; confirm the diagnostic bit sets and the HMI shows the alarm within one scan cycle (typically 100 ms with default integration time).
  7. Restore the wiring, write the project to the PLC's RETAIN card if any startup defaults are required, and back up the project to the plant archive.

10. Troubleshooting Matrix

Symptom Probable Root Cause Corrective Action
Reading stuck at 0 ppm, no diagnostic Sensor wired in 2-wire mode but PLC expects 4-20 mA; loop is open Verify 24 V at sensor terminals; confirm OUT+ is the current source, not voltage
Reading = -32768 or negative saturation Polarity reversed on X+ / X- Swap the two signal wires at the CM 1234 terminal
Reading = +32767 and DIAG LED flashes Wire break; range set to 4-20 mA but sensor outputs 0-10 V Recheck sensor datasheet; reconfigure channel to Voltage ±10 V if appropriate
Noisy reading, 50/60 Hz ripple of 2-5 % of span Ground loop, signal return tied to chassis at sensor end Remove sensor-end shield bond; ensure only one ground point at the panel
Unused channel raises wire-break Channel not jumpered, or jumpered but still configured as current with diagnostics enabled Install X+ to X- jumper and set channel type to Voltage ±10 V with diagnostics off
Reading drifts 1-2 % of span per hour Common-mode voltage from VFD-induced ground potential Route analog cable in its own conduit, away from VFD output cables; add isolation transmitter
All four channels read 0, DIAG LED off Module not detected, or 24 V backplane power missing Check the bus connector between CPU and CM 1234; verify L+/M on the CM 1234 front connector

11. Frequently Asked Questions

Do I have to short unused analog input channels on the S7-1200 CM 1234?

Yes. The CM 1234 manual requires a jumper between X+ and X- for every unused channel. Without the jumper, the floating differential input triggers wire-break or overflow diagnostics, and the raw value in %IWxx reads as 0x7FFF.

Where does the sensor's signal return wire connect?

Connect the transmitter's OUT- (signal return) to the CM 1234 X- terminal. Do not tie it to the M terminal of the field 24 V supply. The PLC's X- terminal is already at the backplane reference, which is the single correct equipotential point for a 4-wire current loop.

What raw value corresponds to 4 mA and 20 mA in TIA Portal?

For the CM 1234 on the 4-20 mA range, 4 mA maps to 0 and 20 mA maps to 27648 (0x6C00). Use the NORM_X and SCALE_X instructions to scale this 0-27648 integer into engineering units, e.g. 0-2000 ppm for a CO2 transmitter.

Can I use the two built-in analog inputs on the CPU 1214C for a 4-20 mA sensor?

No. The CPU 1214C (6ES7 214-1HE30-0XB0) built-in analog inputs are 0-10 V only and lack the internal shunt resistor required for current measurement. For 4-20 mA, add a CM 1231, CM 1234, or SB 1231 (signal board) and configure the channel as Current, 4-20 mA.

How do I disable the wire-break diagnostic on a jumpered unused channel?

In TIA Portal, open the device configuration of the CM 1234, select the unused channel (e.g. AI2), set the measurement type to Voltage, the range to ±10 V, and clear the checkboxes for Wire break, Overflow, and Underflow under Diagnostics. This stops the diagnostic bit from being set on the jumpered channel while keeping it on the active 4-20 mA channels.

Back to blog