EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - From BCD Format Data to Floating-Point Data

Mitsubishi Electric MELSEC-Q/L
1084 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
592
7 APPLICATION INSTRUCTIONS
7.11 Character String Processing Instructions
From BCD format data to floating-point data
EREXP(P)
*1 Applicable for the Universal model QCPU, LCPU.
Processing details
Converts the BCD type floating point data designated by (S1) to the 32-bit floating decimal point real number data
according to the decimal fraction digits specified by (S2), and stores the result into the area starting from the device
designated by (D).
The sign at (S1) and the sign for the exponent at (S1) +3 is set at 0 for a positive value and at 1 for a negative value.
0 to 38 can be set for the BCD exponent of (S1)+4.
0 to 7 can be set for the decimal fraction digits of (S2).
(S1): Head number of the devices where BCD type floating point format data is stored (BIN 16 bits)
(S2): Decimal fraction digits data (BIN 16 bits)
(D): The device where the converted 32-bit floating point real number data will be stored (real number)
Setting
data
Internal device R, ZR J\ U\G Zn Constant
K, H
Others
Bit Word Bit Word
(S1)   
(S2)   
(D)  
*1

Process
High
performance
Redundant
Universal
LCPU
Basic
Command
Command
EREXPP
EREXP
EREXPP
D
S1
S2
D
S2
S1
EREXP
BCD
floating-point
format
Sign
BCD 7 digits
Sign (for exponent)
BCD exponent
+4
+3
+2
+1
Positive: 0
Negative: 1
Positive: 0
Negative: 1
(0 to 38)
32-bit floating-point
real number
+1
Number of digits in decimal fraction
(0 to 7)
D
S1
S1
S1
S1
S1
S2
D
S1
S1
S1
S1
S1
S2
BCD
floating-point
format
1
5423
H
0321H
0
2
+4
+3
+2
+1
6
(Number of digits in decimal fraction)
(Sign)
3215423
H (BCD 7 digits)
(Sign (for exponent))
(BCD exponent)
+1
DD
423E+2-3.215

Table of Contents

Related product manuals