Mitsubishi MELSEC-Q/L Programming Manual page 492

Table of Contents

Advertisement

MIDR, MIDRP, MIDW, MIDWP
For MIDW instruction
Error
code
The value of
exceeds the number of characters specified by
S2
The
+1 value exceeds the number of characters for
S2
4101
The
+0 value is 0.
S2
"00
" does not exist in the devices specifed by
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
b8b7
D10
41
(A)
H
D11
31
(1)
H
D12
46
(E)
H
D13
00
H
"BA213ED"
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
b8b7
D0
31
(3)
H
D1
45
(E)
H
D2
33
(3)
H
D3
00
H
"21FE03"
R0
3
R1
4
490
Error details
.
S1
.
S1
[List Mode]
Step
b0
42
(B)
H
32
(2)
H
33
(3)
H
45
(D)
H
[List Mode]
Step
b0
32
(2)
H
46
(F)
H
30
(0)
H
Q00J/
Q00/
QnH
Q01
.
D
––
Instruction
Device
b15
b8b7
D0
31
(1)
H
D1
46
(E)
H
D2
00
H
"213E"
Instruction
Device
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"
QnPH QnPRH
QnU
LCPU
b0
32
(2)
H
33
(3)
H
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

Advertisement

Table of Contents
loading

Table of Contents