Programming Example; Reading And Setting The Clock; Preparatory Operations - Omron SYSMAC CPM2B Operation Manual

Programmable controller
Hide thumbs Also See for SYSMAC CPM2B:
Table of Contents

Advertisement

Programming Example

6-2-28 Reading and Setting the Clock

1, 2, 3...
6-3

Programming Example

6-3-1 Preparatory Operations

1, 2, 3...
106
This operation is used to read or set the CPU's clock. The clock can be read in
any mode, but can be set in MONITOR or PROGRAM mode only.
Operation
Read clock
OK
Set clock
No
1. Press the CLR Key to bring up the initial display.
2. Press the FUN Key, SHIFT Key, and then the MONTR Key to display the
date and time.
SHIFT MONTR
FUN
3. Press the CHG Key to change the date and/or time.
The digit that can be changed will flash. If necessary, input a new value with
the Up and Down Arrow Keys or Numeric Keys. Press the CHG Key to move
the cursor to the next digit. The following table shows the setting ranges for
each value.
Year
Month
00 to 99
01 to 12
4. Press the WRITE Key to write the new value.
WRITE
Press the CLR Key to return to the initial display.
This section demonstrates all of the steps needed to write a program with the
Programming Console.
Use the following procedure when writing a program to the CPM2B for the first
time.
1. Set the Programming Console's mode switch to PROGRAM mode and turn
on the CPM2B's power supply. The password input display will appear on
the Programming Console.
MONITOR
RUN
PROGRAM
2. Enter the password by pressing the CLR and then the MONTR Key.
CLR
MONTR
RUN
MONITOR
OK
OK
TIM
99 02 22
11:04:32
TIM CHG?99 02 22
CHG
11:04:32
Day
Hour
Minute
01 to 31
00 to 23
00 to 59
INST TBL
FUN018:HEX
<PROGRAM>
PASSWORD!
<PROGRAM>
Section
6-3
PROGRAM
OK
OK
MON(1)
MON(1)
Second
Day-of-week
00 to 59 0 to 6
(SUN to SAT)
READ
BZ

Advertisement

Table of Contents
loading

Table of Contents