487
MIDR, MIDRP, MIDW, MIDWP
1
2
3
4
4
6
7
8
7.11
Char
acter
string processing inst
ructions
7.11.1
6
MIDR, MID
R
P, MIDW, MIDWP
(2) The following program stores the number of characters corresponding to the value being stored in D0 from the left of the
character string data being stored at D100 to the area starting from R10 when X1C is turned ON.
[Ladder Mode]
[List Mode]
[Operation]
: Character string or head number of the devices where the character string is stored (character string)
: Head number of the devices where a character string data obtained as the result of operation will be stored (character string)
: Head number of the devices where the location of the first character and the number of characters will be stored (BIN 16 bits)
•
: Position of first character
•
+1: Number of characters
F
unct
i
on
MIDR
(1) Extracts the character string data of +1 characters, starting from the position designated by , counted from the left
end of the character string data designated by , and stores the extracted data into the area starting from the device
designated by .
7.11.16 MIDR, MIDRP
Random selection from character strings
MIDW, MIDWP
Random replacement in character strings
7.11.16
MIDR, MIDRP, MIDW, MIDWP
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
$
Other
Bit
Word
Bit
Word
––
––
––
––
––
––
––
––
––
I
nstruct
i
on
De
vi
ce
Step
D101
53
H
(S)
51
H
(
Q
)
4F
H
(O)
4E
H
(
N
)
R11
53
H
(S)
51
H
(
Q
)
4F
H
(O)
4E
H
(
N
)
4
8
H
(
H
)
44
H
(D)
4
1
H
(A)
4
2
H
(B)
00
H
D102
D103
D10
4
R12
ASC
II
code
for
the
6th
character
"
S
Q
O
NH
DAB
"
"
S
Q
O
NH
D
"
D100
R10
00
H
4
8
H
(
H
)
44
H
(D)
R13
6
D0
b15
b8b7
b0
b15
b8b7
b0
Process
High
performance
Redundant Universal
LCPU
Bas
i
c
Command
Command
P
S1
D
S2
S1
D
S2
MIDR, MIDW
MIDRP, MIDWP
i
nd
i
cates
an
i
nstruct
i
on
symbo
l
M
I
DR
/
M
I
DW
.
S1
D
S2
S2
S2
S1
D
D2
S2
S2
S1
D
+1
41
H
(A)
42
H
(B)
43
H
(C)
44
H
(D)
+1
45
H
(E)
46
H
(F)
47
H
(G)
48
H
(H)
45
H
(E)
46
H
(F)
47
H
(G)
48
H
(H)
49
H
(I)
4A
H
(J)
4B
H
(K)
00
H
+2
+3
+4
+5
+2
49
H
(I)
00
H
Position of the 5th
character
"ABCDEFGHIJK"
"EFGHI"
ASCII code for the 5th character +1
5
5
+1
S1
S1
S1
S1
S1
S1
S2
D
D
D
b15
b8b7
b0
b15
b8b7
b0
S2
S2
S2