LEVEL CONTROL BY PID

Sali

Member
Join Date
Feb 2024
Location
Dubai
Posts
3
How can I connect PID Output to a valve. In ladder logic program is there any logic do I want to add between valve and PID? PV=SP What will be the O/P of PID? Input of PID is from level transmitter.
 
I want to do this program in Siemens s7 Tia portal . Tank level is detected by a level transmitter. Scaled value from from level transmitter is given to PID Compact and I want to control a valve from PID output ( Valve should open when level is low and close when level is high) . Valve is inlet of the tank. There is a set point. Tank level should be in set point level. Is PID Out put is 0-100% . How PID Controls a ON/OFF Valve from its varying 0-100 analog value? What will be the PID Output when level of the tank = setpoint ( ie input of the PID = set point to the PID) ?
 
If you want continuous level control (tank level stays at setpoint with varying outflow), you'll probably be best served with a proportional valve at the inlet, that way it can vary the inlet flow to match the outlet. If you just want tank fill control (shutoff valve when it reaches setpoint), you can probably just use the level transmitter and digital output to turn the valve on/off when you reach the setpoint. Desired accuracy of fill level will determine how refined your fill control has to be.
 
If it's just an on/off valve, do as Robb suggested, and just compare the tank level to a deadband, and open valve until upper limit of deadband is reached, then close. Reopen when lower deadband is reached. You could get fancy and turn the PID output to a Timer Preset (similar to SCR Heater controls), but why bother, and likely no more accurate than opening and closing to a deadband.
 

If you need accurate level control with on/off valve then feel free to read about pulse width modulation

But most likely Robb B and robertmee absolutely right.

If current_level > max_level then valve_open_comand = 0
If current_level < min_level then valve_open_comand = 1

in any other case
current_level (current scan) = current_level (previous scan)

Aren't you asking us to do your homework?

Who forces you to use a PID controller?


What will be the PID Output when level of the tank = setpoint ( ie input of the PID = set point to the PID) ?

As I written, steady-state (PV=SP) PID-out = I-term out, it is obvious.

But I suppose your question is formulated as follows:
How is the output value of the PID controller related to the valve position (eg at steady-state)?

Answer:
PID (steady-state) out is a number that, taking into account the “conversion factor,” corresponds to the inflow value that exactly compensates for the outflow.

I would suggest that you think carefully before asking the next question (I suppose I can guess what the question will be)
 
I have seen (I didn't write it) a program in which a PID was used to control a tank level via an on/off valve. The CV was limited to a span of 1, so it could only be on or off.

I don't know how well it worked. I never got to see it in operation. I just found it to be an interesting concept. I'd have done as others have already suggested and used simple setpoint and deadband logic, had I written it.
 

Similar Topics

Hi, I started off my career in PLC programming doing water/wastewater on AB around 20 years ago, but then moved overseas a few years later and...
Replies
57
Views
12,073
Have a level control application that consists of a small chamber relative to the size of the incoming and outgoing pumps. I've done this type of...
Replies
6
Views
3,597
Good morning, I have a question and I don't really know what you would call this.... I have 2 tanks which I need to control the level or froth...
Replies
14
Views
7,777
Hi friends I have a L24ER-QBFC1B in a Level Control that you can see in the picture. Tank1 is the process tank. Level sensor is the process...
Replies
4
Views
3,055
I am working on a CIP project. There is a tank which is about 1500L. We need to keep the water volumn inside the tank to be SP:200L. The control...
Replies
17
Views
10,847
Back
Top Bottom