socaoh Posted July 7, 2015 Report Share Posted July 7, 2015 Hello I have V130 PLC and i want to make subroutine to control pressure with proportional valve. So I have pressure senzor transmitter 4-20 mA 0 - 200 bar. So my desire is to set pressure and to get that pressure. Thanks in advance Link to comment Share on other sites More sharing options...
s.pratt Posted July 7, 2015 Report Share Posted July 7, 2015 Hello, This sounds as though you would like to run a PID loop to control you proportional valve and maintain your pressure set-point. We have example programs using our PID function blocks in our examples folder, under the help tab in VisiLogic. Also, we have a tutorial on how to use the PID function blocks in your program which can be found here. Please let us know if this helps. 1 Link to comment Share on other sites More sharing options...
cantcliff Posted July 8, 2015 Report Share Posted July 8, 2015 Depending on your setup PID may be over kill depending on your needs. I just finished a setup like this using an electronic regulator (I use PID but setup works without as well). Here is what I did: 1) Read in from the pressure transmitter and scale the value to an integer using the linearize FB. 2) For output a) For non-PID 1) Store output value into an integer 2) Scale that value to the analog output range for the proportion valve using linearize. Compensating for the difference in reading. I also have several rungs to nudge the output in different directions if I'm high or low. 3) Output to the valve For PID 1) Read the analog input and use the input as the process variable ( I linearize everything to the sensor and output ranges) 2) Use the analog output as the control variable. If you'd like I can send you a copy of the program I'm using on a V570, the interface won't work for you most likely, but the logic should be identical. The only issue is a lot of my initialized variables are specific to my application. 1 Link to comment Share on other sites More sharing options...
socaoh Posted July 8, 2015 Author Report Share Posted July 8, 2015 Thanks on yours help I make 2 plastic moulding machines BATTENFELD but without pressure transmitter e.c. without information for real pressure in system. I did by PWM output and SSR as proportional valve driver at 200Hz. Machine work well until the hydraulic fluid change temperature. When temperature is changed then it will change and all parameters so I must put pressure transmitter. So until now I haven't work with PID regulation Thanks in advance Link to comment Share on other sites More sharing options...
cantcliff Posted July 9, 2015 Report Share Posted July 9, 2015 If you have to deal with fluctuations from temperature affecting the system then PID may be the way to go. Fairly easy to work with the hardest part is fine tuning it for best performance, or at least good enough performance. 1 Link to comment Share on other sites More sharing options...
socaoh Posted July 9, 2015 Author Report Share Posted July 9, 2015 Thanks cantcliff If You are willing please send me a copy of program. Blagoja Sotirovski Ohrid, Republic of Macedonia Link to comment Share on other sites More sharing options...
socaoh Posted July 12, 2015 Author Report Share Posted July 12, 2015 ]Dear friends The pressure that should be regulated is very fast value. So, process don't need a big accuracy e.c. allows tolerance + - 5% or more So my opinion is I need PI regulation(without D). Thanks on any help Link to comment Share on other sites More sharing options...
Walkerok Posted July 12, 2015 Report Share Posted July 12, 2015 There is absolutely nothing wrong with making calculation using only values for P and I. In fact many processes don't particularly do well with a D value (at least ones where D is picked by humans). For the work we do in my company we actually never set a D value to anything and only set D when we use the autotune function to generate at least the starting point for a D value. 2 Link to comment Share on other sites More sharing options...
socaoh Posted July 13, 2015 Author Report Share Posted July 13, 2015 Thanks walkerok You encourage me that I thinking right. So I don't have much time to solve my problem, If You are willing please send me a subroutine because I make this first time. Thanks in advance Link to comment Share on other sites More sharing options...
Walkerok Posted July 16, 2015 Report Share Posted July 16, 2015 Here is a sample program that has been split out of a much larger program. In it you will find where the user can enter in PID variables and the set point along with dynamically being able to chose if the pump PID is controlled from suction or discharge pressure. This is about the best I can do for you at this time. Good Luck Keith PID example.vlp 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now