660
Data Control Instructions Section 3-17
Scaling 1 to 5-V Analog Input to –200 to 200
In the following example, it is assume that an analog signal from 1 to 5 V is
converted and input to CIO 2005 as 0000 to 0FA0 hexadecimal. SCL2(486) is
used to convert (scale) the value in CIO 2005 to a value between –0200 and
0200 BCD.
When CIO 0.00 is ON, the contents of CIO 2005 is scaled using the linear
function defined by
∆X (0FA0), ∆Y (0400), and the offset (07D0). These values
are contained in D100 to D102, and the result is output to D200.
3-17-9 SCALING 3: SCL3(487)
Purpose Converts signed BCD data into signed binary data according to the specified
linear function. An offset can be input in defining the linear function.
Ladder Symbol
Variations
Applicable Program Areas
X
∆
P1:
P1+1:
P1+2:
0400 (∆Y)
P1
R
0FA 0
D100
D101
D102
∆
Y
0.00
D100
D200
Offset
Contents of R (D200)
Offset
07D0 Hex
Contents of S (CIO 2005)
0FA0 Hex
(∆X)
0.8 V
1 V 5.2 V
5 V
−0200
−0220
SCL3(487)
S
P1
R
S: Source word
P1: First parameter word
R: Result word
Variations Executed Each Cycle for ON Condition SCL3(487)
Executed Once for Upward Differentiation @SCL3(487)
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification Not supported.
Block program areas Step program areas Subroutines Interrupt tasks
OK OK OK OK