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:

Cybersecurity in 2025: Six trends to watch
Rockwell Automation IT in Manufacturing
Rockwell Automation’s 10th State of Smart Manufacturing report finds that cybersecurity risks are a major, ever-present obstacle, and are now the third-largest impediment to growth in the next 12 months.

Read more...
Control system upgrade: Smelting
System Integration & Control Systems Design
Systems Automation & Management recently completed a major control system upgrade in the smelting industry. The project was delivered on budget and achieved a positive ROI for the client.

Read more...
Gottwald drives upgrade: Ports and harbours
Abacus Automation System Integration & Control Systems Design
In the ports and harbours sector, Abacus Automation completed a significant modernisation of a Gottwald crane, improving both operational reliability and serviceability.

Read more...
Mining industry upgrade: From ageing systems to maximum capacity
System Integration & Control Systems Design
Iritron recently undertook a major upgrade in the mining sector, focusing on washing and screening plants, jigs, thickeners, tailings, water systems, conveyors and reclaimers.

Read more...
Agogo Integrated West Hub Project: FPSO/subsea offshore Angola
System Integration & Control Systems Design
The Agogo Integrated West Hub project represents a historic milestone in the FPSO and subsea industry, achieving first oil offshore of Angola. This project is the first FPSO deployment since ANPG’s establishment in 2019, and the first major project for Azule Energy since 2022.

Read more...
Enabling a sustainable organisation
Rockwell Automation IT in Manufacturing
This article explains the top sustainability trends and key actions that you can leverage to become a more sustainable organisation.

Read more...
Speeding up warehouse automation
Rockwell Automation Editor's Choice Motion Control & Drives
Bastian Solutions designs and delivers world-class material handling systems. The company was engaged by a high-end global fashion brand to implement a new warehouse system. Bastian used Rockwell Automation Emulate3D digital twin software to test the system before it was installed and went live.

Read more...
Digital transformation from the edge
DirectLogic Automation System Integration & Control Systems Design
Edge-enabled PLCs are an accessible and affordable way for most users to collect and create value from use field-sourced data.

Read more...
Powering southern Africa’s industrial evolution for over five decades
Oilpower System Integration & Control Systems Design
Established in 1974, Oilpower is a recognised name in South Africa’s hydraulic and pneumatic sector. What started as a small, family-run business has matured into a highly structured operation with specialised teams, experienced engineers and a reputation for technical excellence and reliability. Oilpower is celebrating its 50th anniversary this year

Read more...
Control system for deep antenna
Rockwell Automation Motion Control & Drives
When a major university in South Korea set out to build a 21-metre deep space antenna, the researchers needed a control system that could track celestial objects with pinpoint accuracy, a level of precision they thought was out of reach. By partnering with Rockwell Automation, they discovered that the right technology and support could turn their vision into reality.

Read more...









While every effort has been made to ensure the accuracy of the information contained herein, the publisher and its agents cannot be held responsible for any errors contained, or any loss incurred as a result. Articles published do not necessarily reflect the views of the publishers. The editor reserves the right to alter or cut copy. Articles submitted are deemed to have been cleared for publication. Advertisements and company contact details are published as provided by the advertiser. Technews Publishing (Pty) Ltd cannot be held responsible for the accuracy or veracity of supplied material.




© Technews Publishing (Pty) Ltd | All Rights Reserved