31.12.1.5 Confirming Execution Results - AND/ANDP

Program Example

AND

  1. The AND instruction is executed when the positive transition instruction turns ON. When the AND instruction is executed, the result value obtained after Data_A is ANDed with F0FF is stored in D1.
    When using a normally open instruction, the AND instruction is always executed as long as the normally open instruction bit is ON.

ANDP

  1. When the normally open instruction turns ON, the AND instruction will be executed. When the ANDP instruction is executed, the result value obtained after Data_A is ANDed with F0FF is stored in D1. Even when using a normally open instruction, the ANDP instruction executes only when it detects the upward transition.
    As a result, even if the instruction is always on, ANDP executes only at the first scan.