Omron CJ - PROGRAMMING MANUAL 08-2008 Programming Manual page 266

Programmable controllers
Hide thumbs Also See for CJ - PROGRAMMING MANUAL 08-2008:
Table of Contents

Advertisement

Manipulating Files
Note
Replacement File
Conditions Required for
Program Replacement
CPU Operation during
Program Replacement
228
The program can also be replaced when program execution is stopped (PRO-
GRAM mode) by turning ON the Replacement Start Bit from a Programming
Device.
Note The replacement program file cannot be read from EM file memory.
The Replacement Start Bit (A65015) can be turned ON at any location (pro-
gram address) in the program. The CPU Unit will execute the instructions
remaining in the cycle after the Replacement Start Bit goes from OFF to ON.
The program will not be executed while the program is being replaced. After
the program has been replaced, operation will be started again just as if the
CPU Unit were switched from PROGRAM mode to RUN or MONITOR mode.
The program will be replaced at the end of the cycle in which the Replace-
ment Start Bit was turned from OFF to ON, i.e., after END(001) is executed in
the last task in the program.
1. Turn ON the IOM Hold Bit (A50012) if you want to maintain the status of
I/O memory data through the program replacement.
Turn ON the Forced Status Hold Bit (A50013) if you want to maintain the
status of force-set and force-reset bits through the program replacement.
2. If the IOM Hold Bit (A50012) is ON before the program is replaced, the sta-
tus of bits in I/O memory will be maintained after program replacement. Be
sure that external loads will operate properly with the same I/O memory
data.
Likewise, if the Forced Status Hold Bit (A50013) is ON before the program
is replaced, the status of force-set and force-reset bits will be maintained
after program replacement. Be sure that external loads will operate prop-
erly with the same force-set and force-reset bits.
The program file specified in the Program File Name (A654 to A657) will be
read from the Memory Card and will replace the existing program at the end of
the cycle in which the Replacement Start Bit (A65015) is turned from OFF to
ON.
File
File name and
extension
Program file ∗∗∗∗∗∗∗∗.OBJ
The following conditions are required in order to replace the program during
operation.
• The program password (A5A5) has been written to A651.
• The program file specified in the Program File Name words (A654 to
A657) exists in the Memory Card's root directory.
• The Memory Card has been detected by the CPU Unit. (A34315 ON)
• No fatal errors have occurred.
• No file memory operations are being executed. (A34313 OFF)
• Data is not being written to the Program Area.
• The access right is available. (For example, data is not being transferred
from the CX-Programmer to the PLC.)
Note The program may be transferred in any operating mode.
The CPU Unit's operation will be as follows during program replacement:
• Program execution: Stopped
• Cycle time monitoring: No monitoring
Specifying the replacement file name (********)
Write the replacement program file name to A654
through A657 before program replacement.
Section 5-2

Advertisement

Table of Contents
loading

Table of Contents