Mitsubishi MELSEC Q Series Programming Manual page 744

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

Advertisement

S(P).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
Clock element
• Addition by the SP.DATE+ instruction
D3
D4
Minute: 23
Second: 41
D5
D6
2 (Tuesday)
D7
Millisecond: 100
7-370
Step
Instruction
Device
D0
05
D1
5
D2
17
D3
10
23
D4
41
D5
2
D6
100
Hour: 10
D10
D11
+
D12
D13
D14
Year
Month
Day
Hour
Minute
Time data
Second
Day of week
Millisecond
Time data
Hour: 1
D100
Minute: 0
D101
Second: 0
D102
--
D103
Millisecond: 0
D104
Reads out the clock element
data to D0 or later.
Sets the time to D10 or later.
Hour: 11
Minute: 23
Second: 41
--
Millisecond: 100

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents