leen Posted March 3, 2020 Report Share Posted March 3, 2020 Hi, In a control loop I am using a proportional valve with an input -10V to +10V. With that input the process can be move left and right. When it has to be go to the right the input has to be positive, depend on the distance between 0 and +10V. When it has to be go to the left, the input has to be negative between 0 and -10VDC. Therefor I am using a output -10VDC to +10VDC. Now I will use a PID loop for it. Only what I find is a positive or negative PID control, so it can just 1 side on. You can switch this between cool and heat. But I wil not use that switch cool/heat, but just depend on the process value send the control value to negative or positive. Can somebody help me to explain how to handle with this. Thanks al for any help Link to comment Share on other sites More sharing options...
Ness Posted March 3, 2020 Report Share Posted March 3, 2020 Maybe use two PID configurations - one is active when the PV is above a set point, the other active when the PV is below. Or maybe just toggle the 'Reverse Action' bit when the (SP > PV) and back when (SP < PV) if the heating/cooling behavior is similar. Link to comment Share on other sites More sharing options...
bobnorway Posted March 4, 2020 Report Share Posted March 4, 2020 PLC PID is a mathmatic function not hardware based. Most PLC PID implementations are for regulation 0 - 100%, or reverse for cooling. 100% of 'what' to do 'something' is not realy their bussiness. This makes the PID function "universal". It is your job to scale the "footballs per day " PID input to 0-100%, and then scale the PID output from 0-100% to "footballs". In your case with the PID output do a simple scaling (PIDX * 2) = 0-200% then subtract (PID2X -100) gives a range of -100 to +100 have a good day. 1 Link to comment Share on other sites More sharing options...
leen Posted April 28, 2020 Author Report Share Posted April 28, 2020 About the PID output scaling 0 - 200%. It's not clear how this is working in my application. I.e. when my PV value is 100 and I need it to setpoint 50, my CV value has to be i.e. -50%. When my PV value is 50 and I need it to setpoint 100, my CV value has to be i.e. +50%. When my PV value = setpoint then my CV value = 0%. Link to comment Share on other sites More sharing options...
leen Posted April 28, 2020 Author Report Share Posted April 28, 2020 When I will do it by toggle the reverse action bit. How smooth is that going. Link to comment Share on other sites More sharing options...
Gabriel Franco Posted April 28, 2020 Report Share Posted April 28, 2020 You may also try PID output limits: output low limit = -1000, output high limit = +1000, then scale PID output to your analog output. 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