Omron CPM2B Manuel D’Utilisation

Page de 149
!
!
6-2
Section
Programming Console Operations
104
6-2-24 Force Set, Reset
This operation is used to force bits ON (force set) or OFF (force reset) and is
useful when debugging the program or checking output wiring. It is possible
in MONITOR or PROGRAM mode only.
RUN
MONITOR
PROGRAM
No
OK
OK
Caution
Before changing the contents of I/O memory, be sure that the changes will not
cause equipment to operate unexpectedly or dangerously. In particular, take
care when changing the status of output bits. 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.
1, 2, 3...
1. Monitor the status of the desired bit according to the procedure described in
6-2-12 Bit, Digit, Word Monitor. If two or more words are being monitored,
the desired bit should be leftmost on the display.
(Multiple address monitor)
0000020000
^ OFF^  ON
2. Press the SET Key to force the bit ON or press the RESET Key to force the
bit OFF.
SET
0000020000
   ON^  ON
The cursor in the lower left corner of the display indicates that the force set/
reset is in progress. Bit status will remain ON or OFF only as long as the key
is held down; the original status will return one cycle after the key is re-
leased.
3. Press the SHIFT and SET Keys or SHIFT and RESET Keys to maintain the
status of the bit after the key is released. In this case, the force-set status is
indicated by an “S” and the force-reset status is indicated by an “R.”
To return the bit to its original status, press the NOT Key or perform the Clear
Force Set/Reset operation. Refer to 6-2-25 Clear Force Set/Reset for de-
tails.
Forced status will also be cleared in the following cases:
a) When the PC’s operating mode is changed (although the forced status
will not be cleared when the mode is changed from PROGRAM to MON-
ITOR if SR 25211 is ON)
b) When the PC stops because a fatal error occurred
c) When the PC stops because of a power interruption
d) When the Clear Force Set/Reset Operation is performed
6-2-25 Clear Force Set/Reset
This operation is used to restore the status of all bits which have been force
set or reset. It is possible in MONITOR or PROGRAM mode only.
RUN
MONITOR
PROGRAM
No
OK
OK
Caution
Before changing the contents of I/O memory, be sure that the changes will not
cause equipment to operate unexpectedly or dangerously. In particular, take
care when changing the status of output bits. 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.