Example - Ladder Diagram
WXNR
The WXNR instruction performs a logical XNOR on the WORD value, S1, and the WORD value, S2, and saves the result in an assigned WORD data register, D.
Ladder Diagram Example
When the contact, M0.0, is powered ON (1), a logical XNOR operation is performed on the WORD data registers, D20 and D22.
The result of the logical XNOR operation is saved in the WORD data register, D24.
Memory Monitor
![]()
WXNRP
The WXNRP one-shot instruction performs a logical XNOR on the WORD value, S1, and the WORD value, S2, and saves the result in an assigned WORD data register, D.
Every time this instruction energizes, it executes only once.
Ladder Diagram Example
When the contact, M1.0, is powered ON (1), a logical XNOR operation is performed on the WORD data registers, D26 and D28.
The result of the logical XNOR operation is saved in the WORD data register, D30.
Memory Monitor
![]()