Skip to main content

Example - Ladder Diagram

WAND


The WAND instruction performs a logical AND 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 AND operation is performed on the WORD data registers, D0 and D2.
The result of the logical AND operation is saved in the WORD data register, D4.


Memory Monitor

WANDP


The WANDP one-shot instruction performs a logical AND 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, M0.1, is powered ON (1), a logical AND operation is performed on the WORD data registers, D1 and D3.
The result of the logical AND operation is saved in the WORD data register, D5.


Memory Monitor