Download  Print this page

Basic Instruction (16-bit); Comparison Operation Instruction - Mitsubishi Electric A800 Programming Manual

800 series, plc function.
Hide thumbs

Advertisement

3.26

Basic instruction (16-bit)

The basic instruction (16-bit) can handle 16 bits of numeric data.
3.26.1

Comparison operation instruction

• Comparison operation instructions execute size comparisons (=, >, < etc.) of two data, and instructs a contact to turn ON
when the conditions are met.
• The usage method of comparison operation instructions is the same as the contact instructions of sequence instructions,
and is as follows.
• LD, LDI: LD=
• AND, ANI: AND=
• OR, ORI: OR=
• There are 18 types of comparison operation instruction as shown below.
For details, refer to
page
142.
Instruction
Classification
symbol
=
LD
=
AND
=
=
OR
LD<>
AND<>
OR<>
• The conditions for turning comparison operation instructions ON are as follows.
Dn = K100
Dn
Dn
Dn
Dn
Dn
NOTE
• The comparison instruction assumes the specified data as a BIN value for comparison. For this reason, when performing
hexadecimal comparison, when the value whose most significant bit (b15) is 1 (8 to F), the BIN value is assumed as a
negative number for the comparison.
Example
Comparison of HEX / 4-digit value
Regarded
as -32767
in BIN.
Therefore, -32767 < 1384, and Y10 does not turn ON.
Instruction
Classification
symbol
LD>
>
AND>
OR>
LD<
=
=
AND<
OR<
=
98
99
OFF
K100
ON
K100
OFF
K100
ON
K100
ON
K100
OFF
Regarded
as 1384
in BIN.
Basic instruction (16-bit)
Instruction
Classification
symbol
LD<
<
AND<
OR<
LD>
=
=
AND>
OR>
=
100
101
102
ON
OFF
OFF
ON
ON
OFF
OFF
ON
Sequence program
3
141

Advertisement

Table of Contents

This manual is also suitable for:

F800

Comments to this Manuals

Symbols: 0
Latest comments: