EasyManuals Logo
Home>Omron>Controller>CJ1M-CPU series

Omron CJ1M-CPU series Programming Manual

Omron CJ1M-CPU series
383 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #52 background imageLoading...
Page #52 background image
31
Basic Concepts Section 2-1
Signed Binary Data
In signed binary data, the leftmost bit indicates the sign of binary 16-bit data.
The value is expressed in 4-digit hexadecimal.
Positive Numbers: A value is positive or 0 if the leftmost bit is 0 (OFF). In 4-
digit hexadecimal, this is expressed as 0000 to 7FFF Hex.
Negative Numbers: A value is negative if the leftmost bit is 1 (ON). In 4-digit
hexadecimal, this is expressed as 8000 to FFFF Hex. The absolute of the
negative value (decimal) is expressed as a two’s complement.
Example: To treat –19 in decimal as signed binary, 0013 Hex (the absolute
value of 19) is subtracted from FFFF Hex and then 0001 Hex is added to yield
FFED Hex.
Single-pre-
cision
floating-
point deci-
mal
--- ---
Double-
precision
floating-
point deci-
mal
--- ---
Data type Data format Decimal 4-digit
hexadecimal
31 30 29 23 22 21 20 19 18 17 3 2 1 0
Sign of
mantissa
Exponent
Mantissa
Value = (−1)
Sign
x 1.[Mantissa] x 2
Exponent
Binary
Sign (bit 31)
Mantissa
Exponent
1: negative or 0: positive
The 23 bits from bit 00 to bit 22 contain the mantissa,
i.e., the portion below the decimal point in 1.@@@.....,
in binary.
The 8 bits from bit 23 to bit 30 contain the exponent.
The exponent is expressed in binary as 127 plus n
in 2
n
.
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 formattin
g
takes up two words.
63 62 61 52 51 50 49 48 47 46 3 2 10
Sign of
mantissa
Exponent
Mantissa
Value = (
−
1)
Sign
x 1.[Mantissa] x 2
Exponent
Binary
Sign (bit 63)
Mantissa
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
.
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 formattin
g
takes up four words..

Table of Contents

Other manuals for Omron CJ1M-CPU series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ1M-CPU series and is the answer not in the manual?

Omron CJ1M-CPU series Specifications

General IconGeneral
BrandOmron
ModelCJ1M-CPU series
CategoryController
LanguageEnglish

Related product manuals