12.07.2015 Views

Logix5000 Controllers General Instructions - SLAC Confluence

Logix5000 Controllers General Instructions - SLAC Confluence

Logix5000 Controllers General Instructions - SLAC Confluence

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

308 Move/Logical <strong>Instructions</strong> (MOV, MVM, BTD, MVMT, BTDT, CLR, SWPB, AND, OR, XOR, NOT, BAND, BOR, BXOR, BNOT)Bitwise OR (OR)The OR instruction performs a bitwise OR operation using the bits inSource A and Source B and places the result in the Destination.To perform a logical OR, see page 13-322.Operands:Relay LadderOperand Type Format DescriptionSource A SINTimmediate value to OR with Source BINTtagSource BDINTA SINT or INT tag converts to a DINT value by zero-fill.SINTimmediate value to OR with Source AINTtagDestinationDINTA SINT or INT tag converts to a DINT value by zero-fill.SINTtagstores the resultINTDINTStructured Textdest := sourceA OR sourceBUse OR as an operator within an expression. This expressionevaluates sourceA OR sourceB.See Structured Text Programming for information on the syntax ofexpressions within structured text.Function BlockOperand Type Format: DescriptionOR tag FBD_LOGICAL structure OR structurePublication 1756-RM003I-EN-P - January 2007

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!