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.

312 Move/Logical <strong>Instructions</strong> (MOV, MVM, BTD, MVMT, BTDT, CLR, SWPB, AND, OR, XOR, NOT, BAND, BOR, BXOR, BNOT)Function BlockOperand Type Format DescriptionXOR tag FBD_LOGICAL structure XOR structureFBD_LOGICAL StructureInput Parameter Data Type DescriptionEnableIn BOOL Enable input. If cleared, the instruction does not execute and outputs are not updated.Default is set.SourceA DINT Value to XOR with SourceB.Valid = any integerSourceB DINT Value to XOR with SourceA.Valid = any integerOutput Parameter: Data Type DescriptionEnableOut BOOL The instruction produced a valid result.Dest DINT Result of the instruction. Arithmetic status flags are set for this output.Description:When enabled, the instruction evaluates the XOR operation:If the Bit InSource A IsAnd the Bit InSource B IsThe Bit In theDestination Is0 0 00 1 11 0 11 1 0If you mix integer data types, the instruction fills the upper bits of thesmaller integer data types with 0s so that they are the same size as thelargest data type.Arithmetic Status FlagsFault Conditions:Arithmetic status flags are affected.nonePublication 1756-RM003I-EN-P - January 2007

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

Saved successfully!

Ooh no, something went wrong!