32.19.2.4 Explanation of the JGT Instruction
-
The JGT instruction compares time. When the JGT
instruction is executed, S1 is compared to S2. The instruction
passes power if the result is S1 > S2.
-
The hour, minute and time variables are compared
simultaneously. to compare a time of 10:20, input 0 for the
seconds.
-
When using the JGT instruction, the only
variables you can specify in operands S1 and S2 are time
variables.
Program Example
JGT
Compares the time variables and determines the result with the
coil.
-
Compares Data_1 to the current time to determine
whether Data_1 is greater. If the result is S1 > S2, the
instruction passes power and the instruction to the right of the
JGT instruction is executed. In the above chart, the OUT
instruction to the right of the JGT instruction is executed.
|