Publication 1766-RM001A-EN-P - October 2008
Logical Instructions
257
AND - Bit-Wise AND
Instruction Type: output
The AND instruction performs a bit-wise logical AND of two sources and
places the result in the destination.
For more information, see Using Logical Instructions on page 255 and
Updates to Math Status Bits on page 256.
AND
Bitwise AND
Source A
N7:0
0000h<
Source B
N7:1
0000h<
Dest
N7:2
0000h<
AND
Execution Time for the AND Instruction
Controller
Data Size
When Rung Is:
True
False
MicroLogix 1400
word
1.7894 µs
0.3781 µs
long word
1.8185 µs
0.3967 µs
Truth Table for the AND Instruction
Destination = A AND B
Source: A
1 1 1 1 1 0 1 0 0 0 0 0 1 1 0 0
Source: B
1 1 0 0 1 1 1 1 1 1 0 0 0 0 1 1
Destination:
1 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0
IMPORTANT
Do not use the High Speed Counter Accumulator (HSC.ACC) for the
Destination parameter in the AND, OR, and XOR instructions.
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive