6 - 8 6 - 8
MELSEC-Q/QnA
6 BASIC INSTRUCTIONS
High Performance
QnA Q4AR
Basic
QCPU
PLC CPU
Process CPU
6.1.4 Character string data comparisons ($
=
, $<
>
, $
>
, $
<=
, $
<
, $
>=
)
Usable Devices
Internal Devices
(System, User)
MELSECNET/10(H)
Direct J
\
Set
Data
Bit Word
File
Register
Bit Word
Special
Function
Module
U
\G
Index
Register
Zn
Constant
$
Other
S1
S2
[Instruction Symbol] [Execution Condition]
indicates the signs $
=
, $
< >
, $
>
, $
<=
, $
<
, or $
>=
S1
S2
S1
S2
S1
S2
LD
AND
OR
[Set Data]
Set Data Meaning Data Type
S1
S2
First number of comparison data, or of the device where comparison data
is being stored.
Character string
[Functions]
(1) Treats character string data stored following the device designated by
S1
and character string
data stored following the device designated by
S2
as A contact, and performs comparison
operation.
(2) A comparison operation involves the character-by-character comparison of the ASCII code of
the first character in the character string.
(3) The
S1
and
S2
character strings encompass all characters from the designated device number
to the next device number storing the code "00
H
".
(a) If all character strings match, the comparison result will be matched.
42
H
(B)
41
H
(A)
+1
43
H
(C)
+2
44
H
(D)
45
H
(E)00
H
"ABCDE"
42
H
(B)
41
H
(A)
43
H
(C)
44
H
(D)
45
H
(E)00
H
"ABCDE"
S1
S1
+1
+2
S2
S2
S2
S1
b15- - - -b8 b7- - - - b0 b15- - - -b8 b7- - - - b0
Instruction Symbol
in
Comparison Operation
Result
Instruction Symbol
in
Comparison Operation
Result
$ Continuity $
Continuity
$
Non-continuity $ Non-continuity
$ Non-continuity $
Continuity
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com