Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
454
18 Applied Instructions (Floating Point)
18.5 DEVAL / Character String to Floating Point Conversion
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
18.5 DEVAL / Character String to Floating Point Conversion
Outline
This instruction converts the character string (ASCII code) into binary floating decimal point data.
You can also use the VAL instruction for converting the character string (ASCII code) into BIN data.
As for character string, refer to FX Structured Programming Manual [Device & Common].
As for handling of floating decimal point, refer to FX Structured Programming Manual [Device &
Common].
As for VAL instruction, refer to section 26.2.
1. Format and operation, execution form
2. Set data
3. Applicable devices
Function and operation explanation
1. 32-bit operation (EVAL/EVALP)
The character string stored after the device specified by is converted into binary decimal floating point
data, and stored in the device specified by .
FX3U(C) FX3G(C) FX3S FX2N(C) FX1N(C) FX1S FXU/FX2C FX0N FX0(S)
Instruction
name
Operation
Execution
form
Expression in each language
Structured ladder/FBD ST
DEVAL 32 bits Continuous DEVAL(EN, s, d);
DEVALP 32 bits Pulse DEVALP(EN, s, d);
Variable Description Data type
Input
variable
EN Execution condition Bit
Head device storing the character string to be converted into binary floating
point decimal data.
String
Output
variable
ENO Execution state Bit
Device for storing the converted binary floating point decimal data.
FLOAT(Single
Precision)
Operand
type
Bit Devices Word Devices Others
System user Digit designation
System
user
Special
unit
Index
Cons
tant
Real
Number
Character
String
Pointer
XYMTCS
D.b
KnX KnY KnM KnS T C D R
U\G
V Z Modifier K H E
""
P
z z z z zzzz z z
zz z z
DEVAL
EN ENO
d
s
DEVALP
EN ENO
d
s
Command
input
DEVAL
EN ENO
d
s
Head device storing the character
string to be converted into binary
floating point decimal data
Device for storing the converted
binary floating point decimal data