2 inclusive or (or), 1 ) operation, 2 ) format – Yaskawa MP900 Series Ladder Programming Manual User Manual

Page 134

Advertising
background image

5.4 Logic Operations and Comparison Instructions

5.4.2 Inclusive OR (OR)

5-65

Instructions

5

5.4.2 Inclusive OR (OR)

( 1 ) Operation

The OR instruction performs a logical OR operation on input data A and input data B and the result is stored in the out-
put data.
This instruction can be used only with integer or double-length integer data.

Each bit in the input data is evaluated as shown in the following truth table.

( 2 ) Format

∗ C and # registers cannot be used.

Input data A

Input data B

Output data

0

0

0

0

1

1

1

0

1

1

1

1

Input data A

Output data

Input data B

Inclusive OR

(OR)

Parameter Name

Applicable Data Types

B

W

L

F

A

Index

Constant

Input data A (SrcA)

×

{

{

{

×

{

{

Input data B (SrcB)

×

{

{

{

×

{

{

Output data (Dest)

×

{

*

{

*

{

*

×

{

×

Input data A

Input data B

Output data

Icon:

Key entry: |

Advertising
This manual is related to the following products: