214
Manipulating Files Section 5-2
Example Program 2
Store program files for several devices and the program file for automatic
transfer at startup (AUTOEXEC.OBJ) in a Memory Card. When the PLC is
turned ON, the automatic transfer at startup file is read and that program is
replaced later with a program file for a different device.
5-2-5 Automatic Transfer at Startup
Automatic transfer at startup is used to read the user program, parameters,
and I/O memory data from a Memory Card to the CPU Unit when the power is
turned ON.
The following files can be read automatically to CPU Unit memory.
Note This function cannot be used to read EM file memory.
Always ON Flag
Task protecting data during program replacement
(Cyclic task number 31, standby status at startup)
Processing to pro-
tect data before pro-
gram replacement
begins
IOM Hold Bit
Outputs to required
loads during pro-
gram replacement.
First Cycle Flag
Replacement
Start Bit
AUTOEXEC.OBJ
Processing that determines
the type of device connected
and stores the corresponding
file name. In this example,
the file name "ABC" is written
in A654 to A657.
Memory Card
Detected Flag
ABC.OBJ
Overwrite