Skip to content

What are you looking for?


You may also like

Advanced Loop Tuning: Mastering Proportional Control for Tank Level Systems in Siemens TIA Portal

  • by WUPAMBO
Advanced Loop Tuning: Mastering Proportional Control for Tank Level Systems in Siemens TIA Portal

Managing liquid levels within storage vessels represents a fundamental process loop challenge in modern industrial automation. While comprehensive Proportional-Integral-Derivative (PID) controllers handle highly volatile dynamics, a focused Proportional (P) controller offers an ideal, fast-acting alternative for specific hydraulic applications. This technical guide outlines the execution of proportional control loops utilizing the Siemens TIA Portal ecosystem.

Modulation vs. Two-Position Action: The Technical Imperative for Smooth Valve Control

Basic factory automation installations frequently implement simple on-off control logic using discrete high and low float switches. However, this non-linear approach places massive mechanical strain on final control elements. On-off operation forces regulatory valves to cycle abruptly between zero and 100 percent flow capacity, which induces liquid water hammer and accelerates mechanical actuator wear.

Proportional control solves this operational issue by continuously throttling the control valves based on live process conditions. The control algorithm interprets live feedback from an analog level transmitter rather than reacting to static trip points. Therefore, the system scales its corrective output smoothly, which stabilizes process pressure and extends the physical lifespan of the field valves.

Proportional Loop Equations: Quantifying Corrective Error Feedback

The underlying logic of a proportional control structure relies on a direct mathematical relationship between system deviation and final actuator position. The controller calculates the active error signal by subtracting the live Process Variable (PV) from the operator Setpoint (SP).

To determine the final output command, the PLC multiplies this error value by a fixed multiplier known as the Proportional Gain (Kp). The core math follows a clear sequence:

Error = Setpoint - Process Variable

Control Signal = Proportional Gain * Error

Through this calculation, the control output remains perfectly proportional to the magnitude of the system deviation.

Signal Architecture: Normalizing Field Instrumentation for Siemens PLCs

Integrating this closed-loop fluid simulation requires structured analog I/O assignment across the local control system network. An electronic level transmitter tracks the water column height and inputs a corresponding 0 to 10 Volt signal to the PLC.

On the regulatory side, two independent modulating flow valves manage the incoming and outgoing process fluid. The physical control cabinet features dual-channel analog potentiometers, allowing operators to adjust the target level setpoint and modify the Proportional Gain manually. The PLC system processes all of these variables in real time to coordinate the control valves safely.

Engineering Data Conversion: Handling Integer Scaling inside TIA Portal

Siemens SIMATIC controllers handle raw analog signals as 16-bit integers ranging from 0 to 27648 rather than direct physical values. Consequently, automation software developers must normalize these unscaled registers into usable engineering units before executing the loop math.

Programmers utilize the native NORM_X and SCALE_X instruction blocks within TIA Portal to convert raw integer inputs into an exact 0 to 300 centimeter level range. Following the internal proportional calculations, the program routes the floating-point control signal through an inverse scaling function. This step translates the output percentage back into a 0 to 27648 integer to drive the analog output card.

Technical Commentary: Mitigating Proportional Offset and Dynamic Saturation

In my 15 years of commissioning control systems, I have frequently watched technicians struggle with the inherent flaw of pure proportional control: steady-state offset. A standalone P-controller requires a sustained error value to produce an output signal. If a tank suffers a continuous downstream demand, the liquid level will always stabilize slightly below the programmed setpoint.

Increasing the Proportional Gain narrows this steady-state offset gap and speeds up the valve reaction time. However, setting the gain too high creates severe system instability. The valve will over-correct constantly, which causes rapid process oscillations and large level overshoots. If your process requires zero steady-state offset, you must introduce an Integral term to eliminate the residual error automatically.

Practical Implementation Scheme: Complementary Dual-Valve Level Regulation

This deployment scenario provides a reliable framework for automating a liquid storage loop. It balances inflow and outflow dynamics simultaneously using twin modulating valves.

Operational Framework

  • Configuration Platform: Siemens TIA Portal V18 or V19 using Structured Control Language (SCL).

  • Control Hardware: Siemens SIMATIC S7-1200 CPU 1214C controller.

  • Field Scope: Low-pressure atmospheric chemical blending or water storage cells.

Loop Execution Process Sequence


1.Signal Normalization:Step 1: Input Conditioning。

The analog card samples the raw 0-27648 field data, normalizes the integers, and converts them into precise 0-300cm engineering real values for the PLC logic.

2.Error Computation:Step 2: Deviation Analysis。

The processor subtracts the live level value from the operator setpoint to calculate the exact error distance and determine the direction of deviation.

3.Algorithm Execution:Step 3: Gain Multiplication。

The controller multiplies the active error by the current gain value, generating a raw command percentage that is clamped securely between 0.0 and 100.0 percent.

4.Actuator Modulation:Step 4: Output Scaling。

The software unscales the final real numbers back into a 0-27648 integer format, driving the filling valve open or the draining valve closed to match the loop requirement.

About the Author: Zhang Haoran

Zhang Haoran is a Senior Automation Engineer and technical consultant with 15 years of industry experience specializing in process loop optimization and advanced PLC architectures. He focuses on configuring Distributed Control Systems (DCS), tuning complex PID loops, and integrating power protection instrumentation across the municipal utilities and chemical sectors. Over his career, Zhang has designed robust software blocks and fieldbus infrastructure for large-scale production sites, helping plants achieve maximum system reliability.


Previous     Next