Or (Or); Updates To Arithmetic Status Bits - Allen-Bradley SLC 500 Series Reference Manual

Hide thumbs Also See for SLC 500 Series:
Table of Contents

Or (OR)

OR
OR
Bitwise Inclusive OR
Source A
B3:2
16C8h<
Source B
B3:3
EF0Ch<
Dest
B3:4
FFCCh<
Fixed SLC
SLC
SLC
5/01
5/02
5/03
Output Instruction
This instruction performs a bit-by-bit logical OR. The operation is performed
using the value at source A and the value at source B. The result is stored in
the destination.
Table 5.11 Truth Table for A OR B = Dest
SLC
SLC
A
B
5/04
5/05
0
0
1
0
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

The arithmetic status bits are found in Word 0, bits 0 to 3 in the controller
status file. After an instruction is executed, the arithmetic status bits in the
status file are updated.
Table 5.12 Controller Function
With this Bit
S:0/0
S:0/1
S:0/2
S:0/3
Dest
0
1
1
1
The Controller
Carry (C)
always resets.
Overflow (V)
always resets.
Zero (Z)
sets if result is zero; otherwise resets.
Sign (S)
sets if result is negative (most significant bit is set)
otherwise resets.
Publication 1747-RM001G-EN-P - November 2008
Data Handling Instructions
5-21
Table of Contents
loading

Table of Contents