analog input m/m error

gibson

Member
Join Date
Sep 2012
Location
mumbai
Posts
46
Hey guys, I am using ML1200 with Analog module IF4. When i apply voltage (0-10V) across Terminals of Analog module i am getting wrong value on SCP instruction.


Consider, voltage across terminal is 3.38V but i am getting following values on PLC.
>> I:1/2 = 2245
SCP settings:
>> Input Min = 0
>> Input Max = 31206
>> Scaled Max = 100
>> Scaled Min = 0
>> Output = 7

Input switches are in Voltage position

Thanks
 
The SCP calculation looks correct to me. Is your Input Max correct for this PLC?

slope = ( scaled max - scaled min) / (input max - input min)
offset = scaled min - (input min X slope)
Scaled Output = (input value X slope) + offset

Slope = (100 - 0)/(31206 - 0) = 0.0032045
Offset = (0 - (0 x 0.0032045) = 0
Scaled Output = I:1.2 * 0.0032045 + 0 = 2245 * 0.0032045 = 7.194

The 7.194 would be 7.194 out of 100 (which is the same ratio as 2245 to 31206). What number did you expect? If you wanted to convert the input to voltage, then substitue Scaled Max = 10 volts (which calculates to 0.7194 volts).

On the other hand, if your 1762-IF4 module is configured for "Scaled for PID" instead of "Raw/Proportional", then your results will be different.
 
Last edited:
Wrong value?!...Really?!...đź““
Let's see...

(2245 X 100) / 31206 = 7.1941293344102416202012433506377

Send your SCP Output to a Float Data Table address instead of an integer and you will get the decimals also.
 
Can you tell us what two terminals you are measuring across?

Can you post your program, its .RSS file (zip it first)? Or a snap shot of the cards configuration.

Double check the switches.
 
Last edited:
The SCP calculation looks correct to me. Is your Input Max correct for this PLC?

slope = ( scaled max - scaled min) / (input max - input min)
offset = scaled min - (input min X slope)
Scaled Output = (input value X slope) + offset

Slope = (100 - 0)/(31206 - 0) = 0.0032045
Offset = (0 - (0 x 0.0032045) = 0
Scaled Output = I:1.2 * 0.0032045 + 0 = 2245 * 0.0032045 = 7.194

The 7.194 would be 7.194 out of 100 (which is the same ratio as 2245 to 31206). What number did you expect? If you wanted to convert the input to voltage, then substitue Scaled Max = 10 volts (which calculates to 0.7194 volts).

On the other hand, if your 1762-IF4 module is configured for "Scaled for PID" instead of "Raw/Proportional", then your results will be different.
Yes Input max is correct 31206 for 10V but for +3.38V the value on Input I:1/2 should be around 10000 right ?

Module is configured as Raw/proportional
 
Your OP states that the SCP instruction returns erroneous results...This is not the case...
The issue is the module's hardware configuration/scaling.
Your 1762-IF4 module set for voltage has a range of -10 VDC to 10 VDC hence your SCP instruction should have an Input Min =-32767 (-31206) and not 0.
 
Last edited:
Your OP states that the SCP instruction returns erroneous results...This is not the case...
The issue is the module's hardware configuration/scaling.
Your 1762-IF4 module set for voltage has a range of -10 VDC to 10 VDC hence your SCP instruction should have an Input Min =-32767 (-31206) and not 0.


I disagree, the OP has the SCP right. I suspect the modules configuration or where the voltage measurement is taken. If done as you stated the scaled min would have to be -100.
The OP should post the program.

See data format info PDF
 
Last edited:
Though Mickey posted data for a output module the format is still correct. I agree that the SCP is fine given that he is not measuring negative voltages. The SCP doesn't have to have the full range of the module to be correct, just a correct mapping of two seperated points. Zero minimum input to zero scaled is fine.
 
Last edited:
If you are still "there", have you tried Input Min = -31206 and Scaled Min = -100?
This is quite interesting...
The 1761-IF4 configuration is done strictly via RSLogix 500:
either 4-20 mA or -10 VDC to +10 VDC for Input Ranges
and
either Raw Proportional or Scaled for PID Data Format.
 

Similar Topics

Im trying to calculate the measurement error when using a 4bit resolution input module with a 0-5V range to measure a 5V signal. What is the...
Replies
31
Views
7,205
Hi everyone, Our company has had a problem with a vendors machine, it keeps failing parts. As we all know, no one makes bad parts so its got to...
Replies
2
Views
3,313
Hello I'm using AB compact logix with its 1769 IF-8. For 4-20mA i configured the card to use the data format of 4000-20000. using a simulator...
Replies
2
Views
2,412
I'm having trouble calming down 2 Tempo Sonics. I'm using Studio 5000 CompactLogix my Raw value is jumping around from 8575.0 to 8755.0 at a...
Replies
30
Views
1,156
I cannot add SLC500 analog input tag (I: 8.3) to EZSeries Touch Panel Editor (V 5.3). I used all the listed tag datatype but it all says "Invalid...
Replies
10
Views
265
Back
Top Bottom