31.10.3.5 Confirming Execution Results - MUL/MULP

Program Example

MUL

Multiplies one constant by another and stores the result in the integer variable.

  1. When the positive transition instruction turns ON, the MUL instruction will be executed. When the MUL instruction is executed, the result value of 375, obtained from 25 x 15 = 375, is stored in D1.
    When using a normally open instruction, as long as the instruction variable is ON, the MUL instruction is always executed.

MULP

  1. When the normally open instruction turns ON, the MULP instruction will be executed. When the MULP instruction is executed, the result value of 375, obtained from 25 x 15 = 10, is stored in D1.
    Even when using a normally open instruction, the MULP instruction executes only when it detects the upward transition.
    Therefore, even when the variable of the NO instruction is always ON, the MULP instruction is executed only for one scan.