Random Selection From And Replacement In Character Strings Midr(P),Midw(P)) - Mitsubishi MELSEC Q Series Programming Manual

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

Advertisement

MIDR(P),MIDW(P)
7.11.16
Random selection from and replacement in character strings
(MIDR(P),MIDW(P))
MIDR(P),MIDW(P)
MIDR,MIDW
MIDRP,MIDWP
Setting
Data
S1
D
S2
Function
MIDR
(1) Extracts the character string data of
by
S2
the extracted data into the area starting from the device designated by
b15
S 1
S 1
+1
S 1
+2
S 1
+3
S 1
+4
S 1
+5
S2
S2
+1
7-234
Command
Command
: Character string or head number of the devices where the character string is stored (character string)
S1
: Head number of the devices where a character string data obtained as the result of operation will be stored
D
(character string)
: Head number of the devices where the location of the first character and the number of characters will be
S2
stored (BIN 16 bits)
: Position of first character
S2
+1: Number of characters
S2
Internal Devices
R, ZR
Bit
Word
––
––
, counted from the left end of the character string data designated by
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
4A
(J)
49
(I)
H
H
00
4B
(K)
H
H
"ABCDEFGHIJK"
5
5
Basic
indicates an instruction symbol MIDR/MIDW.
P
J
\
U
\G
Bit
Word
––
––
+1 characters, starting from the position designated
S2
b0
D
D
+1
D
+2
Position of the 5th
character
S2
ASCII code for the 5th character
High
Process
Redundant Universal
performance
S1
D
S2
D
S1
S2
Constants
Zn
$
––
––
, and stores
S1
.
D
b15
b8b7
46
(F)
45
H
H
48
(H)
47
H
H
00
49
H
H
"EFGHI"
S2
+1
LCPU
Other
––
––
––
b0
(E)
(G)
(I)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents