Mitsubishi MELSEC Q Series Programming Manual page 611

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

Advertisement

• The
+1 value exceeds the number of characters for
S2
• The
+ 0 value is 0.
S2
• "00
" does not exist in the specified devices that follow the device specified for
H
Program Example
(1) 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
D10
41
D11
31
D12
46
D13
00
R0
3
R1
4
(2) 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
D0
31
(3)
H
D1
45
(E)
H
D2
33
(3)
H
D3
R0
3
R1
4
b8b7
b0
(A)
42
(B)
H
H
(1)
32
(2)
H
H
(E)
33
(3)
H
H
45
(D)
H
H
"BA213ED"
b8b7
b0
32
(2)
H
46
(F)
H
30
(0)
H
00
H
"21FE03"
MIDR(P),MIDW(P)
.
(Error code: 4101)
S1
(Error code: 4101)
(Error code: 4101)
[List Mode]
Step
Instruction
b15
b8b7
D0
31
(1)
H
D1
46
(E)
H
D2
00
H
"213E"
[List Mode]
Step
Instruction
Before execution
b15
b8b7
53
(S)
D100
H
59
(Y)
D101
H
31
(1)
D102
H
42
(B)
D103
H
00
D104
H
"USCYZ10B"
After execution
b15
b8b7
53
(S)
D100
H
31
(1)
D101
H
45
(E)
D102
H
42
(B)
D103
H
00
D104
H
"US21FE0B"
1
.
S1
2
3
4
Device
6
6
b0
7
32
(2)
H
33
(3)
H
8
Device
b0
55
(U)
H
43
(C)
H
5A
(Z)
H
30
(0)
H
b0
55
(U)
H
32
(2)
H
46
(F)
H
30
(0)
H
7-237

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents