7-365
(TM=,TM<>,TM>,TM<=,TM<,TM>=)
1
2
3
4
6
6
7
8
7.15 Clock instructions
7.15.8 Clock comparison (TM=,TM<>,TM>,TM<=,TM<,TM>=)
Program Example
(1) The following program compares the data stored in D0 with the data (hour, minute, and
second) stored in D10, and makes Y33 be conductive status when the data stored in D0
meet the data stored in D10.
[Ladder Mode] [List Mode]
(2) The following program compares the data stored in D0 with the current time data (hour and
minute), and makes Y33 be conductive status when the data stored in D0 do not meet the
current date data, when M0 is turned on.
[Ladder Mode] [List Mode]
(3) The following program compares the data stored in D0 with the data (hour and second)
stored in D10, and makes Y33 be conductive status when the data value stored in D10 is
smaller than the data value stored in D0, when M0 is turned on.
[Ladder Mode] [List Mode]
(4) The following program compares the data stored in D0 with the current time data (hour), and
makes Y33 be conductive status when the value of the current time data is the data value
stored in D0 or larger.
[Ladder Mode] [List Mode]
Step
Instruction
Device
Step
Instruction
Device
Step
Instruction
Device
Step
Instruction
Device