31.17.8.4 System Variables Indicating Execution Results - EXP/EXPP

Program Example

EXP

  1. The EXP instruction is executed when the positive transition instruction turns ON. The EXP instruction calculates the exponent of Data_A and stores the result in D1.
    When using a normally open instruction, the EXP instruction is always executed as long as the normally open instruction bit ON.

EXPP

  1. The EXPP and EXP instructions differ in when they run. In EXPP instructions, even when using a normally open instruction, the EXPP instruction executes only when it detects the upward transition. Therefore, the EXPP instruction is executed only for one scan, even when the normally open instruction bit remains ON.