EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 692

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
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...
659
Data Control Instructions Section 3-17
Examples Scaling 1 to 5-V Analog Input to 0 to 300
In the following example, it is assumed 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 0000 and
0300 BCD.
When CIO 0.00 is ON, the contents of CIO 2005 is scaled using the linear
function defined by
X (0FA0), Y (0300), and the offset (0). These values are
contained in D100 to D102, and the result is output to D200.
X
Y
(X)
P1:
P1+1:
P1+2:
P1
R
0.00
D100
D200
D100
D101
D102
Contents of R (D200)
Contents of S (CIO 2005)
Offse
t
1068 Hex
0.8 V
1 V
5.2 V
5 V
0015

Table of Contents

Related product manuals