EasyManua.ls Logo

Mitsubishi MELSEC-Q/L - Page 595

Mitsubishi MELSEC-Q/L
850 pages
Print Icon
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...
593
S.DATE+, SP.DATE+
1
2
3
4
4
6
7
8
7.16 Expansion Clock Instructions
7.16.2 S.DATE+, SP.DATE+
Program Example
(1) The following program adds 1 hour to the clock data read from the clock element, and stores the results into the area
starting from D100 when X20 is turned ON.
[Ladder Mode]
[List Mode]
[Operation]
Time data read operation by the SP.DATERD instruction
Addition by the SP.DATE+ instruction
Sets the time to D10 or later.
Reads out the clock element
data to D0 or later.
Instruction
Device
Step
05
5
17
D1
D2
Year
Day
Month
10
23
41
2
D0
D3
D4
D5
D6
Hour
Minute
Second
Day of week
Time data
Millisecond
100
Time data
Clock element
D11
D12
D101
D102
Hour: 10
Minute: 23
Second: 41
D4
D5
+
D100D10
D3
Millisecond: 100
D6
D7
2 (Tuesday)
Hour: 1
Minute: 0
Second: 0
Millisecond: 0
--
Hour: 11
Minute: 23
Second: 41
Millisecond: 100
--
D13
D14
D103
D104

Table of Contents

Related product manuals