Mitsubishi MELSEC-Q/L Programming Manual page 592

Table of Contents

Advertisement

S.DATERD, SP.DATERD
Program Example
(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]
Step
Instruction
[Operation]
Clock data
2005, 12, 24
12:57:39
Sunday
590
Outputs "Year"
Outputs "Month"
Outputs "Day"
Outputs "Hour"
Outputs "Minute"
Outputs "Second"
Outputs "Day of Week"
Outputs "Millisecond"
Device
D0
2005
D1
12
D2
24
D3
12
530
D4
57
D5
39
0
D6
D7
530
BIN
BCD
Y7F
Y70
2
0
0
5
(Year)
Y6F
Y68
Y67
Y60
1
2
2
4
(Month, Day)
Y5F
Y58
Y57
Y50
1
2
5
7
(Hour, Minute)
Y4F
Y48
Y47
Y44
3
9
0
(Second, Day of week)
Y43
Y38
5
3
0
(Millisecond)

Advertisement

Table of Contents
loading

Table of Contents