1
00:00:24,000 --> 00:00:25,000
In all.

2
00:00:26,000 --> 00:00:34,000
Today I will discuss about tank level control system using PID controller.

3
00:00:34,000 --> 00:00:44,000
So for that purpose I just open a already given example inside the knee example finders.

4
00:00:45,000 --> 00:00:46,000
I just go over there.

5
00:00:47,000 --> 00:00:52,000
Then I just type a keyword PID over here.

6
00:00:52,000 --> 00:00:57,000
As you see list of codes are there.

7
00:00:57,000 --> 00:01:01,000
I just select simulation tank level control.

8
00:01:01,000 --> 00:01:02,000
I just open it.

9
00:01:03,000 --> 00:01:07,000
As you see over here, it is created by an AI.

10
00:01:07,000 --> 00:01:15,000
So I just explain you what is inside this and what is inside the program.

11
00:01:16,000 --> 00:01:25,000
So over here, as you see in the tank level control system, basically this example demonstrates a process

12
00:01:26,000 --> 00:01:28,000
simulation for the tank level.

13
00:01:28,000 --> 00:01:42,000
Inside this we have different type of errors or disturbances like noise valve deadband lag, dead time,

14
00:01:43,000 --> 00:01:47,000
a level controller adjust inlet flow.

15
00:01:47,000 --> 00:01:54,000
And we have also a drain valve we can manually on off it.

16
00:01:55,000 --> 00:02:04,000
So in this particular program we just insert a PID controller that can be manually controlled or automatically

17
00:02:04,000 --> 00:02:05,000
controlled.

18
00:02:05,000 --> 00:02:12,000
We just need to check how it tracks the final set point.

19
00:02:12,000 --> 00:02:13,000
Okay.

20
00:02:13,000 --> 00:02:17,000
So over here there are some symbols.

21
00:02:17,000 --> 00:02:23,000
Let's say a T over here stands for level transmitter on the field.

22
00:02:23,000 --> 00:02:35,000
And 101 is the loop count L I, c stands for level controller at the control room again 101 is your

23
00:02:35,000 --> 00:02:40,000
loop count L c V is your level control valve.

24
00:02:41,000 --> 00:02:47,000
And over here H V stands for hand control valve on the field.

25
00:02:47,000 --> 00:02:50,000
And 102 is your loop count.

26
00:02:50,000 --> 00:02:54,000
So I just go to the front panel right now.

27
00:02:54,000 --> 00:02:56,000
Also I'm in front panel.

28
00:02:56,000 --> 00:03:00,000
I just change the type of operation.

29
00:03:00,000 --> 00:03:08,000
As you see over here, we have a symbol of tank and all the valves like level controller and control

30
00:03:08,000 --> 00:03:10,000
valve are there.

31
00:03:10,000 --> 00:03:14,000
And over here we have a PID parameters initially.

32
00:03:15,000 --> 00:03:18,000
We just set it to auto mode.

33
00:03:18,000 --> 00:03:18,000
Okay.

34
00:03:18,000 --> 00:03:25,000
So we just in the starting, we just put some set point over here.

35
00:03:25,000 --> 00:03:35,000
You can change this set point according to this the inlet flow this inlet flow will be controlled using

36
00:03:35,000 --> 00:03:37,000
this PID controller.

37
00:03:37,000 --> 00:03:44,000
And over here this is the drainage we just on off it so that it will empty the tank.

38
00:03:44,000 --> 00:03:50,000
Over here we have a flow sensor and the process chart we just show over here.

39
00:03:50,000 --> 00:03:54,000
So right now I just show you the front panel part.

40
00:03:55,000 --> 00:03:58,000
Let's run it when you just run it.

41
00:03:58,000 --> 00:04:05,000
Initially the set point is around 76.4706.

42
00:04:05,000 --> 00:04:07,000
As you see over here.

43
00:04:07,000 --> 00:04:08,000
Different colors.

44
00:04:08,000 --> 00:04:10,000
Process variable blue color.

45
00:04:10,000 --> 00:04:13,000
This one set point is red one constant.

46
00:04:13,000 --> 00:04:14,000
It is not changing.

47
00:04:14,000 --> 00:04:26,000
And the controller output it is changing now okay this is right now it just want to track the output

48
00:04:26,000 --> 00:04:26,000
okay.

49
00:04:26,000 --> 00:04:32,000
So now process variable and controller set point are nearly same as you see.

50
00:04:32,000 --> 00:04:36,000
And the controller output you just check over here okay.

51
00:04:36,000 --> 00:04:42,000
And over here you just see the inlet flow inside the tank.

52
00:04:42,000 --> 00:04:44,000
Then you just change the set point.

53
00:04:44,000 --> 00:04:46,000
Let's check what happened.

54
00:04:48,000 --> 00:04:49,000
There is a change.

55
00:04:51,000 --> 00:04:56,000
If it is not clearly visible, I just make it.

56
00:04:59,000 --> 00:05:01,000
I mean, I just changed the style.

57
00:05:02,000 --> 00:05:05,000
Basically, I want to increase the width.

58
00:05:07,000 --> 00:05:10,000
So it is clearly visible to you all.

59
00:05:16,000 --> 00:05:20,000
As you see right now, I just again run it.

60
00:05:22,000 --> 00:05:25,000
When it just reached the set point.

61
00:05:25,000 --> 00:05:32,000
When set point and process variable are nearly same, then controller output changes as you see over

62
00:05:32,000 --> 00:05:33,000
here.

63
00:05:36,000 --> 00:05:38,000
This is the controller output green one.

64
00:05:39,000 --> 00:05:44,000
So right now it just maintain around 51.634.

65
00:05:44,000 --> 00:05:51,000
So I just change the set point as you see right now.

66
00:05:51,000 --> 00:05:56,000
Again when it is near by again controller change its output.

67
00:05:56,000 --> 00:05:58,000
Otherwise it is maximum.

68
00:06:00,000 --> 00:06:04,000
And over here you can find out different parameters.

69
00:06:05,000 --> 00:06:07,000
Proportional parameter.

70
00:06:07,000 --> 00:06:11,000
Integral parameter and derivative parameter p I'd.

71
00:06:11,000 --> 00:06:15,000
These are three parameters p I'd.

72
00:06:15,000 --> 00:06:16,000
Okay.

73
00:06:16,000 --> 00:06:25,000
So you just from here right now I just want to change this LCD.

74
00:06:27,000 --> 00:06:33,000
It is not allowing me to change it because it is in automatic mode.

75
00:06:33,000 --> 00:06:40,000
So right now I just hope on brain function.

76
00:06:40,000 --> 00:06:45,000
Also, as you see right now it just decrease the value.

77
00:06:45,000 --> 00:06:48,000
Right now automatic on mode is on.

78
00:06:48,000 --> 00:06:51,000
I just show you in the manual mode.

79
00:06:51,000 --> 00:06:56,000
Also, what is the function of this brain function.

80
00:06:57,000 --> 00:06:59,000
Because it is in automatic mode.

81
00:07:00,000 --> 00:07:07,000
According to this it will just change the value of these PID parameters.

82
00:07:07,000 --> 00:07:11,000
Let's say I want to just decrease the set point.

83
00:07:11,000 --> 00:07:14,000
PID parameters are over here.

84
00:07:17,000 --> 00:07:21,000
And this is level control valve.

85
00:07:22,000 --> 00:07:22,000
How much?

86
00:07:22,000 --> 00:07:24,000
It is open.

87
00:07:27,000 --> 00:07:28,000
As you see over here.

88
00:07:29,000 --> 00:07:33,000
So if you just increase this value, you just check.

89
00:07:34,000 --> 00:07:38,000
What happened over here as you see.

90
00:07:39,000 --> 00:07:40,000
Okay.

91
00:07:41,000 --> 00:07:50,000
So basically to tune the P I'd, I already made some videos uh, to tune second order system.

92
00:07:51,000 --> 00:07:57,000
If the transfer function is of second order you just go through Ziegler-nichols method.

93
00:07:57,000 --> 00:07:59,000
There is a set of rules.

94
00:07:59,000 --> 00:08:04,000
You just need to find out the ultimate gain, then ultimate period.

95
00:08:04,000 --> 00:08:11,000
According to that, you just need to find out these values proportional value, integral value and derivative

96
00:08:11,000 --> 00:08:12,000
value.

97
00:08:12,000 --> 00:08:18,000
And then it will just automatically approach where system.

98
00:08:18,000 --> 00:08:21,000
Right now I just again make it to let's say ten.

99
00:08:23,000 --> 00:08:26,000
And it is let's say one.

100
00:08:27,000 --> 00:08:28,000
What happened.

101
00:08:28,000 --> 00:08:37,000
Basically, the controlling in this process mainly depends on this controller, this PID controller.

102
00:08:37,000 --> 00:08:41,000
Okay, so I just stop it and I just show you the code.

103
00:08:41,000 --> 00:08:46,000
Also just press control E over here.

104
00:08:46,000 --> 00:08:49,000
As you see this one is your PID controller.

105
00:08:49,000 --> 00:08:53,000
I just press control H, select it.

106
00:08:53,000 --> 00:08:57,000
This is your P I'd y loop not PD control.

107
00:08:57,000 --> 00:09:00,000
This is your y loop okay.

108
00:09:00,000 --> 00:09:02,000
This is your PID controller.

109
00:09:02,000 --> 00:09:04,000
PID advanced controller.

110
00:09:04,000 --> 00:09:08,000
It is inside the controller simulation.

111
00:09:10,000 --> 00:09:13,000
Just go to control and simulation PID.

112
00:09:13,000 --> 00:09:17,000
Over here you can find out different PID controllers.

113
00:09:17,000 --> 00:09:17,000
Okay.

114
00:09:17,000 --> 00:09:19,000
This is your pi d.

115
00:09:19,000 --> 00:09:20,000
This is your PID advanced.

116
00:09:20,000 --> 00:09:25,000
Pretty advanced auto tuning for the temperature.

117
00:09:26,000 --> 00:09:29,000
As you see, there are different parameters.

118
00:09:29,000 --> 00:09:31,000
This is PID lead lag compensator.

119
00:09:31,000 --> 00:09:32,000
Okay.

120
00:09:32,000 --> 00:09:39,000
So I just show you this is your feedback controller and this is your valve.

121
00:09:40,000 --> 00:09:42,000
As you see this one is just a symbol.

122
00:09:42,000 --> 00:09:49,000
And this symbol is placed over a Boolean control indicator.

123
00:09:49,000 --> 00:09:50,000
This is our indicator.

124
00:09:50,000 --> 00:09:52,000
This is a control okay.

125
00:09:52,000 --> 00:09:54,000
This is your set point.

126
00:09:54,000 --> 00:10:00,000
So over here and this is your plant I just show you what is inside the plant system.

127
00:10:02,000 --> 00:10:05,000
Just go control E again.

128
00:10:05,000 --> 00:10:06,000
This is your while loop.

129
00:10:06,000 --> 00:10:12,000
And over here we just put some parameters for the process.

130
00:10:12,000 --> 00:10:18,000
As you see initial value of process variable static gain.

131
00:10:18,000 --> 00:10:23,000
Lag dead time load deadband sensor noise plant plant noise.

132
00:10:23,000 --> 00:10:27,000
All these are added inside the plant okay.

133
00:10:27,000 --> 00:10:30,000
And this is your transportation delay.

134
00:10:30,000 --> 00:10:32,000
As you see there is a delay.

135
00:10:33,000 --> 00:10:37,000
There is a sine wave and there are two sine wave.

136
00:10:37,000 --> 00:10:40,000
One is blue color, one is red color orange color.

137
00:10:40,000 --> 00:10:44,000
And the phase difference is there between these two.

138
00:10:44,000 --> 00:10:48,000
And this is your lead lag compensator okay.

139
00:10:48,000 --> 00:10:51,000
And this is your PID timing estimator.

140
00:10:51,000 --> 00:11:00,000
Using these functions you just develop your own PID controller for tank level control system for speed

141
00:11:00,000 --> 00:11:01,000
control of DC motor.

142
00:11:01,000 --> 00:11:10,000
Any application in the industry mainly these type of controllers are used that is known as PID controller

143
00:11:10,000 --> 00:11:14,000
because the cost is very less and easy to implement.

144
00:11:14,000 --> 00:11:22,000
Okay, so I just go to our system when we just make it to manual mode.

145
00:11:22,000 --> 00:11:26,000
So right now I just put it to manual mode.

146
00:11:28,000 --> 00:11:37,000
Right now the parameters are not right because you just find out the parameter value using trial and

147
00:11:37,000 --> 00:11:43,000
error method based on trial and error method, or using Ziegler-nichols method.

148
00:11:43,000 --> 00:11:52,000
Okay, because Ziegler-nichols gives a set of algorithm using which you can find out these parameter

149
00:11:52,000 --> 00:11:58,000
values so your process variable easily track your state set point.

150
00:11:58,000 --> 00:12:04,000
Right now there is a delay because the PID values are not appropriate earlier.

151
00:12:04,000 --> 00:12:09,000
The values are okay, we just change the PID values.

152
00:12:09,000 --> 00:12:11,000
So let's increase this.

153
00:12:11,000 --> 00:12:13,000
Let's check what happened.

154
00:12:19,000 --> 00:12:27,000
You can also say check different values like rise time, delay time, settling time, different values.

155
00:12:28,000 --> 00:12:31,000
I just show you from where you can find out.

156
00:12:31,000 --> 00:12:39,000
Just go over here, go to the control and simulation parameter in the simulation or here in the container.

157
00:12:40,000 --> 00:12:43,000
Not uh, over here.

158
00:12:43,000 --> 00:12:44,000
Nonlinear.

159
00:12:50,000 --> 00:12:52,000
This one is the PID controller.

160
00:12:52,000 --> 00:12:53,000
Over here we have the delay.

161
00:12:57,000 --> 00:13:03,000
And there are different symbols like step signal, pulse, signal, using which you want to test your

162
00:13:03,000 --> 00:13:11,000
system, and the function that I want to check over here, this one.

163
00:13:11,000 --> 00:13:15,000
This is the parametric time response function.

164
00:13:15,000 --> 00:13:20,000
It will give you rise time delay time settling time I just show you.

165
00:13:23,000 --> 00:13:30,000
Right now it is just adding, let's say just go as you see over here.

166
00:13:30,000 --> 00:13:36,000
It will show you rise time, peak time, settling time, overshoot, steady state gain, peak value,

167
00:13:36,000 --> 00:13:38,000
different values.

168
00:13:38,000 --> 00:13:40,000
It will show you okay.

169
00:13:40,000 --> 00:13:45,000
So right now this is all about the tank level control system.

170
00:13:45,000 --> 00:13:47,000
You can.

171
00:13:49,000 --> 00:13:54,000
Check any example inside the LabVIEW example finder.

172
00:13:54,000 --> 00:14:02,000
And this is for the tank level control system using automatic PID control system.

173
00:14:02,000 --> 00:14:02,000
Okay.

174
00:14:03,000 --> 00:14:03,000
Thank.

