![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030839.webp)
799
Data Control Instructions
Section 3-18
In this example, values from 0000 to 00C8 hexadecimal will be converted to
negative values. SCL(194), however, can output only unsigned BCD values
from 0000 to 9999, so 0000 BCD will be output whenever the contents of
D00000 is between 0000 and 00C8 hexadecimal.
Reverse Scaling
Reverse scaling can also be used by setting As < Bs and Ar > Br. The follow-
ing relationship will result.
Reverse scaling can be used, for example, to convert (reverse scale) 1 to 5 V
(0000 to 0FA0 hexadecimal) to 0300 to 0000, respectively, as shown in the fol-
lowing diagram.
(BCD)
(BIN)
(BCD)
(BIN)
P1: D00100
P1+1: D00101
P1+2: D00102
P1+3: D00103
+
+00C8 He
x
Contents of D 00200 (R)
Point B
Point A
Contents of D 00000 (S)
Point A (00C8 Hex
→
0000 (BCD))
Point B (1068 Hex
→
0300 (BCD))
The value in CIO
0200 plus 00C8
hexadecimal
S (unsigned binary)
Point B
Point A
R (unsigned BCD)
R
Point B
Point A
Содержание 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 ...