Ron Beaufort
Lifetime Supporting Member
here is an excerpt of a question I got today as a Private Message:
since variations of this question come up fairly often, I decided to take a shot at answering it here on the open forum ... I’m sure that other members will be able to add more insight ...
-----------------------------------------------
Greetings ...
my first question is this: are you SURE that you really need to use PID at all? ...
if the answer is “Yes” then do a forum search for “bipolar” and see if any of the ideas you find there will be helpful ... here are just a couple of links to get you started ...
http://www.plctalk.net/qanda/showthread.php?t=7292&highlight=bipolar
http://www.plctalk.net/qanda/showthread.php?t=20274&highlight=bipolar
on the other hand, if I understand your question correctly, you might want to try something similar to the “gearmotor” logic that I use on my Hotrod trainers ... click here for a picture ... then you can click again on the picture itself to enlarge it for more detail ...
the idea is that in “gearmotor mode” the damper on the left is kept wide open and the damper on the right is driven clockwise or counterclockwise to control the amount of air flowing through the tube ...
note that the damper on the left uses PID and analog signals - which is what most of my PID students are interested in ... the damper on the right uses digital signals - sort of what you’re apparently trying to do with your system ... I use the “gearmotor mode” mostly for my own personal experiments - so that I don’t have to worry with the 3-15 psi air supply required for the left damper ... the gearmotor just runs on 120VAC ... one digital output makes it run clockwise to open the damper further ... another digital output makes it run counterclockwise to close the damper ...
the PDF file attached shows just the rungs necessary to control the gearmotor ... take a look at how that’s set up and see if it gives you any ideas for your project ...
the 5 minute trend below shows the type of “good-enough-for-my-purposes” control that I get with the system ... the setpoint is changed from 20% to 40% and back to 20% again as a test ... in the area where the setpoint is not shown, both of the gearmotor outputs were forced OFF after the PV had stabilized at 20% ... this demonstrates that the “jitter” in the PV is due to natural signal “noise” and is not being caused by the control technique being used ...
hope this helps ...
PID instruction help question.
Hey Ron, I am a forum lurker and a student currently studying plc's. I was wondering if you had a moment to answer a PID question.
SLC 5/04 processor.
PID setup aside.. let’s assume everything is setup properly from the PID instruction block point of view, and the CV has been setup as N7:75
Here is my question.
I have 2 valves, for controlling a batch process. One valve brings back the process from a 'below set point' state, and the other valve brings back the process from a 'above set point' state. These valves would not be analog. Valves being addressed O:2/1 and O:2/2. I've seen your instructions on controlling a single valve via a “time proportional signal”. How would you incorporate the second valve to bring the process back from an 'above set point' state?
Thank you for any advice you can offer. I truly appreciate it.
since variations of this question come up fairly often, I decided to take a shot at answering it here on the open forum ... I’m sure that other members will be able to add more insight ...
-----------------------------------------------
Greetings ...
my first question is this: are you SURE that you really need to use PID at all? ...
if the answer is “Yes” then do a forum search for “bipolar” and see if any of the ideas you find there will be helpful ... here are just a couple of links to get you started ...
http://www.plctalk.net/qanda/showthread.php?t=7292&highlight=bipolar
http://www.plctalk.net/qanda/showthread.php?t=20274&highlight=bipolar
on the other hand, if I understand your question correctly, you might want to try something similar to the “gearmotor” logic that I use on my Hotrod trainers ... click here for a picture ... then you can click again on the picture itself to enlarge it for more detail ...
the idea is that in “gearmotor mode” the damper on the left is kept wide open and the damper on the right is driven clockwise or counterclockwise to control the amount of air flowing through the tube ...
note that the damper on the left uses PID and analog signals - which is what most of my PID students are interested in ... the damper on the right uses digital signals - sort of what you’re apparently trying to do with your system ... I use the “gearmotor mode” mostly for my own personal experiments - so that I don’t have to worry with the 3-15 psi air supply required for the left damper ... the gearmotor just runs on 120VAC ... one digital output makes it run clockwise to open the damper further ... another digital output makes it run counterclockwise to close the damper ...
the PDF file attached shows just the rungs necessary to control the gearmotor ... take a look at how that’s set up and see if it gives you any ideas for your project ...
the 5 minute trend below shows the type of “good-enough-for-my-purposes” control that I get with the system ... the setpoint is changed from 20% to 40% and back to 20% again as a test ... in the area where the setpoint is not shown, both of the gearmotor outputs were forced OFF after the PV had stabilized at 20% ... this demonstrates that the “jitter” in the PV is due to natural signal “noise” and is not being caused by the control technique being used ...
hope this helps ...
Last edited: