Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual page 51

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

General Instruction Characteristics
Name
BCD data
15 14 13 12 11 10 9
3
2
BCD
Decimal
Floating-
31 30 29
point deci-
mal
Sign of
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.
Double-
63 62 61
precision
floating-
point deci-
mal
Sign of
mantissa
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.
Signed Binary Numbers
12
Format
8
2
1
0
3
2
1
0
2
2
2
2
2
2
2
0 to 9
0 to 9
23
22
21
20 19 18 17
Exponent
Binary
Sign
Value = (−1)
x 1.[Mantissa] x 2
Sign (bit 31)
1: negative or 0: positive
Mantissa
The mantissa includes 23 bits from bit 00 to bit 22
and indicates this portion below the decimal point
in 1.@@@..... in binary.
Exponent
The exponent includes 8 bits from bit 23 to bit 30
and indicates n plus 127 in 2
52
51 50 49 48 47 46
Exponent
Binary
Sign
Value = (−1)
x 1.[Mantissa] x 2
Sign (bit 63)
1: negative or 0: positive
Mantissa
The 52 bits from bit 00 to bit 51 contain the mantissa,
i.e., the portion below the decimal point in 1.@@@.....,
in binary.
Exponent
The 11 bits from bit 52 to bit 62 contain the exponent
The exponent is expressed in binary as 1023 plus n in
n
2
.
Negative signed-binary numbers are expressed as the 2's complement of the
absolute hexadecimal value. For a decimal value of
value is equivalent to 3039 hexadecimal. The 2's complement is 10000
(both hexadecimal) or CFC7.
To convert from a negative signed binary number (CFC7) to decimal, take the
2's complement of that number (10000
(3039 hexadecimal = 12,345 decimal), and add a minus sign (
7
6
5
4
3
2
1
3
2
1
0
3
2
1
2
2
2
2
2
2
2
0 to 9
0 to 9
3
2
1
Mantissa
Exponent
in binary.
n
3
2
Mantissa
Exponent
Section 1-1
Decimal
Hexadecimal
range
0 to 9,999 0000 to 9999
0
0
2
---
---
0
---
---
1
0
12,345, the absolute
CFC7 = 3039), convert to decimal
12,345).
range
3039

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SYSMAC CJ - REFERENCE MANUAL 01-2008 and is the answer not in the manual?

Questions and answers

Table of Contents