EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Page 573

Mitsubishi Electric MELSEC-Q/L
1084 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 APPLICATION INSTRUCTIONS
7.11 Character String Processing Instructions
571
7
Program example
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.
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] [List Mode]
[Operation]
[Ladder Mode] [List Mode]
[Operation]
Instruction Device
Step
R1
2D
H
(-)20
H
(space)
30
H
(0)31
H
(1)
b15 b8b7 b0
R2 2E
H
(.)32
H
(2)
33
H
(3)34
H
(4)R3
35
H
(5)32
H
(2)
31
H
(1)
R4
R5
00
H
Ignored These are cut
D1
5
2
D0
R0
-1
.
234
1
.
2 3 4
5
2 10-
Instruction Device
Step
D11
20H (space)20H (space)
31
H (1)2EH (.)
b15 b8
b7
b0
D12 32
H (2)33H (3)
34
H (4)35H (5)
D13
45
H (E)2DH (-)
30
H (0)
D14
D15 32H (2)
D16 00
Ignored
1
.
2
3
4
5
E
0-
2
Ignored
D101 D100
D10
1
.
234
5E
-2

Table of Contents

Related product manuals