2 or instruction (or) – Yaskawa Ladder Works Programming Manual User Manual

Page 56

Advertising
background image

3.2 XOR Instruction (OR)

3-3

3.2 OR Instruction (OR)

[Outline]

The OR instruction outputs the logical sum (OR) of Source A and Source B to the Dest.

1 bit Truth Table for the Logical Sum

Source A

Source B

Dest

0 0 0

0 1 1

1 0 1

1 1 1

[Format]

Symbol : OR
Full Name : Inclusive OR
Category : LOGIC

Icon :

[Parameter]

Parameter Name

Setting

Source A

· Any integer type and double-length integer type register
· Any integer type and double-length integer type register with subscript
· Subscript register
· Constant

Source B

· Any integer type and double-length integer type register
· Any integer type and double-length integer type register with subscript
· Subscript register
· Constant

Dest

· Any integer type and double-length integer type register (except for # and

C register)

· Any integer type and double-length integer type register with subscript

(except for # and C register)

· Subscript register

[Program Example]

The logical sum of MW00100 and a constant is stored in MW00101.


Advertising