0% found this document useful (0 votes)
8 views17 pages

PID Flow Control with SCADA Manual

Instrumentation lab
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views17 pages

PID Flow Control with SCADA Manual

Instrumentation lab
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

FLOW CONTROL USING PID WITH

SCADA

INSTRUCTION MANUAL
INSTRUCTION
MANUAL

P.I.D CONTROLLER

On-Off Control

This is the simplest form of control, used by almost all domestic thermostats. When the output of
process is below the set-point temperature the input goes to high value which makes output to
maximum, and once the output reaches the set point the input goes low making the output to
minimum value. The variation in output is shown on the graph.

Proportional Control
A proportional controller attempts to perform better than the On-Off type by applying the input
‘W’ to process in proportion to the difference in output of process and the set-point,

where P is known as the proportional gain of the controller. As its gain is increased the system
responds faster to changes in set-point but becomes progressively under damped and eventually
unstable.
Proportional+Derivative Control

The stability and overshoot problems that arise when a proportional controller is used at high gain
can be mitigated by adding a term proportional to the time-derivative of the error signal,

This technique is known as PD control. The value of the damping constant, D, can be adjusted to
achieve a critically damped response to changes in the set-point temperature, as shown in the next
figure.

Too little damping results in overshoot and ringing, too much causes an unnecessarily slow
response.

Proportional+Integral+Derivative Control

Although PD control deals neatly with the overshoot and ringing problems associated with
proportional control it does not cure the problem with the steady-state error. Fortunately it is
possible to eliminate this while using relatively low gain by adding an integral term to the control
function which becomes

where I, the integral gain parameter is sometimes known as the controller reset level. This form of
function is known as proportional-integral-differential, or PID, control. The effect of the integral
term is to change the output until the time-averaged value of the error is zero. The method works
quite well but complicates the mathematical analysis slightly because the system is now third-
order.
The figure shows that, as expected, adding the integral term has eliminated the steady-state error.
The slight undershoot in the power suggests that there may be scope for further tweaking.

Proportional+Integral Control
Sometimes, particularly when the instrument measuring the output amplitude is susceptible to
noise or other electrical interference, derivative action can cause the process to fluctuate wildly. In
these circumstances it is often sensible use a PI controller or set the derivative action of a PID
controller to zero.
TUNING PROCEDURE

This is an attempt to explain PID controller with minimum use of math.

A simple closed loop control system consisting of a controller and a process (or plant) is
shown below.

The input to the system is the ‘set point’, i.e. the desired output. The input to the controller is
the error.

Error = Present Output – Set point.

The two steps in the design of a control system are -


1. Mathematically model the plant to be controlled.
2. Design the Controller.

The block diagram of a PID controller is shown below –

A PID controller consists of a Proportional element, an Integral element and a Derivative


element, all three connected in parallel. All of them take the error as input. Kp, Ki, Kd are the
gains of P, I and D elements respectively.

The best way to understand something is by simulating it. So I simulated a PID controller in
matlab. The matlab code is provided at the end of this article.

Let me assume a suitable mathematical model for the plant and then go ahead with
designing the controller.
Let the transfer function of the plant be 1 / ( s^2 + 20s + 30 ).

The step response of a system is the output of the system when the input to the system is a
unit step. The open loop step response of the above plant is –

It can be seen that the step response output is close to 0.035. The steady state error = 1-
0.035 = 0.965. That’s quite high! Also observe that the settling time is around 3 sec.

Now let see what is the effect of PID controller on the system response.
Let see the effect of proportional element on the system output.
Keeping Kp = 10, Ki = 0, Kd = 0 the step response of the system is

The output is now 0.25. Much better than the open loop response! (The curve in red shows
the open loop step response of the plant)

Now let me increase the Kp further and observe the response.


Keeping Kp = 100, Ki = 0, Kd = 0 the step response of the system is
The output is now 0.77. So it’s clear now that increasing Kp will reduce the steady state
error.

Keeping Kp = 200, Ki = 0, Kd = 0 the step response of the system is

The output is around 0.87. Also observe that the ripples have started appearing in the
output. If Kp is increased further it will only lead to increase in ripples or overshoot. The rise
time also has decreased. Also observe that there is a small steady state error (1 – 0.87 =
0.13).

Conclusion –
Increasing Kp will reduce the steady state error.
After certain limit, increasing Kp will only increase overshoot.
Kp reduces rise time.
Now lets keep Kp fixed. Lets start varying Ki.

Keeping Kp = 200, Ki = 10, Kd = 0 the step response of the system is

The output is now close to 0.99. That’s very close to the setpoint. But observe that settling
time has increased.

Keeping Kp = 200, Ki = 200, Kd = 0 the step response of the system is

Observe that rise time has now reduced and steady state error is very small.

Keeping Kp = 200, Ki = 300, Kd = 0 the step response of the system is


Observe that steady state error is close to 0 now. But increasing Ki has resulted in overshoot.

Further increasing Ki will only increase overshoot.

Conclusion –
Ki eliminates the steady state error.
After certain limit, increasing Ki will only increase overshoot.
Ki reduces rise time.

Now lets Keep Ki fixed and start varying Kd.

Keeping Kp = 200, Ki = 300 and Kd = 10.

Wow! What a response! Where is the overshoot? It has disappeared. There is a reduction in
settling time as well.
Increasing Kd further will only result in response getting worsened.

Conclusion –
Kd decreases the overshoot.
Kd reduces settling time.

So the ideal PID values for our plant is Kp = 200, Ki = 300 and Kd = 10.

The above process is known as manual tuning of PID.


FLOW PROCESS CONTROLLER
1.1 Aim:
To study the performance of PID controllers on flow process

1.2 Apparatus required:

1. Flow Control Trainer Unit

2. PC with Process control SCADA software.

3. RS 485 to USB Converter

1.3.1 Theory:
Flow process controller is used to perform the control action on Flow process .In
this unit flow is the process variable and is sensed and given to controller. A Flow
Transmitter is used to measure the Flow of the fluid in the pipeline.

In this unit, pump sucks the water from the reservoir tank and flows it to the flow
transmitter. Flow transmitter senses the flow and generates 4-20mA output (with
respect to the flow) to the PID Controller. The PID controller controls the output
according the Set value by user.
Observation:

S. No Time (sec) Set Value (SV) Process Value (PV)


OPERATING INSTURCTION

1. The Flow transmitter already connected to the PID Controller and output of the PID controller already
connected to the VFD or Control Valve

2. Connect the RS 485 to USB Converter cable into USB port of the Computer.

3. Connect three pin power chord of the P.I.D controller to main supply of 230.V, 50Hz.

4. Now turn ON the computer and RUN the Innovative SCADA software provided along with the Flow
Control Trainer.

5. Now set the communication port of the PC by clicking over top of the window and select the desired
COM port, then click on the “OPEN” button.

6. Now click on the “Connect” button. After clicking on the connect button, if the bulb starts flashing, now
you are in Online mode with the PID Controller.

7. Set the communication protocol of the PC as below screen shot

13
1. (com port should be selected as per your computer setting and remaining parameters should be set as
above screen shot and press Open and then press “Connect” button. After clicking on the connect button,
if the bulb starts flashing, now you are in Online mode with the PID Controller.

2. Now press on “Setting” Mode in the main menu and below screen appears on your monitor.

3. Now set the above Parameters as below


 control method: PID (This brings PID Controller into PID Mode of operation)
 Run/Stop: Run (This brings PID Controller into Run mode)
 Heat/Cool: Heat (This brings PID Controller into Heat Mode. If you set cool mode,
the PID Controller works into reverse operation.)
 Com. Write: Enable (we can able to send commands to the PID Controller)
 Lock Status: Normal
 Auto Tune: Run (the controller will tune PID parameters automatically to achieve the
Set Value. Should be kept on when process starts. It will automatically stops after auto tuning)
 PV Offset: 00.00

14
 Pb: Proportional Band (The auto tuning will set desired Pb value or Manually
user can set the Proportional Band Value)
 Ti: Integral Time Constant (The auto tuning will set desired Integral Time
Constant value or Manually user can set the Ti)
 Td: Derivative Time Constant (The auto tuning will set desired Derivative Time
Constant value or Manually user can set the Td)
 Ctrl. Period1: 00.00
 I Offset: 00.00
 Input Type: 4-20 mA (The Flow transmitter output is 4-20 mA with respect to flow)
 Unit: EV (Electronic Value)
 SV: Set Value (User can set the value form above 05 LPM to 35 LPM)
 Range Hi: Hi range value of the Flow Transmitter is 40 LPM
 Range Low: Low Range value of the flow transmitter is 0 LPM
 Point: Decimal point in Set value and process value. Always keep 1
 Alarms: Not required

After setting the parameters now user can select the PV Recording Mode. Selecting the PV recording mode the
below screen appears on your computer screen.

15
In this mode user can view the PV (Process value of the water flowing in the pipe) and SV (Set value for the
water flowing in the pipe) in the left hand side of the computer screen.

In the right hand side of the screen user can view the data logging of the set value and process value with respect
to time and date. The sampling rate for the data logging is 01 second.

In the bottom of the screen user can view the graph, set value vs. process value.

User can also view the trending by selecting the “Trending” in the main menu. After selecting the trending the
below screen appears on the computer monitor.

16
In this mode User can view the trending of the temperature, i.e. set value vs. process value with respect to
time.

17

Common questions

Powered by AI

Manually tuning PID controllers in complex processes is challenging due to the intricate interactions between multiple factors, such as non-linear dynamics and variable disturbances. Manual tuning can be time-consuming and might not yield optimal results, especially in systems with rapidly changing dynamics. These limitations can be mitigated by using advanced techniques like auto-tuning, which adjusts parameters in real-time to optimize performance, or employing model-based control strategies that use algorithms to predict and adjust controller settings efficiently .

Excessively increasing the proportional gain 'Kp' in a PID controller leads to reduced steady-state error and decreased rise time. However, it also results in increased ripples or overshoot in the system output, leading to instability. With very high 'Kp', the system can become under-damped and prone to oscillations, worsening the overall system performance .

When dealing with high measurement noise levels in PID-controlled processes, it is advisable to minimize or eliminate the derivative component (Kd), as it amplifies high-frequency noise and causes instability. The system might benefit from using a PI controller or setting the derivative action to zero and relying more on proportional (Kp) and integral (Ki) actions. Additionally, considering filters on the measurement signal can help mitigate noise interference while maintaining effective control .

A PID controller performs better than an On-Off Control system by providing proportional, integral, and derivative control elements. While the On-Off control simply switches between output states based on the set-point, leading to fluctuations, the PID controller adjusts the output by considering the error (difference between the present output and set point), reducing overshoot, and eliminating steady-state error. It achieves a smoother and stable response by calculating appropriate gains for proportional, integral, and derivative actions, ultimately producing a more precise control of the system output .

In a control system utilizing a PID controller, the set point (SV) represents the desired target value of the process variable, while the process value (PV) signifies the current measured value. The PID controller uses the error, calculated as the difference between the SV and PV, to adjust its control output, thereby minimizing the error over time and ensuring that the process variable aligns closely with the set point .

Manual tuning of a PID controller involves adjusting the proportional (Kp), integral (Ki), and derivative (Kd) gains to achieve desired performance characteristics such as minimal overshoot, rapid settling time, and accurate steady-state operation. Typically, this starts by setting Ki and Kd to zero, and increasing Kp until the system oscillates. Then Ki is increased to eliminate steady-state error, followed by tuning Kd to reduce overshoot and improve stability. Ideal values ensure a balanced trade-off between speed of response and stability, with the final parameters depending on the specific process requirements .

The integral gain 'Ki' in a PID controller is crucial for eliminating steady-state errors by integrating the error over time and adjusting the control output accordingly. However, increasing 'Ki' can lead to overshoot and increased settling time, since it can cause the system to become slower in responding to changes. Therefore, while 'Ki' reduces steady-state error, excessive values may introduce undesirable oscillations and slower convergence to the set-point .

Flow transmitters are critical in industrial applications for accurately measuring the flow rate of fluids within pipelines. They provide input to PID controllers in the form of a standard process signal, often 4-20 mA, allowing the PID controller to adjust control outputs such as valves or variable frequency drives to maintain the desired flow rate. Effective integration ensures precise flow control, enhancing efficiency and consistency in processes such as chemical reactions or thermal exchanges, where flow control is crucial for operational success .

The auto-tuning feature in PID controllers automatically adjusts the PID parameters (proportional, integral, and derivative gains) to optimize the control system’s performance. It enables the controller to find the best combination of gains that achieve minimal overshoot, reduced settling time, and eliminate steady-state error, without manual intervention. Auto-tuning is beneficial in dynamic systems where manual tuning is challenging, allowing the controller to adapt to changing process conditions and maintain stability .

Derivative control is often excluded or set to zero in applications where the measurement instruments are susceptible to noise or electrical interference. Derivative action amplifies high-frequency noise present in the error signal, leading to fluctuations in the process control. To avoid this instability and ensure smoother operation, a PI controller might be preferred, or the derivative action of a PID controller is set to zero .

You might also like