EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Page 199

Mitsubishi Electric MELSEC-Q/L
1084 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
Loading...
6 BASIC INSTRUCTIONS
6.1 Comparison Operation Instructions
197
6
Operation error
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 character string data comparison instruction checks the device range while comparing the designated
character string data.
For this reason, even though the NULL code "00H" does not exist within the range of the corresponding
devices, the instruction outputs a comparison result instead of returning an operation error when no match of
characters is detected.
If (S1) and (S2) data are as shown above, the second character of (S1) does not match with that of (S2), and
the comparison result is expressed as (S1)(S2) (the operation result is "non-conductive").
Though the NULL code "00H" is not included within the (S1) device range, no operation error is returned,
because mismatch is detected at D12287, which is within the device range.
If the character strings are different, the first different sized character code will determine whether the character string is larger or smaller.
Instruction symbol Comparison operation result Instruction symbol Comparison operation result
$= Non-continuity $<= Continuity
$<> Continuity $< Continuity
$> Non-continuity $>= Non-continuity
If the character strings designated by (S1) and (S2) are of different lengths, the data with the longer character string will be larger.
Instruction symbol Comparison operation result Instruction symbol Comparison operation result
$= Non-continuity $<= Non-continuity
$<> Continuity $< Non-continuity
$> Continuity $>= Continuity
Error
code
Error details Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4101 The NULL code "00H" does not exist within the range of the corresponding
devices, starting from the device specified by (S1) and (S2).
The number of character strings of (S1) and (S2) exceeds 16383.

32H (2)
b15 b8
31H (1)
b7 b0
34H (4)33H (3)
35H (5)00H
"12435"
32H (2)
b15 b8
31H (1)
b7 b0
33H (3)34H (4)
35H (5)00H
"12345"
(S1)+2
(S1)+1
(S1)
(S2)+2
(S2)+1
(S2)
32H (2)
b15 b8
31H (1)
b7
b0
33H (3)34H (4)
35H (5)36H
"1234567"
b15 b8
b7
b0
37H (7)00H
(6)
32H (2) 31H (1)
33H (3)34H (4)
35H (5)36H
"123456"
00H00H
(6)
(S1)
(S1)+1
(S1)+2
(S1)+3
(S2)
(S2)+1
(S2)+2
(S2)+3
M0
D10D12287
$
BA
D12287
C
00
H
ZA
D11
C
00
H
W0
D10
Data of
Data of
Example
S1
S2
S1
S2

Table of Contents

Related product manuals