QUOTE(mckeand13 @ Jan 21 2008, 02:40 PM) [snapback]64072[/snapback]
Pardon my lack of knowledge, but I don't think any of this helps me.
Could somebody explain in simpler terms how the SCP command should be set up based on different resolutions of card/plc?
Thanks.
You put the source minimum and maximum values in. Then you put your desired inputs for those same values into the engineering units. The source value is the raw input, and the result is the scaled output.
For example, let's say you have a pressure sensor reading 0-1000 PSI, outputting 4-20mA, to an IF2OF2 card.
According to the manual, 4 mA is 3120 and 20 mA is 15603. So those are your raw input minimums and maximums. You put "0" and "1000" in the engineering units minimum and maximum.
The output will now be scaled from 0-1000 PSI, when the input goes from 3120-15603.
The SCP command is easier but if you prefer doing the math yourself, then use the SCL command. The "rate" is another word for "slope" or m, in the conventional equation form of Y=mX+B. The offset is B. Note that the rate is automatically scaled by 10,000 so multiply your scale factor by 10,000 when you plug the number in. This command is much older and goes back to the first couple versions of the SLC which did not have floating point math.
For example, the slope in this case would be (1000-0)/(15603-3120) = 0.08011. Multiplying by 10,000 gives us a rate of 801. The offset is then -0.08011*(3120)=-250. If you wish, you could also load this all into a CPT block. The CPT block expression would be 0.08011*(raw value)-250. The SCL command is essentially just a pre-written CPT function and a holdover from 20 years ago.
As you can see, there's a lot of math involved and you can't check a SCL command "by inspection". An SCP command just takes the raw numbers and does it for you.
On a PLC-5, you either set the scaling on the I/O card, or you have to use the CPT method. On a CLX, which has both the SCP and CPT instruction, AND scaling on-card, I rarely see anyone using any method other than setting up the engineering units on the cards themselves because this is so trivially easy to do with a CLX processor.