Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
18 Applied Instructions (Floating Point)
18.5 DEVAL / Character String to Floating Point Conversion
457
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
11
Applied Instructions
(Data Operation)
12
Applied Instructions
(High Speed
Processing)
13
Applied Instructions
(Handy
Instruction)
14
Applied Instructions
(External FX I/O
Device)
15
Applied Instructions
(External Device
(optional device))
16
Applied Instructions
(External Device)
17
Applied Instructions
(Data Transfer 2)
18
Applied Instructions
(Floating Point)
19
Applied Instructions
(Data Operation 2)
20
Applied Instructions
(Positioning
Control)
Related devices
As for the manner of using the zero, borrow, or carry flag, refer to the FX Structured Programming
Manual [Device & Common].
Related instructions
Error
In the following cases, it is an operation error, error flag (M8067) is turned ON, and error code is stored in
D8067.
When other characters than "30H" (0) to "39H" (9) are present in the integer part or the decimal part.
(Error code : K6706)
When two or more "2EH" (.) are present in the character string specified by . (Error code : K6706)
When other characters than "45H" (E), "2BH" (+), or "2DH" (-) are present in the exponential part, or when
there are plural exponential parts. (Error code : K6706)
When "00H" is not present in the corresponding device range from . (Error code : K6706)
When the number of characters after is 0 or exceeds 24 characters. (Error code : K6706)
Device Name
Content
Condition Operation
M8020 Zero
The conversion result is really
zero
(when the mantissa part is "0")
Zero flag (M8020) is ON.
M8021 Borrow
Absolute value of conversion
result < 2
-126
The value of is the smallest value (2
-126
) of 32-bit real number,
and borrow flag (M8021) is ON.
M8022 Carry
Absolute value of conversion
result 2
128
The value of is the largest value (2
128
) of 32-bit real number,
and carry flag (M8022) is ON.
Instruction Content
ESTR This instruction converts the binary floating decimal point data into character string (ASCII code).
STR This instruction converts BIN data into character string (ASCII code).
VAL This instruction converts the character string (ASCII code) data into BIN data.