beautypg.com

And (and), Preface, Updates to arithmetic status bits – Rockwell Automation 1761 MicroLogix 1000 Programmable Controllers User Manual

Page 166

background image

Preface

MicroLogix 1000 Programmable Controllers User Manual

9–18

And (AND)

The value at source A is ANDed bit by bit with the value at source B and then
stored in the destination.

Truth Table

Dest = A AND B

A

B

Dest

0

0

0

1

0

0

0

1

0

1

1

1

Source A and B can either be a word address or a constant; however, both sources
cannot be a constant. The destination must be a word address.

Updates to Arithmetic Status Bits

With this Bit:

The Controller:

S:0/0

Carry (C)

always resets.

S:0/1

Overflow (V)

always resets.

S:0/2

Zero (Z)

sets if result is zero; otherwise resets.

S:0/3

Sign (S)

sets if most significant bit is set; otherwise resets.

Execution Times

(

µ

sec) when:

True

False

34.00

6.78

AND

BITWISE AND
Source A

Source B

Dest