Basic Instructions

3.26.2 Comparison Operation Instructions :

 

 

 

16-bit data comparison ... =, <>, >, <=, <, >=

 

 

 

 

 

Usable Devices

 

 

 

 

Error

 

 

Bit devices

 

Word (16-bit) devices

Constants

Level

Digit

Flag

 

X

Y

M

T

C

D

K

H

N

Designation

(M9010,

 

 

M9011)

 

 

 

 

 

 

 

 

 

 

 

S1

{

{

{

{

{

{

{

{

 

K1 to K4

{

S2

{

{

{

{

{

{

{

{

 

 

 

 

Instruction symbol in

=, <>, >, <=, <, >=

S1

S2

Compared data or head numbers of devices that store compared data

Functions

(1)Handled as an N/O contact and performs 16-bit comparison operation.

(2)The comparison operation results are as indicated below.

Instruction

 

Comparison

symbol in

Condition

Operation

 

 

 

 

Result

 

 

 

 

 

=

 

S1 = S2

 

<>

 

S1 S2

 

>

 

S1 > S2

Energize

<=

 

S1 S2

 

 

<

 

S1 < S2

 

>=

 

S1 S2

 

Instruction

Condition

Comparison

symbol in

Operation

 

 

 

 

Result

 

 

 

 

 

 

 

 

 

=

 

S1 S2

 

<>

 

S1 = S2

 

>

 

S1 S2

Not energize

<=

 

S1 > S2

 

 

<

 

S1 S2

 

>=

 

S1 < S2

 

Execution Conditions

The execution conditions of LD , AND and OR are as indicated below.

Instruction

Execution Condition

LD

 

 

 

 

 

 

Executed every scan.

 

 

 

 

 

 

 

 

 

 

 

AND

 

 

 

Executed only when the preceding contact instruction is on.

 

 

 

 

 

 

 

 

 

 

OR

 

 

Executed every scan.

 

 

 

 

 

 

 

 

 

142

Page 147
Image 147
Mitsubishi Electronics 700 Series, FR-A700 specifications S1 ≠ S2 S1 = S2 S1 ≤ S2, S1 ≥ S2 S1 S2