EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Page 686

Mitsubishi Electric MELSEC-Q/L
1084 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
684
7 APPLICATION INSTRUCTIONS
7.15 Clock Instructions
Program example
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]
[Operation]
Outputs "Year"
Outputs "Month"
Outputs "Hour"
Outputs "Minute"
Outputs "Second "
Outputs "Day"
Outputs "Day of week"
Step Instruction Device
(Year)
7521
Y50Y57Y58Y5F
(Hour, Minute)
0
9
3
Y44Y47Y48Y4F
(Second, Day of week)
BCD
D0
12
2005
24
12
57
39
D1
D2
D3
D4
D5
Clock data
BIN
2005, 12, 24, 12:57:39, Sunday
4221
5002
Y60Y67Y68Y6F
Y70Y7F
(Month, Day)
0
D6

Table of Contents

Related product manuals