![]() ![]() ![]() ![]() ![]() ![]() |
||
![]() |
||
![]() ![]() ![]() ![]() This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc. |
||
![]() |
![]() |
#16 |
Lifetime Supporting Member
|
Note: earlier I suggested increasing both Kc (Controller gain) and Ti (minutes/repeat), as I thought the gains were independent. But the gains are dependent (cf. here), so mainly increasing Ti by itself is what is needed; Kc may be okay as is.
__________________
_ Brian T. Carcich i) Take care of the bits, and the bytes will take care of themselves. ii) There is no software problem that cannot be solved with another layer of indirection. iii) Measurement is hard. iv) I solemnly swear that I am up to no good ![]() v) I probably have the highest ratio of forum posts to actual applications in the field (∞). vi) Hakuna matata. |
![]() |
![]() |
#17 |
Lifetime Supporting Member
|
Is this a centrifugal pump, or is it positive displacement?
__________________
_ Brian T. Carcich i) Take care of the bits, and the bytes will take care of themselves. ii) There is no software problem that cannot be solved with another layer of indirection. iii) Measurement is hard. iv) I solemnly swear that I am up to no good ![]() v) I probably have the highest ratio of forum posts to actual applications in the field (∞). vi) Hakuna matata. |
![]() |
![]() |
#18 |
Lifetime Supporting Member
|
This system is slow. I'll bet Kc = 14 and Ti = T = 0 would work well enough, basically bang-bang control and allowing for a little proportional offset.
__________________
_ Brian T. Carcich i) Take care of the bits, and the bytes will take care of themselves. ii) There is no software problem that cannot be solved with another layer of indirection. iii) Measurement is hard. iv) I solemnly swear that I am up to no good ![]() v) I probably have the highest ratio of forum posts to actual applications in the field (∞). vi) Hakuna matata. Last edited by drbitboy; October 28th, 2022 at 06:56 PM. |
![]() |
![]() |
#19 |
Member
![]() ![]() Join Date: Oct 2016
Location: Ontario
Posts: 203
|
I just remembered, on a SLC, to make the ramp-up more relaxed, taking longer, the I term number must be decreased, not increased.
|
![]() |
![]() |
#20 |
Member
![]() ![]() Join Date: May 2022
Location: Northwest US
Posts: 6
|
So am I reading this correctly:
1. Air pressure is your PV, Valve position is your CV. 2. Oil is pumped in, which compresses the air above the oil, increasing the pressure in the vessel. 3. The pressure is controlled by venting the air. Is it fair to assume that there is no air supply, so if you overshoot, you simply have to wait for the oil level to increase? So really, you are just wanting to control the bleed rate at the step when you are adding oil? And if this is the case, I'm guessing somewhere in this program you write a change to swap the control mode when pulling out oil? (ie E=SP-PV => E=PV-SP by writing a 0 or 1 to word 0, bit 2) Last edited by Elons_Musk; October 28th, 2022 at 08:01 PM. Reason: Additional Info |
![]() |
![]() |
#21 | |
Lifetime Supporting Member
|
Quote:
1. yes 2. yes 3. sort of, it modulates the volume of a fixed quantity (moles or mass) of air, not the quantity of air by venting. I say sort of, because, put another way, it remotely vents or adds air to the fixed volume of the pressure sensor/tap system, by removing or accumulating oil in the fixed volume between the discharge side of the pump and the upstream side of the control valve. Pressure is controlled indirectly by
__________________
_ Brian T. Carcich i) Take care of the bits, and the bytes will take care of themselves. ii) There is no software problem that cannot be solved with another layer of indirection. iii) Measurement is hard. iv) I solemnly swear that I am up to no good ![]() v) I probably have the highest ratio of forum posts to actual applications in the field (∞). vi) Hakuna matata. |
|
![]() |
![]() |
#22 |
Lifetime Supporting Member
|
another issue at play here could be the valve characteristic. an equal percentage valve will behave differently than a valve with a linear characteristic.
The flow into the fixed volume between pump discharge and control valve will be fairly constant, assuming a positive displacement pump with a constant speed motor. So at steady state, assuming absorption into the wood is small, the flow through the pump would equal the flow through the valve. A pump capable of, say, 217PSI @ 40hp can pump 20E-3 m3 s-1 max (i.e. 100% efficiency). So it would take at over four minutes to half-fill the 10m3 treating vessel and double the pressure (absolute, presumably from ambient) with the control valve closed (ignoring leaks ![]() Since the steady-state flow is constant at any vessel pressure, but the pressure drop across the valve will change with vessel pressure, the CV% at steady state will also depend on the vessel pressure, as well as the valve characteristic as well as the associated piping back from the vessel to the control valve and from the control valve to the storage tank. All of those things could change the system gain as vessel pressure is varied.
__________________
_ Brian T. Carcich i) Take care of the bits, and the bytes will take care of themselves. ii) There is no software problem that cannot be solved with another layer of indirection. iii) Measurement is hard. iv) I solemnly swear that I am up to no good ![]() v) I probably have the highest ratio of forum posts to actual applications in the field (∞). vi) Hakuna matata. |
![]() |
![]() |
#23 | |
Lifetime Supporting Member
|
Quote:
Should have added the blue text above to an earlier post.
__________________
_ Brian T. Carcich i) Take care of the bits, and the bytes will take care of themselves. ii) There is no software problem that cannot be solved with another layer of indirection. iii) Measurement is hard. iv) I solemnly swear that I am up to no good ![]() v) I probably have the highest ratio of forum posts to actual applications in the field (∞). vi) Hakuna matata. |
|
![]() |
![]() |
#24 |
Lifetime Supporting Member
|
The problem is about startup, which is not a strong point of the PID algorithm because of reset windup.
Rather than Feedforward, I would use Manual Mode (.AM=1) and MOV a value into the CV address (tag N9:5 in post #1 here) as the pressure ramps up from startup. Then, when the pressure gets close to setpoint, switch back to Automatic Mode (.AM=1). Initially the CV address (N9:5) should be zero, but could be increased to some non-zero value as the pressure approaches setpoint. So say .AM=1 and N9:5=0 until PV = (SP - 20PSI), then ramp N9:5 up to 20-30% (3277-4915) between PV=(SP-20PSI) to PV=(SP-10PSI), then when PV crosses (SP-10PSI), switch to manual .AM=0. While the PID is in manual (.AM=1), bumpless transfer will have back-calculated a non-zero Integral Sum in Control Words 17 and 18, which will eliminate the need for a large overshoot to accumulate that Integral Sum via the normal PID algorithm. See the Manual Mode topic on this page in the SLC manual.
__________________
_ Brian T. Carcich i) Take care of the bits, and the bytes will take care of themselves. ii) There is no software problem that cannot be solved with another layer of indirection. iii) Measurement is hard. iv) I solemnly swear that I am up to no good ![]() v) I probably have the highest ratio of forum posts to actual applications in the field (∞). vi) Hakuna matata. Last edited by drbitboy; October 31st, 2022 at 09:24 AM. |
![]() |
![]() |
#25 |
Member
![]() ![]() Join Date: Oct 2016
Location: Ontario
Posts: 203
|
digital input status bits..why?
Hi all
Instead of just using the actual inputs from the digital input card in your program, why do some programmers implement a ladder designed specifically to "converting" all the physical inputs such as limit switches into status bits? |
![]() |
![]() |
#26 |
Member
|
dP/dt = β(P)*Q(t)/V(t)
Where: dP/dt is the rate of change of pressure β(P) is the bulk modulus of air as a function of pressure. Yes it changes. Q(t) is the net flow into or out of the pressurized volume. Qin(t)-Qout(t) V(t) is the pressurized volume of air as a function of time. Control is not simple because nothing is linear. Ditto, the SLC500 PID integrator doesn't seem to have a decent anti windup. How the PID is implemented makes a HUGE difference. The SLC500 PID was designed by a noob. I would roll my own and use floating point and make it a routine that can be called and used over and over again but the time for SLC500 is long part.
__________________
"Living is easy with eyes closed, misunderstanding all you see...." Strawberry Fields Forever, John Lennon |
![]() |
![]() |
#27 |
Lifetime Supporting Member
|
At these low pressures, ideal gas law will be good enough, linear models are almost always good enough. Assume isothermal.
Patm V0 = nRT = P (V0-Voil)where
dP/dt = (P V0 / (V0 - Voil)) dVoil/dtWhich is essentially the same as @Peter's model, and a simple model for dVoil/dt is dVoil/dt = Foil - √(P - Patm) / [(100 Ropen / CV%) - Rpipe]where
__________________
_ Brian T. Carcich i) Take care of the bits, and the bytes will take care of themselves. ii) There is no software problem that cannot be solved with another layer of indirection. iii) Measurement is hard. iv) I solemnly swear that I am up to no good ![]() v) I probably have the highest ratio of forum posts to actual applications in the field (∞). vi) Hakuna matata. |
![]() |
![]() |
#28 |
Lifetime Supporting Member
![]() ![]() Join Date: Feb 2011
Location: BC, Canuckistan
Posts: 260
|
I hope my napkin sketch clears up some of the confusion about the process details. No, the pump doesn't hang upside down or anything, it's actually near the bottom plane of the vessel, but I didn't want to have to draw overlapping lines, etc.
I will hopefully be able to capture a pressure cycle today on Trends and will post it here. I will try to include the calculated error values, though I don't think negative values are available from the data table. I believe I have the pump curves available if needed, we ran into an issue with them due to vacuum inside the vessel not allowing the oil to be pumped in circulation, that's a whole 'nother problem, I think due to viscosity and insufficient net pump suction head! ![]() @DrBitBoy: Centrifugal pump. I think your post #24 sums it up very nicely, there is no opening of the Control Valve until the setpoint is reached. Ideal operation would have the valve opening before setpoint is crossed (rising). @Peter: I will try to see if I can get some numbers to test your formula against. |
![]() |
![]() |
#29 |
Lifetime Supporting Member
|
Whoa, thanks!
Is the stilling pipe used for a level measurement? Is the stilling pipe slotted or perforated down its sides inside the treating vessel? Does the oil level reach the top of the treating vessel, or even go up into the extension of the stilling pipe above the vessel?
__________________
_ Brian T. Carcich i) Take care of the bits, and the bytes will take care of themselves. ii) There is no software problem that cannot be solved with another layer of indirection. iii) Measurement is hard. iv) I solemnly swear that I am up to no good ![]() v) I probably have the highest ratio of forum posts to actual applications in the field (∞). vi) Hakuna matata. |
![]() |
![]() |
#30 | |
Lifetime Supporting Member
|
Quote:
PV, SP, and CV should be enough; error can be inferred from there. what is the approximate flowrate (gpm, litre/s, whatever) at a pump discharge pressure of 125psi above pump suction? at 165psi?
__________________
_ Brian T. Carcich i) Take care of the bits, and the bytes will take care of themselves. ii) There is no software problem that cannot be solved with another layer of indirection. iii) Measurement is hard. iv) I solemnly swear that I am up to no good ![]() v) I probably have the highest ratio of forum posts to actual applications in the field (∞). vi) Hakuna matata. |
|
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PID Position to Velocity Equation Tuning Parameter Conversion | JLand | LIVE PLC Questions And Answers | 7 | January 18th, 2022 06:15 PM |
SLC 5/05 Communication Problem with Serial Port.. | pranav.mistry003 | LIVE PLC Questions And Answers | 2 | August 23rd, 2012 04:41 PM |
Reading L32E with SLC 5/05 | 24fretslater | LIVE PLC Questions And Answers | 7 | February 23rd, 2012 12:26 PM |
Control Slc 5/04 PID | The Plc Kid | LIVE PLC Questions And Answers | 1 | August 6th, 2009 04:41 PM |
SLC 5/05 PID Time Mode Question | Dwarfer1 | LIVE PLC Questions And Answers | 7 | December 15th, 2004 05:52 AM |