7-355
(DT=,DT<>,DT>,DT<=,DT<,DT>=)
1
2
3
4
6
6
7
8
7.15 Clock instructions
7.15.7 Date comparison (DT=,DT<>,DT>,DT<=,DT<,DT>=)
7.15.7 Date comparison (DT=,DT<>,DT>,DT<=,DT<,DT>=)
(DT=,DT<>,DT>,DT<=,DT<,DT>=)
Function
(1) This instruction compares the date data specified by with those specified by , or the
date data specified by with current date data. Setting n can determine the data to be
compared.
(a) Comparison of given date data
• This instruction treats the date data specified by and as a normally open
contact, and then compares the data in accordance with the value of n.
(b) Comparison of current date data
• This instruction treats the date data specified by and the current date data as a
normally open contact, and then compares the data in accordance with the value of
n.
• Time data specified by is treated as dummy data, and is ignored.
QnU(D)(H)CPU: The serial number (first five digits) is "10102" or later.
QnUDE(H)CPU: The serial number (first five digits) is "10102" or later.
: Head number of the devices where the data to be compared are stored (BIN 16 bits)
: Head number of the devices where the data to be compared are stored (BIN 16 bits)
n : Value of the data to be compared or the number of the stored data to be compared (BIN 16 bits)
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
K, H
Other
Bit Word Bit Word
–– –– –– ––
–– –– –– ––
n –– ––
Basic
Process
High
performance
Redundant
Ver.
Universal
LCPU
Command
Command
AND
OR
LD
indicates an instruction symbol of DT=/DT<>/DT</DT<=/DT>/DT>=.
n
n
n
S1
S2
S1
S2
S1
S2
S1
S1
S2
S1
S1
+1
S1
Year
Month
Day
(1980〜2079)
Data range
Comparison
operator
(1〜12)
(1〜31)
+2
(1980〜2079)
Data range
(1〜12)
(1〜31)
Comparison
operation result
S2
S2
+1
S2
Year
Month
Day
+2
S1
S2
Year
Month
Day
Data range
Comparison
operator
Comparison
operation result
Current date
S1
S1
+1
S1
+2
(1980 to 2079)
(1 to 12)
(1 to 31)