Mitsubishi MELSEC-Q/L Programming Manual page 183

Table of Contents

Advertisement

The character string data comparison instruction checks the device range while comparing the designated character string
data. For this reason, if the "00
result instead of returning an operation error when no match of characters is detected.
Example
Data of
D12287
W0
If
and
data are as shown above, the second character of
S1
S2
result is expressed as
device range, no operation error is returned, because the no-match is detected at D12287, which is within the device
S1
range.
Program Example
(1) The following program compares character strings stored following D0 and characters following D10.
[Ladder Mode]
(2) The following program compares the character string "ABCDEF" with the character string stored following D10.
[Ladder Mode]
(3) The following program compares the character string stored following D10 with the character string stored following
D100.
[Ladder Mode]
(4) The following program compares the character string stored following D200 with the character string "12345".
[Ladder Mode]
" code does not exist in the relevant device range, the instruction outputs the comparison
H
$
D12287
D10
S1
S2
S1
B
A
00
C
H
(the operation result is "non-conductive"). Though the "00
S1
S2
[List Mode]
Step
[List Mode]
Step
[List Mode]
Step
[List Mode]
Step
$=, $<>, $>, $<=, $<, $>=
M0
Data of
S2
D10
Z
A
D11
00
C
H
does not match with that of
S1
Device
Instruction
Instruction
Device
Device
Instruction
Instruction
Device
, and the comparison
S2
" code is not included within the
H
181
1
2
3
4
6
7
8

Advertisement

Table of Contents
loading

Table of Contents