Mitsubishi Electric MELSEC-Q/L Programming Manual page 585

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

Advertisement

Program example
• The following program stores the 3rd character through the 6th character from the left of the character string stored in the
area starting from D10 at devices starting from D0 when X0 is turned ON.
[Ladder Mode]
[Operation]
b15
b8b7
D10
41
(A)
H
D11
31
(1)
H
D12
46
(E)
H
D13
00
H
"BA213ED"
R0
3
R1
4
• The following program stores 4 characters of the character string data stored in the area starting from D0 into the area
starting from the 3rd character from the left of the character string data in the area starting from D100 when X0 is turned
ON.
[Ladder Mode]
[Operation]
b15
b8b7
D0
31
(3)
32
H
D1
45
(E)
46
H
D2
33
(3)
30
H
D3
00
H
"21FE03"
R0
3
R1
4
b0
42
(B)
H
32
(2)
H
33
(3)
H
45
(D)
H
b0
(2)
D100
H
(F)
D101
H
(0)
D102
H
D103
D104
D100
D101
D102
D103
D104
[List Mode]
Step
Instruction
b15
b8b7
D0
31
(1)
32
H
D1
46
(E)
33
H
D2
00
H
"213E"
[List Mode]
Step
Instruction
Before execution
b15
b8b7
53
(S)
55
(U)
H
H
59
(Y)
43
(C)
H
H
31
(1)
5A
(Z)
H
H
42
(B)
30
(0)
H
H
00
H
"USCYZ10B"
After execution
b15
b8b7
53
(S)
55
(U)
H
H
31
(1)
32
(2)
H
H
45
(E)
46
(F)
H
H
42
(B)
30
(0)
H
H
00
H
"US21FE0B"
7 APPLICATION INSTRUCTIONS
7.11 Character String Processing Instructions
Device
b0
(2)
H
(3)
H
Device
b0
b0
7
583

Advertisement

Table of Contents
loading

Table of Contents