Clock Read/Change - Omron CJ - 10-2005 Manual

Programming consoles
Table of Contents

Advertisement

Clock Read/Change

6-1
Clock Read/Change
Key Sequence
Initial display
Operation Example
1,2,3...
116
RUN
See note
OK
Note When the CPU Unit is in RUN mode, the clock can be read but can-
not be changed.
This operation is used to read or set the CPU Unit's internal clock.
• A battery is not installed in CS1-series PLCs when they are shipped.
When the battery is installed in the CPU Unit, the CPU Unit clock will read
as shown below. 00–01–00 = day, month, year; 00:00:00 = hours, min-
utes, seconds; SUN(0) = Sunday.
• The CPU Unit's internal clock will start when the following Clock Read/
Change operation is executed, when the time is read/changed from
another Peripheral Device, when a FINS command is used to read/
change the time, or when the DATE instruction is executed from the user
program.
• The time data for the CPU Unit's internal clock is stored in the Calendar/
Clock Area (A351 to 354) in the Auxiliary Area.
FUN
SHIFT
MON
The following example shows how to set clock data for the first time.
1. From the initial display, access the special function display.
CLR
SHIFT
FUN
2. Select 0: TIM.
3. To change the settings, press the CHG Key. When the CHG Key is
pressed, the cursor will be displayed on the digit to be changed.
MONITOR
PROGRAM
OK
TIM
00-00-00
00:00:00: SUN(0)
0
CHG
Specify: Yr Mth Day Hr Min S
000000 CT00
...
0:CLOCK
MON
TIM
00-01-01
0
00:00:00: SUN(0)
Section 6-1
Data
WRITE

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents