479
Appendix D
Using the Clock Function
The CQM1 can be provided with a clock function by installing a Memory Cassette equipped with a clock. This
appendix explains how to use the clock.
The following two Memory Cassettes are equipped with a clock:
CQM1-ME04R (EPROM) and CQM1-ME08R (EEPROM).
Data Area Words Used with the Clock
This following illustration shows the configuration of the words (AR 17 through AR 21) that are used with the
clock. These words can be read and used as required. AR 17 is provided so that the hour and minute can be
accessed quickly.
Setting the Time
To set the time, use a peripheral device as follows:
When Setting Everything
1,2,3... 1. Turn ON AR 2114 (Clock Stop Bit) to stop the clock.
2. Using a peripheral device, set AR 18 through AR 20 (minute/second, date/hour, and year/
month) and AR 2100 through AR 2107 (day of week).
3. Turn ON AR 2115 (Clock Set Bit) when the time set in step 2 is reached. The clock will start
operating from the time that is set, and the Clock Stop Bit will turn OFF automatically. When
the time setting is complete, AR 2115 will also turn OFF automatically.
When Setting Only the Seconds
It is also possible, by using AR 2113, to simply set the seconds to “00” without going through a complicated
procedure. When AR 2113 is turned ON, the clock time will change as follows:
If the seconds setting is from 00 to 29, the seconds will be reset to “00” and the minute setting will remain the
same.
If the seconds setting is from 30 to 59, the seconds will be reset to “00” and the minute setting will advance by
one.
When the time setting is complete, AR 2113 will turn OFF automatically.
Note The time can be set easily using menu operations from a Programming Console or SSS. Refer to the
CQM1 Operation Manual for the Programming Console procedure or to the SSS Operation Manual: C-
series PCs for the SSS procedure.
!Caution The clock will stop and the current date and time information will be lost if the
Memory Cassette is removed from the PC.
15 8 7 0
AR17
AR18
AR19
AR20
AR21
Hour Minute
Minute
Date
Second
Hour
Year Month
Day of w
eek
2 digits BCD each.
(Only the last 2 digits of
the year are displayed.)
00 to 06: Sunday to Saturday
AR2115 Clock Set Bit
AR2114 Clock Stop Bit
AR2113 30-Second Adjustment Bit
Ambient
temperature
Accuracy
55°C -3 to 0 min
25°C
0°C
±1 min
-2 to 0 min
The accuracy of the clock
depends on the ambient
temperature.
• Clock Accuracy