![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030843.webp)
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
0
F A
0
D00100
D00101
D00102
∆
Y
Offset
Contents of R (D00200)
Offset
07D0 Hex
Contents of S (CIO 0200)
0FA0 Hex
(
∆
X)
Содержание SYSMAC CS Series
Страница 2: ......
Страница 4: ...iv ...
Страница 30: ...xxx ...
Страница 186: ...146 List of Instructions by Function Code Section 2 4 ...
Страница 194: ...154 3 35 4 MOVE BIT MOVBC 568 1273 3 35 5 BIT COUNTER BCNTC 621 1275 3 35 6 GET VARIABLE ID GETID 286 1277 ...
Страница 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Страница 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Страница 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Страница 1392: ...1352 ASCII Code Table Appendix A ...
Страница 1404: ...1364 Revision History ...