Mitsubishi Electric M800VW Series Programming Manual page 361

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.10 Character String Processing Instructions
 Functions
EVAL
 Converts character string stored in the area starting from the device number designated by (S) to a 32-bit floating-point real
number, and stores result at the device number designated by (D).
 The designated character string can be converted to 32-bit floating-point real number data either in the decimal format or
the exponential format.
b15
ASCII code for the 1st
S
character
ASCII code for the 3rd
S+1
character
ASCII code for the 5th
S+2
character
ASCII code for the 7th
S+3
character
S+4
Indicates the end of character string.
[When using decimal format]
b15
S
31H (1)
S+1
30H (0)
38H (8)
S+2
S+3
32H (2)
S+4
- 1
.
[When using exponential format]
b15
(space)
S
20H
2EH (.)
S+1
S+2
32H (2)
S+3
31H (1)
S+4
2BH (+)
S+5
30H (0)
S+6
.
-
1
3 2 0 1
IB-1501667-B
b8b7
b0
ASCII code for the sign
ASCII code for the 2nd
character
ASCII code for the 4th
character
ASCII code for the 6th
character
00H
b8b7
b0
2DH (-)
2EH (.)
37H (7)
31H (1)
00H
0 7
8 1 2
b8b7
b0
2DH (- )
31H (1)
33H (3)
30H (0)
45H (E)
31H (1)
00H
E
+
1
0
D+1
32-bit floating-point real number
D+1
D
-1.07812
32-bit floating-point real
number
D+1
D
-1.3201E+10
32-bit floating-point real number
340
D

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents