System Integration & Control Systems Design


The control loop: Digital controllers - Part 2

September 2001 System Integration & Control Systems Design

Testing operation

A controller responds to input changes with responses dependent on the way the P, the I and the D modules are configured. It is sometimes necessary to perform tests on a controller to ensure it does in fact respond correctly to changes on its input. This is particularly true for controllers in many digital systems, and even more so in the case of many PLCs, where controllers often do not actually respond correctly to input changes. (This may be due to a fault in the controller's software, but more often than not, it is because the user has set up the controller incorrectly.)

Figure 1. Test set-up to determine controller action
Figure 1. Test set-up to determine controller action

A test set-up is shown in Figure 1. To perform the tests, the controller needs to be disconnected from the loop. The input 4 to 20 mA PV signal is fed into the controller from a signal generator. The controller is on local setpoint, and the output (PD) 4-20 mA signal is fed into a recorder, or the Protuner if you have one.

Each test is performed with the controller in automatic. Before starting a test, the controller is switched to manual. The signal generator and the controller's outputs are set to 50% (12 mA.). The setpoint is also set to 50%. When the controller is switched to automatic the output should remain running at a constant 50%. The tests can then be started. These will be discussed later in this series as each type of control action is discussed.

Controller PID algorithms

A controller is essentially a mathematical calculating unit. It is important to know which algorithm (equation) it uses in performing its function. Although control academics are always presenting many specialised algorithms to help in dealing with the control of difficult or specific processes, commercial controllers generally employ one of three algorithms. Some manufacturers allow you to choose between two, or even between all three of these.

All of these three algorithms essentially perform PID control more or less equally well. However, what is not generally known is that different tuning would have to be set in each of them if one was to use P, I and D parameters to control a particular process, and also achieve the identical response from each controller.

The basic format of the three algorithms are:

Where KP is controller gain, TI is integral time in seconds/repeat, TD is derivative time in seconds, and S is the Laplace operator.

Although the names I have used for these algorithms are in fairly common usage, there are as always, no standards, and many of the manufacturers use other, and often confusing nomenclature. The names given here will be used throughout this series to identify a particular algorithm.

Historically it is not quite clear how, and by whom the algorithms were developed, but I suspect that the Ideal was the first, as it appeared many years ago in the Transactions of the ISA. Possibly it was formulated by the famous Nichols. Several articles I have read claim that the Ideal algorithm was not in fact suitable for use to manufacture the pneumatic controllers of that era, which they needed to build in modular form. This was because a full three-term pneumatic PID controller was very expensive, and it was far more cost-effective for users to order controllers with only the control terms that were required for the particular application. If at a later date they did require an additional term or terms, then they could order a kit of parts, which could be easily added into the controller. It was easier to make such a modular controller by slightly modifying the algorithm. This was the Series algorithm.

The Series algorithm effectively became the standard at that time, and with the possible exception of manufacturers of controllers in the electrical power industry, all controllers were made like this. When electronic analog controllers were developed in the 1960s the same algorithm was retained.

Digital controllers appeared on the scene in the 1980s. The old established instrumentation companies were entering the era of the DCS, and PLC manufacturers who up to that time were only interested in digital ON/OFF control, started expanding their products to include analog control capabilities.

The latter in particular had little or no experience of feedback control, and their programmers in many instances probably acquired their knowledge from reading textbooks on PID. They found the Series and the Ideal algorithms, and not fully understanding why the mathematicians of old had bothered to multiply the I and D terms by the P gain, they also came up with the Parallel algorithm. This was termed the Independent algorithm by one of the large PLC manufacturers, who loudly proclaimed it as superior, as the I & D terms were not affected by changing the P term. Although this sounds intelligent, it actually shows that the people who invented that algorithm had little practical knowledge of control. The reasons for this opinion of mine will be explained more fully in later articles in this controller series.

Initially quite a few of the PLC manufacturers used only the Parallel algorithm in their products, but with the exception of only one, the prominent DCS manufacturers stuck to the Ideal or Series algorithms. However, in recent years some of them now also offer it as their default algorithm, or as an alternate. Again in my view, people who program controllers into computers and who offer the Parallel algorithm as a default, again display that they have very little understanding of practical aspects of control.

It is of significance to note that although many of the digital controller manufactures who originally employed the Parallel algorithm, all of them, as far as I am aware, now offer a choice of at least one of the others - mainly because of the unfavourable user reaction to the Parallel.

The main problem with it is in the tuning. The Parallel algorithm is generally much harder to tune by trial and error than Series or Ideal.

To understand this, one must realise that at least 98% of all loops worldwide are tuned by 'trial and error', or if you prefer, playing with the knobs. In general, very few people actually are really capable of achieving good tuning this way, but there are some who have over the years developed a wonderful 'touch' for trial and error tuning, and have become extremely proficient in this art. Now this experience has generally been gained on controllers that are equipped with Series or Ideal algorithms. The tuning for both of these is identical for P + I tuning. It only differs for P + I + D tuning. (An inspection of the equations will explain why this is so, because when D is set to zero the equations become identical.)

If you were to take one of these highly experienced tuning wizards and ask him (or her) to tune a loop that had a controller with a Parallel algorithm, the result would be catastrophic, as the 'feel' that the person had developed using the Series or Ideal algorithm is of no use whatsoever when tuning a Parallel controller. It works completely differently. For example if you had a loop that contained a Series or Ideal controller, and the loop was cycling badly in automatic, you would generally reduce the proportional gain to try and stop the cycle. However, if you were to do this on a loop controlled by a Parallel controller, the loop would actually cycle more.

Reasons for the strange behaviour of the Parallel algorithm and why it is so difficult to use, will be given when the I term is described later in this controller series, and also when tuning is covered, which will be much later in the Loop Signature series.

Michael Brown Control Engineering

(011) 486 0567

[email protected]

www.controlloop.co.za

Michael Brown is a specialist in control loop optimisation, with many years of experience in process control instrumentation. His main activities are consulting, and teaching practical control loop analysis and optimisation. He gives training courses that can be held in clients' plants, where students can have the added benefit of practising on live loops. His work takes him to plants all over South Africa, and also to other countries.



Credit(s)



Share this article:
Share via emailShare via LinkedInPrint this page

Further reading:

Loop Signature 30: Nonlinearity in control loops (Part 1)
Michael Brown Control Engineering Editor's Choice Fieldbus & Industrial Networking
If nonlinearity occurs it means that if one is to carry on controlling with the same response to changes in load or setpoint, then the tuning of the controller will also need to be adjusted to meet the new conditions.

Read more...
Control system upgrade: Smelting
SAM Systems Automation & Management 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
Moore Process Controls 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...
Integrated Robotics and Control Systems Deliver 45% Production Boost at Aquazania Waters Project and Industry
Process Dynamics System Integration & Control Systems Design
Project and Industry    Process Dynamics designed and commissioned a state-of-the-art Reverse Osmosis (RO) water purification and automated bottle filling plant for Aquazania Waters in Linbro Park, Johannesburg. ...

Read more...
Case History 199: Another example of the effectiveness of cascade control
Michael Brown Control Engineering Editor's Choice Fieldbus & Industrial Networking
In my last article I wrote about how cascade control systems can effectively overcome valve problems. This article gives another example of how a temperature control was able to perform well, in spite of really severe valve problems.

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...
Case History 198: Cascade control overcomes valve problems
Michael Brown Control Engineering Fieldbus & Industrial Networking
A large petrochemical refinery asked me to perform an audit on several critical base layer control loops. This article deals with a problem found on a valve controlling the flow of fuel to a heat exchanger.

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