Mitsubishi Electric MELSEC-Q/L Programming Manual page 562

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

Program example
• 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
(1)
H
D21
2E
(.)
H
D22
34
(4)
H
D23
Set
• 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
(7)
H
D21
31
(1)
H
D22
30
(0)
H
D23
36
(6)
H
D24
31
(1)
H
D25
Set
7 APPLICATION INSTRUCTIONS
560
7.11 Character String Processing Instructions
b8b7
b0
2D
( )
H
36
(6)
H
35
(5)
H
00
H
00
H
b8 b7
b0
20
(space)
H
39
(9)
H
30
(0)
H
2E
(.)
H
31
(1)
H
00
H
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
Device
Device

Advertisement

Table of Contents
loading

Table of Contents