498
EREXP, EREXPP
: Head number of the devices where BCD type floating point format data is stored (BIN 16 bits)
: Decimal fraction digits data (BIN 16 bits)
: The device where the converted 32-bit floating point real number data will be stored (real number)
*1:
Available only in multiple Universal model QCPU and LCPU
F
unct
i
on
(1) Converts the BCD type floating point data designated by to the 32-bit floating decimal point real number data
according to the decimal fraction digits specified by , and stores the result into the area starting from the device
designated by .
(2) The sign at and the sign for the exponent part at +3 is set at 0 for a positive value and at 1 for a negative value.
(3) 0 to 38 can be set for the BCD exponent of +4.
(4) 0 to 7 can be set for the decimal fraction digits of .
7.11.21 EREXP, EREXPP
From BCD format data to floating-point data
7.11.21
EREXP, EREXPP
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
K, H
Other
Bit
Word
Bit
Word
––
––
––
––
––
––
––
––
––
*1
––
––
Process
High
performance
Redundant Universal
LCPU
Bas
i
c
Command
Command
E
R
E
XPP
EREXP
EREXPP
D
S1
S2
D
S2
S1
E
R
E
XP
S1
S2
D
S1
D2
D
S1
S2
D
BCD type floating
point format
Sign
BCD 7 digits
Sign (exponent part)
BCD exponent
+4
+3
+2
+1
When positi
v
e: 0
When negati
v
e: 1
When positi
v
e: 0
When negati
v
e: 1
(0 to 38)
32-bit floating-point
real number
+1
Number of digits in decimal fraction (0 to7)
D
S1
S1
S1
S1
S1
S2
D
S1
S1
S1
S2
S1
S1
S1
S1
S1
S2
BCD type floating
point format
1
5423
H
0321
H
0
2
+4
+3
+2
+1
6
(Number of digits in decimal fraction)
(Sign)
3215423
H
(BCD 7 digits)
(Sign (exponent part))
(BCD exponent)
+1
D
D
3 . 2 1 5 4 2 3 E+ 2