7 APPLICATION INSTRUCTIONS
7.15 Clock Instructions
697
7
Date comparison
LDDT, ANDDT, ORDT
• This instruction compares the date data specified by (S1) with those specified by (S2), or the date data specified by (S1)
with the current date data. Setting n can determine the data to be compared.
When either (S1) or (S2) corresponds to any of the following in comparing given or current date data with
given date data, the operation error (error code: 4101) or a malfunction may occurs.
• The range of the devices to be used for the index modification is specified over the range of the device
specified by (S1) or (S2).
• File registers are specified by (S1) or (S2) without a register set.
• QnU(D)(H)CPU, QnUDE(H)CPU: the serial number (first five digits) is "10102" or later
• Q00UJCPU, Q00UCPU, Q01UCPU, QnUDVCPU: Supported
(S1): Head number of the devices where the data to be compared are stored (BIN 16 bits)
(S2): 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 device R, ZR J\ U\G Zn Constant
K, H
Others
Bit Word Bit Word
(S1)
(S2)
n
• Comparison of given date data
This instruction treats the date data specified by (S1) and (S2) as a normally open contact, and then compares the data in accordance with the value of n.
• Comparison of current date data
This instruction treats the date data specified by (S1) 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 (S2) is treated as dummy data, and is ignored.
Basic
High
performance
Process
Redundant
Universal
LCPU
Ver.
AND
OR
LD
n
n
n
S1
S1
S1
S2
S2
S2
Command
Command
indicates an instruction symbol of
DT=/DT<>/DT</DT<=/DT>/DT>=.
(S1)
(S1)+1
(S1)+2
(S2)
(S2)+1
(S2)+2
Year
Month
Day
(1980 to 2079)
(1 to 12)
(1 to 31)
Comparison
operator
Comparison
operation result
Data range
Year
Month
Day
(1980 to 2079)
(1 to 12)
(1 to 31)
Data range
(S1)
(S1)+1
(S1)+2
Year
Month
Day
Current date
(1980 to 2079)
(1 to 12)
(1 to 31)
Comparison
operator
Comparison
operation result
Data range