590
S.DATERD, SP.DATERD
Program
E
xamp
l
e
(1) The following program outputs the following clock data as BCD values:
Year ..................Y70 to Y7F
Month................Y68 to Y6F
Day ...................Y60 to Y67
Hour..................Y58 to Y5F
Minute...............Y50 to Y57
Second .............Y48 to Y4F
Week ................Y44 to Y47
Millisecond........Y38 to Y43
[Ladder Mode]
[List Mode]
[Operation]
Outputs "Year"
Outputs "Month"
Outputs "Hour"
Outputs "Minute"
Outputs "Second"
Outputs "Day"
Outputs "Day of Week"
Outputs "Millisecond"
I
nstruct
i
on
De
vi
ce
Step
5
0
0
Y70
Y7F
(Year)
7
5
2
1
Y50
Y57
Y58
Y5F
(Hour, Minute)
0
9
3
Y44
Y47
Y48
Y4F
(Second, Day of
w
eek)
BCD
D0
12
2005
24
12
57
39
D1
D2
D3
D4
D5
Clock data
Sunday
BIN
2005, 12, 24
12:57:39
530
4
2
2
2
1
Y60
Y67
Y68
Y6F
(Month, Day)
0
D6
530
D7
0
3
5
Y38
Y43
(Millisecond)