581
DT=, DT<>, DT>, DT<=, DT<, DT>=
1
2
3
4
4
6
7
8
7.15
Clock instr
uct
ions
7.15.7
D
T=, DT<>, DT>, DT<=, DT<, DT>=
Program
E
xamp
l
e
(1) The following program converts the seconds stored at D0 and D1 into an hour, minute, second format, and stores the
result at devices starting from D100 when X20 is turned ON.
[Ladder Mode]
[List Mode]
[Operation]
• Conversion to hour minute, and second format by the HOURP instruction (when the value 40000 seconds has been
designated by D1 and D0).
: 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)
F
unct
i
on
(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.
DT=, DT<>, DT>, DT<=, Date comparison
DT<, DT>=
7.15.7
DT=, DT<>, DT>, DT<=, DT<, DT>=
• QnU(D)(H)CPU, QnUDE(H)CPU: The serial number (first five
digits) is "10102" or later.
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
K, H
Other
Bit
Word
Bit
Word
––
––
––
––
––
––
––
––
n ––
––
Step
I
nstruct
i
on
De
vi
ce
4
0000
D1,D0
11
6
4
0
D101
D102
D100
Bas
i
c
Hi
gh
performance
Process
Redundant
Universal
LCPU
Ver.
Command
Command
AND
OR
LD
i
nd
i
cates
an
i
nstruct
i
on
symbo
l
of
D
T=/
D
T
<>
/
D
T
<
/
D
T
<
=/
D
T
>
/
D
T
>
=
.
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