32.17.3.4 System Variables Indicating Execution Results - TAN/TANP

Program Example

TAN

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

TANP

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