Omron CJ - PROGRAMMING MANUAL 12-2009 Programming Manual page 272

Programmable controllers
Table of Contents

Advertisement

Manipulating Files
Name
Replacement Completion Code
(Not supported by CS-series
pre-EV1 CS1 CPU Units)
Replacement Error Flag
(Not supported by CS-series
pre-EV1 CS1 CPU Units)
Replacement Start Bit
(Not supported by CS-series
pre-EV1 CS1 CPU Units)
Program Password
(Not supported by CS-series
pre-EV1 CS1 CPU Units)
Program File Name
(Not supported by CS-series
pre-EV1 CS1 CPU Units)
232
Address
A65000 to
Codes for normal program replacement (A65014 OFF):
A65007
01 Hex: The program file (.OBJ) replaced the program.
Codes for incomplete program replacement (A65014 ON):
00 Hex: A fatal error occurred.
01 Hex: A memory error occurred.
11 Hex: The program is write-protected.
12 Hex: The program password in A651 is incorrect.
21 Hex: A Memory Card is not installed.
22 Hex: The specified file does not exist.
23 Hex: The specified file is too large (memory error).
31 Hex: One of the following operations was being performed:
• A file memory operation was being performed.
• The program was being written.
• The operating mode was being changed.
A65014
Turned ON when an error occurred while trying to replace the program
after A65015 was turned from OFF to ON.
Turned OFF the next time that A65015 is turned from OFF to ON again.
A65015
If this bit has been enabled by the setting the Program Password (A651) to
A5A5 Hex, program replacement will start when this bit is turned from
OFF to ON. Do not turn this bit from OFF to ON again during program
replacement.
This bit is automatically turned OFF when program replacement is com-
pleted (normally or with an error) or the power is turned ON.
The status of this bit can be read from a Programming Device, PT, or host
computer to determine whether program replacement has been com-
pleted or not.
A651
Write the password to this word to enable program replacement.
A5A5 Hex: Enables the Replacement Start Bit (A65015).
Other value: Disables the Replacement Start Bit (A65015).
This bit is automatically turned OFF when program replacement is com-
pleted (normally or with an error) or the power is turned ON.
A654 to
Before starting program replacement, write the file name of the
A657
replacement program file in these words in ASCII. Just write the 8-
character filename; the .OBJ extension is added automatically. Write
the characters in order from A654 (most significant byte first). If the file
name has fewer than 8 characters, pad the remaining bytes with
space codes (20 Hex). Do not include any NULL characters or spaces
within the file name itself.
The following example shows the data for the program file ABC.OBJ:
Example Program 1
Store program files ABC.OBJ and XYZ.OBJ in the Memory Card and select
one program or the other depending upon the value of D00000. Set D00000
to #1234 when selecting ABC.OBJ or set it to #5678 when selecting
XYZ.OBJ.
Operation
Section 5-2

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CJ - PROGRAMMING MANUAL 12-2009 and is the answer not in the manual?

Questions and answers

Table of Contents