90 D50 PLC User's Manual
Instruction
Mnemonic Bit Exclusive NOR Operation Range
Bit
■ Byte
XNR
DXNR
Bit exclusive OR NOT operation
■ Word
Ladder
Process S1 and S2 in bit exclusive OR NOT operation and store
the result in D.
S1 S2 D
001
010
100
111
Description
1. Process S1 and S2 (word/double word) by bit exclusive OR NOT operation and store the
result in D.
For example: S1 = $00FF (hex)
S2 = $3333 (hex)
D = $CC33 (hex)
2. This operation will occur on every scan for which the input condition is true (On). To perform
the operation only on a change of input condition, use the rising/falling edge contact.
Example
Program Expression Operation Results
Initial conditions: W0 = $00FF
W1 = $3333
W2 = $XXXX
Operation results: W0 = $00FF
W1 = $3333
W2 = $CC33
XNR
D =
S1 =
S2 =
R
R
DXNR
D =
S1 =
S2 =
S1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
S2 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1
D 1 1 0 0 1 1 0 0 0 0 1 1 0 0 1 1
DXNR (Exclusive OR NOT)
DXNR
D = W2
S1 = W0
S2 = W1
R0.0
R
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com