EasyManua.ls Logo

Omron CJ - INSTRUCTIONS

Omron CJ - INSTRUCTIONS
1308 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...
679
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Data Control Instructions
3
SCL2
z 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.
X
P1:
P1+1:
P1+2:
0400 (Y)
P1
R
0FA 0
D100
D101
D102
Y
Offset
Contents of R (D200)
Offset
07D0 Hex
Contents of S (CIO 200)
0FA0 Hex
(X)
0.00
D100
D200

Table of Contents

Related product manuals