Mitsubishi MELSEC Q Series Programming Manual page 589

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

Advertisement

Program Example
(1) The following program reads the character string data stored from D20 to D22 as an integer,
converts it to a BIN value, and stores it at D0 when X0 is ON.
[Ladder Mode]
[Operation]
b15
D20
31
H
D21
2E
H
D22
34
H
D23
(2) The following program reads the character string data stored from D20 to D24 as an integer,
converts it to a BIN value, and stores it at D0 when X0 is ON.
[Ladder Mode]
[Operation]
b15
D20
37
H
D21
31
H
D22
30
H
D23
36
H
D24
31
H
D25
b8b7
b0
(1)
2D
( )
H
(.)
36
(6)
H
(4)
35
(5)
H
00
H
Set
00
H
b8 b7
b0
(7)
20
(space)
H
(1)
39
(9)
H
(0)
30
(0)
H
(6)
2E
(.)
H
(1)
31
(1)
H
00
H
Set
00
H
[List Mode]
Step
Instruction
D0
1654
Total number of digits
D10
6
Number of digits in decimal fraction
D11
2
[List Mode]
Step
Instruction
D1
D0
7 9 1 0 0 6 1 1
D10
10
Total number of digits
D11
3
Number of digits in decimal fraction
VAL(P),DVAL(P)
Device
Device
7-215
1
2
3
4
6
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents