704
8 APPLICATION INSTRUCTION
8.24 Clock Instruction
• If the comparison target data in the device are not recognized as date data, SM709 turns on after the instruction is executed
and the operation result will be non-continuity. Even if the data are not recognized as date data, SM709 does not turn on if
the data are within the setting range. If the device areas specified by (s1) to (s1)+2 or (s2) to (s2)+2 exceed the
corresponding device range, SM709 turns on after the instruction is executed and the operation result will be non-continuity
as well. Once SM709 turns on, the on state is held until the CPU module is powered off or reset. Turn off SM 709 as
needed.
• The following table lists the comparison operation results of each instruction.
Ex.
The date data A, B, and C are compared.
• The following table lists the comparison operation results between A, B, and C. Even when the data are compared under
the same conditions, the results differ depending on the comparison target data.
• Even though the specified date does not exist, the comparison operation is performed in accordance with the conditions in
the following table as long as the date data are within the valid range.
Operation error
There is no operation error.
Instruction symbol
Condition
Result
Instruction symbol
Condition
Result
DT=
(s1)=(s2)
Conductive state
DT=
(s1)
(s2)
Non-conductive state
DT<>
(s1)
(s2)
DT<>
(s1)=(s2)
DT>
(s1)>(s2)
DT>
(s1)
(s2)
DT<=
(s1)
(s2)
DT<=
(s1)>(s2)
DT<
(s1)<(s2)
DT<
(s1)
(s2)
DT>=
(s1)
(s2)
DT>=
(s1)<(s2)
: Continuity,
: Non-continuity
Comparison target data
Condition
A<B
B<C
A<C
Day
Month
Month, day
Year
Year, day
Year, month
Year, month, day
None
• Date A: 2006/02/30 (Even though the date does not exist, this date can be set.)
• Date B: 2007/03/29
• Date A: 2008/02/31 (Even though the date does not exist, this date can be set.)
: Continuity,
: Non-continuity
Comparison target data
Condition
A<B
B<C
A<C
Day
Month
Month, day
Year
Year, day
Year, month
Year, month, day
None
A
(2006/9/22)
B
(2007/6/23)
C
(2008/8/8)
2009/1/1
2008/1/1
2007/1/1
2006/1/1
Summary of Contents for MELSEC iQ-F FX5
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......