Understanding Process Value Normalization and Effective Gain in PCS 7 CTRL_PID and APL PIDConL
In classic PCS 7 PID controllers such as CTRL_PID (FB61), the parameters NM_PVHR (high limit) and NM_PVLR (low limit) define the process value measurement span used to normalize physical engineering values into internal percentages (0.0 to 100.0%). The controller's effective loop gain directly depends on this normalization range: GainEff = GAIN * (100.0 / (NM_PVHR - NM_PVLR)). In modern APL controllers such as PIDConL (FB1874), this normalization is standardized via the NormPV structure, and controller gain is specified directly in physical units (% / EU or EU / EU).
Table of Contents
- Mathematical Foundation of Process Value Normalization in PID Controllers
- Effective Gain Formula and Impact of Span on Loop Stability
- Comparing Classic CTRL_PID (FB61) and Modern APL PIDConL (FB1874)
- Configuring Normalization Ranges to Match Channel Drivers in CFC
- Verification
- Limitations and Operational Precautions
- Engineer FAQ
- Technical References
- Related Articles
- Related Tags
Mathematical Foundation of Process Value Normalization in PID Controllers
In process control automation, PID algorithms calculate a manipulated variable output (MV) based on the error deviation (ER = SP - PV) between the setpoint and process value. In legacy process controllers such as the SIMATIC PCS 7 Standard Library block CTRL_PID (FB61), the algorithm operates on normalized dimensionless variables (0.0% to 100.0%) rather than raw engineering units.
To achieve this, the input process value PV_IN must be normalized using defined low and high span limits:
* NM_PVLR: Normalization minimum (Process Value Low Range) in physical engineering units (e.g., 0.0 bar).
* NM_PVHR: Normalization maximum (Process Value High Range) in physical engineering units (e.g., 200.0 bar).
The controller calculates the normalized process value internally as:
$$\text{PV}_{\text{norm}} = \frac{\text{PV} - \text{NM_PVLR}}{\text{NM_PVHR} - \text{NM_PVLR}} \times 100\%$$
If an engineer does not configure NM_PVHR and NM_PVLR to match the actual sensor measurement span, the mathematical error deviation will be drastically scaled up or down, invalidating controller tuning.
Effective Gain Formula and Impact of Span on Loop Stability
Because the internal proportional term acts upon percentage error while outputting a percentage manipulated variable, the physical controller gain is scaled by the span width:
$$\text{Gain}_{\text{eff}} = \text{GAIN} \times \frac{100.0}{\text{NM_PVHR} - \text{NM_PVLR}}$$
For example, consider a pressure loop with tuning parameter GAIN = 1.0:
* Scenario A (Correct Span 0 to 100 bar): Span = 100. $ ext{Gain}{ ext{eff}} = 1.0 imes (100/100) = 1.0$. Each 1 bar deviation produces a 1% control valve change.
* Scenario B (Measurement Span 0 to 10 bar, but span left at default 0 to 100): Span = 100. A 1 bar error is evaluated as only 1% error rather than 10%, causing sluggish, ineffective control.
* Scenario C (Measurement Span 0 to 10 bar correctly entered): Span = 10. $ ext{Gain} = 1.0 imes (100/10) = 10.0$. Each 1 bar deviation correctly produces a 10% valve change.}
Comparing Classic CTRL_PID (FB61) and Modern APL PIDConL (FB1874)
The following matrix highlights the architectural shift between classic PCS 7 PID blocks and the modern Advanced Process Library:
CTRL_PID (FB61)PIDConL (FB1874)NM_PVHR / NM_PVLR (REAL inputs)NormPV.High / NormPV.Low (STRUCT)GAIN)Gain (e.g., % / °C or EU / EU)GainEff automatically scales with span widthFeature.Bit (dimensionless vs physical)PV_OpScale for HMI trend scalingST) propagationTable 1: Comparison of normalization and gain structures in PCS 7 PID blocks.
Configuring Normalization Ranges to Match Channel Drivers in CFC
To ensure proper controller operation and accurate gain calculations:
- Verify Analog Channel Driver Scale:
* Inspect the upstream channel block (CH_AIin standard library orPcs7AnInin APL).
* Note parametersVHRange(e.g.,150.0) andVLRange(e.g.,0.0). - Configure Normalization on CTRL_PID:
* SetCTRL_PID.NM_PVHRequal toCH_AI.VHRange.
* SetCTRL_PID.NM_PVLRequal toCH_AI.VLRange.
* ConnectCH_AI.Vdirectly toCTRL_PID.PV_IN. - Configure Normalization on APL PIDConL:
* Interconnect the structured outputPcs7AnIn.PV_OuttoPIDConL.PV.
* The structured signal automatically carries both the process value and the scale structure.
* Verify thatPIDConL.NormPVreflects the identical high and low bounds.
Verification
To confirm proper normalization and controller gain response:
- In CFC test mode, set the controller in manual mode and enter setpoint
SP = 50.0 bar. - Provide a process value
PV = 50.0 bar: verify that errorERis0.0. - Switch controller to Automatic mode with integral action disabled (
TI = 0or large value). - Introduce a step change in setpoint:
SP = 60.0 bar(+10 bar error). - For a loop with span
0 to 100 barandGAIN = 1.0, confirm that the proportional output step is exactly+10.0%. - Confirm that the WinCC faceplate bargraph and trend limits match the normalization span.
Limitations and Operational Precautions
- Never modify
NM_PVHRorNM_PVLRon a running production loop without re-evaluating the controller'sGAINparameter, as changing the span instantly alters the loop's effective proportional gain and can trigger violent valve cycling. - Ensure
NM_PVHRis strictly greater thanNM_PVLR; setting them equal causes division-by-zero math errors in the CPU operating system. - In multi-range applications, dynamically altering normalization parameters during runtime requires careful bumpless parameter switching.
Engineer FAQ
Why did my control loop become unstable after changing sensor transmitters?
If a transmitter with range 0–500 °C was replaced with a transmitter calibrated to 0–100 °C, but NM_PVHR was not updated in the controller, or if it was updated without adjusting GAIN, the effective loop gain increased five-fold, causing loop instability.
What happens if PV exceeds NM_PVHR?
In CTRL_PID, process values beyond the normalization bounds result in normalized values exceeding 100%, causing the calculated manipulated variable to saturate at high or low limits.
Can PIDConL operate without process value normalization?
Yes. APL PIDConL can be configured via feature bits to interpret Gain in direct engineering units without relative percentage normalization.
Technical References
- SIMATIC Process Control System PCS 7 Standard Library Manual (A5E35003912)
- SIMATIC Process Control System PCS 7 Advanced Process Library (A5E35003921)
- Siemens Industry Online Support: Unit Templates and PID Controller Scaling (Entry ID 53843373)
- Control Engineering Practice: PID Controller Tuning and Normalization in DCS Systems
Related Articles
- Configuring Y-Axis Scaling and Dynamic Trend Ranges on APL PIDConL Faceplates in PCS 7
- Understanding APL Structured Data Types and Signal Status Propagation
- Monitoring Integer and Word Variables in PCS 7 APL: MonAnL Conversion and Formatting
- Configuring Interlock Input Identifiers and Extended Descriptions in PCS 7 APL Faceplates
Related Tags
- CTRL_PID
- PIDConL
- NM_PVHR
- NM_PVLR
- Normalization
- Effective Gain
- PCS 7