ammarmansoor
Member
Guys,
Last week i started working with PID loop in RSLogix 5000. I am using Compact Logix PLC and trying to figure out a problem since last week. You can imagine how frustrated I am at this point. Here is what i am working on :
I have a PVC pipe 2 inches wide and atleast 15 feet tall. On top of the pipe I have a Pepper + Fuchs Ultra sonic sensor that outputs a value betweem 4-20mA. In the pipe I have a 2 inches tall and 2 inches wide woodblock. Below the pipe I have a valve that is connected to a positioner which accepts a signal 4-20mA. Valve is basically connected to an airtank. Now the task is to open and close the valve using PID so that it can allow enough air to flow in the pipe and my target can float in the pipe at my setpoint. My sensor is connected to Analog I/O card and is scaled i think from 6270 - 32760 ( May be little off since I am at home and dont remember it on top of my head). I have created a PID and configured it under Periodic task. I have set The time for both Periodic and Loop Update to 250msec. The positioner is also connected to the same Analog I/O card.
Here is the problem. I turn my plc into Run mode and try tuning it. I start with very low proportional and add Integral as I go. The wood block would oscillate and when it reaches the setpoint (within my deadband) , my control variable still keeps on changing. Theoratically , once my target reaches it setpoint, the valve should stay at one place and should not open or close more. I have no idea what am i doing wrong ? One thing that I might mention, i don't know if it makes any difference or not but in my PID setting, I have scaled the input from sensor as (min 6270 - 32760) and used the same for Engineering Units. Do you think that can be an issue. My output is also scaled from (6270 -3276) because it is using the same Analog I/O card as the sensor and the size is 32bits. adjusting the valve manually , i can stabalize the woodblock any where i want in the PVC pipe but with PID it is just not working out. I started with no output BIAS and added little to see what happens. It didn't help me because the higher the number I entered the more unstable the loop became. Any idea what am i doing wrong ? I increased the deadband but still my output keeps on changing even my I am within the deadband.
I checked my sensor and there is no problem in its output. I am also posting my project file and screenshots.
Any help will be appreciated.
Last week i started working with PID loop in RSLogix 5000. I am using Compact Logix PLC and trying to figure out a problem since last week. You can imagine how frustrated I am at this point. Here is what i am working on :
I have a PVC pipe 2 inches wide and atleast 15 feet tall. On top of the pipe I have a Pepper + Fuchs Ultra sonic sensor that outputs a value betweem 4-20mA. In the pipe I have a 2 inches tall and 2 inches wide woodblock. Below the pipe I have a valve that is connected to a positioner which accepts a signal 4-20mA. Valve is basically connected to an airtank. Now the task is to open and close the valve using PID so that it can allow enough air to flow in the pipe and my target can float in the pipe at my setpoint. My sensor is connected to Analog I/O card and is scaled i think from 6270 - 32760 ( May be little off since I am at home and dont remember it on top of my head). I have created a PID and configured it under Periodic task. I have set The time for both Periodic and Loop Update to 250msec. The positioner is also connected to the same Analog I/O card.
Here is the problem. I turn my plc into Run mode and try tuning it. I start with very low proportional and add Integral as I go. The wood block would oscillate and when it reaches the setpoint (within my deadband) , my control variable still keeps on changing. Theoratically , once my target reaches it setpoint, the valve should stay at one place and should not open or close more. I have no idea what am i doing wrong ? One thing that I might mention, i don't know if it makes any difference or not but in my PID setting, I have scaled the input from sensor as (min 6270 - 32760) and used the same for Engineering Units. Do you think that can be an issue. My output is also scaled from (6270 -3276) because it is using the same Analog I/O card as the sensor and the size is 32bits. adjusting the valve manually , i can stabalize the woodblock any where i want in the PVC pipe but with PID it is just not working out. I started with no output BIAS and added little to see what happens. It didn't help me because the higher the number I entered the more unstable the loop became. Any idea what am i doing wrong ? I increased the deadband but still my output keeps on changing even my I am within the deadband.
I checked my sensor and there is no problem in its output. I am also posting my project file and screenshots.
Any help will be appreciated.