### IAM Search

## P, I, and D Responses Graphed

It should be noted that these graphic illustrations are all qualitative, not quantitative. There is too little information given in each case to plot exact responses. The illustrations of P, I, and D actions focus only on the shapes of the responses, not their exact numerical values.

In order to quantitatively predict PID controller responses, one would have to know the values of all PID settings, as well as the original starting value of the output before an input change occurred and a time index of when the change(s) occurred.

**Responses to a single step-change**

Proportional action directly mimics the shape of the input change (a step). Integral action ramps at a rate proportional to the magnitude of the input step. Since the input step holds a constant value, the integral action ramps at a constant rate (a constant slope). Derivative action interprets the step as an infinite rate of change, and so generates a “spike” driving the output to saturation.

When combined into one PID output, the three actions produce this response:

**Responses to a momentary step-and-return**

Proportional action directly mimics the shape of the input change (an up-and-down step). Integral action ramps at a rate proportional to the magnitude of the input step, for as long as the PV is unequal to the SP. Once PV = SP again, integral action stops ramping and simply holds the last value^{1}.

Derivative action interprets both steps as infinite rates of change, and so generates a “spike” at the leading and at the trailing edges of the step. Note how the leading (rising) edge causes derivative action to saturate high, while the trailing (falling) edge causes it to saturate low.

When combined into one PID output, the three actions produce this response:

**Responses to two momentary steps-and-returns**

Proportional action directly mimics the shape of all input changes. Integral action ramps at a rate proportional to the magnitude of the input step, for as long as the PV is unequal to the SP. Once PV = SP again, integral action stops ramping and simply holds the last value. Derivative action interprets each step as an infinite rate of change, and so generates a “spike” at the leading and at the trailing edges of each step. Note how a leading (rising) edge causes derivative action to saturate high, while a trailing (falling) edge causes it to saturate low.

When combined into one PID output, the three actions produce this response:

Proportional action directly mimics the ramp-and-hold shape of the input. Integral action ramps slowly at first (when the error is small) but increases ramping rate as error increases. When error stabilizes, integral rate likewise stabilizes. Derivative action offsets the output according to the input’s ramping rate.

When combined into one PID output, the three actions produce this response:

**Responses to an up-and-down ramp**

Proportional action directly mimics the up-and-down ramp shape of the input. Integral action ramps slowly at first (when the error is small) but increases ramping rate as error increases, then ramps slower as error decreases back to zero. Once PV = SP again, integral action stops ramping and simply holds the last value. Derivative action offsets the output according to the input’s ramping rate: first positive then negative.

When combined into one PID output, the three actions produce this response:

As always, proportional action directly mimics the shape of the input. The 90^{o} phase shift seen in the integral and derivative responses, compared to the PV wavelet, is no accident or coincidence. The derivative of a sinusoidal function is always a cosine function, which is mathematically identical to a sine function with the angle advanced by 90^{o}:

Conversely, the integral of a sine function is always a negative cosine function^{2}, which is mathematically identical to a sine function with the angle retarded by 90o:

In summary, the derivative operation always adds a positive (leading) phase shift to a sinusoidal input waveform, while the integral operation always adds a negative (lagging) phase shift to a sinusoidal input waveform.

When combined into one PID output, these particular integral and derivative actions mostly cancel, since they happen to be sinusoidal wavelets of equal amplitude and opposite phase. Thus, the only way that the final (PID) output differs from proportional-only action in this particular case is the “steps” caused by derivative action responding to the input’s sudden rise at the beginning and end of the wavelet:

If the I and D tuning parameters were such that the integral and derivative responses were not equal in amplitude, their effects would not completely cancel. Rather, the resultant of P, I, and D actions would be a sine wavelet having a phase shift somewhere between -90^{o} and +90^{o} exclusive, depending on the relative strengths of the P, I, and D actions.

The 90 degree phase shifts associated with the integral and derivative operations are useful to understand when tuning PID controllers. If one is familiar with these phase shift relationships, it is relatively easy to analyze the response of a PID controller to a sinusoidal input (such as when a process oscillates following a sudden load or setpoint change) to determine if the controller’s resonse is dominated by any one of the three actions. This may be helpful in “de-tuning” an over-tuned (overly aggressive) PID controller, if an excess of P, I, or D action may be identified from a phase comparison of PV and output waveforms.

**Note to students regarding quantitative graphing**

A common exercise for students learning the function of PID controllers is to practice graphing a controller’s output given input (PV and SP) conditions, either qualitatively or quantitatively. This can be a frustrating experience for some students, as they struggle to accurately combine the effects of P, I, and/or D responses into a single output trend. Here, I will present a way to ease the pain. Suppose for example you were tasked with graphing the response of a PD (proportional + derivative) controller to the following PV and SP inputs over time. You are told the controller has a gain of 1, a derivative time constant of 0.3 minutes, and is reverse-acting:

My first recommendation is to qualitatively sketch the individual P and D responses. Simply draw two different trends, each one right above or below the given PV/SP trends, showing the shapes of each response over time. You might even find it easier to do if you re-draw the original PV and SP trends on a piece of non-graph paper with the qualitative P and D trends also sketched on the same piece of non-graph paper. The purpose of the qualitative sketches is to separate the task of determining shapes from the task of determining numerical values, in order to simplify the process. After sketching the separate P and D trends, label each one of the “features” (changes either up or down) in these qualitative trends. This will allow you to more easily combine the effects into one output trend later:

Now, you may qualitatively sketch an output trend combining each of these “features” into one graph. Be sure to label each ramp or step originating with the separate P or D trends, so you know where each “feature” of the combined output graph originates from:

Once the general shape of the output has been qualitatively determined, you may go back to the separate P and D trends to calculate numerical values for each of the labeled “features.” Note that each of the PV ramps is 15% in height, over a time of 15 seconds (one-quarter of a minute). With a controller gain of 1, the proportional response to each of these ramps will also be a ramp that is 15% in height.

Taking our given derivative time constant of 0.3 minutes and multiplying that by the PV’s rate-of-change ( ) during each of its ramping periods (15% per one-quarter minute, or 60% per minute) yields a derivative response of 18% during each of the ramping periods. Thus, each derivative response “step” will be 18% in height.

Going back to the qualitative sketches of P and D actions, and to the combined (qualitative) output sketch, we may apply the calculated values of 15% for each proportional ramp and 18% for each derivative step to the labeled “features.” We may also label the starting value of the output trend as given in the original problem (35%), to calculate actual output values at different points in time. Calculating output values at specific points in the graph becomes as easy as cumulatively adding and subtracting the P and D “feature” values to the starting output value:

Now that we know the output values at all the critical points, we may quantitatively sketch the output trend on the original graph:

^{1}This is a good example of how integral controller action represents the history of the PV − SP error. The continued offset of integral action from its starting point “remembers” the area accumulated under the rectangular “step” between PV and SP. This offset will go away only if a negative error appears having the same percent-minute product (area) as the positive error step.

^{2}In this example, I have omitted the constant of integration (C) to keep things simple. The actual integral is as such: . This constant value is essential to explaining why the integral response does not immediately “step” like the derivative response does at the beginning of the PV sine wavelet.

### Related Articles

- Disassembly of a sliding-stem control valve
- Instrumentation Documents - Process and Instrument Diagrams
- Instrumentation Documents - SAMA Diagrams
- Conservation Laws
- Analog Electronic Instrumentation
- Machine Vibration Measurement - Vibration Sensors
- Machine Vibration Measurement - Monitoring Hardware
- Machine Vibration Measurement - Mechanical Vibration Switches
- Signal Characterization
- Doctor Strangeflow, or how I learned to relax and love Reynolds numbers
- Practical Calibration Standards - Temperature Standards
- Practical Calibration Standards - Pressure Standards
- The International System of Units
- Practical Calibration Standards - Flow Standards
- Fluid Mechanics - Torricelli’s Equation
- Fluid Mechanics - Flow Through a Venturi Tube
- Elementary Thermodynamics - Temperature
- Elementary Thermodynamics - Heat
- Industrial Physics Terms and Definitions
- Elementary Thermodynamics - Heat Transfer
- Elementary Thermodynamics - Specific Heat and Enthalpy
- Positive Displacement Flowmeters
- Mathematics for Industrial Instrumentation
- True Mass Flowmeters
- Process/Instrument Suitability of Flowmeters
- Machine Vibration Measurement
- Continuous Analytical Measurement - Safety Gas Analyzers
- Industrial Physics for Industrial Instrumentation
- Metric Prefixes
- Dimensional Analysis for Industrial Physics
- Classical Mechanics
- Elementary Thermodynamics
- Fluid Mechanics
- Chemistry for Instrumentation
- Continuous Analytical Measurement - Conductivity Measurement
- Fluid Mechanics - Pressure
- Fluid Mechanics - Pascal's Principle and Hydrostatic Pressure
- Fluid Mechanics - Manometers
- Fluid Mechanics - Systems of Pressure Measurement
- Fluid Mechanics - Buoyancy
- Fluid Mechanics - Gas Laws
- Fluid Mechanics - Fluid Viscosity
- Fluid Mechanics - Reynolds Number
- Fluid Mechanics - Viscous Flow
- Fluid Mechanics - Bernoulli’s Equation
- Elementary Thermodynamics - Phase Changes
- Elementary Thermodynamics - Phase Diagrams and Critical Points
- Elementary Thermodynamics - Thermodynamic Degrees of Freedom
- Elementary Thermodynamics - Applications of Phase Changes
- Continuous Analytical Measurement - pH Measurement
- Continuous Analytical Measurement - Chromatography
- Continuous Analytical Measurement - Optical Analyses
- Chemistry - Terms and Definitions
- Chemistry - Atomic Theory and Chemical Symbols
- Chemistry - Periodic Table of Elements
- Chemistry - Electronic Structure
- Chemistry - Spectroscopy
- Practical Calibration Standards - Analytical Standards
- Chemistry - Formulae for Common Chemical Compounds
- Chemistry - Molecular Quantities
- Chemistry - Energy in Chemical Reactions
- Chemistry - Periodic Table of the Ions
- Chemistry - Ions in Liquid Solutions
- Chemistry - pH
- Final Control Elements - Control Valves
- Final Control Elements - Variable-Speed Motor Controls
- Principles of Feedback Control
- Basic Feedback Control Principles
- On/Off Control
- Proportional -Only Control
- Proportional-Only Offset
- Integral (Reset) Control
- Derivative (Rate) Control
- Summary of PID Control Terms
- Different PID Equations
- Pneumatic PID Controllers
- Analog Electronic PID Controllers
- Digital PID Controllers
- Practical PID Controller Features
- Classified Areas and Electrical Safety Measures
- Concepts of Probability and Reliability
- Process Characterization
- Before You Tune...
- Quantitative PID Tuning Procedures
- Tuning Techniques Compared
- Process Safety and Instrumentation
- Notes to Students with Regards to Process Dynamics and PID Controller Tuning
- Basic Process Control Strategies
- Lessons in Instrumentation TOC
- Supervisory Control
- Cascade Control
- Ratio Control
- Relation Control
- Feedforward Control
- Feedforward with Dynamic Compensation
- Limit, Selector, and Override Controls
- Safety Instrumented Functions and Systems
- Instrument System Problem-Solving