Resolving Zero Output and QBAD Faults on PCS 7 Analog Output Channel Drivers
When a PCS 7 analog output channel driver block (such as CH_AO / Pcs7AnOu) receives a valid input value (e.g. 50.0%) but outputs 0 to physical hardware while asserting fault output QBAD = 1, the failure is caused by an unconfigured or missing input parameter MODE. In PCS 7, MODE defines the module's measuring/output type and range combined with the signal status quality code. If module drivers are compiled automatically via the CFC Driver Generator, MODE is connected to diagnostic block MOD_D1. If manual engineering is used or module drivers are bypassed, you must manually enter the hex mode code into parameter MODE (for ET 200S module 6ES7135-4GB01-0AB0 in 4..20 mA mode, enter 16#80000203).
Table of Contents
- Executive Summary
- Analog Output Channel Driver Architecture: Value, MODE, and QBAD
- Functional Mechanics of the MODE Parameter (Quality Code + Range)
- Automated Module Driver Generation vs Manual Parameterization
- ET 200S Analog Output Range and MODE Coding Matrix
- Step-by-Step Troubleshooting and Parameterization Procedure
- Verification
- Limitations and Operational Precautions
- Engineer FAQ
- Technical References
- Related Articles
- Related Tags
Executive Summary
In SIMATIC PCS 7 control applications, converting calculated controller manipulated variables (e.g. 0.0 to 100.0% from a PIDConL block) into physical 4..20 mA or 0..10 kV electrical signals requires analog output channel driver blocks (such as CH_AO in classic libraries or Pcs7AnOu in the Advanced Process Library). A perplexing commissioning failure occurs when the block receives a valid numerical setpoint at input U or PV_In, yet the physical module outputs 0 mA, and the block's diagnostic pin QBAD asserts TRUE (1). This condition occurs because the channel driver refuses to write to peripheral memory unless parameter MODE confirms valid hardware range configuration and good quality status. This technical guide explains the structure of the MODE parameter and provides the resolution procedure.
Analog Output Channel Driver Architecture: Value, MODE, and QBAD
The analog output driver block acts as the software encapsulation of the physical D/A converter module:
- Input
U/PV_In: Engineering unit floating-point command (e.g. 0.0 to 100.0%). - Parameter
MODE: A 32-bitDWORDcombining the Quality Code (upper byte) with the hardware measuring/output type (lower word). - Output
QBAD/Bad: Safety status flag. IfQBAD = 1, the driver detects an invalid mode, unparameterized module, or wire break, immediately forcing the physical output to a predefined safe fallback state (typically 0 mA).
Functional Mechanics of the MODE Parameter (Quality Code + Range)
The 32-bit MODE parameter is structured into two distinct segments:
- Bits 24-31 (Quality Code):
16#80indicates valid, healthy signal quality. If the upper byte is16#00, the block treats the channel as defective and forcesQBAD = 1. - Bits 0-15 (Measuring Range & Type): Identifies electrical characteristics (current vs voltage, 0..20 mA vs 4..20 mA, bipolar vs unipolar).
Combining Quality Code 16#80 with the 4..20 mA current mode 16#0203 produces the exact composite hex word: 16#80000203.
Automated Module Driver Generation vs Manual Parameterization
In standard PCS 7 engineering, the engineer never manually types hex values into MODE. When the AS program is compiled with Generate module drivers enabled, the Driver Generator automatically instantiates diagnostic block MOD_D1 and creates a dynamic interconnection to Pcs7AnOu.MODE.
If an engineer disables the Driver Wizard, places the module from the STEP 7 Standard Profile, or manually types an invalid peripheral address, MODE remains unlinked (16#00000000), triggering persistent QBAD = 1.
ET 200S Analog Output Range and MODE Coding Matrix
The following table provides verified hex values for parameter MODE for the ET 200S 2 AO U/I module (6ES7135-4GB01-0AB0):
16#020316#80 (Good)16#8000020316#020116#80 (Good)16#8000020116#010116#80 (Good)16#8000010116#010316#80 (Good)16#8000010316#000016#00 (Bad)16#00000000QBAD = 1; output forced to 0.Step-by-Step Troubleshooting and Parameterization Procedure
Method 1: Enabling Module Driver Generation (Recommended Standard)
- Open HW Config in SIMATIC Manager.
- Ensure the ET 200S interface module and
2 AO U/Imodule (6ES7135-4GB01-0AB0) are placed from the PCS 7 Profile. - In module properties, set the output channel measuring type to 4..20 mA.
- Note the output address assigned (e.g.
PQW 512). - In CFC, ensure input
ADDRofPcs7AnOu(orCH_AO) is set to512. - Select Chart > Compile > Charts as Program, check Generate module drivers, and execute compilation.
- Download changes to the controller. Confirm that
MODEis automatically interconnected toMOD_D1andQBADclears to 0.
Method 2: Manual Parameterization for Standalone Testing
- If testing on a test bench without full module drivers, open the CFC chart.
- Sever any broken interconnections on input
MODE. - Double-click parameter
MODEand enter the static value:16#80000203. - Compile changes and download to the AS.
- Observe that
QBADswitches to0and physical current flows from the module.
Verification
To verify that the analog output driver functions correctly:
- CFC Test Mode: Switch CFC to Test Mode. Confirm that
QBADevaluates toFALSE(0). - Physical Current Measurement: Connect a digital multimeter (in mA mode) across the physical output terminals of the ET 200S module.
- Span Test: Set input
PV_In = 0.0%-> verify multimeter reads4.00 mA. SetPV_In = 50.0%-> verify12.00 mA. SetPV_In = 100.0%-> verify20.00 mA.
Limitations and Operational Precautions
- Module Backplane Power: ET 200S electronic output modules require 24 VDC auxiliary power supplied via the upstream Power Module (
PM-E). If the PM-E power fails, the module asserts hardware fault regardless of softwareMODE. - Load Resistance Limits: Ensure total loop resistance (wiring + positioner impedance) does not exceed the module's maximum allowable load impedance (typically 500 Ω for 4..20 mA outputs).
- Delta Download Caution: Modifying module driver interconnections manually can cause compilation mismatches during subsequent automated compiles.
Engineer FAQ
What does QBAD = 1 mean on a PCS 7 channel driver?
QBAD indicates that the driver output is bad due to invalid MODE parameterization, hardware diagnostic interrupt, or broken communication to the peripheral rack.
Why did my manually entered MODE value get overwritten after compiling CFC?
When 'Generate module drivers' is enabled during compilation, the Driver Generator overwrites manual MODE values with dynamic interconnections from diagnostic blocks.
How do I configure the channel driver to hold the last valid value on fault?
Configure parameter Feature.Bit28 = 1 on APL Pcs7AnOu to retain the last valid output upon sensor or communication failure.
Technical References
- Siemens Industry Online Support Entry ID 109760968: SIMATIC Process Control System PCS 7 Advanced Process Library Manual
- Siemens AG: SIMATIC Distributed I/O System ET 200S Manual (Doc No. A5E00517150)
- Siemens AG: SIMATIC PCS 7 CFC for S7 / PCS 7 Manual (Doc No. A5E03415129)
Related Articles
- https://industrialautomation.net/search?query=pcs7+analog+output+qbad+troubleshooting
- https://industrialautomation.net/search?query=et200s+2ao+ui+mode+parameter+hex+codes
- https://industrialautomation.net/search?query=module+driver+generator+pcs7anou+mod_d1
Related Tags
- https://industrialautomation.net/search?query=simatic-pcs7
- https://industrialautomation.net/search?query=channel-drivers
- https://industrialautomation.net/search?query=analog-output
- https://industrialautomation.net/search?query=et200s