32.16.3.4 System Variables Indicating Execution Results - SQRT/SQRTP

Program Example

SQRT

  1. When the positive transition instruction turns ON, the SQRT instruction will be executed. When the SQRT instruction is executed, the square root of Data_A is stored in the calculation result (real/float variable) in D1.
    When using a normally-open instruction, as long as the instruction variable is ON, the SQRT instruction is always executed.

SQRTP

  1. he SQRTP and SQRT instructions differ in how they detect the instruction start. The SQRTP only detects the upward transition and executes the SQRTP instruction even when using a normally open instruction. Therefore, even when the normally open instruction is always ON, the SQRTP instruction is executed only for one scan.