31.17.5.4 System Variables Indicating Execution Results - ACOS/ACOSP

Program Example

ACOS

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

ACOSP

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