Conversion From Character String To Floating Decimal Point Data (Eval(P)) - Mitsubishi MELSEC Q Series Programming Manual

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

7.11.12
Conversion from character string to floating decimal point
data (EVAL(P))
EVAL(P)
EVAL
EVALP
Setting
Data
S
Function
(1) Converts character string stored in the area starting from the device number designated by
to 32-bit floating point type real number, and stores result at device designated by
S
(2) The designated character string can be converted to 32-bit floating point type real number
data either in the decimal point format or the exponent format.
(a) When using decimal point format
Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.
Command
Command
: Character string data to be converted to 32-bit floating decimal point real number data or head number of the
S
devices where the character string data is stored (character string)
: Head number of the devices where the converted 32-bit floating decimal point real number data will be stored
D
(real number)
Internal Devices
R, ZR
Bit
Word
––
––
D
b15
b8 b7
ASCII code for the 1st character
S
ASCII code for the 3rd character
S
+1
+2 ASCII code for the 5th character
S
ASCII code for the 7th character
S
+3
S
+4
Indicates the end
of character string
b15
b8b7
S
31
(1)
H
S
+1
30
(0)
H
S
+2
38
(8)
H
S
+3
32
(2)
H
S
+4
-
1
.
Ver.
Basic
J
\
U
\G
Bit
Word
––
––
––
*1
*1: Available on Universal model QCPU and LCPU
b0
ASCII code for the sign
ASCII code for the 2nd character
ASCII code for the 4th character
ASCII code for the 6th character
00
H
b0
2D
(-)
H
2E
(.)
H
37
(7)
H
31
(1)
H
00
H
0 7 8 1 2
EVAL(P)
High
Process
Redundant Universal
performance
EVAL
S
D
EVALP
S
D
Constants
Zn
$
––
––
––
D
+1
D
32-bit floating-point
real number
D
+1
D
-1 . 0 8 12
7
32-bit floating-point
real number
1
2
LCPU
3
4
6
6
7
Other
––
8
––
.
D
7-223

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents