![Omron CJ1G-CPU series Programming Manual Download Page 233](http://html1.mh-extra.com/html/omron/cj1g-cpu-series/cj1g-cpu-series_programming-manual_742489233.webp)
212
Manipulating Files
Section 5-2
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.
Replacement Start Bit
(Not supported by CS-series
pre-EV1 CS1 CPU Units)
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.
Program Password
(Not supported by CS-series
pre-EV1 CS1 CPU Units)
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.
Program File Name
(Not supported by CS-series
pre-EV1 CS1 CPU Units)
A654 to
A657
Name
Address
Operation
Before starting program replacement, write the file name of the
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:
Summary of Contents for CJ1G-CPU series
Page 3: ...iv...
Page 5: ...vi...
Page 21: ...xxii Conformance to EC Directives 6...
Page 169: ...148 Task Control Instructions Section 3 32...
Page 203: ...182 Programming Device Operations for Tasks Section 4 4...
Page 253: ...232 Using File Memory Section 5 3...
Page 337: ...316 Other Functions Section 6 11...
Page 347: ......
Page 369: ......
Page 373: ......
Page 379: ......
Page 381: ...360 Revision History...