Mitsubishi Electric MELSEC-Q/L Programming Manual page 716

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents