![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030052.webp)
12
General Instruction Characteristics
Section 1-1
Signed Binary Numbers
Negative signed-binary numbers are expressed as the 2’s complement of the
absolute hexadecimal value. For a decimal value of
–
12,345, the absolute
value is equivalent to 3039 hexadecimal. The 2’s complement is 10000
–
3039
(both hexadecimal) or CFC7.
To convert from a negative signed binary number (CFC7) to decimal, take the
2’s complement of that number (10000
–
CFC7 = 3039), convert to decimal
(3039 hexadecimal = 12,345 decimal), and add a minus sign (
–
12,345).
BCD data
0 to 9,999 0000 to 9999
Floating-
point deci-
mal
---
---
Double-
precision
floating-
point deci-
mal
---
---
Name
Format
Decimal
range
Hexadecimal
range
15 14 13 12 11 10 9
8 7
6
5
4
3
2
1
0
BCD
2
3
2
2
2
1
2
0
2
3
2
2
2
1
2
0
2
3
2
2
2
1
2
0
2
3
2
2
2
1
2
0
0 to 9
0 to 9
0 to 9
0 to 9
Decimal
31
30
29
23
22
21
20 19 18
17
3
2
1
0
Exponent
Mantissa
Note
This format conforms to IEEE754 standards for single-precision floating-point data
and is used only with instructions that convert or calculate floating-point data. It can
be used to set or monitor from the I/O memory Edit and Monitor Screen on the CX-
Programmer (not supported by the Programming Consoles). As such, users do not
need to know this format although they do need to know that the formatting takes up
two words.
The exponent includes 8 bits from bit 23 to bit 30
and indicates n plus 127 in 2
n
in binary.
The mantissa includes 23 bits from bit 00 to bit 22
and indicates this portion below the decimal point
in 1.
@@@
..... in binary.
1: negative or 0: positive
Sign of
mantissa
Binary
Value = (
−
1)
Sign
x 1.[Mantissa] x 2
Exponent
Mantissa
Sign (bit 31)
Exponent
63 62 61
52
51
50
49 48
47 46
3
2
1
0
Exponent Mantissa
Sign (bit 63)
Mantissa
Exponent
Note
This format conforms to IEEE754 standards for double-precision floating-point
data and is used only with instructions that convert or calculate floating-point
data. It can be used to set or monitor from the I/O memory Edit and Monitor
Screen on the CX-Programmer (not supported by the Programming
Consoles). As such, users do not need to know this format although they do
need to know that the formatting takes up four words.
Sign of
mantissa
Binary
Value = (
−
1)
Sign
x 1.[Mantissa] x 2
Exponent
1: negative or 0: positive
The 52 bits from bit 00 to bit 51 contain the mantissa,
i.e., the portion below the decimal point in 1.
@@@
.....,
in binary.
The 11 bits from bit 52 to bit 62 contain the exponent
The exponent is expressed in binary as 1023 plus n in
2
n
.
Summary of Contents for SYSMAC CS Series
Page 2: ......
Page 4: ...iv ...
Page 30: ...xxx ...
Page 186: ...146 List of Instructions by Function Code Section 2 4 ...
Page 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Page 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Page 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Page 1392: ...1352 ASCII Code Table Appendix A ...
Page 1404: ...1364 Revision History ...