Overview
The SIMATIC S7-1200 CPU 1214C is a compact controller in the SIMATIC family with onboard digital inputs (DI), digital outputs (DO), and analog inputs (AI) intended for 24 V DC sensor signaling per IEC 61131-2 type 1. When interfacing discrete sensors, an integrator must choose the correct sourcing (PNP) or sinking (NPN) topology, verify the on-board supply budget, and respect the input voltage/current thresholds specified by Siemens. This reference consolidates the wiring of inductive proximity sensors, photoelectric sensors, and dry-contact switches to the CPU 1214C DC/DC/DC variant (order code 6ES7214-1AG40-0XB0), including the use of the SB 1221 5 V DC signal board for low-voltage logic.
The CPU 1214C accepts both sourcing and sinking 24 V devices on its standard 24 V DI inputs. The distinction between NPN and PNP matters only when the sensor is being supplied from a non-PLC source or when a mixed group of sensors is being wired into a single potential group. The wiring rules described below are derived from the SIMATIC S7-1200 Manual Collection, the S7-1200 System Manual, and the Siemens Application Note on NPN/PNP wiring.
S7-1214C Hardware Overview
The 1214C DC/DC/DC ships with 14 digital inputs, 10 digital outputs, and 2 analog inputs on board. Four signal-board (SB) slots and up to eight signal-module (SM) slots allow the base I/O to be expanded. The catalog number and key specs for the DC/DC/DC variant are summarized below.
| Parameter | CPU 1214C DC/DC/DC (6ES7214-1AG40-0XB0) |
|---|---|
| Onboard digital inputs | 14 DI @ 24 V DC, type 1 (IEC 61131-2) |
| Onboard digital outputs | 10 DO, solid-state 24 V DC, 0.5 A per channel |
| Onboard analog inputs | 2 AI, 0–10 V DC, 10-bit |
| Process image | 1024 bytes DI / 1024 bytes DO |
| Bit memory | 8192 bytes (M) |
| Supply voltage | 20.4 – 28.8 V DC |
| Sensor power 24 V out (CPU) | 400 mA max for sensor supply |
| SB slot count | 1 (SB 1221 / SB 1222 / SB 1223 / SB 1231 / SB 1232) |
| SM slot count | Up to 8 |
| Program/data memory | 100 KB work / 4 MB load |
| Bit execution time | 0.08 µs |
Source: Siemens Industry Mall catalog data for CPU 1214C. Confirm the firmware version using Online & Diagnostics → CPU information in TIA Portal; firmware 4.6 or higher is recommended for current GSD/feature support.
IEC 61131-2 Digital Input Types
IEC 61131-2 defines three input types for 24 V DC digital inputs. The S7-1200 onboard 24 V DI channels are type 1, which determines the voltage thresholds the sensor must satisfy.
| Type | OFF voltage (max) | ON voltage (min) | Notes |
|---|---|---|---|
| Type 1 | 5 V DC | 15 V DC | Used by S7-1200 standard 24 V DI; accepts 3-wire PNP and NPN with common ground reference |
| Type 2 | 5 V DC | 11 V DC | Used by some European legacy I/O |
| Type 3 | 5 V DC | 11 V DC | Mechanical switch / IEC 60947-5-2 compatible |
The CPU 1214C standard 24 V DI channels guarantee:
- OFF state: V < 5 V DC (1 mA max)
- ON state: V ≥ 15 V DC (2 mA to 15 mA per channel)
- Transition band: 5 V ≤ V ≤ 15 V (undefined; not a valid logic state)
Because the inputs are type 1, a sensor whose output voltage in the ON state falls below 15 V DC is not guaranteed to be detected. This rules out bare 5 V TTL signals on the standard onboard DI. Refer to S7-1200 System Manual, chapter "Wiring" .
Sourcing (PNP) vs Sinking (NPN)
Sensor output transistors are described by the direction of current flow between sensor and load:
| Topology | Output transistor | ON state behavior | Compatible with 1214C? |
|---|---|---|---|
| PNP (sourcing) | Pushes +24 V to the load | Output ≈ +V supply; PLC input sees high voltage, current flows into input | Yes - native |
| NPN (sinking) | Pulls load down to 0 V | Output ≈ 0 V; PLC input sinks current to its M terminal | Yes - with proper wiring |
Both topologies are supported because the type 1 input is bidirectional with respect to M: it detects a "high" voltage relative to M regardless of current direction, provided a defined reference exists. The wiring difference is only the location where the sensor load is connected.
Identifying a Sensor as NPN or PNP
Use the following decision path when the sensor datasheet is missing or unclear.
- Read the part number. Common prefixes for NPN include LJ12A3-4-Z/BX (5 V version) and most Asian-market inductive proximity switches. PNP versions typically carry a trailing
Por suffix likePK. - Look at the wire color code on the sensor body:
- Brown = +V supply
- Blue = 0 V / GND
- Black = signal output
- Measure with a multimeter in diode/continuity mode between black and brown: a forward-biased PNP transistor reads ≈ 0.6 V; an NPN reads open until you reverse the leads.
- Connect the sensor to 24 V and place a 10 kΩ resistor from the output to 0 V. If the resistor junction rises toward 24 V when the target is detected, the sensor is NPN; if it falls toward 0 V, the sensor is PNP.
Wiring a PNP (Sourcing) Sensor to CPU 1214C
This is the simplest and recommended topology for new installations. The PLC 24 V sensor supply (terminal L+) feeds the sensor, and the sensor's output (black wire) drives the DI channel directly.
+24 V (CPU L+) ------> Sensor brown (+V) Sensor blue (GND) -----> CPU M (0 V) Sensor black (OUT) -----> CPU DIa.0 (or any DIa.x / DIb.x)
Verify the polarity by switching the multimeter to DC volts across the DI and M terminals while activating the sensor: you should see approximately 24 V when the target is present.
Wiring an NPN (Sinking) Sensor to CPU 1214C
For NPN sensors, the output transistor closes to 0 V when a target is detected. The CPU 1214C DI still detects this state correctly because the input sees 0 V relative to M, which falls under the type 1 OFF threshold. Wiring must respect a single common reference per potential group.
+24 V (external or CPU L+) ----> Sensor brown (+V) CPU M ------------------------------> Sensor blue (GND) Sensor black (OUT) ----------------> CPU DIa.0
For type 1 inputs the standard 1214C wiring diagram in the TIA Portal manual collection explicitly allows both sourcing and sinking devices on the same DI group provided M is used as the common reference. Connect - to M for sinking sensors and + to M for sourcing sensors.
Mixed NPN and PNP on the Same Potential Group
You may combine one NPN and one PNP sensor into the same DI group (e.g., DIa.0 through DIb.5) as long as the M terminal of the group is referenced to a single 0 V rail. The two sensors will share the 24 V supply and ground but will activate different logic levels in the PLC: the PNP drives the input high when active, the NPN drives the input low when active. In TIA Portal logic, invert the NPN reading if your application expects an active-high "present" bit.
| Sensor | State with no target | State with target | PLC raw value |
|---|---|---|---|
| PNP NO | Open, ≈ 0 V | Closed, ≈ +24 V | 0 → 1 (active high) |
| PNP NC | Closed, ≈ +24 V | Open, ≈ 0 V | 1 → 0 (active low) |
| NPN NO | Open, ≈ +24 V (via pull-up) | Closed, ≈ 0 V | 1 → 0 (active low) |
| NPN NC | Closed, ≈ 0 V | Open, ≈ +24 V (via pull-up) | 0 → 1 (active high) |
If the NPN sensor lacks an internal pull-up resistor, install one between the CPU DI terminal and +24 V (typically 4.7 kΩ, 0.25 W) so the input idles high and is pulled low only when the transistor conducts.
Handling 5 V DC Sensor Signals
The standard 24 V DI channels on the 1214C will not reliably detect 5 V TTL signals because 5 V falls into the undefined transition band (5 V ≤ V ≤ 15 V). Two official options exist for 5 V sources:
-
SB 1221 DI 4 x 5 V DC signal board (order code
6ES7221-3AD30-0XB0): installs into the SB slot on top of the CPU. Inputs are 5 V DC type 1. This board exposes four 5 V inputs that map to the I/O address space of the CPU and behave like the 24 V DI for logic but with 5 V thresholds. - External level shifter: a 5 V → 24 V translator (e.g., MOSFET-based bidirectional shifter, 74HCT family buffer, or ULN2003 with pull-up) converts the signal into the 24 V domain. Verify the channel count, propagation delay, and isolation requirements before scaling.
CPU 1214C DI Internal Equivalent Circuit
The simplified input model for each 1214C DI channel (type 1) is:
Sensor OUT
|
|
+-----+-----+
| |
| Opto |
| Isolator |
| |
+-----+-----+
|
M (GND)
Each channel presents roughly 2–15 mA of input current at the ON state and includes an internal RC filter (typically 0.5 ms to 20 ms depending on input filter settings in TIA Portal). The 24 V sensor supply terminal provides up to 400 mA combined for all sensors; do not exceed this on the CPU alone — supplement with an external 24 V DC power supply if the sensor load requires more.
Maximum I/O Limits and Load Calculations
The CPU 1214C DC/DC/DC supports up to 266 DI / 262 DO / 67 AI / 67 AO when fully expanded with SMs and SBs. For a typical sensor-only application, calculate the worst-case sensor current first:
I_sensor_total = sum(I_sensor_nominal) + sum(I_sensor_inrush)
If I_sensor_total exceeds 400 mA, install an external 24 V DC power supply. A common choice is the SITOP PSU100S 6EP1334-3BA10 (5 A) or the LOGO! Power 6EP3333-8SB00-0AY0 (4 A).
| Limiting factor | Value | Notes |
|---|---|---|
| CPU L+ current budget | 400 mA | Sum of all sensor and DO supply currents |
| Per DO current (24 V DC solid-state) | 0.5 A continuous, 1 A peak (resistive) | DO group max is 4 A total |
| DI input current per channel | 2–15 mA @ 24 V | Verify with sensor spec if sourcing |
| CPU 24 V supply (CPU itself) | 1.0 A at 24 V DC | Powers CPU logic + sensor budget + DO outputs |
| Number of SMs supported | 8 | Check max current draw per SM (≤ 700 mA each) |
Commissioning and Verification Procedure
- Open TIA Portal (V18 or later recommended). Create a new project and add the CPU 1214C DC/DC/DC with the matching firmware version.
- In the device view, confirm the DI filter time. Default is 6.4 ms (matches the input filter setting "6.4 ms"). For fast sensors below 1 ms pulse width, change to "0.1 ms" or "0.05 ms" using the DI module properties.
- Wire the sensor following one of the diagrams above. Tie the sensor shield (if present) to PE at the cabinet entry, not at the PLC end.
- Compile and download to the CPU. Switch the CPU to RUN.
- Open an online watch table on the DI tag (e.g.,
%I0.0) and force the input by placing/removing the target. - Verify with a multimeter at the PLC terminals: ON state should measure 15 V DC or higher relative to M; OFF state should measure 5 V DC or lower.
- For mixed groups, verify each sensor polarity independently before relying on logic in TIA Portal.
Troubleshooting Matrix
| Symptom | Likely cause | Diagnostic step | Fix |
|---|---|---|---|
| Input never goes high even with sensor triggered | Sensor is NPN, no pull-up | Measure DI vs M: 0 V when active | Add 4.7 kΩ pull-up to +24 V or re-wire sensor as PNP |
| Input always reads high | Sensor is PNP wired to wrong terminal, or short to +24 V | Disconnect sensor, measure impedance | Re-terminate brown to L+, blue to M, black to DI |
| Input chatters | Input filter too fast or supply noise | Set filter to 6.4 ms, check 24 V ripple | Slow filter; add decoupling capacitor at sensor |
| Sensor LED on, PLC sees nothing | M not common between PLC and sensor | Measure M to M; should be < 0.5 V | Run a dedicated ground wire between PLC M and sensor GND |
| Multiple sensors fail simultaneously | Sensor power supply overload or 24 V dropped | Measure L+ vs M at sensor terminals | Reduce load or install external 24 V supply |
| 5 V sensor not detected | Connected to 24 V DI instead of SB 1221 | Check board catalog number in device view | Install 6ES7221-3AD30-0XB0 SB 1221 4 x 5 V DC |
| CPU goes to STOP with SF LED | Wiring short across M and L+ on a DI group | Disconnect all sensors, re-power | Correct polarity per wiring diagram, then re-power |
| DI reads inverted in logic | NC sensor expected as NO | Check sensor datasheet suffix (NO/NC) | Invert in ladder (--|/|--) or use NO sensor variant |
External References and Further Reading
- CPU 1214C wiring diagrams (TIA Portal manual collection)
- SIMATIC S7-1200 Programmable Controller System Manual
- Siemens Application Note: Sourcing and Sinking concepts
- Siemens Industry Mall: CPU 1214C DC/DC/DC
Does the S7-1200 CPU 1214C support both NPN and PNP sensors on the same digital input group?
Yes. The standard 24 V DC digital inputs on the 1214C are type 1 per IEC 61131-2 and are bidirectional with respect to M. You can connect sourcing (PNP) and sinking (NPN) devices into the same DI potential group as long as M is referenced to a single common 0 V rail.
Can the 1214C onboard 24 V DI directly read a 5 V TTL signal?
No. The standard 24 V DI requires ≥ 15 V DC for a guaranteed ON state. A 5 V signal sits inside the 5 V–15 V transition band and is undefined. Use the SB 1221 4 x 5 V DC signal board (6ES7221-3AD30-0XB0) or an external 5 V-to-24 V level shifter.
How much current can the CPU 1214C supply to 24 V sensors?
The CPU provides up to 400 mA at the L+ terminal for sensor supply and DO output current combined. If your sensors draw more than this, add an external SITOP or comparable 24 V DC power supply sized for the load plus 25% margin.
Do I need an external 24 V supply to wire an NPN sensor to the 1214C?
No. The PLC's onboard L+ terminal can power NPN sensors. Connect the sensor's brown wire to L+, blue to M, and black to the DI channel. The NPN output transistor closes to M when active, which the type 1 input correctly registers as ON.
What is the maximum number of digital inputs on a CPU 1214C system?
The CPU 1214C can address up to 266 DI / 262 DO / 67 AI / 67 AO when fully expanded with up to 8 signal modules and one signal board. Verify the firmware version supports the desired I/O count using TIA Portal's online diagnostics.