7-226
7.11 String Processing Instructions
7.11.19 BCD format to floating-point data conversion
EREXP
7.11.19
BCD format to floating-point data conversion
EREXP
Function
(1) Converts the floating-point data in BCD format specified for
to the floating-point real
number data according to the decimal fraction digits specified for
, and stores the result to
the device specified for
and the following devices.
(2) The sign in
and the sign for the exponent part in
+3 is set to 0 for a positive value and
to 1 for a negative value.
EREXP(P)
P: Executing condition
:
indicates any of the following
instructions.
EREXP
EREXPP
Input argument,
EN:
Executing condition
:Bit
s1:
Start number of the device that stores floating-point data in
BCD format
:ANY16
s2:
Decimal fraction data
:ANY16
Output argument,
ENO:
Execution result
:Bit
d:
Floating-point real number data
:Single-precision real
Setting
data
Internal device
R, ZR
J
\
U
\G
Zn
Constant
K, H
Others
Bit
Word
Bit
Word
−
−
−
−
−
−
−
−
−
−
Universal
UD
High
Performance
Structured ladder
ST
ERE
XP
EN
ENO
s
1
d
s
2
ERE
XP
(EN,
s
1,
s
2, d);
ENO:=
s
1
s
2
d
s
1
s
2
d
B
C
D
t
y
pe
f
l
oat
i
ng
-
po
i
nt
format
Si
gn
B
C
D
7 di
g
i
ts
Si
gn
(
exponent
part
)
B
C
D
exponent
+4
+3
+2
+1
W
hen
pos
i
t
i
ve
: 0
W
hen
negat
i
ve
: 1
W
hen
pos
i
t
i
ve
: 0
W
hen
negat
i
ve
: 1
(0
to
38)
Fl
oat
i
ng
-
po
i
nt
rea
l
num
b
er
N
um
b
er
of
di
g
i
ts
i
n
d
ec
i
ma
l
fract
i
on
(0
to
7)
s
1
s
1
s
1
s
1
s
1
s
2
d
s
1
s
1
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......