32.17.2.4 System Variables Indicating Execution Results - COS/COSP

Program Example

COS

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

COSP

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