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

Parameter | Parameter Type | Data Type | Description |
---|---|---|---|
EN | Input | BOOL | When set to true, the instruction is enabled.
|
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 ladder diagram example

XOR_MASK structured text example

(* ST Equivalence: *) crc32 := XOR_MASK (prevcrc, nextc); result := XOR_MASK (16#012, 16#011); (* equals 16#003 *)
Results

Provide Feedback