31.21.7.5 Upper and Lower Limits for Input and Output - SCL/SCLP

Double-click the SCL instruction to display the following dialog box. In the dialog box, specify the settings for the maximum and minimum input values and for output A and output B.

Program Example

SCL

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

SCLP

  1. The SCLP and SCL instructions differ by when they run. In the SCLP instructions, even when using a normally open instruction, only the positive transition is detected and the SCLP instruction is executed. Therefore, the SCLP instruction is executed only for one scan, even when the normally open instruction bit remains ON.