593
S.DATE+, SP.DATE+
1
2
3
4
4
6
7
8
7.16
Expa
nsion Clock Instru
ctions
7.16.2
S
.DATE+, SP.DATE+
Program
E
xamp
l
e
(1) The following program adds 1 hour to the clock data read from the clock element, and stores the results into the area
starting from D100 when X20 is turned ON.
[Ladder Mode]
[List Mode]
[Operation]
• Time data read operation by the SP.DATERD instruction
• Addition by the SP.DATE+ instruction
Sets the time to D10 or later.
Reads out the clock element
data to D0 or later.
I
nstruct
i
on
De
vi
ce
Step
05
5
17
D1
D2
Year
Day
Month
10
23
41
2
D0
D3
D4
D5
D6
Hour
Minute
Second
Day of
w
eek
Time data
Millisecond
100
Time data
Clock element
D11
D12
D101
D102
Hour: 10
Minute: 23
Second: 41
D4
D5
+
D100
D10
D3
Millisecond: 100
D6
D7
2 (Tuesday)
Hour: 1
Minute: 0
Second: 0
Millisecond: 0
--
Hour: 11
Minute: 23
Second: 41
Millisecond: 100
--
D13
D14
D103
D104