System Integration & Control Systems Design


Predictive model for chlorination

February 2006 System Integration & Control Systems Design

A predictive model controller is used to control a drinking water chlorination process.

Predictive model controllers are commonly used on DCS platforms and as supervisory control systems. Recently, two single loop predictive model controllers with model-based feedforward compensation were implemented using a standard function block library available with the ControlLogix system from Rockwell Automation. This controller significantly reduces process variation when compared with PID or similar common controllers, providing engineers with significant insight into the process and the control approach and allowing for easy startup, debugging and maintenance.

Figure 1. The differences between PID control single input single output predictive model control and multivariable predictive model control
Figure 1. The differences between PID control single input single output predictive model control and multivariable predictive model control

Predictive controllers have for the past few decades been serving as a cornerstone of 'advanced' or 'supervisory' control. A predictive model controller uses a process model that is built to predict future values of controlled variables based on current controller output and feedforward signals. The controller output, or manipulated variable, is typically calculated such that the controlled variable follows a desired trajectory.

The layout of the instrumentation and the chemistry of the process require implementation of predictive model control to minimise residual chlorine content in drinking water delivered to the customers. Generally, different process gains during high and low flow conditions and varying process deadtime require controller gain scheduling and on-line adjustment of model deadtime.

In the remainder of this article, basic theoretical elements of predictive model control, implementation strategy in ControlLogix system, the chlorination control architecture, objectives and the actual controller implementation will be discussed.

Predictive model control

The fundamental idea behind predictive model control is to use information generated by a model of the controlled process to control the controlled variables as close to the target or set point or to control the entire process to a specific objective other that just a set point. The type of model that is used most frequently is a dynamic model. Such a model describes the process behaviour over a period of time and predicts values of the controlled variable based on current and past values of the manipulated variables and feedforward signals. If more than one model, or relationship, between one pair of analog values is used, then we refer to such a model and resulting controller as a multivariable model or predictive model controller, respectively.

Controlled variable variation is reduced by a multivariable predictive model controller which takes into account changes in MV and DV using the process model.

First order lag with deadtime process model is a transfer function-based model with three parameters:

* Process gain = steady state magnitude of change of CV as a result of unit change of MV.

* Process deadtime = elapsed time from MV step change to the initial reaction of CV to the change.

* Process time constant = measurement of how fast CV will approach the steady state after the initial deadtime period. The CV reaches about 63,2% of its steady state value in a period of time equal to the time constant.

The significance of the model parameters, the Process Gain = 0.6, time constant = 30 seconds and deadtime = 50 seconds is shown in Figure 2.

Figure 2. Graphical illustration of the process gain, time constant and deadtime
Figure 2. Graphical illustration of the process gain, time constant and deadtime

The internal model control, or IMC, block diagram shows how the process model is used in the control algorithm.

The complete multivariable predictive model controller is shown in Figure 5.

It is not the purpose of this article to show all the design details and justifications for the configuration and the choice of models. This configuration and model types were chosen to fit the control application.

The predictive model control configuration as shown in Figures 3 and 5 does not provide an anti-windup feature in case the manipulated variable calculated by the controller exceeds minimum or maximum limits imposed by the HLL block and ultimately the instrument, or actuator, which in this case is a vacuum driven chlorinator. To address this issue, use is made of the Model State Feedback configuration of the predictive model controller:

Figure 3. IMC control diagram
Figure 3. IMC control diagram

Figure 4. PID control diagram
Figure 4. PID control diagram

Figure 5. Simplified multivariable predictive model control diagram with one feedback loop and one feedforward signal
Figure 5. Simplified multivariable predictive model control diagram with one feedback loop and one feedforward signal

The diagram shown in Figure 6 represents identical control algorithm when the MV is within bounds set by the HLL function. If the MV calculated by the controller is greater than the maximum limit or less than the minimum limit the model state feedback configuration updates the internal model states and model predictions according to the value of the output actually sent to the process, ie, the maximum or minimum limit, whichever applies. When the calculated MV comes out of saturation the correct value of the manipulated variable is immediately calculated.

Figure 6. Model state feedback implementation of the IMC controller
Figure 6. Model state feedback implementation of the IMC controller

The feedforward controller FF is implemented using the realisable ratio of models between DV - CV model and MV - CV model. The FM portion of the feedforward controller compensates for rejection of the same disturbance twice: once by the feedforward block FF and again by the feedback controller, in case the deadtime of the feedback signal is longer than the deadtime of the feedforward signal. The final configuration for one predictive model feedback controller with predictive model feedforward signal is shown in Figure 7.

Figure 7. Model state feedback implementation of the multivariable predictive model controller
Figure 7. Model state feedback implementation of the multivariable predictive model controller

Implementing MPC Using ControlLogix function blocks

ControlLogix from Rockwell Automation is a PLC-based processor system which allows programming in ladder code and function block diagrams. Therefore, sometimes, the system is referred to as a 'hybrid' system. Unlike many other PLC systems ControlLogix allows for deterministic, ie, fixed timing, execution of ladder subroutines and the function block diagrams.

A ControlLogix program can be written as, for example, a ladder code executing sequential logic, like communication watchdog, parameter setting and calculations, mode switching, initialisation, fault handling, etc, while the function block diagram may be called by the ladder routine at some point of its execution and executed as part of the overall program. The entire program then may represent a multivariable predictive model controller, for example, with appropriate timing, bumpless mode switching, control algorithm execution and other necessary features ensuring correct and robust operation in realtime. The system maintains and updates all values, including model predictions in a tag data table which is possible to monitor in realtime or log using a data collection system.

The key function blocks used to generate the multivariable predictive model controller were: Lead/Lag (LDLG), Deadtime (DEDT), Selector (SEL), Gain multiplication (MUL), Addition (ADD), Subtraction (SUB) and High/Low limit (HLL).

Water chlorination control

The measured variables are water flow and residual chlorine. The only manipulated variable is the rate of chlorine addition into the water flow. This is the last treatment before water reaches the customer, ie, private homes and businesses. Maintaining the residual chlorine set point is of essential importance in protecting public health. The typical set point range for residual chlorine is 1,5-2,5 ppm depending on many factors, one of them being the projected chlorine loss which depends on the distance to the most remote residences supplied with water from the chlorination station and the climate. This ensures that even in the most distant homes chlorine content does not drop below 0,5 ppm and therefore ensures water safety. Residual chlorine content variation below 1 ppm and above 5 ppm causes risk to public health. Too much chlorine is unnecessary from the treatment perspective and may cause allergic reaction or eye irritation in short term and possibly cancer risks with long term exposure to high chlorine content in drinking water. Too little chlorine means risk of micro-organisms surviving, with some of them able to cause various kinds of human diseases.

Figure 8. Drinking water chlorination process
Figure 8. Drinking water chlorination process

The main control objective is to minimise variation of residual chlorine in drinking water. Consequently, the residual chlorine set point may be reduced to a minimum value, where enough chlorine is injected to provide safe water and overdosing is prevented. Economical savings from using less chlorine are also significant.

For more information contact Jeff Sandison, Rockwell Automation, 011 654 9700, [email protected]



Credit(s)



Share this article:
Share via emailShare via LinkedInPrint this page

Further reading:

The time is now for systems integrators
Editor's Choice System Integration & Control Systems Design
Integrators combine sophistication regarding technology innovation with practical, hands-on experience. Collaborating with systems integrators is the means to significant productivity improvement, powered by the convergence of automation and information and operations technology.

Read more...
System integrators are a diverse market
Editor's Choice System Integration & Control Systems Design
System integrators (SIs) combine expertise on emergent technologies with real world experience. Working with SIs, it’s inevitable that at some point someone will say, “We’re not a typical SI.” And in many ways, it’s true. SIs come in all shapes and sizes.

Read more...
Avoiding the pitfalls of PLC and scada control system integration
Iritron System Integration & Control Systems Design
Upgrading your control system by integrating PLCs with scada systems should be a simple seamless process. Regrettably, the industry is plagued with control system integration and upgrade myths and misconceptions that can lead to liability issues, project delays, cost overruns and decreased plant performance.

Read more...
EtherCAT measurement terminals for vehicle development at Mercedes-Benz
Beckhoff Automation System Integration & Control Systems Design
At the Mercedes Technology Centre plant in Sindelfingen, Germany, car axles are examined with the highest precision on four test benches, in parallel with road tests and simulations. All data is acquired using PC-based control from Beckhoff.

Read more...
Loop signature 23: Tuning Part 2.
Editor's Choice System Integration & Control Systems Design
It is my opinion that most tuning methods are very crude. They do of course also offer a starting point for tuning if one is not fortunate enough to have a sophisticated tuning package like a Protuner around.

Read more...
PIC microcontrollers with integrated FPGA features in TME
System Integration & Control Systems Design
The new PIC16F131xx microcontrollers in TME’s offering from Microchip are ideal for the evolving and miniaturising electronic equipment market, offering efficient power management and predictable response times for controllers.

Read more...
Five smart machine trends you need to know
Adroit Technologies System Integration & Control Systems Design
The last ten years have brought about dramatic advances in technologies that OEMs had never realised would affect their designs or the saleability of their machines, much less impact business models and profits so dramatically. The following discussion will cover key advancements and recommendations all OEMs should be adopting in their design processes to stay current and competitive.

Read more...
36 years of innovation and success
SAM Systems Automation & Management Editor's Choice System Integration & Control Systems Design
Systems Automation & Management was established in 1988 at a time when there were no other systems integrators (SIs) in the process business. SA Instrumentation & Control’s editor caught up with managing director, Claudio Agostinetto to find out more about how this thriving company has prospered over the last 36 years.

Read more...
Understanding the role of AI in generative engineering design
System Integration & Control Systems Design
When a design engineer sets out to design a new part, component, or assembly, the intent is to meet the design requirements for fit, form and function, and also incorporate a certain degree of innovation and elegance to the overall design. There is no reason to re-invent the wheel by introducing a new design.

Read more...
PCS stays up so you don’t have to
PCS Global System Integration & Control Systems Design
Maybe it’s time to look at a solution that stays online 99,99999% of the time so you don’t have to. This the world of Stratus computer platforms, tailor-made for your critical applications.

Read more...