Eval, Evalp; Conversion From Character String To Floating-Point Data - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

(2) The following program converts the 32-bit floating decimal point type real number data which had been stored at D0 and
D1 in accordance with the conversion designation that is being stored at R10 to R12, and stores the result following D10
when X1C goes ON.
[Ladder Mode]
[Operation]
R10
1 (exponent format)
Conversion format
R11
12
Total number of digits
R12
4
Number of digits
in decimal fraction
D1
D0
. 0 3 2 7 4 5 7
0
8

7.11.12 EVAL, EVALP

Conversion from character string to floating-point data

7.11.12
EVAL, EVALP
EVAL
EVALP
: Character string data to be converted to 32-bit floating decimal point real number data or head number of the devices where the character string data is
S
stored (character string)
: Head number of the devices where the converted 32-bit floating decimal point real number data will be stored (real number)
D
Setting
Internal Devices
Data
Bit
––
S
––
D
*1:
Available on Universal model QCPU and LCPU
Function
(1) Converts character string stored in the area starting from the device number designated by
real number, and stores result at device designated by
[List Mode]
Step
Total number of digits
3
.
2 7 4 6 E
Space
Number of digits
in decimal fraction
Command
Command
R, ZR
Word
Bit
––
––
Instruction
Device
-
0
2
b15
b8 b7
D10
20
(space)
H
D11
2E
(.)
H
D12
37
(7)
H
D13
36
(6)
H
D14
2D
(-)
H
D15
32
(2)
H
00
D16
Automatically stored
Ver.
High
Basic
performance
• Basic model QCPU: The serial number (first five digits) is
"04122" or later.
EVAL
EVALP
J
\
U
\G
Word
––
*1
.
D
EVAL, EVALP
b0
20
(space)
H
33
(3)
H
32
(2)
H
34
(4)
H
45
(E)
H
30
(0)
H
H
Process
Redundant Universal
LCPU
S
D
S
D
Constants
Zn
Other
$
––
––
––
to 32-bit floating point type
S
1
2
3
4
4
6
7
8
––
––
477

Advertisement

Table of Contents
loading

Table of Contents