Logical XOR
If the bits in the strings examined by XOR are different, a 1 is
placed in the corresponding position in the output bit string.
For each pair of bits examined, if only one bit is 1, XOR
places a 1 in the corresponding location in string Q.
If both bits are 0, XOR places a 0 in the corresponding
location in string Q.
Tips:
▪ If string IN2 and output string Q begin at the same
reference, a 1 placed in string IN1 will cause the
corresponding bit in string IN2 to alternate between 0
and 1, changing state with each scan as long as input is
received.
▪ You can program longer cycles by pulsing the input to
the function at twice the desired rate of flashing. The
input pulse should be one scan long (one-shot type coil
or self-resetting timer).
▪ You can use XOR to quickly compare two bit strings, or
to blink a group of bits at the rate of one ON state per
two scans.
▪ XOR is useful for transparency masks.