The JNE instruction compares time. When the JNE 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 JNE instruction, the only variables you can specify in operands S1 and S2 are time variables.
Program Example
JNE
Compares the time variables and determines the result with the coil.
Compares Data_1 to the current time to determine whether they are unequal. If the result is S1 <> S2, the instruction passes power and the instruction to the right of the JNE instruction is executed. In the above chart, the OUT instruction to the right of the JNE instruction is executed.