A control loop automates the task of an operator who watches a gauge and adjusts a valve: if the cyclone feed is too dense, the water valve is opened slightly, and if it is too dilute, the valve is closed slightly. The controller performs this adjustment continuously according to the PID algorithm.
The algorithm has three terms. The proportional term responds to the current size of the error. The integral term continues to act while any error remains, so that the loop eventually reaches the setpoint exactly. The derivative term responds to the rate of change of the error and is rarely used on plant loops, because instrument signals are noisy. Tuning is the selection of the strength of each term.
This article describes the elements of a loop, the conduct and interpretation of a step test, and loop tuning by the lambda method, using a cyclone feed density loop as the example. It is written for metallurgists who work alongside control engineers, not as a substitute for them.
The PID equation
where
- controller output, for example valve position or pump speed (%)
- error: setpoint minus process variable
- controller gain
- integral (reset) time (s or min)
- derivative time (s or min); usually zero on plant loops
The controller action must have the correct sign. Opening the dilution water valve lowers the density, so when the density rises above setpoint the controller must open the valve further. A controller whose output rises as the PV rises is called direct acting; most loops, in which opening the valve raises the PV, require reverse action instead. An incorrect action drives the loop to a limit.
Control loops in a mineral processing plant
| Loop | Measured (PV) | Adjusted (OP) |
|---|---|---|
| Mill feed rate | Belt weightometer | Feeder speed |
| Mill feed water ratio | Water flow, with setpoint from ore feed rate | Water valve |
| Cyclone feed sump level | Level transmitter | Cyclone feed pump speed |
| Cyclone feed density | Density gauge | Sump dilution water valve |
| Thickener underflow | Bed level or bed pressure, underflow density | Underflow pump speed, flocculant dose |
| Leach pH and cyanide | pH probe, cyanide analyser | Lime and cyanide addition |
| Dissolved oxygen | DO probe | Air or oxygen flow |
Many loops are combined. A ratio loop sets the mill water in proportion to the ore feed. A cascade loop has an outer controller, such as sump level, setting the setpoint of an inner controller, such as pump speed. Feedforward adjusts the output as soon as a measured disturbance changes, before the PV moves.
Step test interpretation
With the loop in manual and the process steady, the output is moved by a small step and the PV recorded. The response of most self-regulating plant loops is a delay followed by an exponential curve.
where
- process gain, with PV and OP both in % of their ranges
- dead time: delay before the PV starts to move (s)
- time constant (s), measured from the end of the dead time
Worked example: the dilution water valve is stepped from 40% to 45% open. The density gauge, ranged 1.0 to 2.0 t/m³, falls from 1.620 to 1.580 t/m³, a change of 4% of span for a 5% output step, so Kp = −4 ÷ 5 = −0.8. The density begins to move 15 s after the step (θ = 15 s) and reaches 63.2% of its total change 45 s after that (τ = 45 s).
Two or three steps should be made in each direction at normal operating conditions. Unequal responses up and down usually indicate a sticking valve or a non-linear process, neither of which tuning can correct.
Lambda tuning
where
- chosen closed-loop time constant: how fast the loop should respond; a common, robust starting point is three times the larger of and
Worked example: with λ = 3 × 45 = 135 s, the controller gain is 45 ÷ (0.8 × (135 + 15)) = 0.375 and the integral time is 45 s, with the controller set to direct action so that it opens the valve on high density. A faster choice, λ = 45 s, gives a gain of 45 ÷ (0.8 × 60) = 0.94.
Both settings reach the new setpoint without overshoot; the faster settles in about 3 minutes and the slower in about 9, close to the expected 4λ. The slower setting remains stable even if the process gain or dead time doubles, as occurs with changes in ore, flows and equipment wear. Interacting loops, such as sump level and cyclone density, should have lambdas that differ by a factor of three or more so that they do not oppose each other.
Checks before retuning
Valve stiction or backlash appears as a slow cycle in the PV and can be tested with small output steps. The transmitter should be checked for calibration, range, filtering and installation, for example a density gauge on a line containing entrained air. A valve that operates nearly shut or fully open has no range in which to control.
Integrating loops, such as levels, behave differently from self-regulating loops and use different tuning rules; averaging level control often calls for a slow loop that allows the level to float.
Glossary
- PV (process variable)
- The measured value the loop controls, such as density or level.
- SP (setpoint)
- The target value for the PV.
- OP (output)
- What the controller adjusts, such as valve position or pump speed.
- Process gain
- Change in PV divided by the change in OP that caused it, in % of range.
- Dead time
- The delay between an output change and the first movement of the PV.
- Time constant
- The time after the dead time for the PV to reach 63.2% of its final change.
- Lambda (λ)
- The chosen closed-loop time constant in lambda tuning.
- Cascade control
- An outer loop that sets the setpoint of an inner, faster loop.
Frequently asked questions
Is the derivative term needed?
Rarely on mineral processing loops. Derivative action responds to the rate of change, and noisy plant signals make it erratic. Most loops operate as PI controllers.
What lambda should be chosen?
A common robust starting point is three times the larger of the dead time and the time constant. A faster setting should be used only if the loop requires it and the process is consistent.
Why does a loop cycle even after tuning?
Often because of a sticking valve, an interacting loop or a transmitter problem. These should be checked with the loop in manual before the tuning is changed.
What is the difference between direct and reverse action?
A direct-acting controller raises its output when the PV rises; a reverse-acting controller lowers it. Reverse action suits loops in which more output raises the PV, such as a feeder and weightometer. The naming and application of the setting should be checked in the particular control system.
Discuss your plant with a metallurgist
Tiegel is a Perth metallurgy company. We help with testwork, plant optimisation, metal accounting and investigations, and we build the Tiegel Suite software.
Talk to a metallurgistReferences and further reading
- Seborg, D.E., Edgar, T.F., Mellichamp, D.A. and Doyle, F.J. (2016). Process Dynamics and Control, 4th edition. Wiley.
- ISA InTech (June 2016). Basics column on lambda tuning. Link
Worked examples and charts marked illustrative use invented figures, not data from any operation.