You are on page 1of 8

Experiment PC: Process Control Introduction The aim of the experiment is to investigate the control of water level in a process

vessel by means of a float switch, differential level switch and a pressure sensor. The characteristics of different algorithms for controlling water level using a pressure sensor will be also investigated. These control methods include, proportional, proportional + integral, proportional + derivative, and proportional +integral +derivative (PID). Finally a design for a PID controller for effective control of the water level in the vessel, with minimal offset, oscillation or overshoot will be made. Proportional-integralderivative (PID) control is the most common generic control loop feedback mechanism used in industrial control systems. In this investigation all parameters such as pump speed and valve cycle time are controlled directly from a computer using the range of algorithms (on/off, time proportioned and PID). Sensor output are also displayed and recorded. Proportional-Integral-Derivative (PID) Control The purpose of the controller is to ensure that some Process Variable (PV) returns to a set point (SP) after a disturbance, by the adjustment of a Manipulated Variable (MV). In this investigation, PV will be the water level and the MV is the ratio of time open to time shut over a control period (cycle time) for the solenoid valves. The main solenoid valve being controlled will be the one connected to the inlet. The following features will be necessary to control in response to a disturbance. Offset: the difference between the steady state PV and the SP Response time: How long the PV takes to reach steady state Overshoot: Whether the PV goes past the SP Oscillation: Whether the PV achieves a non-oscillating steady state, whether it oscillates about a . about a mean value and whether the oscillations die away. An ideal response will be zero offset, a very short response time and no oscillation. In the pursuit to achieve this, three correcting terms are used, these are the namesake of the PID control scheme. The proportional, integral and derivative terms are summed to calculate the output u(t) of the (PID) controller. The formula for this is:

=> Proportional term => Integral term => Derivative term Kc => Proportional Band, a tuning parameter Ti => Integral Time Td =>Derivative Time e => Error (Set Point Process Variable) t => Time or instantaneous time (the present) The proportional term means that the output change is proportional to the current error magnitude. The Proportional Band is the Percentage change in input (i.e. error) necessary to give 100% change in output (MV). Therefore a high proportional band Kc imples a low controller gain. The Integral term means that a change in output is proportional to both the magnitude of the error and its duration. The intergral term is controlled by the integral time TI . The derivative term Td contributes a change that is proportional to the rate of change of the error and may be viewed as a prediction of future

errors. Kc, Ti , and Td are all constants which are individually adjusted by the controller, to achieve the desired response. This is called process tuning. Apparatus To carry out the investigation a process control unit, shown in Figure 1, designed to demonstrate a variety of computer-based single control loop systems is used. The key

Figure 1: figure showing process control unit


s

Drain.

Mains
s

Flow of water Water flows in to the vessel via the valve SOL1, which is either open or closed for a specified fraction of a Cycle time. The water flows out of the vessel via a permanently open valve SOL2. SOL3 is a drainage valve which can be opened when resetting the level to make the process quicker. When SOL1 and SOL2 are both open, the level in the vessel rises. The level switches simply send a signal (via the PC) to either open or close the valve, triggered as the water level passes the switch device.

Hazard Analysis Personal protection equipment such as gloves, goggles and a lab coat should be worn at all points. Ensure that the water coming from the mains is open to ensure that the gear pump doesnt run dry. If the pump runs dry it could overheat and get destroyed. Wipe off any spillages as soon as they happen so that no one can slip and fall. Procedure Exp1: ON/OFF control using a floating switch 1. On the lid of the process vessel, loosen the locking nut at the top of the level switch and adjust the height of the switch to approximately 200mm as indicated on the level scale. Tighten the locking nut. Select Level (Float) Switch in the On/Off Solenoid 1 box on the left of the screen. There should be an audible click as the valve opens, and water should begin to flow into the process vessel. Open the SOL2 drain valve by clicking the SOL2 toggle button to 1. When the water level is at about 140 mm, begin data logging. The large process vessel fills with water until the fluid level reaches the level switch. You will note the action of the level switch as the fluid level rises stays relatively constant. Continue data logging for a period of three minutes. Click the stop icon to finish data logging. Without restarting data logging, open the SOL3 drain valve. You will notice that the water level will start dropping and the float switch wont be able to maintain the level. Select Controller in the On/Off Solenoid 1 box on the left of the screen. Click the Control button to open the PID Controller window. Select Off in Mode of Operation then Apply. Close the PID controller window. Allow the tank to drain until the level is about 140mm, then close the SOL2 drain valve by clicking the SOL2 toggle button to 0. Save your results file as an Excel 5.0 spreadsheet. The data will be saved as Run 1 - make sure as you proceed that you keep a record of what each Run was.

2.

3.

4. 5.

6.

Exp2: ON/OFF control using a differential level switch 1. Lower the differential switch electrodes so that the blue-topped rod is at 20mm and the redtopped rod is at 40mm. 2. Start data logging and Select Differential Level in the On/Off Solenoid 1 box on the left of the screen. There should be an audible click as the valve opens, and water should begin to flow into the process vessel. 3. While still data logging, move the upper (red) electrode and adjust the level to 25mm and continue to record data for three more minutes. 4. Repeat steps 5 to 7 of Exp 1 to reset and save the file as run 2. Exp3: PID level control using a level sensor 3a: Proportional only 1. In the Automatic Operation panel, enter a Set Point of 200mm, a Cycle Time of 10 secs (these two will remain fixed throughout) and a Proportional Band of 10%. Leave the other parameters at zero. Click Automatic in Mode of Operation, and then Apply. Open the SOL2 drain valve by clicking the SOL2 toggle button to 1. 2. Begin data logging. Continue logging for three minutes, observing behaviour on the real-time graph. Finish data logging. Select Off in Mode of Operation, and then Apply. Allow the tank to drain until the level is about 140mm, then close the SOL2 drain valve by clicking the SOL2 toggle button to 0.

3. Repeat the first two steps for the following values of Proportional Band: 5%, 2% and 1%. 4. Save the results. 3b: Proportional + Intergral 5. Repeat steps 1 and 2 using a Proportional Band of 2% and an Integral Time of 5 secs then 20 secs and lastly 50 secs. Leave Derivative Time at zero. Observe the effect of the Integral element. 6. Save your results file again, remembering to keep a record of what each Run was. 3c: Proportional + Derivative 7. Repeat 3 to 5 using a Proportional Band of 2%, and a Derivative Time of 1 sec and 5 secs. Leave Integral Time at zero. Observe the effect of the Derivative element. Save your results file again. 3d: Proportional + Integral + Derivative 8. Try to set the Proportional Band, Integral Time and Derivative Time simultaneously to achieve a control which has minimal offset and oscillation and as short as possible a response time. 9. Record this reading then turn of the controller and drain the tank. Results Graphs can be found in the appendix. Discussion As shown in Figure 2 When using the float level switch the water level rapidly increases for one minute then it stayed constant when it reached the set point. The float-level switch is a vertical probe with a moving float on a short shaft which rises with water level until it closes the circuit. The movement is very small therefore the oscillations will be very small. As shown in Figure 3 with the differential switch the water level rapidly increase for then it begins to oscillate between the two different levels of the electrodes. When the electrodes where brought closer the oscillations were much smaller. The differential level switch is made up of a pair of electrodes and a fixed earth rod (a metal ruler). The switch works by measuring the conductance between the electrodes and the earth rod. The conductance though the air is different to that though water so the when both electrodes are touching the water the conductance level measured will be different. So however far apart the electrodes are will be the oscillations measured. Figure 4 shows that the lower the proportional band, the faster the water level reaches a steady level. The water level does however have a lower offset the higher the proportional band, but more oscillations are present. By looking at the equation in the introduction, it can be noted that the proportional level sensor measures the difference between the set point and water level, with the difference being the error. Proportional gain is the constant used to adjust the error. Increasing the proportional gain increases the speed of the control system response to the error. However, when the proportional gain is too large, the water level will begin to oscillate. The oscillation can increase over time depending on the value of the proportional gain. Figure 5 shows that when using proportional and integral control, the higher the integral time, the water level has much less offset, but there is added overshoot at the start. The integral level sensor

measures both the magnitude of the error and the duration of the error. The integral term accelerates the value of the water level towards the set point and eliminates the residual steadystate error that occurs with a pure proportional controller. However, since the integral term responds to accumulated errors from the past, it can cause the present value to overshoot the set point value. Figure 6 shows that the lower the derivative time the smaller the oscillations when steady state is reached. The derivative level sensor decreases output if the water level increases rapidly. It is proportional to the rate of change of the water level. A higher derivative time means a faster control system response to changes in error. Tuning is the process of setting an optimum gain for proportional, integral and derivative. In order to achieve an optimum gain a trial and error method was used by using various settings to find an optimum gain. The settings for integral and derivative were set to zero and the proportional band was decreased until the water level oscillates at the desired water level. Once the desired proportional band is set, the integral term is increased to stop the oscillations. Once the proportional and integral terms are set the derivative term is increased until the water level doesnt overshoot above the set point. Figure 7 shows the attempt to make a perfect controller, which was found to have a proportional band of 1%, an integral time of 50 seconds and derivative time of 1 second.

Conclusion The results show that differential and floating level sensor are relatively good methods of control but they are both manual methods of control because you have to physically move the sensors, so they may not be the best for some applications. This third experiment was done to obtain the best way to control the water level in a pressure vessel using proportional band, integral time and derivative time. The results showed that the optimum setting to achieve the set point (without overshoot or oscillations) was a proportional band of 1%, integral time of 50 seconds and derivative time of 1 second. At these settings the water level rapidly rose to the set point (200mm), with a small overshoot and minimal oscillation at 200mm water level. References

1. Experiment brief information in the introduction 2. http://en.wikipedia.org/wiki/PID_controller - information in the discussion Nomenclature
Millimetre mm Time seconds- s Proportional Band, a tuning parameter- Kp Integral time- Ti Derivative time -Td Error (set point Process variable)- e Time (or instantaneous time)- t

Appendices:
The graphs below show water level versus time for the various stages.

Process Control with Float Switch


200 190 180 Water Level (mm) 170 160 150 140 130 00:00
Float Switch

00:43

01:26

02:10

02:53

03:36

Time (seconds)

Figure 2: Graph showing the relationship between water level and Time for the float switch.

Process Control with Differential Level Switch


233 223 Water Level (mm) 213 203 193 183 173 00:00
Differential Level Switch

00:43

01:26

02:10

02:53

03:36

04:19

05:02

05:46

Time (seconds)

Figure 3: Graph showing the relationship between water level and Time for the Differential level switch.

Process Control with Proportional Level Sensor


210 200 190 Water Level (mm) 180 170 160 150 140 130 120 00:00
Proportional 10% Proportional 5% Proportional 2% Proportional 1%

00:43

01:26

02:10 Time (seconds)

02:53

03:36

Figure 4: Graph showing the relationship between water level and Time for the Proportional level sensor.

Process Control with Proportional + Integral Level Sensor


220 210 200 Water Level (mm) 190 180 170 160 150 140 00:00
Integral 5s Integral 20s Integral 50s

00:43

01:26 02:10 Time (seconds)

02:53

03:36

Figure 5: Graph showing the relationship between water level and Time for the proportional + integral level sensor.

Process Control with Proportional + Derivative Level Sensor


200 190 180 170 160 150 140 00:00
Derivative 1s Derivative 5s

Water Level (mm)

00:43

01:26

02:10 Time (seconds)

02:53

03:36

Figure 6: Graph showing the relationship between water level and Time for the proportional + derivative level sensor.

Process Control with optimum Proportional + Intergral + Derivative Level Sensor


220 210 200 Water Level (mm) 190 180 170 160 150 00:00
Prop 1%, Inter 50s, Der 1s (Optimum)

Prop 2%, Inter 50s, Der 1s

00:43

01:26

02:10

02:53

03:36

Time (seconds)

Figure 7: Graph showing the relationship between water level and Time for the proportional + integral + derivative level sensor.

You might also like