Mitsubishi MELSEC Q Series Programming Manual page 610

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

Advertisement

MIDR(P),MIDW(P)
(4) If the number of characters designated by
character string data designated by
S 1
S 1
+1
S 1
+2
S 1
+3
S 1
+4
S2
S2
+1
(5) If the number of characters designated by
character designated by
S 1
S 1
+1
S 1
+2
S 1
+3
S2
+1
S2
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
For MIDR instruction
• The value of
• The
• The
• "00
For MIDW instruction
• The value of
7-236
b15
b8b7
31
(1)
30
(0)
H
H
33
(3)
32
(2)
H
H
35
(5)
34
(4)
H
H
37
(7)
36
(6)
H
H
00
38
(8)
H
H
"012345678"
Position counted from the left
5
end of character string data
designated by
8
D
Number of characters counted
from the left end of character
string data designated by
to the area starting from the device designated by
S1
b15
b8b7
31
(1)
30
(0)
H
H
33
(3)
32
(2)
H
H
35
(5)
34
(4)
H
H
00
H
"012345"
Position counted from the left
2
end of character string data
designated by
D
1
Number of characters counted
from the left end of character
string data designated by
exceeds the number of characters designated by
S2
+1 number of characters from position
S2
+ 0 value is 0.
S2
" does not exist in the specified devices that follow the device specified for
H
exceeds the number of characters designated by
S2
+1 exceeds the final character from the
S2
, data will be stored up to the final character.
D
b15
D
b0
D
+1
D
+2
D
+3
D
+4
b15
D
D
+1
D
+2
D
+3
S1
D
+4
Characters "35
are not stored.
+1 is " 1", stores the data up to the final
S2
b15
D
b0
D
+1
D
+2
D
+3
D
+4
D
+5
b15
D
D
+1
D
+2
S1
D
+3
D
+4
D
+5
exceeds the
D
Before execution
b8b7
b0
42
(B)
41
(A)
H
H
44
(D)
43
(C)
H
H
46
(F)
45
(E)
H
H
48
(H)
47
(G)
H
H
00
49
(I)
H
H
"ABCDEFGHI"
After execution
b8b7
b0
42
(B)
41
(A)
H
H
44
(D)
43
(C)
H
H
31
(1)
30
(0)
H
H
33
(3)
32
(2)
H
H
00
34
(4)
H
H
"ABCD01234"
" (5) to "37
" (7)
H
H
.
D
Before execution
b8b7
42
(B)
41
(A)
H
H
44
(D)
43
(C)
H
H
46
(F)
45
(E)
H
H
48
(H)
47
(G)
H
H
49
(I)
4A
(J)
H
H
00
4B
(K)
H
H
"ABCDEFGHIJK"
After execution
b8b7
30
(0)
41
(A)
H
H
32
(2)
31
(1)
H
H
34
(4)
33
(3)
H
H
48
(H)
35
(5)
H
H
(J)
49
(I)
4A
H
H
00
4B
(K)
H
H
"A012345HIJK"
. (Error code: 4101)
S1
device range.
D
(Error code: 4101)
(Error code: 4101)
.
S1
(Error code: 4101)
. (Error code: 4101)
D
b0
b0

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents