FPΣ
Other Functions
11 - 6
11.2.4 Example Showing the Clock/Calendar being Used
Sample program for Fixed schedule and automatic start
Inthe example shownhere, the clock/calendar functionis used to output the (Y0) signal
for one second, at 8:30 a.m. every day.
Here, the “Hour/minute” data stored in the special data register DT90053 is used to
output the signal at the appointed time.
R9010
F60 CMP
DT 90053 , H 830
Y0
T0
TMX 0, K 10
DF
R0
R900B
Y0
R0
Data comparison instruction
The value of the special data register DT90053 (Hour/
minute data) is compared with the value of H830 (8:30).
Comparison match is output.
Appointed time output pulse (1 second)
0.1-second type timer
K10 is set and used as a 1-second type timer.
Figure 227: FPΣ Sample program of clock/calendar function
The hour data is stored in the upper 8 bits of DT90053 and the minute data in the lower
8 bits, in the BCD format. This hour and minute data is compared with the appointed
time (BCD), and the R900B (=flag) special internal relay is used to detect whether or
not it matches the appointed time.