Rockwell Automation 1746-FIO4V SLC 500 Fast Analog I/O/ User Manual User Manual
Page 55

Publication 1746-UM009B-EN-P - September 2007
Write Ladder Logic 55
Rate = slope x 10,000
Rate
= (scale range / input range) x 10,000
Rate
= 3276 / 1638 x 10,000
Rate
= 2 x 10,000
Rate
= 20,000
If the slope was greater than 3.2767, you could not use the SCL
instruction because the rate would exceed 32,767, a value too large to
handle.
Example Program for SLC 5/02 (or later) Processors
] [
GREATER THAN
Source A
Source B
I:1.0
2047
Rung 2:0
Set in-range bit
Rung 2:1
Check for below range
Rung 2:2
Check for above range
B3/0
(U)
LES
GRT
SCL
LESS THAN
Source A
Source B
I:1.0
409
SCALE
Source
Rate (/10,000)
Offset
Dest
I:1.0
20,000
–818
N7:0
B3/0
(L)
MO
MOVE
Source
Dest
0
N7:0
B3/0
B3/0
(U)
MOV
MOVE
Source A
Dest
3276
N7:0
Rung 2:3
Scale the analog input
Rung 2:5
Rung 2:4
Move value to output channel 0
END
MOV
MOVE
Source A
Dest
N7:0
0:1.0