EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Page 688

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...
686
7 APPLICATION INSTRUCTIONS
7.15 Clock Instructions
Program example
The following program writes the following clock data to the clock element as BCD values when X40 is turned ON.
Year: X30 to X3F
Month: X28 to X2F
Day: X20 to X27
Hour: X18 to X1F
Minute: X10 to X17
Second: X8 to XF
Week: X4 to X7
[Ladder Mode]
[List Mode]
[Operation]
Sets "Month"
Sets "Day"
Sets "Hour"
Sets "Minute"
Sets "Second "
Sets "Year"
Writes the clock data (D0 to D6)
to the clock element
Sets "Day of week"
Step Instruction Device
1
2
2
4
X2F X28 X27 X20
(Month, Day)
(Hour, Minute)
1257
X1F
X18
X17 X10
390
XF X8 X7 X4
(Second, Day of week)
BIN
BIN
Clock data
2000, 12, 24 12:57:39 Sunday
2
0
0 0
X3F
X38
X37
X30
(Year)
D0
12
2000
24
12
57
39
D1
D2
D3
D4
D5
0
D6

Table of Contents

Related product manuals