EasyManuals Logo

Mitsubishi MELSEC QCPU User Manual

Mitsubishi MELSEC QCPU
285 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
Page #32 background imageLoading...
Page #32 background image
2 - 12 2 - 12
MELSEC-Q/QnA
2 INSTRUCTION TABLES
Table 2.10 Comparison Operation Instructions (Continued)
Category
Instruction
Symbols
Symbol Processing Details
Execution
Condition
Number of
Basic Steps
Subset
See for
Description
LD$=
$
S1 S2
=
AND$=
$
S1 S2
=
OR$=
$
S1 S2
=
• Compares character string S1 and
character string S2 one character at a
time.
• Conductive status when (character string
S1) = (character string S2)
• Non-Conductive status when (character
string S1)
(character string S2)
36-8
LD$<>
$S1S2
< >
AND$<>
$
S1 S2
< >
OR$<>
$S1S2
< >
• Compares character string S1 and
character string S2 one character at a
time.
• Conductive status when (character string
S1)
(character string S2)
• Non-Conductive status when (character
string S1) = (character string S2)
36-8
LD$>
$
S1 S2
>
AND$>
$
S1 S2
>
OR$>
$
S1 S2
>
• Compares character string S1 and
character string S2 one character at a
time.
• Conductive status when (character string
S1) > (character string S2)
• Non-Conductive status when (character
string S1)
(character string S2)
36-8
LD$<=
$S1S2
< =
AND$<=
$
S1 S2
< =
OR$<=
$S1S2
< =
• Compares character string S1 and
character string S2 one character at a
time.
• Conductive status when (character string
S1)
(character string S2)
• Non-Conductive status when (character
string S1) > (character string S2)
36-8
LD$<
$
S1 S2
<
AND$<
$
S1 S2
<
OR$<
$
S1
S2
<
• Compares character string S1 and
character string S2 one character at a
time.
• Conductive status when (character string
S1) < (character string S2)
• Non-Conductive status when (character
string S1)
(character string S2)
36-8
LD$>=
$
S1 S2
> =
AND$>=
S1 S2$
> =
Character
string data
compari-
sons
OR$>=
$
S1
S2
> =
• Compares character string S1 and
character string S2 one character at a
time.
• Conductive status when (character string
S1)
(character string S2)
• Non-Conductive status when (character
string S1) < (character string S2)
36-8
REMARK
1) : The conditions under which character string comparisons can be made are as shown
below
Match: All characters in the strings must match
Larger string: If character strings are different, determines the string with the largest
number of character codes
If the lengths of the character strings are different, determines the
longest character string
Smaller string: If the character strings are different, determines the string with the
smallest number of character codes
If the lengths of the character strings are different, determines the
shortest character string
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC QCPU and is the answer not in the manual?

Mitsubishi MELSEC QCPU Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC QCPU
CategoryController
LanguageEnglish

Related product manuals