# Process Controllers - P, PI & PID

### Basic Controller

The Basic Controller for an application can be visualized as

The controller consists of

- a measuring unit with an appropriate instrument to measure the state of process, a temperature transmitter, pressure transmitter or similar
- a input set point device to set the desired value
- a comparator for comparing the measured value with the set point, calculating the difference or error between the two
- a control unit to calculate the output magnitude and direction to compensate the deviation from the desired value
- a output unit converting the output from the controller to physical action, a control valve, a motor or similar

### Controller Principles

The Control Units are in general build on the control principles

- proportional controller
- integral controller
- derivative controller

### Proportional Controller (P-Controller)

One of the most used controllers is the Proportional Controller (P-Controller) who produce an output action that is proportional to the deviation between the set point and the measured process value.

O_{P}= -k_{P}Er(1)

where

O_{P}= output proportional controller

k_{P}= proportionalgainor action factor of the controller

Er= error or deviation between the set point value and the measured value

The **gain** or action factor - *k*_{P}

- influence on the output with a magnitude of
*k*_{P} - determines how fast the system responds. If the value is too large the system will be in danger to oscillate and/or become unstable. If the value is too small the system error or deviation from set point will be very large
- can be regarded linear only for very small variations

The gain *k*_{P} can be expressed as

k_{P}= 100 / P(1b)

where

P= proportional band

The proportional band *P,* express the value necessary for *100%* controller output. If *P** = 0*, the gain or action factor *k*_{P} would be infinity - the control action would be * ON/OFF*.

Note! A proportional controller will have the effect of reducing the rise time and will reduce, but never eliminate, the steady-state error.

### Integral Controller (I-Controller)

With integral action, the controller output is proportional to the amount of time the error is present. Integral action eliminates offset.

O_{I}= - k_{I}Σ(Er dt)(2)

where

O_{I}= output integrating controller

k_{I}= integratinggainor action factor of the controller

dt= time sample

The integral controller produce an output proportional to the summarized deviation between the set point and measured value and integrating **gain** or action factor.

Integral controllers tend to respond slowly at first, but over a long period of time they tend to eliminate errors.

The integral controller eliminates the steady-state error, but may make the transient response worse. The controller may be unstable.

The integral regulator may also cause problems during shutdowns and start up as a result of the **integral saturation or wind up** effect. An integrating regulator with over time deviation (typical during plant shut downs) will summarize the output to +/- 100%. During start up the output is set to 100%m which may be catastrophic.

### Derivative Controller (D-Controller)

With derivative action, the controller output is proportional to the rate of change of the measurement or error. The controller output is calculated by the rate of change of the deviation or error with time.

O_{D}= - k_{D}dEr / dt(3)

where

O_{D}= output derivative controller

k_{D}= derivativegainor action factor of the controller

dEr= deviation change over time sample dt

dt= time sample

The derivative or differential controller is never used alone. With sudden changes in the system the derivative controller will compensate the output fast. The long term effects the controller allow huge steady state errors.

A derivative controller will in general have the effect of increasing the stability of the system, reducing the overshoot, and improving the transient response.

### Proportional, Integral, Derivative Controller (PID-Controller)

The functions of the individual proportional, integral and derivative controllers complements each other. If they are combined its possible to make a system that responds quickly to changes (derivative), tracks required positions (proportional), and reduces steady state errors (integral).

Note that these correlations may not be exactly accurate, because P, I and D are dependent of each other. Changing one of these variables can change the effect of the other two.

Controller Response | Rise Time | Overshoot | Settling Time | Steady State Error |
---|---|---|---|---|

P | Decrease | Increase | Small Change | Decrease |

I | Decrease | Increase | Increase | Eliminate |

D | Small Change | Decrease | Decrease | Small Change |

## Related Topics

### • Control Valve Sizing

Control Valve terminology, bodies, trim, flow characteristics, Cv and Kv sizing, noise, actuators, positioners and more.

### • Process Control Systems

Instrumentation, design and documentation of process control systems.

## Related Documents

### Control Valves - Flow Characteristics

Flow capacities vs. stem opening.

### Control Valves - Sizing and Selection

Sizing control valves to match process requirements.

### Gases - Control Valve Calculator

An online control valve - Cv - calculator for gases.

### ISA Instrumentation Codes used in Process Control Systems

The ISA standards and symbols are important for the P&IDs and documents describing the process control system.

### P&ID - Piping and Instrumentation Diagram

Schematic illustration of a functional relationship between piping, instrumentation and system components.

### P&ID Diagram - Online Drawing Tool

Draw P&ID diagrams online in the browser with Google Docs.

### PFD - Process Flow Diagram

The Process Flow Diagram (PFD) is a schematic illustration of a system.

### PFD - Process Flow Diagram - Online Drawing Tool

Draw Process Flow Diagrams with this online Google Docs drawing application.

### Process Control - Common Terms

Common terms used in the process control terminology.

### Process Instrumentation - ISA Codes

ISA process instrumentation codes - and combinations.

### Signal Transmission - Standards

Standard signals used for transmission from sensor to controller.

### Water Control Valves - Kv Calculation

Designing water process control valves and their Kv values.