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) 319Boolean AND (BAND)The BAND instruction logically ANDs as many as 8 boolean inputs.To perform a bitwise AND, see page 13-305.Operands:Structured TextIF operandA AND operandB THEN;END_IF;Use AND or the ampersand sign “&” as an operator within anexpression. The operands must be BOOL values or expressions thatevaluate to BOOL values. This expression evaluates whetheroperandA and operandB are both set (true).See Appendix B for information on the syntax of expressions withinstructured text.Function BlockOperand Type Format DescriptionBAND tag FBD_BOOLEAN_AND structure BAND structureFBD_BOOLEAN_AND StructureInput Parameter Data Type DescriptionEnableIn BOOL Enable input. If cleared, the instruction does not execute and outputs are not updated.Default is set.In1 BOOL First boolean input.Default is set.In2 BOOL Second boolean input.Default is set.In3 BOOL Third boolean input.Default is set.In4 BOOL Fourth boolean input.Default is set.In5 BOOL Fifth boolean input.default is set.In6 BOOL Sixth boolean input.Default is set.Publication 1756-RM003I-EN-P - January 2007

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

Saved successfully!

Ooh no, something went wrong!