Using The Cpm2A/Cpm2C Clock Function; Data Area Words; Setting The Time - Omron CPM1 - PROGRAMING MANUAL 02-2001 Programming Manual

Hide thumbs Also See for CPM1 - PROGRAMING MANUAL 02-2001:
Table of Contents

Advertisement

Using the CPM2A/CPM2C Clock Function

2-19 Using the CPM2A/CPM2C Clock Function

2-19-1 Data Area Words

2-19-2 Setting the Time

Setting Everything
1, 2, 3...
Setting Only the Seconds
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.
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
AR 17
Hour
AR 18
Minute
AR 19
Date
AR 20
Year
AR 21
AR 2115 Clock Set Bit
AR 2114 Clock Stop Bit
AR 2113 30-Second Adjustment Bit
To set the time, use a programming device as follows:
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.
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.
8 7
0
Minute
2 digits BCD each.
Second
(Only the last 2 digits of the
Hour
year are given.)
Month
Day of week
00 to 06: Sunday to Saturday
Section
2-19
163

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents