Configuring S7-1200 EM 223 6ES7 223-1BH32-0XB0 DI/DO Module

David Krause12 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

Module Identification: 6ES7 223-1BH32-0XB0

The Siemens order number 6ES7 223-1BH32-0XB0 identifies a SIMATIC S7-1200 EM 223 signal module (SM) that combines 16 digital inputs (DI, 24 V DC, sink/source) with 16 digital outputs (DO, 24 V DC, source-type, 0.5 A per channel). The suffix 1BH32 decodes as 1=EM 223 family, B=16 DI / 16 DO, H=24 V DC transistor outputs, 32=order release 3.2 hardware. The 0XB0 extension designates the standard conformal-coated variant without diagnostic interrupt enable restrictions. Compatible host CPUs include all S7-1200 CPUs of firmware V2.0 or higher, and S7-1500 CPUs when used through a PROFINET-distributed ET 200SP interface (with the corresponding module substitute). Firmware 3.0 or higher is recommended for full diagnostic buffer detail and the reorganized status LED behavior documented in the S7-1200 System Manual.

Two physical variants of the EM 223 exist for the same DI/DO count:

Order Number DI DO Type Output Current
6ES7 223-1BH32-0XB0 16 x 24 V DC Source (P-switching) 0.5 A / channel, 8 A / module
6ES7 223-1BL32-0XB0 32 x 24 V DC Source (P-switching) 0.5 A / channel, 16 A / module
6ES7 223-1PH32-0XB0 16 x 24 V DC Source (P-switching, relay-rated) 2 A / channel

The diagnostic behavior described in this article applies to all three modules, but wiring and output examples reference the 16DI/16DO 1BH32 variant because of field reports.

Technical Specifications

Parameter Value
Dimensions (W x H x D) 70 x 100 x 75 mm
Power consumption (backplane 5 V) 180 mA max
Power consumption (24 V sensor supply) 4 mA / active input
Input voltage range 0 to 30 V DC (rated 24 V DC)
Input "0" signal 5 V DC max (1 mA)
Input "1" signal 15 V DC min (2.5 mA)
Input filter time (selectable) 0.2 / 0.4 / 0.8 / 1.6 / 3.2 / 6.4 / 12.8 ms
Output voltage range 20.4 to 28.8 V DC
Output switching frequency (resistive) 100 Hz max
Output switching frequency (inductive) 0.5 Hz max (with external free-wheeling diode)
Output short-circuit protection Electronic, thermal
Isolation (channel to backplane) 500 V AC, 1 min
Operating temperature -20 to +60 °C horizontal mount, 0 to 50 °C vertical
Approvals cULus, CE, RCM, KC, EAC, Marine

Refer to the SIMATIC S7-1200 Programmable Controller System Manual (entry ID 109741593) for the complete specification set, derating curves above 40 °C, and the certified installation clearances.

Prerequisites

  1. CPU firmware V4.2 or higher (recommended V4.4 LTS or V4.5). Older V1.0 CPUs do not recognize the 1BH32 module because the GSD/SDDML entry was added in firmware V2.0.
  2. TIA Portal V13 SP1 or higher (recommended V17 / V18 for full diagnostic support).
  3. 24 V DC control power supply sized for at least 8 A continuous when all 16 outputs are active at 0.5 A each (peak inrush can momentarily draw 1.2 A per channel before electronic current-limit clamps).
  4. 4 mm² (12 AWG) copper conductors for the 24 V field supply; 0.5 to 1.5 mm² (20 to 16 AWG) for signal wiring.
  5. Flat-blade screwdriver 3 mm (for cage-clamp terminals) and a properly seated bus connector pulled forward into the adjacent CPU or SM.
Never connect or disconnect the EM 223 while 24 V field power is present. Hot-plug removal can corrupt the module's non-volatile configuration store and force a re-download from TIA Portal on the next power-up. Always remove power at the disconnect means, not at the module terminals only.

Mechanical Installation and Bus Connector Engagement

The most common cause of a blinking DIAG LED on a freshly installed EM 223 is a partially engaged bus connector. The S7-1200 SM uses a slide-out bus connector that mates with the CPU or adjacent module. The mechanical tab must be slid fully to the LEFT (when viewed from the front) so the gold-fingered PCB protrudes approximately 18 mm from the module housing and seats inside the next module's mating connector.

CPU 1214C EM 223 6ES7 223-1BH32 Bus connector (extended) Slide tab fully LEFT Next SM (optional) Fig 1: Slide the mechanical tab on the underside of the EM 223 fully LEFT before seating against the CPU.

Procedure to engage the bus connector correctly:

  1. Place the EM 223 on the DIN rail directly to the right of the CPU (or another SM with the bus connector extended).
  2. Locate the orange tab on the bottom of the module and slide it fully to the LEFT.
  3. Press the two modules together until the plastic hooks click; verify the tab is now flush and locked against the CPU's right-side cover.
  4. Torque the DIN-rail end brackets so the assembly cannot flex apart during wiring.

TIA Portal Hardware Configuration

A blinking DIAG LED combined with channel LEDs that physically respond to field inputs but never update the process image in the CPU almost always indicates the module is present on the backplane but absent from the STEP 7 / TIA Portal hardware catalog of the active project. The CPU is power-cycling the module through its discovery state but cannot map I addresses because no configuration was downloaded.

Step-by-step configuration procedure:

  1. Open the project in TIA Portal and expand Devices & Networks.
  2. Open the Device view of the S7-1200 station.
  3. From the Hardware catalog on the right, navigate to SM 1200 > DI/DO > EM 223 and select 6ES7 223-1BH32-0XB0 (the catalog number in the device tree displays the full MLFB).
  4. Drag-and-drop the module into slot 1 of the rack. Up to 8 SMs are permitted on a single CPU, but the address space cap is 1024 bytes DI / 1024 bytes DO; verify cumulative addresses in Properties > I/O addresses.
  5. Open Properties > Digital inputs and select an input filter (default 6.4 ms is acceptable for mechanical switches; use 0.2 ms for high-speed counting).
  6. Enable Diagnostics > Short-circuit of sensor supply (Vs) if you want the CPU to enter STOP or trigger an OB82 on Vs fault. This corresponds to the DIAG LED flashing red pattern described later.
  7. For each output group of 8 channels, set the substitute value behavior under Properties > Digital outputs > Behavior on CPU STOP. Options are "Keep last value", "Substitute value 0", or "Substitute value 1".
  8. Compile the project (Ctrl+B) and download to the CPU. The CPU transfers the new configuration to the EM 223 on the next STOP-to-RUN transition or after power-up.
If the catalog entry is missing, install the corresponding HSP (Hardware Support Package) via Options > Support Packages or upgrade TIA Portal. Older TIA Portal V13 releases list the module as 6ES7 223-1BH32-0XB0 only after HSP0093 or higher.

DIAG LED Status Codes

The DIAG LED is a bicolor LED with patterns defined by the System Manual:

DIAG State Meaning Corrective Action
Off No diagnostic event; module in normal operation None
Solid green Module configured and exchanging data with CPU None
Flashing green at 2 Hz Module not configured, or firmware update in progress Download hardware configuration from TIA Portal; do not power-cycle during firmware update
Flashing red at 2 Hz Field-side 24 V supply missing or below 20.4 V Check 1L / 2L terminals, supply capacity, polarity
Solid red Module fault: bus fault, configuration mismatch, or watchdog trip Remove module, reseat bus connector, recompile and re-download; verify firmware compatibility
Alternating red/green Firmware update in progress or self-test Wait; do not interrupt power

The original field symptom ("DIAG blinking, LEDs react to input, but PLC sees no input") maps directly to Flashing green. The PLC has detected the module on the backplane and is feeding it diagnostic queries, but no configuration was downloaded, so no I-address mapping exists. The CPU process image I0.0–I1.7 and Q0.0–Q1.7 for the SM slot will simply return zero until a configuration is loaded.

Digital Input Wiring and Verification

The 6ES7 223-1BH32-0XB0 inputs accept either PNP (sourcing) or NPN (sinking) 24 V signals because the input stage is a Type 1 IEC 61131-2 sink/source-compatible input. Each group of 8 inputs shares a common 24 V reference at terminals 1M and 2M; the field-side return for the sensor supply must land on these terminals, not on PE.

EM 223 terminals I0.0 - I0.7 1M (ref) I1.0 - I1.7 2M (ref) PNP Sensor NPN Sensor Fig 2: PNP (top) sources current into I0.x; NPN (bottom) sinks from I1.x through the shared M terminal.

Verification steps:

  1. With the CPU in STOP, apply 24 V between I0.0 and 1M. The corresponding channel LED must illuminate solid green within 50 ms.
  2. Switch the CPU to RUN with a watch table open on IW0. The bit corresponding to the active channel must flip to 1.
  3. If the LED is on but the bit is 0, go to Online & Diagnostics > Module information > Process image to confirm whether the CPU is even reading the slot. A blank process image means the slot has no I/O address mapping — return to the TIA Portal configuration step.

Digital Output Wiring and Source-Type Considerations

The DO channels on the 1BH32 are P-switching (source) outputs: the module actively pulls the output terminal up to +24 V when the bit is set. A connected load must therefore be wired between the output terminal (e.g., Q0.0) and a load-side ground (0 V), not between the output and +24 V. field reports where "DO LED is on but no physical output" typically has one of four root causes:

Cause Symptom Diagnostic
Load wired to +24 V instead of 0 V LED on, no voltage at terminal relative to 0 V Measure V between Q0.0 and 0 V with bit set; expect 20.4–28.8 V
Missing 24 V at 1L / 2L supply terminals All DO LEDs off, DIAG off Check voltage at 1L and 2L against 1M / 2M
Output group overload (>0.5 A / channel or >8 A / group) DIAG flashing red, channel LED off, output latched Read diagnostics buffer for "short-circuit of output"
Substitute value in STOP DO LED on only in RUN; off in STOP Verify Behavior on CPU STOP setting

Correct wiring for a source-type output:

+24V ──┬── 1L (field supply) ── EM 223 internal
       └── Load + terminal ── Q0.0 ── EM 223 internal switch
Load - terminal ── 0V ── 2M (field return)

Free-wheeling diodes (e.g., 1N4007 reverse-biased across an inductive load) are mandatory for DC solenoids and relay coils. Without them, the output's electronic current limit will trip on every de-energization spike and either latch the output off or destroy the output transistor within a few hundred cycles.

Firmware Update Procedure

If the CPU is older than V2.0, the EM 223 will be recognized as an unknown module and the DIAG LED will flash red at 2 Hz while the PWR LED remains green. Update the CPU firmware first, then update the SM firmware if needed:

  1. Connect the engineering station to the CPU's PROFINET port and go Online & Diagnostics > Firmware Update.
  2. Select the current firmware file (.upd) from the Siemens support download portal. For the EM 223 the firmware file is named EM223_6ES72231BH320XB0_Vxx.yy.zz.upd.
  3. Set the CPU to STOP. The download takes approximately 90 to 180 seconds.
  4. Cycle power to the station. The DIAG LED will alternate red/green for 5 to 15 seconds during self-test, then settle to green.

Always back up the project and, if the application supports it, the CPU's SIMATIC memory card before any firmware update. Field practice recommends a brownout-protected UPS on the CPU during firmware updates because a mid-update power loss can render the module inaccessible without a factory reset.

Diagnostics Buffer Interpretation

Open the CPU's diagnostics buffer through TIA Portal (Online & Diagnostics > Diagnostics buffer). Common entries on the EM 223 include:

Event ID (hex) Description Module Reaction
0x1150 Module OK after fault cleared DIAG goes green, channel LEDs resume normal
0x1151 Sensor supply (Vs) overload or short Input channels in that group read 0 until cleared
0x1152 Output short-circuit or overload Affected channel latched off; group can be re-enabled after load fix
0x1153 Wire break on input (only if enabled in DI configuration) Bit remains 0, no error to CPU unless interrupt enabled
0x39xy Configuration mismatch after firmware change or HSP swap DIAG red; recompile and re-download

Use Open in New Window on the diagnostics buffer entry to see the exact slot, channel, and timestamp. Cross-reference the channel number with the wiring diagram — a wire break on channel I0.5 (event 0x1153) almost always points to a damaged proximity switch cable, not a module failure.

Field-Verified Commissioning Checklist

  1. Verify bus connector is fully extended to the LEFT and latched.
  2. Confirm 24 V at 1L and 2L (within 20.4 to 28.8 V DC). Record under load.
  3. Confirm 1M / 2M is tied to 0 V (not PE).
  4. In TIA Portal, confirm 6ES7 223-1BH32-0XB0 is in slot 1 (or the appropriate slot) and that I/O addresses match the watch table.
  5. Compile and download hardware configuration.
  6. Power-cycle the station. DIAG must transition through red/green alternating to solid green.
  7. Force each DO bit to 1 and measure ≥20 V between the output terminal and 0 V with the load connected.
  8. Force each DI bit on by applying 24 V; verify the corresponding bit in the watch table.
  9. Trigger an OB82 diagnostic interrupt (e.g., short the sensor supply briefly) to confirm the configured interrupt behavior.
  10. Save the project, including any changes to the offline/online topology.
If the symptom recurs after the next power-down, the cause is usually a loose terminal screw on 1L / 2L (torque 0.6 N·m) or an oxidized cage-clamp contact. Re-strip the conductor 8 mm and re-insert; do not reuse the same stripped end after removing.

FAQ

Why does my EM 223 show input LEDs but the PLC process image stays at zero?

The DIAG LED is most likely flashing green, indicating the module is detected on the backplane but no configuration was downloaded. Add the exact MLFB 6ES7 223-1BH32-0XB0 to the device configuration in TIA Portal, recompile, and re-download. After the next STOP-to-RUN transition, the DIAG LED will lock solid green and the input bits will populate IW.

My DIAG LED is flashing red. What is wrong?

Red flashing at 2 Hz means the 24 V field-side supply is missing or has fallen below 20.4 V. Measure between 1L and 1M (and 2L / 2M) under load. A undersized supply, a tripped upstream fuse, or reversed polarity will all produce the same indication. The corresponding 1L / 2L input channels read 0 until the supply recovers.

The DO LED is on but I measure no voltage at the output terminal. Why?

The 1BH32 outputs are P-switching (source), so they pull the terminal up to +24 V when active. Verify your load is wired between the Q terminal and 0 V, not between Q and +24 V. With the output bit set, expect 20.4 to 28.8 V measured between Q0.x and 0 V.

How do I update the EM 223 firmware?

Use TIA Portal Online & Diagnostics > Firmware Update with the matching .upd file from the Siemens Industry Online Support portal. Set the CPU to STOP, run the update (90 to 180 s), then power-cycle the station. Do not interrupt 24 V during the alternating red/green self-test phase.

Can I hot-swap the EM 223 on a running S7-1200?

No. Always remove field power before inserting or removing the module. Hot-plug removal can corrupt the module's stored configuration and force a fresh download from TIA Portal, and it can also cause an unrecoverable DIAG red solid state that requires a factory reset.

Back to blog