31.15.1.6 System Variables Indicating Execution Results - ROL/ROLP

Program Example

ROL

  1. When a positive transition instruction turns ON, the ROL instruction is executed. When the ROL instruction is executed, the result of rotating 1 bit is stored in D1.

    • When using a normally open instruction, the ROL instruction is always executed as long as the normally open bit is ON.

ROLP

The ROLP and ROL instructions have different ways of detecting when to execute. In the ROLP instruction, even when using a normally open instruction, only the upward transition of the bit is detected, and the ROLP instruction is executed. Even if the bit of the normally open instruction remains ON, the ROL instruction is executed only for one scan.