1 and instruction (and) – Yaskawa Ladder Works Programming Manual User Manual

Page 55

Advertising
background image

3.1 AND Instruction (AND)

3-2

3.1 AND Instruction (AND)

[Outline]

The AND instruction outputs the logical product (AND) of Source A and Source B to the Dest.

1 bit Truth Table for the Logical Product

Source A

Source B

Dest

0 0 0

0 1 0

1 0 0

1 1 1

[Format]

Symbol : AND
Full Name : AND
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 product of MW000100 and a constant is stored in MW00101.


Advertising