From Bcd Format Data To Floating Decimal Point (Erexp(P)) - Mitsubishi MELSEC Q Series Programming Manual

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents