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:

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...
Four ways the global parts shortage has led to innovation and openness
System Integration & Control Systems Design
For those who use automation parts, the unpredictable nature of the supply chain is one of the biggest problems faced today. The shortfall has impacted every industry, but automation components have been especially affected.

Read more...
Iritron’s year of consolidation
Iritron Editor's Choice System Integration & Control Systems Design
Despite the multiple challenges faced by businesses in South Africa, the buoyancy of the technology sector worldwide has produced some green shoots for automation specialist, Iritron.

Read more...
Five edge opportunities for SIs to maximise revenue in 2024
Editor's Choice System Integration & Control Systems Design
System integrators continue to face the challenge of doing more with less – supporting complex operations, while meeting production schedules with limited resources, and innovating to increase efficiency, maximise safety and reduce risk.

Read more...
Condition monitoring in a forging press retrofit
Beckhoff Automation System Integration & Control Systems Design
Significantly increased vibration on machines can result in many forms of negative impacts such as reduced system performance or damage to the machine and foundation. Using the example of retrofitting a forging press with a maximum press force of 2000 tons, Wölfel Engineering explains how efficiently the process was tailored and implemented with PC-based control and measurement technology from Beckhoff.

Read more...
System integration in the digital age
System Integration & Control Systems Design
To meet the challenges of an increasingly competitive marketplace, many manufacturers (end users) must focus on their core competencies and outsource the rest to experts.

Read more...
Choosing a system integrator
Editor's Choice System Integration & Control Systems Design
Automation is an essential part of manufacturing today. Whatever the size, an upgrade or migration project can be complex, and the risks can be high. This is where system integrators (SIs) can help. They can bring together complex subsystems or components of a larger system and make them operate as a whole.

Read more...
Iritron awarded international contract for furnace control
Iritron System Integration & Control Systems Design
Iritron has been awarded two international, multimillion-Rand furnace drying projects. The company has extensive expertise in furnace drying control systems, and provides solutions in the fields of electrical, instrumentation, control systems, and decision support systems.

Read more...
Capitalise on risks by turning them into opportunities for growth
Iritron System Integration & Control Systems Design
In spite of the challenges facing the global and local economy, systems integration expert, Iritron remains optimistic for the year ahead, and believes that there are significant opportunities to be found during a challenging economic climate.

Read more...