Mitsubishi MELSEC QCPU Programming Manual page 32

Programmable logic controller
Table of Contents

Advertisement

2 INSTRUCTION TABLES
Category
LD$=
$
AND$=
$
OR$=
$
LD$<>
$
AND$<>
$
OR$<>
$
LD$>
$
AND$>
$
OR$>
Character
$
string data
compari-
LD$<=
$
sons
AND$<=
$
OR$<=
$
LD$<
$
AND$<
$
OR$<
$
LD$>=
$
$ > =
AND$>=
OR$>=
$
REMARK
1)
: The conditions under which character string comparisons can be made are as shown
below
Match:
Larger string:
Smaller string: If the character strings are different, determines the string with the
2 - 12
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Table 2.10 Comparison Operation Instructions (Continued)
Symbol
=
S1 S2
=
S1 S2
=
S1 S2
< >
S1 S2
< >
S1 S2
< >
S1 S2
>
S1 S2
>
S1 S2
>
S1 S2
< =
S1 S2
< =
S1 S2
< =
S1 S2
<
S1 S2
<
S1 S2
<
S1 S2
> =
S1 S2
S1 S2
> =
S1 S2
All characters in the strings must match
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
smallest number of character codes
If the lengths of the character strings are different, determines the
shortest character string
Processing Details
• 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)
• 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)
• 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)
• 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)
• 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)
• 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)
MELSEC-Q/QnA
Execution
Condition
3
6-8
3
6-8
3
6-8
3
6-8
3
6-8
3
6-8
2 - 12

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qnacpuMelsec q modeMelsec q series

Table of Contents