Panasonic FP Series Programming Manual page 1252

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

40.4 Real Numbers
Instructions used with the FP10SH and the FP2 series allow the use of real numbers for calculation. Real
number types available are floating point constants and BCD constants.
40.4.1 Floating Point Constant (f)
Floating point constants consist of two words processed by single precision floating point logic. There are up to
seven effective digits. The mantissa is 23 bits and the exponent is 8 bits. (Based on IEEE754)
Bit position
...
31 30 29
23
22
Exponents (8-bit)
Sign bit:
0 positive
1 negative
Numbers which can be used are: ±(1.175494 x 10
40.4.2 BCD Type Constant
BCD-type floating-point constants are processed as three words as shown below.
DTx
DTx+1
DTx+2
Example
Numbers which can be used are as follows: -9999.9999 to 9999.9999
The principal instructions which allow use of BCD constants are:
F300
F301
F302
F303
F304
F305
In FPWIN Pro use 16# to specify a BCD constant. This data type is implemented as ARRAY 0..2 OF WORD.
...
16
15
14 13 12
Mantissa (23-bit)
Sign: 0 when positive
1 when negative
Integer:
Decimal:
BSIN
BCD type
BCOS
BCD type
BTAN
BCD type
BASIN
BCD type
BACOS BCD type
BATAN
BCD type
...
3
2
1
to 3.402823 x 10
).
-38
38
sine operation
cosine operation
tangent operation
arcsine operation
arccosine operation
arctangent operation
Appendix Programming Information
0
1251

Advertisement

Table of Contents
loading

Table of Contents