Mitsubishi MELSEC Q Series Programming Manual page 215

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

Advertisement

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
• The code "00
device number designated by
• The character string of
The character string data comparison instruction checks the device range while
comparing the designated character string data. For this reason, if the "00
does not exist in the relevant device range, the instruction outputs the comparison
result instead of returning an operation error when no match of characters is
detected.
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]
" does not exist within the range of the relevant device, starting from the
H
and
S1
and
exceeds 16383 characters.
S1
S2
Example
$
D12287
D10
S1
Data of
S1
D12287
B
W0
00
H
If
and
data are as shown above, the second character of
S1
S2
match with that of
, and the comparison result is expressed as
S2
operation result is "non-conductive"). Though the "00
within the
device range, no operation error is returned, because the
S1
no-match is detected at D12287, which is within the device range.
.
S2
M0
S2
Data of
A
D10
D11
C
[List Mode]
Instruction
Step
[List Mode]
Instruction
Step
$=,$<>,$>,$<=,$<,$>=
(Error code: 4101)
(Error code: 4101)
" code
H
S2
Z
A
00
C
H
does not
S1
(the
S1
S2
" code is not included
H
Device
Device
6-13
1
2
3
4
4
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents