7 File Operations
7-12
CJ2 CPU Unit Software User’s Manual
All PLC data, including data in the CPU Unit, Special I/O Units, and CPU Bus Units, can be backed up
and restored on a computer by using PLC Backup Tool. (Refer to the CJ2 CPU Unit Hardware User’s
Manual (Cat. No. W472) for details.)
I/O memory data can be saved on the Memory Card or in EM file memory in the text or CSV format by
using the FWRIT(701) instruction in the user program. It can then be transferred to a computer via a
Memory Card Adapter and edited with a spreadsheet program.
Conversely, data such as Special I/O Unit settings can be created with a spreadsheet program in text or
CSV format, stored on a Memory Card, and read to the CPU Unit by using the FREAD(700) instruction.
Refer to the CS/CJ/NSJ-series Instructions Reference Manual (Cat. No. W474) for details
The entire user program can be replaced during operation from the program itself (without a Program-
ming Device) using an Auxiliary Area control bit. (Refer to Section 10 CPU Unit Functions for details.)
File memory can be manipulated by using a FINS command for file memory. A FINS command can be
sent from a computer connected using the Host Link protocol. Another PLC on a network can send a
FINS command using CMND(490) or the local PLC can send a FINS command using CMND(490) in
the user program. (Refer to the Communications Command Reference Manual (Cat. No. W474) for
details.)
Backup Restore Operation
FWRIT(701)/FREAD(700) Instructions
Replacing the User Program during Operation Using an Auxiliary
Area Control Bit
FINS Commands
FWRIT
I/O memory data stored in
TXT or CSV format
Via Memory Card
Adapter
Spreadsheet
program
Memory Card
.OBJ
During operation
Replace program.