EasyManuals Logo
Home>Mitsubishi>Controller>MELSEC-Q/L

Mitsubishi MELSEC-Q/L User Manual

Mitsubishi MELSEC-Q/L
850 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #489 background imageLoading...
Page #489 background image
487
MIDR, MIDRP, MIDW, MIDWP
1
2
3
4
4
6
7
8
7.11 Character string processing instructions
7.11.16 MIDR, MIDRP, 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
Function
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 fr om character s trings
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
–– –– ––
–– –– –– ––
–– ––
Instruction
Device
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)
48
H
(H)44
H
(D)
41
H
(A)42
H
(B)
00
H
D102
D103
D104
R12
ASCII code for the 6th character
"SQONHDAB"
"SQONHD"
D100
R10
00
H
48
H
(H)44
H
(D)
R13
6D0
b15 b8b7 b0
b15 b8b7 b0
Process
High
performance
Redundant
Universal
LCPU
Basic
Command
Command
P
S1
D
S2
S1
D
S2
MIDR, MIDW
MIDRP, MIDWP
indicates an instruction symbol MIDR/MIDW.
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
S
1
S
1
S
1
S
1
S
1
S
1
S2
D
D
D
b15 b8b7 b0
b15 b8b7 b0
S2
S2
S2

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC-Q/L and is the answer not in the manual?

Mitsubishi MELSEC-Q/L Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC-Q/L
CategoryController
LanguageEnglish

Related product manuals