Mitsubishi MELSEC Q Series Programming Manual page 740

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

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents