How to Implement Module-Level and Channel-Level Diagnostics in SIMATIC PCS 7 APL

How to Implement Module-Level and Channel-Level Diagnostics in SIMATIC PCS 7 APL

In SIMATIC PCS 7 V8.1 Advanced Process Library (APL), implementing module-level and channel-level hardware diagnostics for SCADA visualization and alarm logging is achieved through the coordinated execution of standard channel blocks and automated diagnostic driver blocks. Channel-level diagnostics (such as wire break, short circuit, or measuring range over/under-shoot) are evaluated by standard channel blocks (Pcs7AnIn, Pcs7DiIn) or fieldbus blocks (FbAnIn, FbDiIn) via the signal status byte (ST = 16#00 Bad). Module-level diagnostics (such as module missing, power failure, or internal firmware fault) are evaluated by automated diagnostic blocks (MOD_D1, MOD_HA) generated by the CFC driver generator and visualized via the PCS 7 Maintenance Station.

Table of Contents

Hardware Diagnostic Hierarchy in SIMATIC PCS 7 APL

A foundational strength of SIMATIC PCS 7 is its multi-tiered, automated hardware diagnostic architecture:
* The Diagnostic Hierarchy:
1. Field Instrument Level: Transmitters report digital health over HART, PROFIBUS PA, or Foundation Fieldbus.
2. Channel Level: The physical I/O card detects open circuits, short circuits, or zero-current violations on an individual channel.
3. Module Level: The I/O card reports internal electronics faults, fuse trips, backplane bus failures, or module removal (OB82/OB83).
4. Rack / Substation Level: The interface module (IM 153-2, IM 155-6) reports bus failure or rack power loss (OB86).
* The Operator Requirement: Plant operators need immediate visual badges on SCADA faceplates when a single channel or entire module fails.

Channel-Level Diagnostics: Pcs7AnIn / Pcs7DiIn and Signal Status (ST)

Channel-level health is evaluated by the APL channel blocks in the cyclic execution path:

  • Signal Processing Blocks:
  • Pcs7AnIn (FB1869): Standard analog input channel block for ET 200M, ET 200SP, and S7-400 central racks.
  • Pcs7DiIn (FB1871): Standard digital input channel block.
  • FbAnIn (FB1813) / FbDiIn (FB1815): Fieldbus blocks specifically designed for PROFIBUS PA (Profile 3.0) and Foundation Fieldbus devices.
  • The Signal Status Byte (.ST):
  • When a channel is healthy, Pcs7AnIn.Out.ST = 16#80 (Good).
  • If a wire break or ADC hardware fault occurs, the module driver forces: Pcs7AnIn.Out.ST := 16#00 (Bad).
  • In CFC, downstream technological blocks (MonAnL, PIDConL) evaluate .ST directly without requiring custom ladder logic.

Module-Level Diagnostics: Automated Driver Generator Blocks (MOD_D1)

Module-level health is managed by the CFC Module Driver Generator:

  • Automated Block Generation:
  • When Chart > Compile is executed with Generate Module Drivers checked, the compiler inspects HW Config and auto-instantiates diagnostic blocks into dedicated @ charts (e.g., @2(1)).
  • MOD_D1 (FB1) / MOD_D2: Monitors digital and analog signal modules.
  • MOD_HA / MOD_RED: Monitors redundant S7-400H racks and redundant interface modules.
  • Diagnostic Telegrams and Alarms:
  • When a module encounters a hardware fault, OB82 (Diagnostic Interrupt) interrupts cyclic execution.
  • The MOD_D1 block reads the channel diagnostic data records via SFC51 (RDSYSST) and generates timestamped system alarms in WinCC.

Visualizing Faults in SCADA Faceplates and Maintenance Station

PCS 7 provides two integrated pathways to present diagnostic data to plant personnel:

  1. Operator Station (Process Faceplates):
    * When Pcs7AnIn.Out.ST = 16#00, the connected MonAnL block icon displays a flashing yellow exclamation mark (Bad Quality badge).
    * Opening the faceplate displays: Process Value Invalid / Hardware Fault.
  2. Maintenance Station (MS Asset Management):
    * The PCS 7 Maintenance Station uses the MOD_D1 diagnostic tags to render graphical plant hierarchy views of every physical rack, interface module, and I/O card.
    * A faulted module illuminates yellow (Maintenance Demanded) or red (Maintenance Required / Fault), allowing technicians to pinpoint the exact slot number and channel.

Comparison of Diagnostic Blocks in SIMATIC PCS 7

The table below outlines diagnostic blocks across PCS 7 APL and Basis libraries.

Diagnostic BlockFunctional ScopeGeneration ModeTelemetry ProvidedTypical DestinationPcs7AnIn / DiInChannel-LevelManual CFC PlacementProcess Value + Signal Status (ST)MonAnL, MotL, PIDConLFbAnIn / DiInPA/FF Channel-LevelManual CFC PlacementFieldbus Value + Device QualityAPL Technological BlocksMOD_D1 / MOD_D2Module-LevelAutomated (Driver Gen)Module missing, fuse blown, OB82WinCC Maintenance StationRACK_1 / RACK_2Sub-rack / Bus-LevelAutomated (Driver Gen)PROFIBUS/PROFINET line faultWinCC System AlarmsOB_BEGIN / OB_ENDCPU Execution LevelAutomated (Driver Gen)CPU cycle time & OB executionDiagnostic Buffer

Verification

To confirm that channel and module diagnostics function properly:
1. In CFC, connect an analog input channel to Pcs7AnIn and interconnect its output to MonAnL.
2. Compile with Generate Module Drivers checked: verify that @ diagnostic charts generate cleanly.
3. In WinCC Runtime, verify that MonAnL displays the live process value with a solid green icon badge.
4. Disconnect the physical 4-20 mA sensor wire (simulate wire break):
* Confirm that Pcs7AnIn.Out.ST drops to 16#00 (Bad).
* Confirm that the block icon displays the yellow Bad Quality badge.
5. In the PCS 7 Maintenance Station, navigate to the remote I/O rack: confirm that the specific module and channel highlight in red with the diagnostic description Wire Break.

Limitations and Operational Precautions

  • Never delete or manually edit auto-generated @ diagnostic charts; modifying these charts will break driver generator consistency upon the next compilation.
  • Ensure that the I/O module in HW Config has diagnostic interrupts enabled (e.g., check Wire break and Diagnostic interrupt in module properties).
  • Do not bypass channel drivers by reading raw peripheral words (PIW) directly into technological blocks; doing so bypasses all quality code tracking and safety fail-safe states.
  • Always validate final software licensing, Maintenance Station options, and hardware ordering numbers against the applicable Siemens catalog and authorized distributor quotation.

Engineer FAQ

How do I display whether an entire module is faulty in SCADA?

Deploy the PCS 7 Maintenance Station (MS), which reads diagnostic data from MOD_D1 blocks and automatically renders hierarchical hardware rack overviews in WinCC.

What is the difference between Pcs7AnIn and FbAnIn?

Pcs7AnIn is designed for standard 4-20 mA I/O modules on ET 200M/ET 200SP. FbAnIn is designed for intelligent PROFIBUS PA and Foundation Fieldbus transmitters communicating via digital profile telegrams.

Why did Pcs7AnIn not report a wire break when I pulled the wire?

Check the module properties in HW Config: diagnostic interrupts (such as Wire break or Underflow) must be explicitly enabled on the module's parameter tabs.

Technical References

Related Articles

Related Tags

  • Diagnostics
  • MOD_D1
  • Pcs7AnIn
  • Signal Status
  • Maintenance Station
6 respuestas