7 APPLICATION INSTRUCTIONS
7.25 Clock Instructions
1015
7
• When 0 is set to the 0 to 2 bits, the date data are not compared. When 1 is set, the entire date data (year, month, and day)
are compared.
• When 0 is set to the 15 bit, the data in the device specified by (s1) and the date data in the device specified by (s2) are
compared. When 1 is set, the data in the device specified by (s1) is compared with the current date. The date data in the
device specified by (s2) is ignored.
• The following table lists processing details of each bit.
• 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 setting area
in the device/label memory, 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.
(s3) value when
comparing two
specified date data
(s3) value when
comparing the
specified date data
with the current date
Comparison
target
Description
0001H
8001H
Day
Only data in the device specified by (s1)+2 is compared.
0002H
8002H
Month
Only data in the device specified by (s1)+1 is compared.
0003H
8003H
Month, day
Data in the device areas specified by (s1)+1 and (s1)+2 are compared.
0004H
8004H
Year
Only data in the device specified by (s1) is compared.
0005H
8005H
Year, day
Data in the device areas specified by (s1) and (s1)+2 are compared.
0006H
8006H
Year, month
Data in the device areas specified by (s1) and (s1)+1 are compared.
0007H
8007H
Year, month, day
The entire date data in the device areas specified by (s1), (s1)+1, and (s1)+2
are compared.
Other than 0001H to 0007H, 8001H to 8007H
None
The entire date data in the device areas specified by (s1), (s1)+1, and (s1)+2
are not compared. (The operation result will be non-continuity.)
Instruction symbol (ladder, FBD/LD)
Condition
Result
DT=, EQ
(s1)=(s2)
Continuity state (ENO is on.)
DT<>, NE
(s1)
(s2)
DT>, GT
(s1)>(s2)
DT<=, LE
(s1)
(s2)
DT<, LT
(s1)<(s2)
DT>=, GE
(s1)
(s2)
DT=, EQ
(s1)
(s2)
Non-continuity state (ENO is off.)
DT<>, NE
(s1)=(s2)
DT>, GT
(s1)
(s2)
DT<=, LE
(s1)>(s2)
DT<, LT
(s1)>
(s2)
DT>=, GE
(s1)<(s2)
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-R Series
Page 1: ...MELSEC iQ R Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 24: ...22 INDEX 2092 INSTRUCTION INDEX 2093 REVISIONS 2104 WARRANTY 2105 TRADEMARKS 2106 ...
Page 34: ...32 MEMO ...
Page 35: ...33 PART 1 PART 1 OVERVIEW This part consists of the following chapter 1 OVERVIEW ...
Page 68: ...66 1 OVERVIEW 1 5 Precautions on Programming MEMO ...
Page 1448: ...1446 14 REDUNDANT SYSTEM INSTRUCTIONS 14 2 Disabling Enabling System Switching MEMO ...
Page 1972: ...1970 33 TIME DATA TYPE FUNCTIONS 33 4 Division MEMO ...
Page 2067: ...APPX Appendix 5 PID Control Program Examples 2065 A 252 Set PID control data for loop 2 ...
Page 2109: ......