Character String Data Comparisons ($=,$<>,$>,$<=,$<,$>=) - Mitsubishi MELSEC Q Series Programming Manual

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

Advertisement

6.1.5
Character string data comparisons ($=,$<>,$>,$<=,$<,$>=)
$=,$<>,$>,$<=,$<,$>=
LD
AND
OR
Setting
Data
S1
S2
Function
(1) Compares the character string data designated by
designated by
(2) A comparison operation involves the character-by-character comparison of the ASCII code
of the first character in the character string.
(3) The character string data of
from the designated device number to the device number where "00
(a) If all character strings match, the comparison result will be matched.
S1
S1
S1
Instruction Symbol in
$=
$<>
$>
indicates an instruction symbol of
Command
Command Command
,
: Data for comparison or head number of the devices where the data for comparison is stored
S1
S2
(character string)
Internal Devices
R, ZR
Bit
Word
––
––
as a normally-open contact.
S2
and
S1
b15
b8
b7
b0
42
(B)
41
(A)
H
H
+1
44
(D)
43
(C)
H
H
+2
00
45
(E)
H
H
"ABCDE"
Comparison Operation
Result
Continuity
Non-continuity
Non-continuity
High
Basic
performance
$
S1
S2
S1
S2
S1
S2
J
\
U
\G
Bit
Word
––
––
with the character string data
S1
for comparison refers to the data stored at the range
S2
b15
b8
b7
S2
42
(B)
41
(A)
H
H
S2
+1
44
(D)
43
(C)
H
H
S2
+2
00
45
(E)
H
H
"ABCDE"
Instruction Symbol in
$<=
$<
$>=
$=,$<>,$>,$<=,$<,$>=
Process
Redundant Universal
LCPU
/
$
/
$
/
$
/
$
/
$
Constants
Zn
Other
$
––
––
" code is stored.
H
b0
Comparison Operation
Result
Continuity
Non-continuity
Continuity
6-11
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