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...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

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

Saved successfully!

Ooh no, something went wrong!