A control loop consists of the process, measurement, controller, and a final control element (a valve, damper, etc., and its associated equipment such as a positioner). Optimal process control depends on all of these components working properly. Hence, before tuning a loop, one must verify that each component is operating properly and that the design is appropriate.
Choosing the optimal PID tuning should be done after assuring that all of the other components are working correctly. The optimal tuning parameters ensure your equipment is used at maximum efficiency.
If the (Cv) is not computed properly, the valve process gain (Gp) will be too high and the valve problems will be amplified. The process gain should be maintained under 2 or 3. For example, if the process gain is 5, each time the valve moves by 1%, the process variable moves by 5%.
If the characteristics of the valve are not properly selected, the process gain will vary. The process gain should vary less than a factor of 2 or 3.
The actuator needs to be strong; first to deal with the process forces applied on the valve, second to break the friction from the mechanical pieces in contact and from the packings. We recommend an actuator developing three times the force required to overcome the dynamic and frictional forces.
The valve, actuator, and positioner must fit with close tolerances and resist wear. Loose mechanical parts lead to backlash: the valve movement will be different from the signal.
The resolution of a valve is the smallest increment of input signal in one direction for which movement of the valve is observed. Resolution can be limited by a sensor such as a wirewound resistor, where each loop of wire produces an output jumping each time a new loop is reached. Digitizing a signal can give the same result. For example, the resolution for an eight-bit system is 1/256=0.4%.
Figure 1 illustrates the terms dead band, resolution, backlash and hysteresis.
If resolution is perfect, backlash = deadband = hysteresis.
Figure 1
Stiction hides in a crowd that includes deadband, resolution, backlash, and
hysteresis. If resolution is perfect, backlash = deadband = hysteresis
The word stiction is a combination of the words stick and friction, created to emphasize the difference between static and dynamic friction. For example, it is sometimes hard to move a piece of furniture. You apply increasing pressure and it suddenly gives, moving rapidly. Similarly, stiction causes the piston of an air cylinder to suddenly lurch forward at the start of a stroke or to move jerkily during its travel.
Stiction exists when the static (starting) friction exceeds the dynamic (moving) friction inside the valve. Stiction describes the valve's stem (or shaft) sticking when small changes are attempted. Friction of a moving object is less than when it is stationary. Stiction can keep the stem from moving for small control input changes, and then the stem moves when there is enough force to free it. The result of stiction is that the force required to get the stem to move is more than is required to go to the desired stem position. In presence of stiction, the movement is jumpy.
In a refinery, hidden cycling was detected in most loops of a unit. After analysis using power spectral density and cross correlation, a flow loop with cycling is found. This was undetectable looking at the DCS screen. The amplitude of the cycling was too small and the signal was filtered. The graphics in the upper half of Figure 5 shows what was seen on the DCS and the graphics in the lower half display the same information, but unfiltered. Figure 6 displays the same data, but zoomed.
In automatic mode, a loop with a sticky component will behave like the one in Figure 6. The process variable will look like a square wave. Sometimes, if the process has a large time constant or has an integrating process, it will not be easy to detect. The controller output will move like a triangular wave or a sawtooth. When the process variable is too low, the controller output is pushed and when the valve moves, the movement is too large. The process variable then goes too high and the controller moves the other way.
The process gain in Figure 7 is close to 1, determined by using bump tests and looking at the trends for the last days. This can be verified using the stick/slip cycle on the graphic:
Observing the stick/slip cycling, we now know the stiction is close to 1%, since this is the valve movement.
Before tuning a loop, it is good practice to perform manual tests that analyze the process for gain, linearity, backlash, stiction, hidden cycling, etc. Steps to detect and measure stiction are: 1) Remove the backlash by doing a large bump of 2-3%. 2) Move the controller output slowly, doing a slow ramp and observing the controller output. This is not easy to accomplish on a DCS, so this procedure is replaced by small bumps of 0.1 or 0.2 %. Depending on the DCS system, the resolution is 0.4% (eight bits), 0.1% (10 bits) or less. The time between each bump must be long enough, depending on the process dynamics. 3) The stiction is the amount of controller output change to detect a change in the process variable.
These steps are shown in Figure 8. The graphic on the left shows the controller output is first bumped by 2 %. This bump ensures the backlash, if present, is removed and we observe a change in the flow after this 2% change. Then the output is increased by small increments of 0.1 %. After 10 of those bumps, the process variable finally moves, meaning the valve moved.
The tests were repeated going down. The first bump after removing the backlash is 1% and the valve does not move. Adding 0.1% is enough to move the valve, confirming a stiction of 1%.
The problem in this case was the positioner. After the positioner was repaired, the cycling disappeared. The loop was retuned and the production level went back to normal (Figure 9).
How much stiction is acceptable? To answer this question, one must know the process. Stiction is insidious, generating cycling of constant amplitude. The cycling period depends on the controller tuning. This cycling also generates a lot of harmonics into the process, since the process variable is a square wave.
In many processes, 0.5% of stiction is too much. Stiction guarantees cycling and variability. Stiction is much more harmful than the other valve problems. For example, hysteresis is undesirable, but usually not really a problem. Another example is the valve characteristic, which can be compensated by a non-linear function inserted in the controller output or in the positioner.
Based on our experience and on the equipment people use, we usually recommend the maximums shown in Table 1.
Simulation To observe the impacts of stiction and hysteresis (backlash), we simulated a process with Gp=1, dead time = 1 sec., and a time constant of 3 sec. A white noise with a standard deviation of 0.1% was added to the process variable.
Three situations were simulated:
At 100 seconds we applied a setpoint change of 3% and we introduced a load change of 3% at 200 seconds. We can draw several conclusions from the results in Table II:
To reduce stiction:
About the author:
Michel Ruel is a registered professional engineer, university lecturer, author of several publications and books on instrumentation and control. A pioneer in implementing fuzzy logic, Ruel has 23 years of plant experience at companies including Monsanto Chemicals, Domtar Paper, Dow Corning and Shell Oil.