Basic Instruction (32-Bit); Comparison Operation Instruction - Mitsubishi Electric A800 Programming Manual

800 series, plc function
Hide thumbs Also See for A800:
Table of Contents

Advertisement

3.27

Basic instruction (32-bit)

The basic instruction (32-bit) is an instruction that can handle numeric data that is expressed in 32 bits.
3.27.1

Comparison operation instruction

• Comparison operation instructions execute size comparisons (D=, D>, D< etc.) of two data, and instructs the 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.......LDD=
• AND, ANI...ANDD=
• OR, ORI.....ORD=
• There are 18 types of comparison operation instruction as shown below.
For details, refer to
page
158.
Instruction
Classification
symbol
LDD=
ANDD
=
=
=
ORD
LDD<>
ANDD<>
ORD<>
• 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 (b31) is 1 (8 to F), the BIN value is assumed as a
negative number for the comparison.
Example
Comparison of HEX/8 digit value
D> H8000 H0000 H7FFF HFFFF
Regarded
as -2147483648
in BIN.
Therefore, -2147483648 < -2147483647, and Y10 does not turn ON.
Instruction
Classification
symbol
LDD>
ANDD>
>
ORD>
=
LDD<
=
ANDD<
=
ORD<
98
99
OFF
K100
ON
K100
OFF
K100
ON
K100
ON
K100
OFF
Y10
Regarded
as 2147483647
in BIN.

Basic instruction (32-bit)

Instruction
Classification
symbol
LDD<
ANDD<
<
ORD<
=
LDD>
=
ANDD>
=
ORD>
100
101
102
ON
OFF
OFF
ON
ON
OFF
OFF
ON
Sequence program
3
157

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

F800

Table of Contents