Why Using SIMATIC PCS 7 APL Blocks in Standalone STEP 7 on S7-416 CPUs Is Problematic

Why Using SIMATIC PCS 7 APL Blocks in Standalone STEP 7 on S7-416 CPUs Is Problematic

Attempting to use SIMATIC PCS 7 Advanced Process Library (APL) blocks (MotL, VlvL, PIDConL) inside standalone STEP 7 Classic on an S7-416 CPU without installing the full PCS 7 engineering suite is an architectural anti-pattern and highly impractical. APL blocks strictly require Continuous Function Chart (CFC) for structured interconnection, the PCS 7 Driver Generator Wizard to supply Signal Status (ST), and ALARM_8P message mapping that only the PCS 7 OS compiler provides. Calling APL blocks in standard Ladder Logic (LAD) results in permanent Bad Signal Status (16#00), manual DB parameterization overhead, and licensing non-compliance.

Table of Contents

APL Architectural Paradigm: DCS vs. PLC Programming

Engineers familiar with discrete PLC programming in SIMATIC STEP 7 Classic (LAD/FBD/STL) frequently look at the rich functionality of the PCS 7 Advanced Process Library (APL)—with its integrated operating modes, bumpless setpoint ramping, interlock matrices, and pre-built faceplates—and ask:
* 'Can I simply copy MotL (FB 1850) or PIDConL (FB 1874) into my S7-416 project running standalone STEP 7 V5.5?'

While the S7-416 CPU hardware (6ES7416-2X... / 6ES7416-3...) can physically execute the compiled MC7 machine code of an APL Function Block, attempting to engineer a project this way encounters severe architectural roadblocks. APL was not designed as a standalone block library; it is the algorithmic engine of a tightly integrated Distributed Control System (DCS).

The Problem of Signal Status (ST) and Missing Driver Generators

Every process variable in the APL is not a simple elementary data type (BOOL or REAL); it is an 8-byte or 2-byte STRUCT containing:
* Value: The actual physical data (e.g. 125.4 or TRUE).
* ST (Signal Status): A byte encoding process quality compliance with NAMUR NE 107 (e.g. 16#80 = Good, 16#00 = Bad, 16#60 = Simulated).

In PCS 7, the Driver Generator Wizard automatically generates channel drivers (Pcs7AnIn, Pcs7DiIn) and connects them to hardware diagnostic blocks (MOD_D1). The driver calculates ST based on module hardware diagnostics.
In standalone STEP 7:
* The Driver Generator is completely absent.
* There are no channel drivers automatically updating signal quality.
* If you wire a raw analog input address (PIW 256) to an APL block, the block receives ST = 16#00 (Bad Quality).
* In response to Bad Quality, APL blocks automatically reject commands, lock into safe state, or generate persistent alarms unless the engineer manually builds complex custom code to assemble structured bytes.

CFC Structured Variables vs. Classic LAD/STL Limitations

APL blocks possess massive interfaces:
* MotL has over 180 input and output parameters.
* PIDConL has over 220 parameters.
* In PCS 7, these blocks are placed in CFC, where only 5 to 10 active connections are displayed visually, while the remaining 170 parameters remain cleanly in the background with standardized default values.
* In standard STEP 7 LAD/STL: Calling FB 1850 in a network generates a colossal block call extending across 15 vertical pages of code. Every structured input (STRUCT) must be manually defined in an instance Data Block, making maintenance, code reviews, and commissioning extraordinarily cumbersome and error-prone.

Standalone STEP 7 vs. PCS 7 APL Engineering Comparison Matrix

The following matrix compares using APL blocks in standalone STEP 7 against native PCS 7:

Aspect / RequirementNative SIMATIC PCS 7Standalone STEP 7 ClassicProgramming EnvironmentContinuous Function Chart (CFC)Ladder Logic (LAD) / STL / FBDSignal Quality (ST)Automated via Driver GeneratorManual assembly required (Defaults to Bad)Parameterization OverheadLow (Graphical interconnection)Extremely High (>180 pins per block in STL)Alarming MechanismAutomated ALARM_8P to WinCC OSRequires manual raw message configurationWinCC Faceplate SupportNative 1-click dynamic faceplatesIncompatible (Requires custom script rewrites)Software LicensingStandard PCS 7 AS RT PO LicenseAPL Licensing Non-Compliant

Supported Alternatives for Non-PCS 7 S7-400 Applications

If an engineering project must deploy an S7-416 CPU using standalone STEP 7 Classic without full PCS 7, Siemens provides approved standard libraries designed specifically for discrete PLC architectures:
1. SIMATIC S7 Standard Library:
- Contains classic control blocks: CONT_C (FB 41 - Continuous Controller), CONT_S (FB 42 - Step Controller), and PULSEGEN (FB 43).
- Uses simple elementary data types (REAL, BOOL) that are easily manipulated in standard LAD networks without structured signal statuses.
2. SIMATIC TIA Portal Migration:
- If modern object-oriented process libraries are desired without PCS 7, migrate to S7-1500 controllers running the TIA Portal SIMATIC Process Library (SPL) or modular application libraries.
3. Install Full PCS 7 Engineering Environment:
- If the technological power of APL is truly required, install certified SIMATIC PCS 7 engineering software on the ES, configure the S7-416 within a PCS 7 Multiproject, and license the system appropriately.

Verification

Verify whether an S7-400 project adheres to proper architectural standards:
1. In SIMATIC Manager, check the project type: A proper APL project must reside inside a PCS 7 Multiproject with active Plant Hierarchy and CFC folders.
2. Open a technological block in CFC: Verify that inputs receive structured variables from Pcs7AnIn / Pcs7DiIn with ST = 16#80.
3. In STEP 7, verify that no manual STL networks are calling raw APL blocks (CALL FB1850, DBxxx) with uninitialized signal statuses.
4. Check Automation License Manager (ALM): Verify valid licenses exist for PCS 7 Engineering and PCS 7 AS Runtime PO.

Limitations and Operational Precautions

  • Running APL blocks on standalone STEP 7 without valid PCS 7 AS Runtime Process Object (PO) licenses violates Siemens software licensing agreements.
  • Faceplates supplied with the PCS 7 APL strictly require WinCC OS scripts and tag management generated by the AS-OS Compile Wizard; they cannot be imported directly into WinCC flexible or basic WinCC projects without extensive rewriting.
  • Do not attempt to bypass Signal Status evaluation by permanently forcing ST = 16#80; doing so creates an unmonitored blind spot where real field hardware faults are ignored by control algorithms.

Engineer FAQ

Can an S7-416 CPU run PCS 7?

Yes! The S7-416 (e.g. 6ES7416-3XR05-0AB0 or 6ES7416-3ES06-0AB0) is a certified controller within SIMATIC PCS 7. The limitation is not the physical CPU hardware, but the engineering software: you must configure it using the PCS 7 engineering suite (CFC, Plant Hierarchy), not basic standalone STEP 7.

Why does APL use ALARM_8P instead of WinCC bit alarms?

ALARM_8P (SFB 35) generates event-driven alarms directly in the S7-400 CPU firmware with millisecond timestamping, completely offloading communication polling from the plant bus.

Can I use standard FB 41 CONT_C in PCS 7 CFC?

Yes. Classic blocks like FB 41 can be placed in CFC charts. However, they lack APL features such as structured signal statuses, advanced operating modes, and automatic APL faceplate generation.

Technical References

Related Articles

Related Tags

  • SIMATIC PCS 7 V8.1
  • APL
  • S7-416
  • STEP 7 Classic
  • Signal Status
6 respuestas