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.

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

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

Saved successfully!

Ooh no, something went wrong!