Data Control Instructions
P1
R
P1
R
804
Contents of R (D00200)
1068Hex
(∆X)
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 000000 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 D00100 to D00102, and the result is output to D00200.
Contents of R (D00200)
Offset
07D0 Hex
0FA0 Hex
( X)
P1:
P1+1:
P1+2:
Contents of S (CIO 0205)
P1:
D00100
P1+1:
D00101
P1+2:
D00102
0400 ( Y)
Contents of S (CIO 0200)
Section 3-18
Offset
∆X
∆Y
Offset
X
0 F A
0
Y
Need help?
Do you have a question about the SYSMAC CJ - REFERENCE MANUAL 01-2008 and is the answer not in the manual?
Questions and answers