EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Page 541

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
539
7
Program example
The following program converts the decimal, 5-digit ASCII data and sign set at D20 through D22 to BIN values, and stores
the result at D0.
The following program converts the decimal, 10-digit ASCII data and sign set at D20 through D25 to BIN values and stores
the result at D10 and D11.
[Ladder Mode] [List Mode]
[Operation]
[Ladder Mode] [List Mode]
[Operation]
Step Instruction Device
D21
2D
H
( )20
H
(space)
20
H
(space)32
H
(2)
b15 b8b7 b0
D20
D0
BIN value
276
37
H
(7)36
H
(6)D22
- 276
(Regarded as -00276)
Step Instruction Device
D21
D22
D23
20
H
(space)20
H
(space)
20
H
(space)20
H
(space)
b15 b8
b7
b0
33
H
(3)39
H
(9)
D20
36
H
(6)38
H
(8)
33
H
(3)37
H
(7)
30
H
(0)
D24
D25
D11
BIN value
D10
(Regarded as +0003968370)
396 8370
3968370

Table of Contents

Related product manuals