Interconnecting APL Channel Drivers (Pcs7AnIn, Pcs7DiIn, Pcs7AnOu) with Monitoring Blocks and Field Diagnostics
In SIMATIC PCS 7 Advanced Process Library (APL), channel driver blocks (such as Pcs7AnIn FB1869, Pcs7DiIn FB1871, and Pcs7AnOu FB1870) serve as the hardware abstraction layer and do not feature WinCC block icons or operator faceplates. To visualize values, generate alarms, and manipulate setpoints on the OS, channel drivers must be interconnected to technological blocks: Pcs7AnIn.PV_Out connects to MonAnL.PV (or MonAnS), Pcs7DiIn.PV_Out connects to MonDiL.In (or MonDiS), and OpAnL.SP_Out connects to Pcs7AnOu.PV_In. Channel drivers automatically acquire hardware diagnostic quality (Good, Bad, Simulated) from the module driver generator, which propagates through output signal structures to display diagnostic badges and alarms on the monitoring faceplates.
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
When developing automation applications with SIMATIC PCS 7 V9.0 SP2 and modern distributed I/O systems like ET 200SP HA, control engineers frequently inquire about the relationship between signal channel drivers and operator monitoring blocks. A common misconception is expecting channel driver blocks (such as Pcs7AnIn or Pcs7DiIn) to provide native WinCC block icons and faceplates. In the APL architectural philosophy, signal acquisition is strictly separated from technological processing and human-machine interaction. This guide details the mandatory block interconnections, explains how diagnostic statuses propagate from hardware to faceplates, and outlines signal scaling configurations.
Architecture and Fundamental Mechanics
The SIMATIC PCS 7 APL architecture organizes signal processing into a two-tier hierarchy:
1. Channel Driver Tier (Signal Conditioning & Hardware Abstraction):
- Pcs7AnIn (FB1869) reads raw peripheral words (PEW) from analog input modules, applies NAMUR filtering, converts raw counts (0..27648) to engineering units using Scale parameters, and packages the result into a structured output PV_Out (containing Value REAL and ST BYTE quality code).
- Pcs7DiIn (FB1871) acquires discrete field inputs and provides structured output PV_Out (containing Value BOOL and ST BYTE).
- Pcs7AnOu (FB1870) receives engineering unit setpoints, clamps output limits, and writes converted digital words (PAW) to analog output cards.
- Crucially, channel drivers do NOT possess Operator Control and Monitoring (OCM) attributes; they generate no WinCC tags, block icons, or faceplates.
- Technological & Monitoring Tier (Control & Visualization):
-MonAnL(FB1845) evaluates analog limits (High/Low Warning, High/Low Alarm), deadbands, and generates WinCC alarms via ALARM_8P. It links directly to WinCC block icon@MonAnL/1and faceplate@pg_MonAnL_Standard.pdl.
-MonDiL(FB1848) monitors discrete process conditions, applies flutter suppression, and displays digital status icons.
-OpAnL(FB1865) provides operator manual setpoint input and ramp generators.
Hardware diagnostics generated by ET 200SP HA (wire break, short circuit, module failure) are captured by system diagnostic blocks (MOD_HA, OB_DIAG1) generated during CFC compilation. These blocks dynamically update the channel driver's signal status (ST). When ST degrades to Bad (16#00 or 16#28), MonAnL immediately reflects this with a maintenance badge on the HMI.
Step-by-Step Implementation Procedure
-
Configure Hardware and Channel Scaling:
a. In HW Config, insert the ET 200SP HA analog input module and configure channel measurement types (e.g., 4..20 mA 2-wire).
b. Note the starting peripheral input address (e.g.,PIW 512). -
Instantiate Channel Driver and Monitoring Blocks in CFC:
a. Open the target CFC chart in the Plant Hierarchy.
b. From the APL library catalog, dragPcs7AnIn(FB1869) andMonAnL(FB1845) into the chart.
c. AtPcs7AnIn, connect inputPV_Into the hardware addressPIW 512(or symbolic name from the Symbol Table).
d. ConfigurePcs7AnIn.Scalestructure: setScale.Lowto minimum engineering value (e.g.,0.0) andScale.Highto maximum value (e.g.,100.0). SetPV_InUnit(e.g.,1001for%or1010forbar). -
Interconnect Channel Output to Monitoring Block:
a. ConnectPcs7AnIn.PV_Outdirectly toMonAnL.PV.
b. The structured interconnection automatically transfers both the analog measurement (PV_Out.Value) and the signal status byte (PV_Out.ST).
c. ConnectMonAnL.Scaleto matchPcs7AnIn.Scale(or use text-based block connections). -
Configure Digital Monitoring and Analog Output Patterns:
a. For digital signals: ConnectPcs7DiIn.PV_Outdirectly toMonDiL.In.
b. For analog control/outputs: ConnectOpAnL.SP_Outdirectly toPcs7AnOu.PV_In, and connectPcs7AnOu.PV_OuttoPQW 512. -
Compile CFC Charts with Module Driver Generation:
a. ExecuteChart -> Compile -> Chart as Program....
b. Ensure 'Generate module drivers' is checked.
c. The compiler automatically instantiatesMOD_HAdiagnostic blocks and wires them toPcs7AnIninputsMode,DataXchg, andMS.
d. Compile the OS project and verify block icons appear in process graphics.
Verification
- In CFC test mode, monitor
Pcs7AnIn: verify that applying a 12 mA signal to the field terminal renders50.0atPV_Out.Valuewith signal statusST = 16#80(Good). - Verify that
MonAnL.PVreceives50.0and displays normal operating conditions without alarms. - Disconnect the field wire to simulate a wire break: verify
Pcs7AnIn.PV_Out.STchanges to16#00or16#28(Bad), andMonAnLasserts a quality alarm and displays the wrench/bad quality badge on the WinCC faceplate. - Check WinCC AlarmControl: confirm the channel diagnostic event is logged in the alarm list with correct device attribution.
Limitations and Operational Precautions
Directly connecting hardware peripheral addresses (e.g., PIW 512) to MonAnL.PV without an intermediate channel driver (Pcs7AnIn) bypasses signal status evaluation and breaks automated module driver diagnostic generation. In safety-related applications, standard APL channel drivers must not be used; instead, employ F-Channel drivers from the S7 F Systems library (F_CH_AI, F_CH_DI).
Engineer FAQ
Why doesn't Pcs7AnIn appear in WinCC after OS compilation?
Channel driver blocks do not have OCM (Operator Control and Monitoring) attributes and do not generate WinCC tags or icons; only technological blocks like MonAnL create HMI representations.
What does the signal status byte (ST) communicate?
The signal status byte conveys IEEE-standard NAMUR status information: 16#80 = Good, 16#60 = Simulated, 16#28 = Bad device related, 16#00 = Bad unspecific / wire break.
What is the difference between MonAnL and MonAnS?
MonAnL is the standard Large monitoring block featuring full limit monitoring, hysteresis, and archiving. MonAnS is the Small variant optimized to conserve AS memory and CPU cycle time by omitting secondary limits.
Do I need to manually scale the raw 0..27648 value in logic?
No. The Pcs7AnIn block internally converts the 0..27648 S7 integer count into engineering units based on the configured Scale.Low and Scale.High values.
How do I simulate an analog input value for testing?
Set Pcs7AnIn.SimOn = 1 and provide the desired test value at Pcs7AnIn.SimPV_In; the block outputs the simulated value with ST = 16#60, illuminating a yellow hand icon on the faceplate.
Technical References
- SIMATIC PCS 7 Advanced Process Library (APL) Function Manual (V9.0 SP2)
- SIMATIC PCS 7 Basis Library System Manual
- SIMATIC PCS 7 Engineering System Getting Started Tutorial
Related Articles
- Analog input scaling and resolution handling in APL channel driver Pcs7AnIn (0..27648 vs 0..32767)
- Diagnosing bad quality codes across APL channel drivers following block type upgrades
- Monitoring and Displaying Currently Simulated Process Devices on WinCC HMI in PCS 7
Related Tags
- Pcs7AnIn
- MonAnL
- APL Channel Drivers
- ET 200SP HA
- Module Drivers
- Signal Status