I don't do enough PID loops to ever get good at them. I've been pondering over this one for a couple days:
The level of a waste tank is to be controlled by a gas valve. Water and waste come in with the gas which collects in the tank. The gas will flow up and back out of the tank. Sepeartely, the tank processes/dumps water out of the bottom through an on/off valve.
Right now, this gas valve is being bypassed. Gas is flowing freely at all times. The tank has hi and low level switches. The hi level swith stops the process completely and requires the operator to manually drain the tank. The low level switch closes the valve on the bottom of the tank to keep it from emptying completely.
This new gas valve is supposed to regulate gas flow so that the water level never reaches these hi/low switches under normal conditions. They want the valve to begin to pinch off and close when the tank gets to 50% and be completely closed at 80%. They want this to happen quickly. But as the tank drains, they want the valve to open back up extremely slowly.
I am having two problems while trying to implement this: the system was set up with a PID, but I'm not sure how to make a PID behave slowly on close and fast on open. Is this even possible?
The second problem is that they want the system to operate over this 50-80% range, but my PID loop seems to want to operate over the entire range of the tank level. I could do this without a PID loop, but they want to be able to set a setpoint (presumably between 50-80%), so purely proportional control doesn't seem to be an option.
Maybe someone here can nudge me in the right direction. Also, I'm sure there are things that need clarification in my description - let me know what other info is needed.
The level of a waste tank is to be controlled by a gas valve. Water and waste come in with the gas which collects in the tank. The gas will flow up and back out of the tank. Sepeartely, the tank processes/dumps water out of the bottom through an on/off valve.
Right now, this gas valve is being bypassed. Gas is flowing freely at all times. The tank has hi and low level switches. The hi level swith stops the process completely and requires the operator to manually drain the tank. The low level switch closes the valve on the bottom of the tank to keep it from emptying completely.
This new gas valve is supposed to regulate gas flow so that the water level never reaches these hi/low switches under normal conditions. They want the valve to begin to pinch off and close when the tank gets to 50% and be completely closed at 80%. They want this to happen quickly. But as the tank drains, they want the valve to open back up extremely slowly.
I am having two problems while trying to implement this: the system was set up with a PID, but I'm not sure how to make a PID behave slowly on close and fast on open. Is this even possible?
The second problem is that they want the system to operate over this 50-80% range, but my PID loop seems to want to operate over the entire range of the tank level. I could do this without a PID loop, but they want to be able to set a setpoint (presumably between 50-80%), so purely proportional control doesn't seem to be an option.
Maybe someone here can nudge me in the right direction. Also, I'm sure there are things that need clarification in my description - let me know what other info is needed.