User Manual Instruction Manual

Publication 1746-UM009B-EN-P - September 2007
50 Write Ladder Logic
2. Then we shift the linear relationship along the input value axis.
3. Now we compute the offset for the shifted linear relationship.
The offset is 205, well below 32,767. The slope remains 3685/10
(> 3.2767), so you cannot use the SCL instruction for scaling.
9.5 V = 3890
(scaled max)
0.5 V = 205
(scaled min)
Scaled
Value
Input Value100%
(input max)
90%
(input min)
Offset = scaled min – (input min x slope)
= 205 – [0 x (368.5)] = 205
Slope = (scaled range) / (input range) = (3890 – 205) / 10 = 3685/10
Scaled value = (input value x slope) + offset = [input value x 3685 /10] + 205