PID Scaling Inquiry

dladd29l

Member
Join Date
Jan 2020
Location
KY
Posts
9
In Allen-Bradley world (Controllogix Rev 30 controller) is PID scaling ALWAYS set to match the input card / sensor scaling?

I am simulating a process in a test lab, where I attempt to maintain a steady pressure reading using a PID while introducing changes to the system.

My Transducer is 4 to 20 mA = -10.0 psi to 450psi.

My logic is in kPa(because the system we are simulating is programmed this way). So my sensor range is ~-69 to 3103 kPa

The process I am simulating has a min pressure of 0 kpa and a max pressure of 80 kPa. So, you can see that I am only using a tiny portion of the sensor's range.

When I set my PID Scale tab to match the sensor scaling (unscaled and engineering min/max), I have to use huge P gains to get the process under control. Huge being P gain of 175 or so. It seems to control it fine when I do this, but I'm not accustomed to seeing values this high.

I make the PID scale max and min something more realistic to the process. Say min 0 and max 310 kPa (I did this because it was 10% of sensor range and easy math) my gains come down into the real world. But it is my understanding that this is incorrect.

So, are large gain numbers just a part of having a sensor with a kPa range that large, or should I adjust my scale to bring them down, or do I have something else going on?

Thanks for your time!
 
Do unit analysis.
A gain of 175 is meaningless. A gain should have units of % control output per unit of error. In this case are the units KPa or Pa? That will make a huge difference in the gains.

All units are kPA.

I suppose it makes sense that to achieve the same % of move would take a larger number in the gain when you increase the overall range of the scale.

Thanks!
 
All units are kPA.

I suppose it makes sense that to achieve the same % of move would take a larger number in the gain when you increase the overall range of the scale.

Thanks!
Yes, Ok, but a kPa is how many AtoD counts?
How many DtoA counts is 100%
Rockwell PIDs normally have unitless gains of error_counts to output_counts.
To figure the real gain one must use all 3 ratios.
 
Yes, Ok, but a kPa is how many AtoD counts?
How many DtoA counts is 100%
Rockwell PIDs normally have unitless gains of error_counts to output_counts.
To figure the real gain one must use all 3 ratios.

I probably should have prefaced this with I'm fairly new to PLC's and I learned what I know through a couple online courses and programming this test stand, so there are probably gaping holes in my knowledge, haha.

So, having said that, I'm not sure how to determine the analog to digital counts and vice versa. I'm willing to learn if there's a thread on here explaining the process, i've spent the last half hour or so trying to locate one on here.
All tags pertaining to pressure are reals/floats to match the existing system we are mimicking. (I've attached a couple screen shots if that helps)


Whats the complete catalog number of your pressure transmitter?

Some /most can be reranged.

It's an STS ATM/IS 119055 - When trying to get more specific and to find my exact pressure range, i'm not seeing an option online so I might fall under their "custom" range option.

So, It's an STS 119055 ---> 1756-IF8/A-------> 1756-L71

Sensor Scaling.png Local input Tag.png Pressure Tag REAL.png PID Scaling.png
 
Last edited:
So, having said that, I'm not sure how to determine the analog to digital counts and vice versa. I'm willing to learn if there's a thread on here explaining the process, i've spent the last half hour or so trying to locate one on here.
All tags pertaining to pressure are reals/floats to match the existing system we are mimicking. (I've attached a couple screen shots if that helps)

Having read the i/o manual (imagine that) it appears that since I'm using reals/floats I don't have a count per se but instead the value is represented in % of my engineering units.

How does this effect calculating my gains?
 
Having read the i/o manual (imagine that) it appears that since I'm using reals/floats I don't have a count per se but instead the value is represented in % of my engineering units.

How does this effect calculating my gains?

The ControlLogix (and PLC-5) PID instructions convert your PV and SP to percent of full scale before computing error. So the proportional gain is considered percent-to-percent in calculating output at each update. So if your tuning method generated gains based on engineering units, you will need to back out that scaling. This may also apply to integral and derivative if using the independent gains equation.
 
The ControlLogix (and PLC-5) PID instructions convert your PV and SP to percent of full scale before computing error. So the proportional gain is considered percent-to-percent in calculating output at each update. So if your tuning method generated gains based on engineering units, you will need to back out that scaling. This may also apply to integral and derivative if using the independent gains equation.

This is helpful, thank you.
 

Similar Topics

Hi, I am confuse with the scaling tab on the PID dialog box. On the Process variable I am using a tag that is already scale. 0 to 16 Feet Level...
Replies
2
Views
2,420
Hello all. Doing my first project on Controllogix platform, and have a question. When I set up a PID on this and toggle the .SWM parameter, I am...
Replies
1
Views
1,334
Hi, I've got a PID block in my RX3i program wherein the setpoint is 390, my feedback is 200, and the CV is the difference, 190. When I change PV...
Replies
1
Views
1,270
Hey everyone, Doing a project for a VFD fan controlling the temperature of the condenser at an arena. The VFD replaces a two-motor setup that was...
Replies
7
Views
2,757
Hello all. I am on site trying to scale my rotors controlled with a compact logix through analog inputs and outputs. My brain is racked. The...
Replies
4
Views
1,810
Back
Top Bottom