Basic Instructions

3.26 Basic Instructions

The basic instructions can handle numerical data represented in 16 bits.

3.26.1 Comparison Operation Instructions

(1)The comparison operation instruction is handled as a contact, compares the magnitudes of two pieces of data (e.g. =, >, <), and turns on when the condition holds.

(2)Use the comparison operation instructions in the same manner as the contact instructions of the PLC instructions as indicated below.

LD, LDI ......... LD=

AND, ANI ..... AND=

OR, ORI ....... OR=

(3)There are the following 18 different comparison operation instructions.

Refer to page 142 for details.

Classification

Instruction

 

Symbol

 

LD=

=

AND=

 

OR=

 

LD<>

 

 

AND<>

 

 

 

OR<>

 

 

Classification

Instruction

 

Symbol

 

LD>

 

 

>

AND>

 

 

 

OR>

 

 

 

LD<=

AND<=

 

OR<=

Classification

Instruction

 

 

Symbol

 

 

LD<

 

 

 

<

 

AND<

 

 

 

 

 

OR<

 

 

 

 

 

LD>=

AND>=

 

 

OR>=

(4) The conditions that the comparison operation instructions turn on are as follows.

 

98

99

100

101

102

 

 

 

 

 

 

 

Dn = K100

OFF

ON

 

OFF

 

 

 

 

 

 

 

Dn

K100

 

ON

OFF

 

ON

 

 

 

 

 

 

Dn

K100

OFF

 

 

ON

 

 

 

 

 

 

 

OFF

Dn

K100

 

ON

 

 

 

 

 

 

 

 

Dn

K100

 

ON

 

OFF

 

 

 

 

 

 

 

 

 

Dn

K100

OFF

 

ON

 

140

Page 145
Image 145
Mitsubishi Electronics 700 Series, FR-A700 specifications Basic Instructions, Comparison Operation Instructions, Symbol