31.17.6.4 System Variables Indicating Execution Results - ATAN/ATANP

Program Example

ATAN

  1. The ATAN instruction will be executed when the positive transition instruction turns ON. The ATAN instruction calculates the arc tangent of Data_A and stores the result in D1.
    When using a normally open instruction, the ATAN instruction is always executed as long as the normally open instruction bit remains ON.

ATANP

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