Fnc117 - Eval / Character String To Floating Point Conversion - Mitsubishi Electric FX3G SERIES Programming Manual

Programmable controllers
Hide thumbs Also See for FX3G SERIES:
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
18.5
FNC117 – EVAL / Character String to Floating Point Conversion
Outline
This instruction converts a character string (ASCII codes) into binary floating point data.
On the other hand, the VAL (FNC201) instruction converts a character string (ASCII codes) into binary data.
1. Instruction format
FNC 117
D
EVAL
2. Set data
Operand Type
S
D
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS
S
D
Explanation of function and operation
1. 32-bit operation (DEVAL and DEVALP)
A character string stored in
Command
input
FNC117
DEVAL
A specified character string may be in the decimal point format or exponent format. A character string in either format
can be converted into binary floating point data.
b15
ASCII code for 1st character
S
+1
S
ASCII code for 3rd character
+2
ASCII code for 5th character
S
+3
ASCII code for 7th character
S
+4
S
498
Mnemonic
16-bit Instruction
P
Head device number storing character string data to be converted into binary floating point
data
Head device number storing converted binary floating point data
Digit Specification
S
and later is converted into binary floating point, and stored to [
S
D
b8 b7
ASCII code for 2nd character
ASCII code for 4th character
ASCII code for 6th character
Indicates the end of the character string.
18.5 FNC117 – EVAL / Character String to Floating Point Conversion
→ For a character string, refer to Section 5.3.
→ For handling of floating point, refer to Subsection 5.1.3.
→ For VAL (FNC201) instruction, refer to Subsection 26.2.
Operation Condition
32-bit Instruction
Description
Word Devices
Special
System User
Unit
T
C D R U \G
b0
ASCII code for sign
00H
18 Floating Point – FNC110 to FNC139
Mnemonic
Operation Condition
DEVAL
9 steps
DEVALP
Character string
Real number (binary)
Others
Con-
Real
Index
stant
Number
V
Z Modify K
H
E
D
+1
D
D
Binary floating point
(real number)
Continuous
Operation
Pulse (Single)
Operation
Data Type
Charac-
Pointer
ter String
" "
P
+1,
D
].

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents