![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268843.webp)
804
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 CS1D-CPU**
Страница 3: ...iv...
Страница 29: ...xxx...
Страница 185: ...146 List of Instructions by Function Code Section 2 4...
Страница 193: ...154 3 35 4 MOVE BIT MOVBC 568 1274 3 35 5 BIT COUNTER BCNTC 621 1276 3 35 6 GET VARIABLE ID GETID 286 1278...
Страница 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Страница 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Страница 1391: ...1352 ASCII Code Table Appendix A...