Configuring Redundant Analog Input Channels and Resolving MS 16#10707 in PCS 7 Redundant IO
In SIMATIC PCS 7 S7-400H systems utilizing redundant analog input modules in ET 200M distributed I/O, you must configure hardware redundancy under the module properties 'Redundancy' tab in HW Config and assign valid symbolic names to both channel addresses in the Symbol Table. In CFC charts, interconnect the Pcs7AnIn channel driver exclusively to the logical address of the master channel; the driver generator automatically creates diagnostic and redundancy blocks in @ charts. The maintenance state value MS = 16#10707 indicates measuring range code 107 (1-5 V / 4-20 mA transducer) with diagnostic quality flags active. A persistent Bad = 1 status during testing typically occurs when testing in basic PLCSIM without SIMIT or because wire-break/limit diagnostics detect an unpowered second channel on the redundant pair.
Table of Contents
- Executive Summary
- Architecture and Fundamental Mechanics
- Step-by-Step Implementation Procedure
- Verification
- Limitations and Operational Precautions
- Engineer FAQ
- Technical References
- Related Articles
- Related Tags
Executive Summary
High-availability process applications executing on SIMATIC S7-400H fault-tolerant controllers frequently employ redundant I/O architectures to eliminate single points of failure across input/output modules and field sensors. In an ET 200M configuration with active backplane bus modules, redundant analog input modules (such as the 6ES7331-7KF02-0AB0 or 6ES7331-7NF00-0AB0) operate in pairs, continuously comparing digitized field measurements and executing automated bumpless switchover upon module or channel failure.
A frequent stumbling block during engineering and simulation occurs when the Pcs7AnIn (or legacy CH_AI / Pcs7AI_CH) channel driver outputs Bad = 1, while the Maintenance State input MS reports hexadecimal values such as 16#10707. Engineers often attempt to manually interconnect both input addresses in CFC or expect basic S7-PLCSIM to simulate hardware redundancy automatically. This guide breaks down the internal architecture of PCS 7 Redundant IO driver generation, decodes the MS and MODE parameter structures, provides the mandatory HW Config and Symbol Table prerequisites, and explains how to properly validate redundant analog channels in physical and simulated environments.
Architecture and Fundamental Mechanics
The PCS 7 Redundant IO subsystem operates through a coordinated hardware and software framework defined by the Redundant IO CGP (Channel Driver Generation Program) integrated within the PCS 7 Basis Library:
1. Hardware Configuration: Two identical I/O modules installed on redundant active bus modules (6ES7195-7HD10-0XA0 or 6ES7195-7HD80-0XA0) are paired in HW Config under Object Properties > Redundancy. The user defines the redundant partner module slot, discrepancy time, and tolerance window.
2. Symbolic Addressing Requirement: Both the master channel (e.g., IW 512) and the redundant partner channel (e.g., IW 528) must be assigned unique symbolic names in the project Symbol Table. If the partner channel lacks a symbol, the module driver generator cannot resolve cross-references and fails to generate the complete redundancy driver network.
3. CFC Channel Driver Topology: The application engineer connects the PV_In input of Pcs7AnIn (FB1869) ONLY to the master channel symbol or address. The engineer MUST NOT instantiate a second channel driver for the partner channel.
4. Automated Module Driver Generation (@ Charts): When 'Generate module drivers' is selected during CFC compilation, the compiler queries HW Config redundancy pairs and generates system blocks in chart @(1):
* MOD_D1 / MOD_D2: Supervises module health and backplane diagnostics.
* OB_DIAG1: Evaluates organization block diagnostic interrupts.
* The driver generator interconnects system diagnostic outputs to the MODE, DataXChg, and MS parameters of Pcs7AnIn.
5. Decoding Maintenance State (MS = 16#10707): The MS parameter is a 32-bit DWORD containing encoded diagnostic and measuring range status. In Siemens APL channel drivers, the lower bytes encode the measuring range code configured in HW Config (16#107 corresponds to 1-5 V voltage or 4-20 mA current with live zero), while higher bits represent channel availability and maintenance demands. When Bad = 1, the driver has declared the signal invalid due to either: hardware channel fault, discrepancy timeout between redundant channels, open circuit / wire-break detection, or missing diagnostic frames (common in standard PLCSIM).
Step-by-Step Implementation Procedure
Step 1: Configure Redundant Modules in HW Config
- Open the S7-400H hardware configuration in HW Config.
- In the redundant ET 200M station (equipped with active bus modules), insert two identical analog input modules into available slots.
- Double-click the first (master) module to open its Object Properties.
- Navigate to the
Redundancytab and select 'Redundant modules'. - Select the second module slot as the 'Partner module'.
- Define the 'Tolerance window' (e.g., 2% to 5%) and 'Discrepancy time' (e.g., 100 ms to 500 ms) appropriate for your field instruments.
- On the
Inputstab, configure matching measuring ranges (e.g., 4-20 mA 2-wire) and enable diagnostics interrupts and wire-break monitoring on both modules.
Step 2: Assign Symbols to Both Master and Partner Channels
- Open the project Symbol Table in SIMATIC Manager (
S7 Program > Symbols). - Locate the logical address of the master channel (e.g.,
IW 512) and assign a symbol (e.g.,FIT_101_AI_Master). - Locate the logical address of the partner channel (e.g.,
IW 528) and assign a distinct symbol (e.g.,FIT_101_AI_Partner). - Save and close the Symbol Table.
Step 3: Interconnect Pcs7AnIn in CFC
- Open the target CFC chart.
- Instantiate the APL channel driver
Pcs7AnIn(FB1869) from the PCS 7 Basis Library. - Interconnect the
PV_Ininput parameter to the master channel symbol (FIT_101_AI_Master). - Leave parameters
MODE,MS,DataXChg, andPV_In_Ch2open; do not interconnect them manually.
Step 4: Compile CFC with Generate Module Drivers
- Select
Chart > Compile > Changes only(orEntire program). - Ensure the checkbox
Generate module driversis strictly CHECKED. - Click
OKand confirm that compilation completes without errors. - Open the system-generated
@chart (e.g.,@(1)) and verify that the module driver generator created the redundancy diagnostic links connecting to yourPcs7AnInblock.
Step 5: Download and Validate Signal Processing
- Download the hardware configuration to both S7-400H CPUs.
- Download the compiled user program to the AS.
- In CFC test mode, verify that
Bad.Value = 0andPV_Out.Valuematches the applied physical process input.
Verification
- Connect a calibrated 4-20 mA current calibrator to Channel 0 of the master module and apply 12.0 mA (50%).
- Connect a second calibrator to Channel 0 of the partner module and apply 12.0 mA.
- Monitor
Pcs7AnInonline in CFC: verifyPV_Out = 50.0,Bad = 0, andQualityCode = 16#80(Good). - Disconnect the signal wire from the master module to simulate a field wire break.
- Verify that
Pcs7AnInexecutes bumpless switchover to the partner channel:PV_Outremains at 50.0%, no process spike occurs, and an OS maintenance alarm triggers indicating partner channel failover. - Reconnect the master channel and verify automated discrepancy clearing and channel reintegration.
Limitations and Operational Precautions
- Standard S7-PLCSIM does not support hardware diagnostic interrupts, active bus module failover, or ET 200M redundancy simulation; attempting to test redundant I/O in basic PLCSIM without SIMIT will result in
Bad = 1. - Redundant analog modules must share identical part numbers, hardware revisions, firmware versions, and measuring range module (cube) orientations.
- Never manually connect the redundant partner address to
PV_In_Ch2in CFC; the module driver generator manages this parameter exclusively. - HART communication on redundant analog modules requires specific HART-enabled modules (e.g.,
6ES7331-7TF01-0AB0) and compatible ET 200M IM 153-2 interface modules.
Engineer FAQ
Why does Pcs7AnIn show Bad = 1 when testing in S7-PLCSIM?
Standard S7-PLCSIM cannot simulate the OB82/OB83 diagnostic interrupts and active backplane communication required by the redundancy driver blocks (MOD_D1, OB_DIAG1). Use SIMIT with the S7-PLCSIM Advanced or Virtual Controller coupling for accurate redundancy simulation.
What does the MS parameter value 16#10707 represent?
The value encodes measuring type 107 (1-5 V or 4-20 mA with live zero) along with internal channel quality bits. It indicates that the channel driver has received measuring range parameters from HW Config.
Do I need to program FB450 manually for redundant I/O in PCS 7?
No. FB450 (RED_IN) was part of the obsolete legacy RED_LIB. Modern PCS 7 versions (V8.0 and higher) use the Redundant IO CGP in the Basis Library, which generates all redundancy logic automatically.
What happens if the partner channel does not have a symbol name?
The module driver generator fails to identify the partner channel address, resulting in compilation warnings and leaving the redundancy driver unlinked, causing the channel driver to stay in permanent error (Bad = 1).
Can redundant analog modules be installed in separate ET 200M racks?
Yes. Redundant modules can be split across two separate ET 200M stations on the same or redundant PROFIBUS DP / PROFINET lines, providing both rack and module redundancy.
Technical References
- SIMATIC Process Control System PCS 7 Redundant I/O Manual (Entry ID: 109760737)
- SIMATIC S7-400H Fault-Tolerant Systems System Manual (Entry ID: 82478488)
- SIMATIC PCS 7 Advanced Process Library (APL) Function Manual (Entry ID: 109794385)
Related Articles
- Migrating from Obsolete RED_LIB to the Redundant IO CGP Library in SIMATIC PCS 7
- Managing PROFIsafe Module Reintegration for ABB ACS880 Drives in PCS 7 F-Systems
- Configuring S7-1200 Shared I-Device Redundancy and Boundary Limitations in S7-400H PCS 7
Related Tags
- Redundant IO
- Pcs7AnIn
- S7-400H
- ET 200M
- Module Drivers