Chapter 7
Binary instructions
XOR_MASK
Parameter
EN
IN
MSK
XOR_MASK
ENO
146
Integer exclusive OR bit-to-bit mask, XOR_MASK returns inverted bit values.
Arguments
Parameter
Data Type
Description
Type
Input
BOOL
Function enable.
When EN = TRUE, perform the exclusive OR bit-to-bit mask computation.
When EN = FALSE, there is no computation.
Input
DINT
Must have integer format.
Input
DINT
Must have integer format.
Output
DINT
Bit-to-bit logical Exclusive OR between IN and MSK.
Output
BOOL
Enable out.
XOR_MASK language examples
Function block diagram
Ladder diagram
Rockwell Automation Publication 2080-RM001D-EN-E - February 2015