32.17.7.4 System Variables Indicating Execution Results - COT/COTP

Program Example

COT

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

COTP

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