Mitsubishi MELSEC Q Series Programming Manual page 600

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

Advertisement

EVAL(P)
Program Example
(1) The following program converts the character string stored in the area starting from R0 to a
32-bit floating decimal point type real number, and stores the result at D0 and D1 when X20
is turned ON.
[Ladder Mode]
[Operation]
b15
R0
20
R1
R2
R3
R4
R5
(2) The following program converts the character string stored in the area starting from D10 to a
32-bit floating decimal point type real number, and stores the result at D100 and D101 when
X20 is turned ON.
[Ladder Mode]
[Operation]
b15
D10
D11
D12
D13
D14
D15
D16
7-226
b8b7
(space)
2D
(-)
H
H
31
(1)
30
(0)
H
H
32
(2)
2E
(.)
H
H
34
(4)
33
(3)
H
H
32
(2)
35
(5)
H
H
00
31
(1)
H
H
1 . 2 3 4 5 2 1
-
0
Ignored
These are cut
b8b7
20
(space)
20
(space)
H
H
2E
(.)
31
(1)
H
H
33
(3)
32
(2)
H
H
35
(5)
34
(4)
H
H
2D
(-)
45
(E)
H
H
32
(2)
30
(0)
H
H
00
1 . 2 3 4 5 E
-
0
2
Ignored
Ignored
[List Mode]
Step
Instruction
b0
D1
D0
-1 . 234
5 2
[List Mode]
Step
b0
D101
D100
1 . 2 3 4 5 E -2
Device
Instruction
Device

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents