EasyManua.ls Logo

Omron SYSMAC CJ - REFERENCE MANUAL 08-2008

Omron SYSMAC CJ - REFERENCE MANUAL 08-2008
1405 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
803
Data Control Instructions Section 3-18
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.
X
Y
(X)
P1:
P1+1:
P1+2:
P1
R
Contents of R (D00200)
Contents of S (CIO 0205)
Offset
1068Hex
X
P1:
P1+1:
P1+2:
0400 (Y)
P1
R
0FA 0
D00100
D00101
D00102
Y
Offset
Contents of R (D00200)
Offset
07D0 Hex
Contents of S (CIO 0200)
0FA0 Hex
(X)

Table of Contents

Related product manuals