Clock/Calendar Application Examples - Panasonic FP-XH M8N16PD User Manual

Programmable controller
Table of Contents

Advertisement

 Setting based on the user program
After the time data is written in the special data register DT90054 - DT90057, write H8000 in
DT90058. Perform the transmission by following the order of H8000→H0000 or using the
differential instruction. Always remember not to input H8000.
R0
DF
Set 0 minutes 0
seconds

21.5.3 Clock/calendar Application Examples

 Application example (regular automatic start)
• Use the clock/calendar (real-time clock) function to output 1 second (Y0) signal at 8:30 am
every day. In this example, the "hour, minute data" stored in the special data register
DT90053 are used to output signal regularly.
• In DT90053, the "hour data" and "minute data" are respectively stored in the high 8 bytes
and low 8 bytes in the form of BCD. When compare this "hour, minute data" and the value of
any time (BCD), use the special internal relay R900B (= flag) to check if the time is
consistent.
R9010
R900B
R0
DF
Y0
Compare the value of special data register DT90053 (hour, minute data) and H830 (8:30).
Output if consistent
F0 MV
H0
F0 MV
H512
F0 MV
H8000
Set 5 days 12 hours
F60 CMP
DT90053
T0
TMX 0
Output pulse at a fixed time
(1 second)
DT90054
DT90055
DT90058
Time alignment
H830
R0
Y0
K10
0.1 s timer
setting K10, used as 1 s
timer
21.5 Clock/Calendar
21-15

Advertisement

Table of Contents
loading

Table of Contents