System Integration & Control Systems Design


Digital controllers: Part 4 - the I term

November 2001 System Integration & Control Systems Design

In the previous article in this series, it was shown that the main problem with the P only controller is the fact that it is not capable of eliminating offset between setpoint and process variable (PV) by itself. Manual reset was discussed whereby the user can manually eliminate the offset by adjusting a bias added to the process demand (PD - output signal from the controller). This, however, is a short-term solution, because another offset will arise if a load change occurs.

A mathematical genius in the 1930s found a simple way to overcome the offset problem, by introducing an automatic mechanism to eliminate offset. This is the I, or 'integral' term. Figure 1 shows how an integrator works.

Figure 1
Figure 1

The error signal is fed into the input of the device. If the error is zero the output of the integrator remains fixed at whatever its current value is. However, if an error does appear at the input, then the unit starts integrating the error value with time. Thus, if the error input is a step, as shown in the figure, the output of the integrator will be a ramp, the slope of which will remain constant for as long as the error remains constant. If the error input is a larger step (bigger error) then the ramp will have a proportionally steeper slope. (It is important to note that the integral action in a controller is therefore greater, the larger the error. Conversely, as the PV gets closer to setpoint, so the integral ramp rate, and hence effect on the PD, will be much less.)

The integrator acts as an automatic offset adjuster, because if any error arises on its input, it will try and move the output in a direction to diminish the error. As the error gets smaller, then so will slope of the output ramp. When the error finally disappears, the integrator's output will remain constant at its last value. Thus it acts as an automatic bias to eliminate offset.

It should be noted that the I term's only purpose is to eliminate offset.

Figure 2 illustrates a simple P + I controller which is being tested. (See earlier article in this series for controller test procedures.) A setpoint step change is made, which results in a step change in error appearing at the input of both the P and I blocks. The output of the P block is a step, and the output of the I block is a ramp. The two responses are added as shown in the figure, so that the PD is a step followed immediately by a ramp.

Figure 2. The P+I controller
Figure 2. The P+I controller

This response is enlarged in Figure 3. Imagine that the step portion of the response, which is the contribution from the P block, has a magnitude 10%. The I term then carries on increasing the PD at a constant ramp rate. If it takes say T seconds to raise the output a further 10%, it is said that the I's contribution has 'repeated' the P's contribution in T seconds.

Figure 3. How integral is measured on a series or ideal controller
Figure 3. How integral is measured on a series or ideal controller

The most commonly used units of measurement of the I term are seconds/repeat, or minutes/repeat, or the inverse, which is repeats/second, or repeats/minute. As usual there are no standards, and each controller manufacturer use whatever unit they wish.

Note that these terms only apply to controllers with series or ideal algorithms. The time has now come to explain why the parallel algorithm behaves so differently. In the earlier article on algorithms it was mentioned that if one were to reduce the gain on controllers with the series or ideal algorithms, the process response to a step change would be slower. However, conversely on a controller with the parallel algorithm, the response would become more cyclic.

The algorithm for the parallel controller with P + I tuning is:

The algorithms are the same for series or ideal controllers with P + I tuning. (They differ only in the D term, if it is used):

It is important to note that in the latter algorithm, the P term also multiplies through into the I term, so if Kp is reduced, then the integral becomes slower, and the slope of the ramp is less.

The top graph in Figure 4 shows the response of a P + I controller undergoing testing. The controller gain Kp = 1. The I is set to a value that on the ideal and series controllers would repeat the P action in T seconds. It should also be noted that a parallel controller would also have an identical response to this for Kp = 1 and with the same I value.

Figure 4
Figure 4

Now in the parallel controller, if the gain were halved (Kp = 0,5), then nothing would happen to the integral ramp rate as the two terms are not linked at all. Therefore, on a 10% step change in error, the P action would result in an output step of 5%, and the integral would still continue ramping up at the same rate as it did in the previous test with Kp = 1. This is shown in the middle graph in Figure 4. It is now observed that the P action is repeated in time T/2 seconds. Therefore, the reason that the parallel controller gets more cyclic when the gain is reduced is because effectively the integral gets faster in relation to the P action.

In the series and ideal controllers where Kp is multiplied with the I term, the integral ramp rate is now reduced by 50%, and as can be seen in the bottom graph in Figure 4, I repeats the P action in T seconds. Thus the relationship between P and I is maintained.

Figure 5
Figure 5

The difference between the closed loop responses of series and parallel controllers controlling the same process with a reduction in the gain, but no change in integral, is shown in Figures 5, 6, and 7. In Figure 5, the response for any of the three algorithms is the same provided Kp = 1. In Figure 6, the response for the series or ideal is shown with Kp = 0,25, and the parallel in Figure 7, also with Kp = 0,25. Whereas the response on the former has become very slow, the parallel has become much more cyclic. This means that if one was using the parallel algorithm and did indeed wish to reduce P by a factor of 4 to slow the response down, then you would also have to increase (lengthen) the integral by the same factor.

Figure 6
Figure 6

Thus, the parallel algorithm makes life extremely difficult for the poor instrument specialist, as tuning is made very much more complicated, as one has to adjust all the parameters simultaneously. On the series or ideal algorithms on self-regulating processes, once you have got the correct I (or I + D) settings, then you can leave those terms alone and play only with the P 'knob' to obtain the desired response.

Figure 7
Figure 7

As mentioned in a previous article in this series, I have found that people who were 'wizards' in tuning in their plants when they worked on older controllers, lost their 'art' completely when newer computerised controllers were introduced which have the parallel algorithm. This is because there is a completely different 'feel' to the tuning.

Fortunately there was such resistance from users in the early days of computerised control systems with the Parallel algorithm, that manufacturers generally now offer the user a choice between the Parallel, and at least one of the others. I would strongly recommend that you choose either the series or ideal. It will make your life very much easier when it comes to tuning.

At the time of writing this article I was doing some optimisation on a very remote diamond mine in southern Africa. The mine has standardised on a particular make of PLC for all its controls. Generally, as PLCs sometimes do not handle PIDs well, I always do some tests on them to check on the operation. In this mine we tested three PLCs all of the same model on different plants, and found that they were all reasonably accurate with the P action. However, they all had huge errors on the I timing response. The errors ranged from -50% to +50%. (The D response was not tested.)

As the I function is completely time dependent, the problem obviously arises from the scan rate of how often the PID is executed in the PLC. Unfortunately the manuals on the PLCs were really terrible with extremely poor, limited, and confusing descriptions of the PID operation. Also the plant personnel did not have any training on the PID operation. Therefore it was impossible to say whether the problem was a manufacturing error or faulty programming.

The scan rate itself as actually measured on the controller's output was very different to the setting in the controller's program in the PLC, and did not tie in with any of the information given in the manual. The manual did however mention that PID block should be executed in a sequence free from interrupts.

Figure 8 shows one of the actual tests performed on the controller to check the P + I performance. It can also be seen in the test how the integral ramp is very 'wavy' which would indicate possible interrupts upsetting the PID timing execution.

Figure 8
Figure 8

The mine is now going to go back to the supplier to get help and more explanations on why the controllers are not performing properly, and as to why they are so far off specification.

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 activites 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:

Case History 197: Bad reboiler temperature control.
Michael Brown Control Engineering Editor's Choice Flow Measurement & Control
It is very important that reboiler temperature controls operate well in petrochemical refineries, or the product quality can really suffer. I was asked to check such a control in a refinery where they were having problems with one of these controls.

Read more...
The state of the SI industry remains strong and is expanding
System Integration & Control Systems Design
The system integration (SI) industry is expanding with the adoption of AI, automation and data sharing, allowing companies to improve operational efficiency and competitiveness across diverse sectors.

Read more...
The symbiotic relationship between OEMs and SIs
Schneider Electric South Africa Editor's Choice System Integration & Control Systems Design
While businesses tend to turn directly to original equipment manufacturers OEMs or vendors when embarking on IT projects, the role of the SI as a key facilitator and partner cannot be overstated.

Read more...
Case History 196: Unstable condensate level control.
Michael Brown Control Engineering Editor's Choice Level Measurement & Control
The operators in a petrochemical refinery were having great trouble in trying to stabilise the condensate level in a vessel, and this was adversely affecting other loops downstream. Several unsuccessful attempts had been made to retune the controller.

Read more...
Flexible and precise dispensing technology
Beckhoff Automation System Integration & Control Systems Design
The Scheugenpflug ProcessModule axis system forms the basis of Atlas Copco’s dispensing and screwing cells and a flexible integration platform for general contractors and machine builders. Precise process sequences are ensured by TwinCAT CNC and servo drive technology from Beckhoff.

Read more...
Loop signature: Tuning part 4 processes
Michael Brown Control Engineering Editor's Choice Fieldbus & Industrial Networking
The purpose of this particular article is to try and give those unfortunate enough to have to use SWAG (scientific wild ass guess) tuning a bit of an idea of how to go about it, and even more importantly some understanding of a couple of basic principles.

Read more...
Case History 195: Unstable reboiler steam flow
Michael Brown Control Engineering Editor's Choice
A high-pressure steam flow control in a reboiler on a column in a petrochemical refinery continually cycled when placed in automatic. Several attempts had been made to tune the controller, but these had been unsuccessful.

Read more...
Loop signature 25: Tuning part 3 - Results of tuning a particular simple self-regulating process by several different methods.
Michael Brown Control Engineering Editor's Choice
A couple of SWAG methods of tuning were given in the previous Loop Signature article. I have tuned a simple self-regulating process using those methods, and two other tuning methods, one of them being the sophisticated Protuner tuning package, which is the system I employ. The tests were performed on a very accurate and powerful simulation package, and the results are compared below.

Read more...
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...