32.19.5.4 Explanation of the JLE Instruction

The JLE instruction compares time. When the JLE instruction is executed, S1 is compared to S2. If the result is S1 <= S2, the instruction passes power. The hour, minute and time variables are compared simultaneously. to compare a time of 10:20, input 0 for the seconds.

When using the JLE instruction, the only variables you can specify in operands S1 and S2 are time variables.

Program Example

JLE

Compares the time variables and determines the result with the coil.

  1. Compares Data_1 to the current time to determine whether Data_1 is less or equal. If the result is S1 <= S2, the instruction passes power and the instruction to the right of the JLE instruction is executed. In the above chart, the OUT instruction to the right of the JLE instruction is executed.