Synchronizing Master Data Library Block Types to Enable CFC Delta Downloads in PCS 7
Errors during CFC compilation and downloading changes when adding APL blocks (such as Pcs7AnIn or MotL)—while simple elementary blocks compile without error—occur because the APL block types in the project offline block folder mismatch the versions loaded in the online CPU or Master Data Library. APL blocks invoke module drivers and diagnostic blocks (@-charts) that enforce strict interface consistency. To resolve this and restore delta downloading in RUN mode, execute 'Options -> Block Types...' in SIMATIC Manager to update all block types from the Master Data Library into the project, perform a block cleanup, and recompile CFC changes with 'Generate module drivers' enabled.
Table of Contents
- CFC Block Type Management and Delta Download Dependencies
- Root Cause Analysis - Elementary Blocks vs Complex APL Drivers
- Block Type Comparison and Synchronization Matrix
- Step-by-Step Procedure to Update Block Types and Download Changes
- Verification
- Limitations and Operational Precautions
- Engineer FAQ
- Technical References
- Related Articles
- Related Tags
CFC Block Type Management and Delta Download Dependencies
In SIMATIC PCS 7, the Continuous Function Chart (CFC) compiler supports online delta downloading (Download Changes), allowing engineers to modify automation logic and add new process control loops while the AS controller remains in RUN mode. To permit delta downloads, the CPU operating system enforces strict interface signature checks (CRCs) across all function blocks.
When a block is instantiated in CFC, the compiler references the block template stored in the project's offline Blocks folder. If the block interface matches the online CPU image, changes can be downloaded seamlessly. However, if an updated or mismatched block type is introduced from an external library, the compiler flags an interface collision and disables delta downloading.
Root Cause Analysis - Elementary Blocks vs Complex APL Drivers
Engineers frequently wonder why simple blocks (such as Add04, Sub02, CmpR) can be added without compilation errors, while adding Pcs7AnIn or MotL triggers download aborts:
- Elementary Blocks: Math and comparison blocks are standalone function calls (
FCor elementaryFB) that do not interact with hardware organization blocks or module driver diagnostic charts. Their interfaces rarely change. - APL Technology Blocks: Blocks like
Pcs7AnInandMotLare deeply integrated with the PCS 7 diagnostic architecture. During compilation with Generate module drivers, the compiler automatically instantiates diagnostic drivers (OB_DIAG1,MOD_D1,OR_M_16) in internal@-charts. If the project contains older diagnostic blocks while the new APL block demands updated driver interfaces, the compiler detects an unresolved cross-block dependency and blocks the download.
Block Type Comparison and Synchronization Matrix
The table below details block type sources, synchronization tools, and operational impact in SIMATIC PCS 7:
CFC LibraryPCS 7 AP LibraryOptions -> Block Types....PCS 7 Basis Library@-charts; requires consistent versions.Options -> Block TypesStep-by-Step Procedure to Update Block Types and Download Changes
- Audit Master Data Library Blocks:
- In SIMATIC Manager, expand the Master Data Library -> Blocks folder.
- Verify that the target APL blocks (Pcs7AnIn,MotL) and Basic Library diagnostic blocks are present with uniform versions. - Launch Block Types Synchronization Wizard:
- Open any CFC chart in the affected AS project.
- SelectOptions -> Block Types.... - Synchronize Master Library to AS Offline Program:
- In the Block Types dialog, select the Master Data Library in the left pane.
- In the right pane, select the target AS program.
- Select the updated blocks (or select all) and click the->(Transfer) button.
- When prompted that existing instances will be updated, click Yes. - Perform Block Cleanup:
- Click the Clean Up button in the Block Types dialog. This removes obsolete block versions and unreferenced instance DBs. - Compile CFC with Module Drivers:
- SelectChart -> Compile -> Changes Only.
- Ensure Generate module drivers is checked.
- The compiler updates the@-charts to match the synchronized APL interfaces cleanly. - Execute Delta Download: In CFC, select
PLC -> Download -> Changes Only: confirm successful download in RUN mode.
Verification
Verify block type synchronization through the following milestones:
1. Confirm that CFC compilation finishes with 0 Errors, 0 Warnings.
2. Confirm that the download changes dialog reports: 'Download changes in RUN is possible'.
3. Switch CFC to online test mode: verify that the newly added Pcs7AnIn and MotL blocks execute with valid signal status (16#80).
Limitations and Operational Precautions
Never copy individual blocks directly from external library DVDs into an AS offline block folder using drag-and-drop in SIMATIC Manager. Bypassing the Options -> Block Types... wizard fails to update instance data structures and can corrupt the CFC chart database. Furthermore, if a block update modifies inputs or outputs that alter instance DB structural sizing drastically, the compiler may declare that a full download in STOP is required. Always review the compile log before confirming online downloads on running plants.
Engineer FAQ
Technical References
- SIMATIC PCS 7 CFC for S7 Programming Manual - Block Types and Instances
- SIMATIC PCS 7 Engineering System Configuration and Library Management Manual
- Siemens Technical Support: Updating Block Types in Continuous Function Chart (SIOS Entry ID 109754990)
Related Articles
- Updating Master Data Library Blocks and Managing Driver Generations in CFC
- Resolving AddFEM Uncertain Channel Quality Status (16#40000203) in Redundant AS Configurations
- Resolving CFC Driver Warning Instance Not Installed in OB100 Across Project
Related Tags
- Block Types
- CFC
- Delta Download
- APL
- Master Data Library
- Pcs7AnIn