XOR_MASK (exclusive OR mask)

Integer exclusive OR bit-to-bit mask, returns inverted bit values.
Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the Micro810, L20E, L50E, and L70E controllers.
XOR_MASK
XOR_MASK
XOR_MASK parameters
Parameter
Parameter Type
Data Type
Description
EN
Input
BOOL
When set to true, the instruction is enabled.
  • TRUE: Execute the current computation.
  • FALSE: There is no computation.
Applies to ladder diagram programs.
IN
Input
DINT
Must have integer format.
MSK
Input
DINT
Must have integer format.
XOR_MASK
Output
DINT
Bit-to-bit logical Exclusive OR between IN and MSK.
ENO
Output
BOOL
Enables output. Applies to ladder diagram programs.

XOR_MASK examples

XOR_MASK function block diagram example
XOR_MASK function block diagram example
XOR_MASK ladder diagram example
XOR_MASK ladder diagram example
XOR_MASK structured text example
XOR_MASK structured text example
(* ST Equivalence: *) crc32 := XOR_MASK (prevcrc, nextc); result := XOR_MASK (16#012, 16#011); (* equals 16#003 *)
Results
Results
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal