![background image](http://html1.mh-extra.com/html/omron/srm1-programing-02-2001/srm1-programing-02-2001_programming-manual_742414184.webp)
2-19
Section
Using the CPM2A/CPM2C Clock Function
163
2-19 Using the CPM2A/CPM2C Clock Function
The CPM2A PCs and some CPM2C (including the CPM2C-S) PCs have a built-
in clock function. This section explains how to use the clock.
2-19-1 Data Area Words
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 re-
quired. (AR 17 is provided so that the hour and minute can be accessed quickly.)
15
8
7
0
AR 18
AR 19
AR 20
AR 21
Minute
Date
Second
Hour
Year
Month
Day of week
2 digits BCD each.
(Only the last 2 digits of the
year are given.)
00 to 06: Sunday to Saturday
AR 2115 Clock Set Bit
AR 2114 Clock Stop Bit
AR 2113 30-Second Adjustment Bit
Hour
Minute
AR 17
2-19-2 Setting the Time
To set the time, use a programming device as follows:
Setting Everything
1, 2, 3...
1. Turn ON AR 2114 (Clock Stop Bit) to stop the clock and allow AR 18 through
AR 21 to be overwritten.
2. Using a Programming 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 and
Clock Set BIt will be turned OFF automatically.
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
CPM2A Operation Manual
or the
CPM2C Operation Manu-
al
for the Programming Console procedure or to the
SSS Operation Manual: C-
series PCs
for the SSS procedure.