Application instructions

3.27 Application instructions

Application instructions are used when special processing is required.

3.27.1 Logical Operation Instructions

(1)The logical operation instructions are instructions which perform the logical operations such as logical add and logical product.

(2)The logical operation instructions are available in the following 10 types.

Classification

Instruction

 

Symbol

Logical

WAND

 

product

 

WANDP

 

 

 

Logical add

WOR

 

WORP

 

 

 

Classification

Instruction

 

Symbol

Exclusive OR

WXOR

 

WXORP

 

 

 

Exclusive

WXNR

NOR

WXNRP

 

 

Classification

Instruction

 

Symbol

2’s

NEG

complement

 

NEGP

(Sign reversal)

 

 

REMARKS

The logical operation instructions perform the following processings in units of one bit.

Classification

Processing

Operation

 

Example

 

Expression

A

 

B

 

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

 

0

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Logical product

Set to 1 only when both inputs A

 

Y=A•B

0

 

1

 

0

and B are 1. Set to 0 otherwise.

 

1

 

0

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

 

1

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Set to 0 only when both inputs A

 

 

 

 

 

 

 

 

 

0

 

0

 

0

 

 

 

 

 

 

 

 

 

 

0

 

1

 

1

Logical add

and B are 0. Set to 1 to 1

 

Y=A+B

 

 

 

1

 

0

 

1

 

otherwise.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

 

1

 

1

 

Set to 0 when inputs A and B are

 

 

 

 

 

 

 

 

 

0

 

0

 

0

 

 

 

 

 

 

 

 

 

 

0

 

1

 

1

Exclusive OR

equal. Set to 1 when they are

Y=A•B+A•B

 

 

 

 

 

 

 

1

 

0

 

1

 

different.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

 

1

 

0

 

Set to 1 when inputs A and B are

 

 

 

 

 

 

 

 

 

0

 

0

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

 

1

 

0

Exclusive NOR

equal. Set to 0 when they are

Y= (A+B) (A+B)

 

 

1

 

0

 

0

 

different.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

 

1

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SEQUENCE PROGRAMMING

3

155

Page 160
Image 160
Mitsubishi Electronics FR-A700, 700 Series specifications Application instructions, Logical Operation Instructions