Instruction in AB PLC SLC5/03

P

Thread Starter

Purna

Could anybody explain the SCP (Scale with parameter) instruction used in SLC5/04 PLC and the area of its application?

Thanks.
 
J

Jeff Clausius

Analog input module :
Assume 1746-NI4: using 4-20ma input pressure transmitter rated at 0-300 psi

scale with parameters:
input low = 3277
input hi = 16384
output lo = 0
output hi = 300

This scales the output address to 0-300 PSI
 
S

ScienceOfficer

Purna---

I hope you have already put the cursor on an SCP instruction and hit F1, or otherwise consulted the Help Files and Instruction Set Reference. Given that much, here is some amplification:

The SCP instruction helps you convert an input value to a value in different engineering units, as long as there is a linear relationship. For example, if you wanted to convert Fahrenheit to Celsius, you could enter 32 and 212 as the Input Min and Max, and 0 and 100 as the Output Min and Max. Those parameters in an SCP instruction would convert a Fahrenheit value in the Input register to a Celsius value in the output register. Note that neither the Input nor the Output are limited to be within the scaling parameters (-40 Input will yield -40 Output in the example), and floating point arguments are supported in processors that support that data type.

The SCP instruction was created mostly to aid the implementation of the original SLC500 analog modules, which did not support onboard scaling to engineering units. It has since become very popular for simple engineering unit conversion.

Hope this helps!

Larry Lawver Rexel / Central Florida
 
C

Curt Wuollet

Scale with parameters simply lets you do the equivalent of the common analog operations of summing an offset and scaling the input (gain,
span) to a new set of values.

Regards

cww Who is mucking about with RSLogix lately.
 
I have used the SCP to convert counts, read in from an analog input card, to an engineering units value. One application I was reading in a 4-20 mA signal from a temperature sensor that represented 0-200 Deg.F. My input min was 6242
which represented the counts associated with 4 mA or 0 Deg.F (scaled min). My input max was 31208 which represented the counts associated with 20 mA or 200 Deg.F (scaled max). Hope this helps.
 
Y

Yosef Feigenbaum

The SCP is an easier to use version of the Scale instruction.

You provide the SCP with the input value (typically from an analog input module), it's raw range (min/max) and it's range in engineering units (min/max) and the SCP outputs the normalized (in engineering units) value of the input.

There are lots of uses for this instruction. For example, if you want to sum a set of flow meters which have different ranges you run them through the SCP. The results can be added together since they're now in engineering units.

Good Luck.

[email protected]
 
The instruction can be applied wherever you need a linear relashionship between two data. The data are the variable (t or x) and the function of that variable F(t) or y. the min and max data are the domain of x, the min and max of the function, are the range of it. If you use scale with parameters, you have not to deal with slope, nor the equation y=mx+b. ...But, if it is not clear, keep reading...

In order to understandt it the easiest way. Draw a two axis plane over a sheet. Identify the axis as x and y. Then mark: 1. the origin (where both axis cross each other) 2. Over the "x" axis, mark the years, considering it a timeline.
3. Over the "y" axis, your birth-year, and your actual age.
4. draw a line, that matches your age against the timeline.
5. Did you got a line that has a slope of 45 degrees?, you followed me the right way, otherwise, start again on step 1.
6. Once you succeed, getting the right plot, draw a rectangle that has the lower left corner over that line, and other upper right corner over same line (the one that has a slope of 45 degrees).

Now, you got the limits:
The lower line of the rectangle (bottom) starts on the minimum variable value, and ends on the maximum value.
The vertical side of the rectangle starts on the minimum scaled value, and ends (up) on the maximum scaled value.

As you can see, you can drawed any rectangle over that line. The same way you can scale any two valuess that are related by a linear function by this method. The rockwell guys are smart!, they do other peolple life (the PLC programmers) easier. I Love htem!

Remember that the line (function) can have any slope, not only 45 degrees. Anyway, the method works. Try the same example above, splitting the timeline in years, and your age in months.

I just started a page, and there is a PLC programming topic, there are some other examples. If you like, go to:
http://www.intelligentes.com/PLCProgramming/main.htm


V Bravo
[email protected]
 
Correction to my response. The input min and input max are 3277 and 16384 not 6242 and 31208. Sorry for any confusion.
 
C

Curt Wuollet

An apparition appears, after 15 minutes of bootup errors and flying windows and butterflies........and crawls into view amid the error dialog boxes......The room glows with the heat of molten iron.

I assure you Joe, that it is only dire necessity that drives me to do such things. Along with working on machines deep in the bowels of the foundry with black sand falling everywhere, which resembles nothing quite so much as Dante's 9th shade of Hell, goes working with Windows tools, a front runner for the 10th. Repent now, lest ye share my fate. Rep.........

Amid the clamor of vibrating conveyors, everything stops, leaving a strangely blue backdrop.........

Regards

cww
 
Top