Omron CP1E CPU UNIT SOFTWARE User Manual page 58

Cp1e cpu unit software
Table of Contents

Advertisement

4 Understanding Programming
Type
BCD (binary
15
coded deci-
mal)
BCD
2
Decimal
Single-preci-
31
30
29
sion floating-
point decimal
Sign of
mantissa
sign
Value = (-1)
· Sign bit (bit 31): 1: Negative, 0: Positive
· Mantissa: The 23 bits from bit 00 to bit 22 contain the mantissa, i.e., the portion
below the decimal point in 1.
· The 8 bits from bit 23 to bit 30 contain the exponent. The exponent
is expressed in binary as the n in 2
This format conforms to the IEEE 754 standard for single-precision floating-
point data. It is used only with instructions that convert or calculate floating-
point data.
• Input using operands in the CX-Programmer as signed decimal or 32-bit
hexadecimal with the # symbol.
• When inputting operands in the I/O Memory Edit/Monitor Window of the CX-
Programmer as signed decimal values with seven digits or less, the value will
be automatically converted to scientific notation (mantissa× 10
setting and monitoring. Inputs must be made using scientific notation for val-
ues with eight or more digits.
Example: When -1234.00 is input, it will become -1.234000e+003 in scientific
notation. For the mantissa×10
tissa and the value after the e is the signed exponent.
* Data range for single-precision floating-point decimal: -3.402823 × 10
-38
≤ Value ≤ 3.402823 × 10
10
4-14
Data format
14
13
12
11
10
9
8
3
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
Exponent
Binary
Exponent
×1.[Mantissa] × 2
.....,in binary.
Indicates this value.
n
. The actual value is 2
Exponent
38
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
2
1
0
Mantissa
n-127
.
Exponent
, the value before the e is the man-
≤ Value ≤ -1.175494 × 10
38
CP1E CPU Unit Software User's Manual(W480)
4-digit
Decimal
hexadeci-
equivalent
#0 to #9999 #0000 to
0
#9999
0
2
*
) for
-38
, 0, +1.175494 ×
mal

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CP1E CPU UNIT SOFTWARE and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF