14: CLOCK / CALENDAR INSTRUCTIONS
USER’S MANUAL 14-5
Example: Time Scheduled Control
This example demonstrates a program to turn output Q0 on and off according to the chart below:
Internal relays are allocated as shown below.
Data registers are allocated as shown below. Comparison data must be set to data registers D30 through D59 in advance
using the program loader. For example, to enter decimal value “4” to data register D30, press the keys:
Comparison Data Month Day Day of Week Hour Minute
Comparison Data 1 M10 M11 M12 M13 M14
Comparison Data 2 M20 M21 M22 M23 M24
Comparison Data 3 M30 M31 M32 M33 M34
Comparison Data 4 M40 M41 M42 M43 M44
Comparison Data 5 M50 M51 M52 M53 M54
Comparison Data 6 M60 M61 M62 M63 M64
Output Q0
ON
OFF
April 3
8:30
May 2
8:30
June 1
16:55
July 2
19:50
August 20
12:05
September 26
17:20
Comparison
Data 1
Comparison
Data 2
Comparison
Data 3
Comparison
Data 4
Comparison
Data 5
Comparison
Data 5
Day of Week D23
Day D22
Hour D24
Month D21
Year D20
Minute D25
Second D26
Calendar/Clock Readout Data
16
Hour D43
Day of Week D42
55
Minute D44
1
Day D41
6
Month D40
M31
M32
M33
M34
M30
Comparison Data 3
19
Hour D48
Day of Week D47
50
Minute D49
2
Day D46
7
Month D45
M41
M42
M43
M44
M40
Comparison Data 4
8
Hour D33
Day of Week D32
30
Minute D34
3
Day D31
4
Month D30
M11
M12
M13
M14
M10
Comparison Data 1
8
Hour D38
Day of Week D37
30
Minute D39
2
Day D36
5
Month D35
M21
M22
M23
M24
M20
Comparison Data 2
12
Hour D53
Day of Week D52
5
Minute D54
20
Day D51
8
Month D50
M51
M52
M53
M54
M50
Comparison Data 5
17
Hour D58
Day of Week D57
20
Minute D59
26
Day D56
9
Month D55
M61
M62
M63
M64
M60
Comparison Data 6
(Turn output Q0 on) (Turn output Q0 off)
(Turn output Q0 on) (Turn output Q0 off)
(Turn output Q0 on) (Turn output Q0 off)
MON
0
OR
E
D
LOD
10
3
BPP
4
This program compares the data of
month, day, hour, and minute and
does not compare the data of day
of week and second.