Mitsubishi Electric M800VW Series Programming Manual page 370

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.10 Character String Processing Instructions
MIDR, MIDRP, MIDW, MIDWP: Random selection from character strings, random replacement in charac-
ter strings
Setting
Bit devices
data
X
Y
M
L
F
S1
D
S2
[Instruction symbol] [Execution condition]
MIDR, MIDW
MIDRP, MIDWP
 Setting data
Setting data
Character string or the first number of the device where the character string is
S1
stored.
The first number of the device where character string data obtained as the result of
D
operation is stored.
The first number of the device that will store the location of the first character and
the number of characters.
S2
 (S2): Position of the first character
 (S2 +1): Number of characters
 Functions
MIDR
 Extracts the character string data of (S2+1) characters starting from the position designated by (S2), from the left end of the
character string data designated by (S1), and stores the extracted data into the area starting from the device designated by
(D).
b15
42H (B)
S1
44H (D)
S1+1
S1+2
46H (F)
S1+3
48H (H)
S1+4
4AH (J)
S1+5
00H
"ABCDEFGHIJK"
S2
5
S2+1
5
Usable devices
B SB
T SM V
T
C
Command
Command
Meaning
b8b7
b0
41H (A)
43H (C)
45H (E)
47H (G)
49H (I)
4BH (K)
Con-
Word devices
stant
D
R/ZR W SW SD
Z
indicates the signs "MIDRP"/"MIDWP".
b15
D
46H (F)
48H (H)
D+1
D+2
00H
Position of the 5th character S2
ASCII code for the 5th character S2+1
349
Digit
Pointer
designa-
Index
tion
$
P
S1
D
S2
P
S1
D
S2
Data type
Character string
BIN 16 bits
b8b7
b0
45H (E)
47H (G)
49H (I)
"EFGHI"
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents