Show Menu
Cheatography

Basics of PID (Loop Control) Cheat Sheet (DRAFT) by [deleted]

Basics of PID (Loop Control)

This is a draft cheat sheet. It is a work in progress and is not finished yet.

PID Basics

1. Measure each flow, inventory (e.g., level or weight and pressure), every process variable for safe operation and enviro­nmental protec­tion, and each indicator of process efficiency and capacity (e.g., compos­ition, quality, pH, and temper­ature) with sufficient accuracy (parti­cularly least drift and best repeat­abi­lity), speed and rangea­bility.
2. Manipulate each flow by a control valve or variab­le-­fre­quency 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 rangea­bility (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 measur­ements, and is controlled to ensure exit or consum­ption by reaction with no continual accumu­lation.
4. Pair controlled variables (e.g., compos­ition and temper­ature) with manipu­lated variables (e.g., flows) that have the la4rgest effect as seen in Relative Gain Array (RGA).
5. If the RGA assessment of choices doesn't clearly favor a particular pairing, choose the manipu­lated and controlled variable pair with the smallest deadti­me-­to-time constant ratio.
6. Use flow feedfo­rward for gas pressure control with linear­ization of valve charac­ter­istics.
7. Use flow ratio control for compos­ition, 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:
 ­ ­ ­ a. Connect BKCAL_OUT from a manipu­lated 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.
 ­ ­ ­ b. The RC input is the leader flow (e.g., largest feed). The RC output is the cascade setpoint of the secondary flow contro­ller, or is the input to a bias and gain station whose output becomes the cascade setpoint of the secondary flow contro­ller.
 ­ ­ ­ c. For vessels and columns, the primary controller corrects the RC bias.
 ­ ­ ­ d. For inline plug flow systems, the primary controller corrects the RC setpoint.
 ­ ­ ­ e. For reactants, there may be several flow loops ratioed to the leader flow (e.g., primary reactant flow). To eliminate temporary stoich­iom­etric 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.
 

PID Loop Steps 9 - 13

9. For override control of constr­aints (e.g., maximum pressure, temper­ature, or throttle valve position), use extern­al-­reset feedback to intell­igently prevent unwanted integral action; tune each PID gain to provide the correct point of takeover (selec­tion) 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:
 ­ ­ ­ a. Provide rapid correction of secondary upsets and nonlin­ear­ities (e.g., secondary flow loop correction for pressure changes and installed flow charac­ter­istic).
 ­ ­ ­ b. Enable flow ratio control by manipu­lating a flow PID setpoint instead of a valve.
 ­ ­ ­ c. 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-i­nte­gra­ting, true integr­ating or runaway response.
 ­ ­ ­ d. Convert the secondary time constant from a detrim­ental term in the primary loop creating deadtime to a beneficial terms as the largest time constant in the secondary loop, thus decreasing the deadti­me-­to-time constant ratios of both loops, and offering tighter control.
 ­ ­ ­ e. Reduce the deadtime and hence the ultimate period of the primary PID, enabling better handling of distur­bances origin­ating in the primary loop by more aggressive tuning
11. Match the PID output limits and engine­ering units to the setpoint limits and engine­ering 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 refrig­eration unit or cooling tower temper­ature by forcing affected control valves (e.g., feed, waster fuel or reagent, coolant, steam and vent valves) to the maximum throttle position.
13. Use positi­ve-­fee­dback implem­ent­ation of integral action (Figure 2) for the ISA Standard form to provide true extern­al-­reset feedback (e.g., dynamic reset limit).

ISA standard form w/true extern­al-­reset feedback

All signals are percen­t-o­f-scale in the PID algorithm but inputs and outputs are in engine­ering units. For structures with no P action, gain is zero for the propor­tional mode. Gain is one for the integral mode, and equal to the PID block gain setting for derivative mode. Bias is used as input to the reset time filter block when there is no integral action. Bias is the PID output when the error is zero, and is filtered by the reset time whose best setting is reduced to be about the deadtime.

PID Loop Steps 14 - 25

14. Use extern­al-­reset feedback with setpoint rate limits to provide direct­ional move suppre­ssion to enable a VPC to provide a gradual, smooth optimi­zation and fast getaway for abnormal condit­ions, and to prevent unnece­ssary crossings of the split-­range point.
15. Use extern­al-­reset feedback to stop oscill­ations from deadband and stiction, a slow secondary loop, or slow control valve, and to provide enhanced PID action to prevent oscill­ations for increases in analyzer cycle time.
16. Use signal charac­ter­ization of the controlled variable for pH titration curves and of the manipu­lated variable for installed flow charac­ter­istic, where the changes in process gain or valve gain, respec­tively, from changes in slope are greater than a factor of five.
17. Minimize total loop deadtime by faster and more precise measur­ements and valves, shorter transp­ort­ation delays, faster fluid velocity and better mixing.
18. Minimize process noise by a sensor location that's less affected by cross-­sec­tional changes in velocity, phases, temper­ature and concen­tra­tion.
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 unnece­ssary mainte­nance, increase reliab­ility and accuracy, improve diagno­stics, 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 accord­ingly. Since there's no intera­ction 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, transi­tions and recovery from abnormal situat­ions, such as equipment and instrument failures or unusually bad distur­bances.
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 manipu­lated 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 snowba­lling buildup of recovered and recycled component concen­tra­tion, 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., centri­fuge, column, crysta­llizer, evapor­ator, reactor).
24. Perfor­mance 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 repres­ent­ative time (e.g., last 12 hours or last batch) gives a measure of process effici­ency. 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 electr­icity) and fixed costs (e.g., staff and deprec­iation) 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, discov­ering, protot­yping, testing, justif­ying, deploying, testing, training, commis­sio­ning, mainta­ining, troubl­esh­ooting, auditing and continuous improv­ement, showing the "­bef­ore­" and "­aft­er" benefits of solutions from online metrics.
           

Help Us Go Positive!

We offset our carbon usage with Ecologi. Click the link below to help us!

We offset our carbon footprint via Ecologi