Omron CPM2B ユーザーズマニュアル

ページ / 149
!
1-3
Section
Structure and Operation
14
1-3-2 Operating Modes
CPM2B CPU Boards have 3 operating modes: PROGRAM, MONITOR, and
RUN.
The program cannot be executed in PROGRAM mode. This mode is used to
perform the following operations in preparation for program execution
Changing initial/operating parameters such as those in the PC Setup
Writing, transferring, or checking the program
Checking wiring by force-setting and force-resetting I/O bits
Caution
The PC continues to refresh I/O bits even if the PC is in PROGRAM mode, so
devices connected to output points on the CPU Board or Expansion I/O Boards
may operate unexpectedly if the corresponding output bit is turned ON by
changing the contents of I/O memory from a Programming Device.
The program is executed in MONITOR mode and the following operations can
be performed from a Programming Device. In general, MONITOR mode is used
to debug the program, test operation, and make adjustments.
Online editing
Monitoring I/O memory during operation
Force-setting/force-resetting I/O bits, changing set values, and changing pres-
ent values during operation
The program is executed at normal speed in RUN mode. Operations such as
online editing, force-setting/force-resetting I/O bits, and changing set values/
present values cannot be performed in RUN mode, but the status of I/O bits can
be monitored.
1-3-3 Operating Mode at Startup
The operating mode of the CPM2B when the power is turned ON depends upon
the PC Setup settings and the Programming Console’s mode switch setting if a
Programming Console is connected.
PC Setup setting
Operating mode
Word
Bits
Setting
DM 6600
08 to 15
00
See note.
01
Startup mode is the same as the operating mode before
power was interrupted.
02
Startup mode is determined by bits 00 to 07.
00 to 07
00
PROGRAM mode
01
MONITOR mode
02
RUN mode
Note The startup mode depends upon the setting of Communications Switch SW201
and the Programming Device connected to the peripheral port.
Programming
Device
SW201 OFF
SW201 ON
None
PROGRAM mode
RUN mode (see note 2)
Programming
Console
Operating mode set on the
Programming Console’s mode switch
PROGRAM mode 
(see note 1)
Other device
PROGRAM mode (see note 1)
PROGRAM mode
Note
1. The CPM2B will not be able to communicate with the Programming Device
in these cases.
2. The default setting of bits 08 to 15 of DM 6600 is 00. With this default setting,
the PC will automatically enter RUN mode if a Programming Console is not
connected and SW201 is ON. Be sure that it is safe for the PC to operate
before turning it ON under these conditions.
PROGRAM Mode
MONITOR Mode
RUN Mode