31.15.2.6 System Variables Indicating Execution Results - ROR/RORP

Program Example

ROR

  1. When the positive transition instruction turns ON, the ROR instruction is executed. When the ROR instruction is executed, the result of rotating 1 bit to the right is stored in D1.

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

RORP

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