1.4 Explanation of Constants
1-79
1.4.4 BCD Type Real Numbers (H) (for FP2, FP2SH and FP10SH)
Range of BCD type real numbers that can be used in operations
The range of real −number data that can be stored in the memory area is as noted below.
−9999.9999 to +9999.9999
Data stored in the memory area in one−word units, with the positive/negative sign
coming first, followed by the integer segment and then by the decimal point and any
subsequent digits.
One−word BCD One−word BCD One−word BCD
Signs
H0: Positive value
H1: Negative value
Integer segment
H0 to H9999
Decimal point segment
H0 to H9999
Area in which the BCD type real number is stored
In the BCD type real number operation instructions, the area in which data converted
to real numbers is stored consists of a three−word area for each data element. As a
result, in instructions such as that used to send real−number data to a storage area and
in other operations, data should be moved in units of three words.
Example 1: If DT0 is specified as the area in which BCD type real−number
data is to be stored, the data will be written to “DT0 to DT2”.
F300 BSIN, H45, D70
Operation results
H0
H0
Sign
Integer segment
Decimal point segment
Areas in which data are stored
DT0
DT1
DT2
+
0.
7071
H7071
X10
Example 2: When sending BCD type real−number data stored in “DT0 to
DT2”, the F10 (BKMV) block transmission instruction or a similar
instruction should be used, and the data sent in three−word
units.
F10 BKMV, DT0, DT2, DT100
H0
H0
Transmission destination
DT100
DT101
DT102
H7071
X10
H0
H0
Transmission source
DT0
DT1
DT2
H7071