32.22.6.5 Confirming Execution Results - R2F/R2FP

Program Example

R2F

  1. When the positive transition instruction turns ON, the R2F instruction will be executed. When the R2F instruction is executed, the result of the R2F conversion of Data_A is stored in D1.
    When using a normally open instruction, the R2F instruction is always executed as long as the normally open instruction variable remains ON.

R2FP

  1. The R2FP and R2F instructions have different ways of detecting when to execute. In the R2FP instruction, only the upward transition is detected and the R2FP instruction is executed even when using a normally open instruction. Even if the normally open instruction variable remains ON, the R2FP instruction is executed only once (for 1 scan).