32.17.1.4 System Variables Indicating Execution Results - SIN/SINP

Program Example

SIN

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

SINP

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