Mitsubishi Electronics QCPU Welding System User Manual


  Open as PDF
of 1204
 
7-248
EREXP(P)
7.11.21 From BCD format data to floating decimal point
(EREXP(P))
EREXP(P)
*1:Available only in multiple Universal model QCPU
Function
(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 .
: 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)
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
K, H
Other
Bit Word Bit Word
–– –– –– –– –– ––
––
–– ––
*1
–– ––
Process
High
performance
Redundant
Universal
Basic
Command
Command
EREXPP
EREXP
EREXPP
D
S1
S2
D
S2
S1
EREXP
S1
S2
D
S1
S2
D
S1
S2
D
BCD type floating
point format
Sign
BCD 7 digits
Sign (exponent part)
BCD exponent
+4
+3
+2
+1
When positive: 0
When negative: 1
When positive: 0
When negative: 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
0321H
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.21
5
423E
+
2