Bitwise Or (Or); Relay Ladder; Structured Text; Function Block - Allen-Bradley Logix5000 Reference Manual

1756 controllogix, 1768 compactlogix, 1769 compactlogix, 1789 softlogix, 1794 flexlogix, powerflex 700s with drivelogix
Hide thumbs Also See for Logix5000:
Table of Contents

Advertisement

Move/Logical Instructions (MOV, MVM, BTD, MVMT, BTDT, CLR, SWPB, AND, OR, XOR, NOT, BAND, BOR, BXOR, BNOT)

Bitwise OR (OR)

dest := sourceA OR sourceB
The OR instruction performs a bitwise OR operation by using the bits in Source A and
Source B and places the result in the Destination.
Operands:

Relay Ladder

Operand
Source A
Source B
Destination

Structured Text

Use OR as an operator within an expression. This expression evaluates sourceA OR
sourceB.
See
Structured Text Programming
structured text.

Function Block

Operand
OR tag
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Type
Format
SINT
Immediate
INT
Tag
DINT
A SINT or INT tag converts to a DINT value by zero-fill.
SINT
Immediate
INT
Tag
DINT
A SINT or INT tag converts to a DINT value by zero-fill.
SINT
Tag
INT
DINT
for information on the syntax of expressions within
Type
FBD_LOGICAL
Description
Value to OR with Source B
Value to OR with Source A
Stores the result
Format:
Description
Structure
OR structure
Chapter 7
319

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents