Publication 1766-RM001A-EN-P - October 2008
258
Logical Instructions
OR - Logical OR
Instruction Type: output
The OR instruction performs a logical OR of two sources and places the
result in the destination.
OR
Bitwise Inclusive OR
Source A
N7:0
0000h<
Source B
N7:1
0000h<
Dest
N7:2
0000h<
OR
Execution Time for the OR Instruction
Controller
Data Size
When Rung Is:
True
False
MicroLogix 1400
word
1.8278 µs
0.3962 µs
long word
1.8374 µs
0.3956 µs
Truth Table for the OR Instruction
Destination = A OR 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 1 1 1 1 1 1 1 1 0 0 1 1 1 1
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