Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
448
18 Applied Instructions (Floating Point)
18.4 DESTR / Floating Point to Character String Conversion
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
Function and operation explanation
1. 32-bit operation (DESTR/DESTRP)
The content (binary floating decimal point data) of the device specified by is converted into character
string depending on the content of the device specified by , and stored in or after the device specified by
. Real number can be directly specified in the device specified by .
The converted data differs depending on the display specification specified by .
2. In the case of decimal point type
The number of all digits that can be specified by +1 is as follows. (Maximum: 24 digits)
When the number of digits below decimal point is "0" . . . . . . . . . . . .All digits 2
When the number of digits below decimal point is other than "0". . . .All digits (decimal digits + 3)
Decimal digits that can be specified by +2 is 0 to 7 digits.
However, please set in the range of decimal digits (all digits - 3).
Command
input
DESTR
EN
s1
s2
ENO
d1
Binary floating decimal point data
to be converted
Head of the storing destination device o
f
the converted character string
Head device storing the display specification
of the numeric value to be converted.
0: Decimal point type
1: Exponential type
All digits
Number of digits
below decimal point
Setting range is 2 to 24.
The converted data differs
depending on the type of .
+2
+1
s2
s2
s2
s2
Decimal point type
All digits
Number of digits
below decimal point
Sign
+1
+2
ASCII code of digit number
(all digits specified value - 1)
ASCII code of digit number
(all digits specified value - 3)
ASCII code of digit number
(all digits specified value - 5)
(Decimal part)
ASCII code of digit number
(all digits specified value - 7)
(Decimal part)
ASCII code of the sign
ASCII code of digit number
(all digits specified value - 2)
ASCII code of
decimal point (.)
(2EH)
ASCII code of digit number
(all digits specified value - 6)
(Decimal part)
0000H
b15
+1
+2
+3
+4
b8 b7 b0
To be stored automatically at the end of character string.
+1
Binary floating decimal point (real number)
d
s1
s2
d
d
d
d
s1
s2
s2