Loop Control

Basics of PID in 25 points

By Gregory K. McMillan and P. Hunter Vegas


  1. Measure each flow, inventory (e.g., level or weight and pressure), every process variable for safe operation and environmental protection, and each indicator of process efficiency and capacity (e.g., composition, quality, pH, and temperature) with sufficient accuracy (particularly least drift and best repeatability), speed and rangeability.
  2. Manipulate each flow by a control valve or variable-frequency drive (VFD) with the least deadband (e.g., < 0.4% backlash) and sufficient linearity (e.g., < 5:1 gain change), resolution (e.g., < 0.2% stiction), speed (e.g., < 2-sec., 86% response time) and rangeability (e.g., > 40:1).
  3. Make sure every component in the process, whether a reactant, inert, byproduct or product, is accounted for by field or scheduled lab measurements, and is controlled to ensure exit or consumption by reaction with no continual accumulation.
  4. Pair controlled variables (e.g., composition and temperature) with manipulated variables (e.g., flows) that have the largest effect as seen in Relative Gain Array (RGA).
  5. If the RGA assessment of choices doesn't clearly favor a particular pairing, choose the manipulated and controlled variable pair with the smallest deadtime-to-time constant ratio.
  6. Use flow feedforward for gas pressure control with linearization of valve characteristics.
  7. Use flow ratio control for composition, level and pH control, where there's a secondary flow controller and a ratio controller (RC) with a setpoint and bias that both can both be remotely set or manually adjusted by the operator. If the RC block doesn't have a remotely settable bias, the RC output becomes the input to a bias and gain block.
  8. Ratio control (RC) details:
    1. Connect BKCAL_OUT from a manipulated RC setpoint or bias to BKCAL_IN of the PID, correcting the RC to ensure a bumpless transfer to the remote setting of the RC setpoint or bias.
    2. The RC input is the leader flow (e.g., largest feed). The RC output is the cascade setpoint of the secondary flow controller, or is the input to a bias and gain station whose output becomes the cascade setpoint of the secondary flow controller. 
    3. For vessels and columns, the primary controller corrects the RC bias. 
    4. For inline plug flow systems, the primary controller corrects the RC setpoint.
    5. For reactants, there may be several flow loops ratioed to the leader flow (e.g., primary reactant flow). To eliminate temporary stoichiometric imbalances from changes in production rate, put a setpoint filter with a filter time on each flow loop just large enough for a smooth response, so reactant feed flows move in concert.
  9. For override control of constraints (e.g., maximum pressure, temperature, or throttle valve position), use external-reset feedback to intelligently prevent unwanted integral action; tune each PID gain to provide the correct point of takeover (selection) of the override PID relative to its setpoint; historize the total time each PID is selected; and capture the overshoot of the setpoint. 
  10. Use cascade control to: 
    1. Provide rapid correction of secondary upsets and nonlinearities (e.g., secondary flow loop correction for pressure changes and installed flow characteristic). 
    2. Enable flow ratio control by manipulating a flow PID setpoint instead of a valve. 
    3. Give a relatively constant and easily estimated open-loop process gain from controller output (CO) scale needed to prevent violating the low PID gain limit for processes with a near-integrating, true integrating or runaway response. 
    4. Convert the secondary time constant from a detrimental term in the primary loop creating deadtime to a beneficial terms as the largest time constant in the secondary loop, thus decreasing the deadtime-to-time constant ratios of both loops, and offering tighter control. 
    5. Reduce the deadtime and hence the ultimate period of the primary PID, enabling better handling of disturbances originating in the primary loop by more aggressive tuning. 
  11. Match the PID output limits and engineering units to the setpoint limits and engineering units of the secondary loop. Set any anti-reset windup (ARW) limits to match the output limits, except for special cases where you set the ARW limits inside the output limits when the PID must move quickly through stiction at a low limit, or quickly recover from a high limit that's an adverse operating condition. 
  12. Use valve position control (VPC) to maximize feed rate, waste fuel and waste reagent use, and minimize energy usage by minimizing compressor pressure and maximizing the refrigeration unit or cooling tower temperature by forcing affected control valves (e.g., feed, waster fuel or reagent, coolant, steam and vent valves) to the maximum throttle position. 
  13. Use positive-feedback implementation of integral action (Figure 2) for the ISA Standard form to provide true external-reset feedback (e.g., dynamic reset limit). 
  14. Use external-reset feedback with setpoint rate limits to provide directional move suppression to enable a VPC to provide a gradual, smooth optimization and fast getaway for abnormal conditions, and to prevent unnecessary crossings of the split-range point. 
  15. Use external-reset feedback to stop oscillations from deadband and stiction, a slow secondary loop, or slow control valve, and to provide enhanced PID action to prevent oscillations for increases in analyzer cycle time. 
  16. Use signal characterization of the controlled variable for pH titration curves and of the manipulated variable for installed flow characteristic, where the changes in process gain or valve gain, respectively, from changes in slope are greater than a factor of five. 
  17. Minimize total loop deadtime by faster and more precise measurements and valves, shorter transportation delays, faster fluid velocity and better mixing. 
  18. Minimize process noise by a sensor location that's less affected by cross-sectional changes in velocity, phases, temperature and concentration. 
  19. Use middle-signal selection to prevent adverse reactions to a single sensor failure of any type, decrease reaction to noise or a slow sensor, reduce unnecessary maintenance, increase reliability and accuracy, improve diagnostics, minimize lifecycle costs, and maximize onstream time and product quality. 
  20. Choose loop objectives and choose the PID structure in the ISA Standard Form by turning off modes and by setting setpoint weights and tuning the PID accordingly. Since there's no interaction in the time domain like there is in the Series Form to prevent derivative action from exceeding integral action, the rate time must not exceed one-fourth the rest time. 
  21. Employ procedure automation and state-based control to utilize the best operator and process knowledge to eliminate any operator manual actions during startup, transitions and recovery from abnormal situations, such as equipment and instrument failures or unusually bad disturbances. 
  22. Compute a future value of PV by passing the PV through a deadtime block and adding to the block input the change in PV during the block deadtime, that is, the block input minus the block output. Block deadtime is greater than loop deadtime for a good signal-to-noise ratio. Use the future PV value for a faster startup and batch cycle time, where the manipulated flow is initially maximized and then set to its final resting value when the future value is projected to reach a setpoint or batch endpoint.
  23. To prevent snowballing buildup of recovered and recycled component concentration, ensure there's a flow controller with a fixed setpoint for a given production rate somewhere in the flow path from the discharge back as a feed input of the affected equipment (e.g., centrifuge, column, crystallizer, evaporator, reactor).
  24. Performance metrics should be put online and historized for key unit operations and the production unit. The ratio of total raw material or utility used to total product produced over a representative time (e.g., last 12 hours or last batch) gives a measure of process efficiency. The total product produced over this time gives a measure of process capacity. The total value of product in dollars in this time frame minus the total cost of raw materials (e.g., reactants, reagents, additives and feeds from other units), utilities (e.g., steam, coolant and electricity) and fixed costs (e.g., staff and depreciation) is the profit in dollars. Most important is the trend and not the accuracy of prices and costs. 
  25. Use a virtual plant (digital twin) for flexible and fast exploring, discovering, prototyping, testing, justifying, deploying, testing, training, commissioning, maintaining, troubleshooting, auditing and continuous improvement, showing the "before" and "after" benefits of solutions from online metrics.

Want to get content like this in your inbox?  Subscribe to our Enewsletters here!