Beruflich Dokumente
Kultur Dokumente
Scaling in PLC
About Contact Disclaimer Copyright Subscribe Submit Articles Forum Helping Hand Part Time Job Learn PLC Android App iPhone App
Inst Tools
SPONSORED SEARCHES
PLC Tutorials
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept
Read More
https://instrumentationtools.com/how-a-plc-do-the-scaling-for-a-sensor/ 2/26
3/28/2019 How a PLC do the Scaling for a Sensor ? Scaling in PLC
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept
Read More
https://instrumentationtools.com/how-a-plc-do-the-scaling-for-a-sensor/ 3/26
3/28/2019 How a PLC do the Scaling for a Sensor ? Scaling in PLC
There are three common techniques used in the data acquisition world
including linear scaling, mapped scaling and formula scaling.
All three methods have their place and time for use and will be
described in this article.
Scaling Techniques
There are three techniques for scaling that we are going to cover here in
this article: linear, mapping and formula.
These three techniques overlap a little bit as we will explain, but they are
the primary methods used in the world of data acquisition.
Just to give a quick overview of these three methods and what they are
best utilized for, we’ve put together a table below.
For example
Linear Scaling
The technique of linear scaling should remind you a little bit of your days
back in basic algebra. It uses the old slope-intercept form ‘y = mx + b’
where
Example 1
Let’s consider the level Transmitter with a 0 to 100 ftWC range and 0 to
10V DC output. These specifications tell us two things:
It’s best to start with your scale factor, or m in the equation. The factor
m can be solved by using the slope formula ‘m = (y2-y1) / (x2-x1)’ and
choosing two points along the linear scale.
After the scale factor has been determined, we simply plug the value m
back into the slope-intercept formula and use one of our points to
calculate our offset.
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept
Read More
https://instrumentationtools.com/how-a-plc-do-the-scaling-for-a-sensor/ 6/26
3/28/2019 How a PLC do the Scaling for a Sensor ? Scaling in PLC
1. We will use the two points (0, 0) and (10, 100) to calculate the scale
factor or m.
Therefore m = 10
2. Now we will use the slope-intercept formula and the point (0, 0) to
calculate the offset or b.
0 = 10(0) + b = 0 + b
Therefore b = 0
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept
Read More
https://instrumentationtools.com/how-a-plc-do-the-scaling-for-a-sensor/ 7/26
3/28/2019 How a PLC do the Scaling for a Sensor ? Scaling in PLC
3. It’s always a good idea to verify that your scale factor and offset are
right by plugging our second point into our completed equation,
which in this case is (10, 100).
Example 2
We will still use the level Transmitter with a 0 to 100ftWC range, but this
time we’ll use a 4 to 20mA output. These specifications again tell us two
things:
We will go about this example in the same manner we did the last one
by first finding the scale factor and then plugging in a few numbers to
calculate the offset.
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept
Read More
https://instrumentationtools.com/how-a-plc-do-the-scaling-for-a-sensor/ 8/26
3/28/2019 How a PLC do the Scaling for a Sensor ? Scaling in PLC
1. We will use the two points (4, 0) and (20, 100) to calculate the scale
factor or m.
Therefore m = 6.25
2. Now we will use the slope-intercept formula and the point (4, 0) to
calculate the offset or b.
0 = 6.25(4) + b = 25 + b
Therefore b = -25
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept
Read More
https://instrumentationtools.com/how-a-plc-do-the-scaling-for-a-sensor/ 9/26
3/28/2019 How a PLC do the Scaling for a Sensor ? Scaling in PLC
3. It’s always a good idea to verify that your scale factor and offset are
right by plugging our second point into our completed equation,
which in this case is (20, 100).
Mapped Scaling
The technique of mapped scaling often built-in and preprogrammed for
inputs like thermocouples, Pt100/1000’s, and other resistive
temperature sensors.
This example does not apply only to type K thermocouples, but any type
of commonly used resistive temperature sensor or other related
sensors.
By knowing this, we can calculate the volume of the fluid. If the tank had
a flat bottom and was the same diameter along its height then this
calculation would be simple, and we could use linear scaling like above.
However, typically these tanks are rounded and the level of the fluid
This website uses cookies to improve your does
experience.
not We'll assume
directly you're ok with
correlate this, but
to the you canof
volume opt-out
fluid.if you wish. situation
In this Accept we
Read More
https://instrumentationtools.com/how-a-plc-do-the-scaling-for-a-sensor/ 11/26
3/28/2019 How a PLC do the Scaling for a Sensor ? Scaling in PLC
must use mapped scaling and a little bit of math to attain our desired
result.
For our example we will use a horizontal cylinder tank with a diameter of
5 ft. and a length of 10 ft.
Also, for this example we will be using the level Transmitter again, but
this time a 0 to 10V DC output and 0 to 5 ftWC range.
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept
Read More
https://instrumentationtools.com/how-a-plc-do-the-scaling-for-a-sensor/ 12/26
3/28/2019 How a PLC do the Scaling for a Sensor ? Scaling in PLC
Typically the more points in your table the more accurate the
calculations will turn out to be. To demonstrate this concept, let’s use an
1V output signal as an example.
An output of 1V would tell us that there is a 0.5 ft. depth in the tank.
This calculates out to be approximately 76 gallons.
This technique has the potential to be one of the most powerful scaling
methods, however it is often a resource hog and most data acquisition
systems storing data at high rates cannot keep up with this process.
For data acquisition systems that cannot perform formula scaling there
are two alternatives:
Storing raw values and applying the required formulas to the data
after the data has been saved from data acquisition system. This
can typically be done in a piece of software such as Microsoft Excel.
There are numerous potential uses for formula scaling. We will cover
two possible scenarios for this technique: vertical cylinder tank volume
and differential pressure.
Example 1
For a vertical cylinder tank, the fill volume can be calculated by the
formula ‘V = π r2 f ‘ where
r is the
This website uses cookies to improve your experience. radius
We'll ofyou're
assume the tank,
ok withand
this, but you can opt-out if you wish. Accept
Read More
https://instrumentationtools.com/how-a-plc-do-the-scaling-for-a-sensor/ 14/26
3/28/2019 How a PLC do the Scaling for a Sensor ? Scaling in PLC
The level Transmitter is giving us our fill height or f. From this fill height
we can directly calculate the fill volume or V. We will be using some of
the same methods for linear scaling to get our f and applying the
calculations on top of that.
1. We will first calculate the linear scaling for the fill height or f. I’m
going to skip a few steps since we covered this in the first section.
2. Now we can replace the f in the vertical cylinder tank formula with
2x.
Example 2
The second scenario that we are going to use to explain the technique of
formula scaling is differential pressure.
In this example we will use two of the transmitters with a 0 to 100 PSI
range and 0 to 10 V DC output.
The calculations here are very simple. Simply subtract one from the
other.
Conclusion
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept
Read More
https://instrumentationtools.com/how-a-plc-do-the-scaling-for-a-sensor/ 16/26
3/28/2019 How a PLC do the Scaling for a Sensor ? Scaling in PLC
There three most commonly used techniques for scaling sensor outputs
are
1. Linear scaling,
2. Mapped scaling and
3. Formula scaling.
As you can see, there are many instances in which more than one of
these techniques can work and the best choice usually depends on the
hardware/software that you’re working with.
Linear scaling is the easiest to work with, however sensors with linear
outputs tend to be more expensive as additional hardware is required to
linearize the raw output from the transducer.
Mapped scaling is used more often than we tend to even notice. Any
time a resistive temperature sensor is giving you a temperature reading,
mapped scaling is at work somewhere along the line.