Time comparison instructions ( DT(341) to DT(346) ) compare two BCD time values and create an ON execution condition when the comparison condition is true.
The time comparison instructions are treated just like the LD, AND, and OR instructions to control the execution of subsequent instructions.
Ladder Symbol:
Symbol: DT(341 to 346)
C: Control Word
Bits 00 to 05 of C specify whether or not the time data will be masked for the comparison. Bits 00 to 05 mask the seconds, minutes, hours, day, month, and year, respectively. If all 6 values are masked, the instruction will not be executed, the execution condition will be OFF, and the Error Flag will be turned ON.
S1: First word of present time
S1 through S1+2: Present Time Data
S1 through S1+2 contain the present time data. S1 through S1+2 must be in the same data area.
When using the CPU Unit's internal clock data for the comparison, set S1 to A351 to specify the CPU Unit's internal clock data (A351 to A353).
S2: First words of comparison time
S2 through S2+2: Comparison Time Data
S2 through S2+2 contain the comparison time data. S2 through S2+2 must be in the same data area.
Source: www.omron.com
The time comparison instructions are treated just like the LD, AND, and OR instructions to control the execution of subsequent instructions.
Ladder Symbol:
Symbol: DT(341 to 346)
C: Control Word
Bits 00 to 05 of C specify whether or not the time data will be masked for the comparison. Bits 00 to 05 mask the seconds, minutes, hours, day, month, and year, respectively. If all 6 values are masked, the instruction will not be executed, the execution condition will be OFF, and the Error Flag will be turned ON.
S1: First word of present time
S1 through S1+2: Present Time Data
S1 through S1+2 contain the present time data. S1 through S1+2 must be in the same data area.
When using the CPU Unit's internal clock data for the comparison, set S1 to A351 to specify the CPU Unit's internal clock data (A351 to A353).
S2: First words of comparison time
S2 through S2+2: Comparison Time Data
S2 through S2+2 contain the comparison time data. S2 through S2+2 must be in the same data area.
Source: www.omron.com