31.22.8.5 Confirming Execution Results - S2H/S2HP

Program Example

S2H

  1. When the positive transition instruction turns ON, the S2H instruction will be executed. When the S2H instruction is executed, the result of the S2H conversion of Data_A is stored in D1.
    When using normally open instruction, the S2H instruction is always executed as long as the normally open instruction variable remains ON.

S2HP

  1. The S2HP and S2H instructions have different ways of detecting when to execute. In the S2HP instruction, only the upward transition is detected and the S2HP instruction is executed even when using a normally open instruction. Even if the normally open instruction variable remains ON, the S2HP instruction is executed only once (for 1 scan).