Troubleshooting S7-1215C Analog Outputs: 0-20mA Wiring and Config

David Krause14 min read
S7-1200SiemensTroubleshooting
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

Troubleshooting S7-1215C DC/DC/DC Analog Outputs: Wiring, Scaling, and Configuration

The SIMATIC S7-1215C DC/DC/DC integrates two on-board analog outputs (AQ0 and AQ1) that engineers frequently mis-wire or mis-configure when scaling a 0-20 mA current loop. Typical field reports show the output tag driving correctly (0 at 0 %, 27648 at 100 %) in the watch table, yet the measured loop current is wrong — for example, 0.17 mA at 50 %, 0.38 mA at 100 %, or an anomalous 18.54 V DC at the terminals. This reference isolates those failures, walks through the official Siemens diagnostic procedure, and provides the verification steps needed to confirm a healthy output channel.

1. Symptom Summary

When a field report mentions a CPU 1215C DC/DC/DC with the symptoms below, the most likely root causes are wiring, output-type configuration, or an open 4-wire loop. Use the symptom table as a triage matrix.

Observed Symptom Likely Root Cause First Check
QW64 changes 0 → 27648, output stays near 0 mA Open current loop / no return path Verify 2M common and load return
Output reads ~2.09 mA at 0 % and ~0.38 mA at 100 % Channel configured for voltage (±10 V) and measured with a current meter in a high-impedance loop Switch output type to "Current" in TIA Portal
Output terminals show 18.54 V DC Channel in voltage mode, no load attached, or a voltmeter is reading open-circuit Reconfigure channel to current, or place a defined load resistor
Both channels behave identically (0.38 mA at 100 %) Common-mode wiring error (2M not landed, both AQs share one floating return) Verify 2M jumpered to PSU common
Output drifts with temperature Loose terminal screw on the removable connector Re-torque to 0.5 N·m
Important: The S7-1215C DC/DC/DC analog outputs are sourcing-type outputs. They actively drive current into the loop and require a return path to the onboard analog common (2M). They cannot drive a passive 4-20 mA indicator without a shared common reference.

2. S7-1215C DC/DC/DC Analog Output Hardware Specifications

Confirm the channel ratings before drawing current. The values below are taken from the official SIMATIC S7-1200 manual collection, current-output section for the CPU 1215C.

Parameter Value
Number of outputs 2 (AQ0, AQ1)
Output type (per channel) 0-20 mA, 4-20 mA, ±10 V (software-selectable per channel)
Resolution 14 bits
Full-scale value 27648 decimal (0x6C00)
Over-range value 32511 decimal (0x7EFF) — current output clamps at 22.9 mA
Output current maximum (current mode) 22.9 mA (open-loop protection)
Load impedance (current mode) ≤ 600 Ω
Output voltage maximum (voltage mode) ±10.5 V with 1 mA drive
Conversion time 1 ms (per channel, with channel-to-channel settling)
Isolation No isolation between channels; isolation to logic = 707 V DC (1 min)
Terminal torque 0.5 N·m (3.5 lb·in)

Source: Measurement ranges of the analog outputs for current (CPU 1215C and CPU 1217C) in the S7-1200 manual collection on docs.tia.siemens.cloud.

3. Default Tag Addresses and I/O Memory Map

On a CPU 1215C DC/DC/DC with no signal module (SM) and no signal board (SB) installed, the analog I/O defaults are fixed. The two outputs are addressed in the process image output (PIQ):

Channel PIW / PQW Address PLC Tag (default) Word Width
AQ0 PQW64 (IW = PQW for output) QW64 16 bits
AQ1 PQW66 QW66 16 bits

Scaling rule (current and voltage):

  • 0 → 0 % (0 mA or 0 V)
  • 13824 → 50 % (10 mA or 5 V)
  • 27648 → 100 % (20 mA or 10 V)
  • 32767 → full over-range (current clamps to 22.9 mA)

The tag value is unsigned integer. Always scale the engineering value through the NORM_X / SCALE_X instructions or a manual conversion INT_TO_REAL → multiply by 20 / 27648 → REAL_TO_INT. Writing a real-world value such as 0.5 directly into QW64 will be interpreted as 0 because the PLC truncates non-integer writes to the output word.

4. Output Type Selection: Voltage vs. Current

The 1215C outputs are software-configurable per channel. The selection is made in TIA Portal at Device Configuration → CPU 1215C → Properties → Analog outputs:

  1. Open the device view of the CPU.
  2. Select the Analog outputs node in the device tree.
  3. Click on channel 0 (and channel 1 if needed).
  4. In the Properties inspector, set Output type to one of:
    • Voltage (±10 V)
    • Current (0-20 mA)
    • Current (4-20 mA)
  5. Compile and download to the CPU. A stop-to-run transition is required to apply the new output type.
Why the 0.38 mA reading appears: If the channel is configured for ±10 V and the engineer measures current with a series ammeter, the internal output stage is a voltage source behind a current limit. The ammeter itself is the only load. If the meter's burden is > 22.9 mA equivalent at the 10 V drive, the output simply delivers what it can. Reading 0.38 mA at 100 % (27648) with a 250 Ω load and a voltage-mode channel will not give 10 V across the resistor; instead, the output stage is unable to source the required 40 mA into 250 Ω (10 V / 250 Ω = 40 mA) and clamps at the 22.9 mA open-circuit limit. The voltage drop measured across the resistor is therefore only ~0.1 V, not 10 V. This is the most common misdiagnosis.

Reconfigure both channels to Current (0-20 mA), download, and re-test before continuing.

5. Wiring Diagram and Terminal Assignment

The analog I/O terminals are on the bottom edge of the CPU, behind a removable orange connector. Pin assignment for the 1215C DC/DC/DC:

Pin Signal Description
1 n.c. Reserved (do not connect)
2 2M Analog common (return for AQ0 and AQ1)
3 AQ0 Analog output 0 — current or voltage, depending on configuration
4 AQ1 Analog output 1 — current or voltage, depending on configuration
5 n.c. Reserved
6 n.c. Reserved
7 n.c. Reserved
8 n.c. Reserved

The 2M terminal is internally bonded. Both AQ0 and AQ1 share the same analog common. If the field device is isolated, the device's signal common must still be tied to 2M. If the field device is non-isolated, 2M must be tied to the field device's signal ground at exactly one point to avoid ground loops.

For a 4-wire current loop driven by the 1215C, the correct topology is:

S7-1215C Pin 3 (AQ0) Pin 2 (2M) 250 Ω Field device (4-wire input)

The test load can be a 250 Ω, 500 Ω, or any precision resistor up to the 600 Ω maximum load for current mode. For a bench verification, a 500 Ω resistor across AQ0 to 2M gives a 0-10 V drop at 0-20 mA, which is easy to read on a standard DMM.

6. Common Wiring Errors on the 1215C

The most frequently reported field failures cluster into four categories. Each has a distinct signature.

6.1 Front/Back Terminal Block Reversal

The 1215C has two rows of screw terminals on the bottom — digital inputs on the upper row, analog I/O on the lower row. Engineers with the CPU mounted in a cabinet where the wiring enters from above occasionally land the analog wires on the digital terminal block and vice versa. The 2M terminal in particular looks like a normal digital M terminal and is easy to mistake for a digital common. Verify continuity with an ohmmeter between the terminal and the 2M pin on the device label.

6.2 Missing Analog Common

If 2M is left floating, the output stage cannot complete a loop. The PLC tag value changes correctly, but no current flows because there is no return path. The field device may show a small leakage-induced offset of 1-3 mA — consistent with the 2.09 mA reading some engineers report at 0 %.

6.3 Voltage Output Misused as Current

If the channel is left at the factory default of Voltage, writing 27648 yields 10 V. Connected to a 250 Ω burden, the source attempts to deliver 40 mA but clamps to 22.9 mA. The reading 0.38 mA reported in some threads implies the load is not even completing a path — the field device is reading essentially zero current. The fix is a configuration change, not a wiring change.

6.4 Polarity Reversal on Externally Powered Loops

If a 24 V loop supply is wired in series with the AQ output, the output cannot source against an external supply that opposes it. The 1215C analog outputs are passive 0-20 mA / ±10 V outputs with onboard drive only; they do not include a loop power supply. If the field device requires a loop-powered input, install a separate 24 V supply and a dropping resistor.

7. Diagnostic Procedure with Test Resistor

Follow this bench procedure to isolate a wiring fault from a configuration fault. It is the same procedure Siemens support uses for first-line triage.

  1. Place the PLC in STOP.
  2. Disconnect all field wiring from AQ0, AQ1, and 2M.
  3. Land a precision 500 Ω, 0.1 % or better, 1 W resistor between AQ0 (pin 3) and 2M (pin 2). Repeat with a second resistor on AQ1 (pin 4) to 2M.
  4. Connect a DMM across the resistor in voltage mode (4-wire or a separate voltmeter).
  5. In TIA Portal, go online and add a watch table. Force QW64 = 0 and QW66 = 0. Verify the voltmeter reads 0.000 V (within ±2 mV noise floor).
  6. Force QW64 = 13824. Expected voltage = 5.000 V (current = 10 mA × 500 Ω).
  7. Force QW64 = 27648. Expected voltage = 10.000 V (current = 20 mA × 500 Ω).
  8. If the readings match within 0.3 % (30 mV at 10 V), the output stage is healthy. The fault is in the field wiring or the field device.
  9. If the readings are off by more than 5 %, the channel configuration is wrong (likely voltage mode), or the output is damaged.
Do not use a 250 Ω resistor for a voltage-mode channel. The output will saturate against its 22.9 mA current limit and the test will mis-diagnose the channel as broken. Either use 500 Ω and reconfigure to current, or use 1 kΩ and reconfigure to voltage.

8. Interpreting Field Readings: The 18.54 V DC Anomaly

The reported reading of 18.54 V DC at the analog output terminals is, in practical terms, impossible for a 1215C analog output to produce on its own. The output stage is bounded at ±10.5 V. A reading of 18.54 V therefore implies one of the following conditions:

  1. An external voltage source is back-feeding the AQ terminal. A typical cause is a mis-wired 24 V supply from the field side (the field device is sourcing the loop instead of the PLC).
  2. The voltmeter is reading the digital-output 24 V rail that is physically adjacent to the analog terminal block. The orange removable connector can be inserted one row off, so pin 2 of the analog block is actually pin 2 of the digital block.
  3. The CPU has a damaged output stage and the protection zener is conducting to the 24 V rail. In this case the output is destroyed and the channel cannot be recovered without CPU replacement.

To isolate, remove the orange terminal connector entirely and re-measure between pin 3 and pin 2 of the connector (not the CPU). If the voltage is still 18.54 V, the source is external. If the voltage is 0 V on the connector and 18.54 V when seated, the CPU output stage is damaged.

9. TIA Portal Configuration Walkthrough

For a fresh project where the analog outputs do not appear to function, confirm the configuration in the following sequence.

9.1 Device Configuration

Open the project, expand the device tree, and select the CPU 1215C DC/DC/DC. The catalog part numbers are:

MLFB Description
6ES7215-1AG40-0XB0 CPU 1215C DC/DC/DC, firmware 4.x
6ES7215-1HG40-0XB0 CPU 1215C AC/DC/RLY
6ES7215-1BG40-0XB0 CPU 1215C DC/DC/RLY

Right-click the Analog outputs node and confirm both channels are present. If they are not, the CPU in the project is a 1212C or 1214C — both have only two analog inputs and zero analog outputs.

9.2 PLC Tag Table

Open the default tag table. Confirm the system-default tags:

  • QW64 (WORD) — output word for AQ0
  • QW66 (WORD) — output word for AQ1

If a signal module (SM) is installed to the right of the CPU, the analog output addresses shift accordingly. The first SM analog output word starts at PQW72, and so on. The on-board analog outputs are always PQW64 and PQW66 regardless of the configuration further to the right.

9.3 Output Type and Range

In the Properties pane of the analog output channel, set:

  • Output type: Current
  • Current range: 0-20 mA (or 4-20 mA if the field device is loop-powered)
  • Diagnostics — short circuit: Enabled (only valid in voltage mode, but does not cause nuisance in current mode)
  • Reaction to CPU STOP: Hold last value or Substitute value (default = Hold last value; 0 mA in many projects)

9.4 Programmatic Scaling

The simplest scaling block in Structured Text is:

// Input: aiPercent (REAL, 0.0 to 100.0)
// Output: QW64 (INT, 0 to 27648)

IF aiPercent < 0.0 THEN
    aiPercent := 0.0;
END_IF;

IF aiPercent > 100.0 THEN
    aiPercent := 100.0;
END_IF;

QW64 := REAL_TO_INT(aiPercent * 276.48);

For ladder logic, use the NORM_X and SCALE_X instructions from the Convert operations folder in TIA Portal. The NORM_X instruction normalizes the engineering value to a 0.0-1.0 REAL, and SCALE_X scales it to the 0-27648 output range. Both must be unipolar for a 0-20 mA output.

10. Verification Checklist

Run through the items below in order before declaring the analog output channel functional.

Step Action Pass Criteria
1 Stop CPU, disconnect field wiring, install 500 Ω test resistor Resistor is between AQ0 and 2M
2 Confirm output type is "Current (0-20 mA)" in TIA Portal Device view shows the selected type
3 Force QW64 = 0 Voltmeter across resistor reads 0.000 V ± 0.005 V
4 Force QW64 = 13824 Voltmeter reads 4.999 V to 5.001 V
5 Force QW64 = 27648 Voltmeter reads 9.998 V to 10.002 V
6 Force QW64 = 32511 (over-range) Current clamps at 22.5 mA to 23.3 mA (11.25 V to 11.65 V across 500 Ω)
7 Reconnect field wiring, place PLC in RUN Program writes correct QW64 value from scaled engineering variable
8 Measure current at the field device terminals Current matches QW64 / 27648 × 20 mA ± 1 %

11. Common Field-Reporting Patterns

The following patterns come from the symptoms reported in engineering threads and consistently resolve to a small set of root causes. They are useful as a quick triage matrix when triaging a call from a field technician.

Symptom Configuration Wiring Hardware Action
QW64 = 27648 → 0.38 mA at output Channel in voltage mode 250 Ω burden on output OK Reconfigure to current
QW64 = 0 → 2.09 mA at output Channel in current mode Floating 2M, leakage path through field device OK Tie 2M to field common
Output reads 18.54 V DC at terminals Unknown Unknown; suspect terminal reversal or external 24 V Possibly damaged Pull connector, re-measure on connector pins
Both channels give identical wrong output Channels both in voltage mode (default) OK OK Reconfigure both channels to current
One channel works, the other reads 0 OK Likely broken wire to failed channel Possibly damaged Swap AQ0 / AQ1 wiring at the connector; if the fault follows the wire, the channel is OK
Output drifts after 30 minutes of operation OK Loose screw on orange connector OK Re-torque to 0.5 N·m

12. Reference Documents

The diagnostics and specifications in this article are taken from the official SIMATIC S7-1200 manual collection. Use these as the source of truth when escalating a case to Siemens support.

FAQ

What are the default addresses for the analog outputs on a CPU 1215C DC/DC/DC?

The two on-board analog outputs are AQ0 at PQW64 and AQ1 at PQW66. These addresses are fixed regardless of signal modules installed to the right of the CPU. PLC tag names are QW64 and QW66 by default.

Why does QW64 = 27648 produce only 0.38 mA at the output terminals?

The channel is almost certainly configured for voltage (±10 V) in TIA Portal. At 27648 the channel drives 10 V, and a 250 Ω burden attempts to draw 40 mA, which exceeds the 22.9 mA hardware limit. The output stage clamps to 22.9 mA, but the burden plus meter impedance drops most of the voltage — the resulting measured current is 0.38 mA. Reconfigure the channel to "Current (0-20 mA)" in the device view and download.

What is the maximum load resistance for the 1215C current output?

600 Ω maximum. At 20 mA across 600 Ω the loop voltage is 12 V, which is the compliance limit of the output stage. For bench testing, use 500 Ω to stay well within the safe operating area.

What is the 2M terminal and is it isolated from the 24 V DC supply common (1M)?

2M is the analog common for AQ0 and AQ1. It is not isolated from 1M (the 24 V logic common) on most 1215C variants. Tie 2M to the field device's signal common at exactly one point to avoid ground loops, or use an isolated field device.

How do I test the analog output without a field device connected?

Place a 500 Ω, 0.1 %, 1 W resistor between AQ0 and 2M and measure the voltage across it. Use TIA Portal to force QW64 to 0, 13824, and 27648. Expected readings are 0 V, 5 V, and 10 V respectively. If the readings match within 0.3 %, the analog output stage is healthy.

Back to blog