The text of a manual · part 31 of 48
SYSMAC CJ Series CJ2H-CPU6_-EIP, CJ2H-CPU6_, CJ2M-CPU_ CJ2 CPU Unit Hardware User's Manual: Section 8 Backup Operations, pages 255 to 262
Pages 255 to 262 of 422, from SYSMAC CJ Series CJ2H-CPU6_-EIP, CJ2H-CPU6_, CJ2M-CPU_ CJ2 CPU Unit Hardware User's Manual
The original document is the PDF (14 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
Filed in the catalog under the Omron C200H-OD21A, Omron CQM1-ID211, Omron CQM1-ID213, Omron CQM1-OD211 and Omron CQM1-OD213
Page 255
8 Backup Operations
Additional Information • When the backup files are read from the Memory Card by the backup function, the status of I/O memory and force-set/force-reset bits will be cleared unless the necessary settings are made in the Auxiliary Area and PLC Setup. If the IOM Hold Bit (A500.12) is ON and the PLC Setup is set to maintain the IOM Hold Bit Status at Startup when the backup files are written, the status of I/O memory data will be maintained when data is read from the Memory Card. If the Forced Status Hold Bit (A500.13) is ON and the PLC Setup is set to maintain the Forced Status Hold Bit Status at Startup when the backup files are written, the status of force-set and force-reset bits will be maintained when data is read from the Memory Card. • After the simple backup operation has been used to restore data from the Memory Card to the PLC, the operating mode will remain in PROGRAM mode and cannot be changed to MONITOR or RUN mode until the PLC power is turned OFF. After restoring the data, turn OFF the power, change the setting of DIP switch pin 7, and then turn the power back ON. • File backups may take from several seconds to several minutes. For information on execution times refer to 8-3-5 Time Required for Simple Backup.
Comparing Data in the Memory Card and CPU Unit
1 Insert the Memory Card containing the backup files into the CPU Unit. The MCPWR indicator will light and the BUSY indicator will flash and then turn OFF.
3 Press the Memory Card Power Supply Switch for three seconds until the BUSY indicator lights, and then release the switch. The PLC will start comparing the data in the PLC and the data in the backup file on the Memory Card. The MCPWR indicator will flash once and then light while the data is being written. At the same time the BUSY indicator will flash.
Pin 7: OFF Press the Memory Card Power Supply Switch for three seconds.
Memory Card
Note If an error occurs during writing or comparison, the MCPWR indicator will flash. Press the power supply switch to stop the flashing and to turn ON the MCPWR indicator.
CJ2 CPU Unit Hardware User’s Manual
8-9
8 8-3-2 Operating Procedures
The MCPWR and BUSY indicators will both turn OFF if the data matches. If the MCPWR and BUSY indicators both flash, it means that the data does not match or that an error has occurred. (Refer to 8-3-3 Verifying Backup Operations with Indicators.)
8-3 Simple Backup
2 Turn OFF pin 7 on the CPU Unit's DIP switch.
Page 256
8 Backup Operations
8-3-3
Verifying Backup Operations with Indicators The status of the Memory Card Power (MCPWR) indicator shows whether a simple backup operation has been completed normally or not. MCPWR Indicator OPEN
MCPWR BUSY
PERIPHERAL
Backup operation
Normal completion*1 MCPWR status
Backing up data from the CPU Unit to the Memory Card
MCPWR
Lit
Error occurred MCPWR status MCPWR
The data was not backed up due to one of the following errors, and no backup file was created. • Insufficient Memory Card capacity
Remains lit while the Memory Card Power Switch is pressed.
MCPWR
Remains lit while the Memory Card Power Switch is pressed.
• Memory error in CPU Unit • I/O bus error • Data was not read from the Unit to be backed up.
Flashes once. MCPWR
8-10
Lit
Error
MCPWR
Lit while writing.
MCPWR
OFF after data is written.
Remains flashing.
CJ2 CPU Unit Hardware User’s Manual
Page 257
8 Backup Operations
Backup operation
Normal completion*1
Error occurred
MCPWR status Restoring data from the Memory Card to the CPU Unit
MCPWR
MCPWR
Lit when power is turned ON.
MCPWR status MCPWR
Lit when power is turned ON.
Lit while reading.
• Program in Memory Card exceeds CPU Unit capacity • Required backup files do not exist in Memory Card.
Flashes once.
• Program can't be written because it is write-protected (Pin 1 of the DIP switch is ON.)
MCPWR MCPWR
Error The data was not restored due to one of the following causes.
Flashes five times.
• The EM file was not complete, i.e., a portion was missing. • There are fewer CPU Unit EM banks than backup EM files.
MCPWR
MCPWR
OFF after data is read.
Goes OFF.
MCPWR
Lit when power is turned ON.
The I/O tables are not correct (e.g., the same unit number was set twice).
MCPWR
Flashes once.
MCPWR
Remains lit. MCPWR
Same as for normal completion.
• A Unit was added to the configuration since the data was backed up. • The unit number settings for Special I/O Units or CPU Bus Units are not correct.
Special I/O or CPU Bus Unit ERR indicator H8
7-segment LED indicator
MCPWR
Same as for normal completion.
A Unit was added to the configuration since the data was backed up.
INEE Board READY indicator
8-3 Simple Backup
Displayed as “H8”
Flashing Comparing data between the CPU Unit and the Memory Card
MCPWR
Lit
MCPWR
Lit
8
The following comparison errors can occur: • Memory error in CPU Unit*2
Remains lit while the Memory Card Power Switch is pressed.
MCPWR
Remains lit while the Memory Card Power Switch is pressed.
• Comparison results (of backup files on Memory Card and data in PLC) do not match. • Required backup files do not exist in Memory Card.*2 • I/O bus error
Flashes once. MCPWR
MCPWR
Lit while comparing.
MCPWR
OFF after data is compared.
Remains flashing.
*1 When the backup operation is completed normally, power to the Memory Card will go OFF when the MCPWR indicator goes OFF. If the Memory Card will be used again, press the Memory Card Power Switch to supply power and execute the desired operation. *2 The backup files for Units and Boards are also compared.
CJ2 CPU Unit Hardware User’s Manual
8-11
8-3-3 Verifying Backup Operations with Indicators
• Incorrect I/O tables (e.g., the same unit number set twice)
Page 258
8 Backup Operations
8-3-4
Related Auxiliary Bits/Words Name File Memory Operation Flag
Address
Description
A343.13
ON when any of the following are being performed. OFF when execution has been completed. • Memory Card detection • CMND instruction executed for local CPU Unit • FREAD/FWRIT instructions • Program replacement via special control bits • Simple backup operation Wiring data to or verifying the contents of the Memory Card is not possible while this flag is ON.
EM File Memory Starting Bank
8-3-5
A344
When the CPU Unit starts reading from the Memory Card, it references this value. If the maximum EM bank number of the BKUPEM@.IOM files (maximum consecutive bank number counting from 0) matches the maximum bank number of the CPU Unit, the EM area will be formatted based on the value in this word. If the maximum EM bank numbers do not match, the EM Area will revert to its unformatted condition.
Time Required for Simple Backup The following tables list the benchmark execution times for the simple backup operation. The execution time will depend on the Unit configuration, cycle time, and Memory Card. These times were measured under the following conditions: CPU Unit Model: CJ2H-CPU6@-EIP or CJ2M-CPU3@ Configuration: CPU Unit only Operating mode: PROGRAM Operating mode
Writing to Memory Card
Reading from Memory Card
User program: 120K steps, No network symbols (tags)
Approx. 7 s
Approx. 20 s
User program: 120K steps, 20,000 network symbols (tags)
Approx. 19 s
Approx. 68 s
Additional Information The Units that are backed up for the simple backup operation are predetermined. You cannot specify which Units are backed up and which are not.
8-3-6
Data Backed Up Using Simple Backup The files and applicable data transferred between the Memory Card and CPU Unit using the simple backup operation are listed below. The file name is fixed as BACKUP@@.
Program Files Contents • User program
Backup Yes
Restore Yes
Compare Yes
File name
Extension
BACKUP
.OBJ
• Network symbols* * CJ2H-CPU6@-EIP or CJ2M-CPU3@ only. Program files that include network symbols cannot be transferred to the CJ2H-CPU6@ or CJ2M-CPU1@. A Memory Card transfer error (fatal) will occur if an attempt is made to transfer such a file.
8-12
CJ2 CPU Unit Hardware User’s Manual
Page 259
8 Backup Operations
Symbol Tables, Comments, and Program Index Files Contents
Backup
File name
Extension
BKUPSYM
.SYM
Comment files
BKUPCMT
.CMT
Program index file
BKUPPRG
.IDX
File name
Extension
BACKUP
.STD
Symbol table files
Restore
Yes
Compare
Yes
Yes
Parameter Files Contents
Backup
• PLC Setup • PLC name • Registered I/O tables • Routing tables • CPU Bus Unit setup • Etc.
Restore
Yes
Compare
Yes
Yes
Data There are five types of data files, as shown below, when the simple backup operation is used for backing up data (creating files) on the Memory Card or for restoring or comparing data from the Memory Card. • BKUPIOR.IOR • BACKUPDM.IOM • BKUPEM@.IOM • BKUPEF@.IOM These files are used exclusively for the simple backup operation. With the exception of BKUPIOR.IOR, they can all be manipulated from the CX-Programmer. (BKUPIOR.IOR files cannot be manipulated.)
8
I/O memory Area
Backup
Addresses
Restore
Compare
File name
Extension
D00000 to D19999
Yes
Yes
No
BACKUP
.IOM
CIO Area
CIO 0000 to CIO 6143
Yes
--(See note 3.)
No
BAUPIOR
.IOR
Yes
--(See note 3.)
No
(Includes forced status.) W000 to W511 (Includes forced status.) Holding Area
H000 to H511
Yes
Yes
No
Auxiliary Area
A000 to A447, A10000 to A11135
Yes
---
---
A448 to A1472
Yes
Yes
No
Timer Completion Flags and Timer PVs
T0000 to T4095
Yes
--(See note 3.)
No
Counter Completion Flags and Counter PVs
C0000 to C4095
Yes
Yes
No
CJ2 CPU Unit Hardware User’s Manual
8-3-6 Data Backed Up Using Simple Backup
DM Area
Work Area
8-3 Simple Backup
• BACKUP.IOM
8-13
Page 260
8 Backup Operations
I/O memory Area
Backup
Addresses
Restore
Compare
File name
Extension
DM Area
D00000 to D19999
Yes
Yes
No
BACKUPDM
.IOM
EM Area (See notes 1 and 2.)
E@_0 to E@_32767 (@: Bank No. 0 to 18 hex. The maximum bank number depends on the CPU Unit model.)
Yes
Yes
No
BKUPEM@
.IOM
EM Area (forced status) (See note 4.)
When bits are forceset/reset
Yes
Yes
No
BKUPEF@
.IOM
Note 1 If the number of banks in the EM data on the Memory Card is less than the number of EM banks in the CPU Unit where the data is to be restored (e.g., if data backed up by the CJ2H-CPU64-EIP is to be restored at the CJ2H-CPU68-EIP), the amount of EM data on the Memory Card will be restored. On the other hand, if the number of banks in the EM data on the Memory Card is greater than the number of EM banks in the CPU Unit where the data is to be restored (e.g., if data backed up by the CJ2H-CPU68-EIP is to be restored at the CJ2H-CPU64-EIP), it will not be possible to restore the data. 2 When the EM file memory function is used, the EM file memory will be restored only if the backup data is restored to a CPU Unit of the same model. If it is restored to a CPU Unit of a different model, the data will not function as EM file memory. 3 The BKUPIOR.IOR file will be cleared when data is restored from the Memory Card at startup. If, however, the IOM Hold Bit (A500.12) is ON and the IOM Hold Bit Startup Hold Setting in the PLC Setup is set to hold the setting of the IOM Hold Bit, the CIO and Work Area data and Timer Completion Flags and PVs will be held without being cleared from the Memory Card at startup. 4 If the Forced Status Hold Bit (A500.13) is ON and the Forced Status Hold Bit Startup Hold Setting in the PLC Setup is set to hold the setting of the Forced Status Hold Bit, the forced status will be held without being cleared when restored from the Memory Card at startup, to a CPU Unit of the same model. If the data is restored to a CPU Unit of a different model, the status will not be held.
Unit Backup Data When CPU Bus or Special I/O Units that support the simple backup function are connected to the CPU Unit, the data in the CPU Bus or Special I/O Units will also be backed up by the simple backup operation. Data in the CPU Bus and Special I/O Units is backed up separately for each Unit. Contents
Backup
Data in Unit with unit address @@ (The contents depend on the Unit.)
Yes
Restore Yes
Compare
File name
Extension
Yes
BACKUP@@ .PRM
Note If the file does not exist when restoring data from the Memory Card to I/O memory, an error will not occur at the CPU Unit but the data will not be restored to the CPU Bus or Special I/O Unit and an error will occur at the CPU Bus or Special I/O Unit. For details on errors that occur at a CPU Bus or Special I/O Unit, refer to the operation manual for the specific Unit.
Data in individual Units is saved to the Memory Card under the following file names. File name: BACKUP
.PRM
Unit address of Unit/Board (hex) Note The unit address is determined as follows: • Built-in EtherNet/IP (CJ2H-CPU6@-EIP or CJ2M-CPU3@) or CPU Bus Unit: Unit number + 10 hex • Special I/O Unit: Unit number + 20 hex
8-14
CJ2 CPU Unit Hardware User’s Manual
Page 261
8 Backup Operations
In order for data in a Unit to be backed up, that Unit must support the simple backup function. Refer to the operation manual for the specific Unit to check whether this function is supported. Data capacity used in Memory Card
Applicable Units
Model numbers
Data backed up for simple backup
Serial Communications Units
CJ1WSCU21/22/32/41/42
129 Kbytes
CJ1WSCU21/31/41-V1
Protocol macro data (Including both standard system protocols and user-defined protocols from the flash memory in the Unit or Board)
FL-net Units
CJ1W-FLN22
Data link tables
1.3 Kbytes
DeviceNet Units
CJ1W-DRM21
Device parameters (all data in EEPROM in the Unit)
7 Kbytes
(Although this is the same data as is backed up from the Memory Card backup function supported by the Unit or the DeviceNet Configuration (Ver. 2.@), there is no file compatibility.) CJ1W-CRM21
• Registration tables • Software settings • Network parameters • Slave parameters
3.5 Kbytes
Motion Control Units
CJ1W-MCH71
• Positioning data • System parameters • G-language programming
8,192 Kbytes
Position Control Units
CJ1W-NCF71(-MA)
• Common parameters • Individual axis parameters
64 Kbytes
CJ1WNC113/133/213/233/ 413/433
• Axis parameters • Sequence data • Speed data • Acceleration/deceleration time data • Dual timer data • Zone data
7 Kbytes
CJ1WNC214/234/414/434
• Common parameters • Axis parameters • Memory operation parameters • Memory operation data • Memory operation conditions data
220 Kbytes
CJ1WNC281/481/881/F81/ 482/882
• Common parameters • Axis parameters • Memory operation parameters • Memory operation data • Memory operation conditions data • Communications parameters
2,560 Kbytes
CJ1W-EIP21
• Unit settings • Tag data link settings
459 Kbytes
CJ2 CPU Unit Hardware User’s Manual
8 8-3-6 Data Backed Up Using Simple Backup
EtherNet/IP Unit
8-3 Simple Backup
CompoNet Units
8-15
Page 262
8 Backup Operations
Precautions for Correct Use When using a simple backup file to restore data, use a CPU Unit of the same model as the backup source. If a CPU Unit of a different model is used, the following operations will result. • If the number of EM banks for the simple backup file is greater than that of the CPU Unit where the data is to be restored, the data will not be restored. • If the number of EM banks for the simple backup file is less than that of the CPU Unit where the data is to be restored, the data in the EM bank areas in the simple backup file will be restored, but forced status will not be restored. In addition, EM banks that are not in the simple backup file will retain their values from before the restoration.
8-16
CJ2 CPU Unit Hardware User’s Manual