Mitsubishi MELSEC Q Series Programming Manual page 718

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

DATERD(P)
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
[Ladder Mode]
[List Mode]
Step
[Operation]
Clock data
2005, 12, 24, 12:57:39, Sunday
7-344
Instruction
Device
D0
D1
D2
D3
D4
D5
D6
Outputs "Year"
Outputs "Month"
Outputs "Day"
Outputs "Hour"
Outputs "Minute"
Outputs "Second "
Outputs "Day of week"
BCD
Y7F
2
2005
Y6F
Y68
12
1
24
12
Y5F
Y58
57
1
39
0
Y4F
Y48
BIN
3
Y70
0
0
5
(Year)
Y67
Y60
2
2
4
(Month, Day)
Y57
Y50
2
5
7
(Hour, Minute)
Y47
Y44
9
0
(Second, Day of week)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents