Resolving CFC Compilation Error 'Parameter Assignment of Sampling Times Not Possible' on CPU 416-3 in PCS 7 v7.0

Resolving CFC Compilation Error 'Parameter Assignment of Sampling Times Not Possible' on CPU 416-3 in PCS 7 v7.0

In SIMATIC PCS 7 v7.0, the CFC compiler error 'Parameter assignment of sampling times is not possible with the existing standard version of STEP 7' during program compilation occurs when a newer replacement controller (such as CPU 416-3 MLFB 6ES7416-3XR05-0AB0 with Firmware v5.3.1) is configured in HW Config without the corresponding Hardware Support Package (HSP), or when the cyclic interrupt organization blocks (OB30 through OB38) parameterized in CFC exceed the sampling time granularity supported by the STEP 7 hardware definition. Resolving this error requires installing HSP 2026 for the CPU, harmonizing the cyclic OB execution times in the CPU's 'Cycle/Clock Memory' hardware properties, and executing a full CFC compilation.

Table of Contents

Root Causes of the Sampling Time Parameter Error in CFC

In SIMATIC PCS 7, the Continuous Function Chart (CFC) editor structures automation execution through cyclic interrupt organization blocks (OB30 through OB38). During compilation, the compiler cross-checks block sampling rates against the hardware capabilities of the target central processing unit:
1. Hardware Support Package (HSP) Discrepancy:
- SIMATIC PCS 7 v7.0 was initially released around S7-400 CPU firmware V4.x and early V5.0.
- The CPU 416-3 (6ES7416-3XR05-0AB0) with firmware V5.3.1 represents a hardware successor released later.
- If an engineer replaces an older CPU or configures the 6ES7416-3XR05-0AB0 by inserting it into HW Config without the exact Hardware Support Package (HSP), STEP 7 falls back to a generic parameter profile that lacks support for dynamic sampling time parameterization from CFC.
2. OB Sampling Time Inconsistency:
- Standard PCS 7 runtime groups assign blocks to standard cycles (e.g. OB35 = 100 ms, OB34 = 200 ms, OB33 = 500 ms, OB32 = 1000 ms).
- If a runtime group in CFC is configured with a sampling time (e.g. 25 ms or 50 ms) that is not activated or configured under the CPU's Cycle/Clock Memory properties in HW Config, the compiler rejects the compilation:
text Parameter assignment of sampling times is not possible with the existing standard version of STEP 7.

Hardware Catalog HSP Prerequisites for CPU 416-3 (6ES7416-3XR05-0AB0)

To ensure the CPU 416-3 is fully recognized with all firmware V5.3 capabilities in PCS 7 v7.0:

  1. Update HW Config Catalog via HSP:
    - In SIMATIC Manager, open HW Config.
    - Select Options > Install Hardware Updates.
    - Select Download from Internet or browse to a pre-downloaded HSP repository.
    - Locate HSP 2026 (or the hardware update package corresponding to S7-400 V5.3 CPUs).
    - Install the package and execute Options > Update Catalog.

  2. Verify Hardware Catalog Selection:
    - In the hardware catalog, expand:
    SIMATIC 400 > CPU 400 > CPU 416-3 > 6ES7416-3XR05-0AB0 > V5.3.
    - Verify that the module description explicitly indicates Firmware V5.3.1 compatibility.

Configuring Cyclic Interrupt Organization Blocks in HW Config

Harmonizing hardware properties with CFC sampling requirements:

  1. Open CPU Object Properties:
    - In HW Config, double-click the CPU 416-3 in the rack.
    - Navigate to the Cycle/Clock Memory tab.

  2. Verify Cyclic Interrupt Execution Times:
    - Check the configured interval times for all active cyclic OBs:

    • OB30: Typically 5000 ms or inactive.
    • OB31: Typically 2000 ms.
    • OB32: 1000 ms (Standard slow analog monitoring).
    • OB33: 500 ms (Standard digital / alarm monitoring).
    • OB34: 200 ms (Standard control / interlocks).
    • OB35: 100 ms (Standard PID loops).
    • OB36: 50 ms (Fast loops).
    • OB37: 20 ms.
    • OB38: 10 ms.
    • Ensure that the execution times configured in HW Config match the default sampling intervals used by the CFC runtime groups.
  3. Save, Compile, and Download HW Config:
    - Click Save and Compile in HW Config.
    - Download the hardware configuration to the CPU.
    - Return to SIMATIC Manager, open the CFC chart container, and execute Options > Customize > Compilation/Download. Verify that the base sampling time is set to 100 ms.
    - Execute a full compile: Chart > Compile > Complete Program.

CFC Sampling Times and Organization Block Mapping Table

The following table details standard PCS 7 cyclic interrupt OB configurations and their typical functional assignment:

Organization BlockDefault Cycle TimeTypical PCS 7 Library UsageHardware Setting in HW ConfigSampling Time Multiplier in CFCOB35100 msFast PID control (PIDConL), Analog Drivers (FbAnIn)Time base: 100 msBase time $\times 1$OB34200 msMotor/Valve logic (MotL, VlvL), Safety F-SystemsTime base: 200 msBase time $\times 2$OB33500 msStandard process interlocks, slow calculationsTime base: 500 msBase time $\times 5$OB321000 msTemperature loops, System Diagnostics (HCPUDIAG)Time base: 1000 msBase time $\times 10$OB312000 msEnvironmental monitoring, totalizer archivingTime base: 2000 msBase time $\times 20$OB3810 msHigh-speed turbine control, rapid sequence gatingTime base: 10 msBase time $\times 0.1$

Verification

To confirm that the sampling time error is resolved and the CPU compiles successfully:
1. In HW Config, verify that the CPU object shows MLFB 6ES7416-3XR05-0AB0 with Firmware V5.3.
2. In SIMATIC Manager, select the chart folder and click Chart > Compile > Changes Only.
3. Confirm that compilation finishes with:
text Compilation completed: 0 errors, 0 warnings.
4. Perform an online delta download to the CPU.
5. In SIMATIC Manager, select the CPU and open PLC > Module Information > Diagnostic Buffer. Verify that the CPU remains in RUN mode without any cycle time exceedance or OB-call rejection events.

Limitations and Operational Precautions

When managing CPU replacements in PCS 7 v7.0:
1. Never Downgrade Base STEP 7 Below Service Pack Level: PCS 7 v7.0 requires STEP 7 V5.4 SP3 or higher. Operating on older STEP 7 revisions without service packs will prevent HSP installation for V5.3 S7-400 CPUs.
2. Backward Compatibility Principle: If the exact firmware V5.3.1 is not present in your HW catalog, Siemens permits configuring the CPU as its predecessor (e.g. 6ES7416-3XR05-0AB0 V5.0 or 6ES7416-3XL04-0AB0 V4.0), relying on firmware backward compatibility.
3. Execution Phase Offsets: When configuring multiple cyclic OBs, distribute the phase offsets (e.g. 0 ms, 20 ms, 50 ms) in HW Config to prevent all cyclic OBs from executing simultaneously, which causes CPU load spikes.

Engineer FAQ

Why did this error appear on only one of the 10 PLCs in the plant?

Because that specific PLC was upgraded or replaced with a newer hardware revision (6ES7416-3XR05-0AB0 FW 5.3.1), whereas the other nine PLCs were running older hardware (FW 4.x or 5.0) already recognized by the engineering station's base catalog.

Can I compile CFC if the CPU is configured as a spare part in HW Config?

Yes. Configuring the CPU as a spare part (e.g. configuring a V5.0 profile in HW Config for a physical V5.3 CPU) bypasses catalog limitations, provided the physical CPU supports spare part compatibility.

What does 'Parameter assignment of sampling times' actually do?

During compilation, CFC calculates the calling sequence and generates system data blocks (SDBs) that configure the S7-400 internal timer interrupts to match the block sampling intervals.

Does changing OB cycle times in HW Config require a CPU STOP?

Yes. Modifying cyclic interrupt execution times in HW Config modifies system data blocks (SDBs), which requires downloading HW Config while the CPU is in STOP (or using CiR if pre-allocated).

Technical References

Related Articles

Related Tags

  • PCS7_V7_0
  • CPU416_3
  • CFC_Compilation
  • Sampling_Times
  • HW_Config
  • HSP
  • Cyclic_Interrupts
  • OB35
6 respuestas