31.17.10.4 System Variables Indicating Execution Results - LG10/LG10P

Program Example

LG10

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

LG10P

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