6
Data Backup
xvii
6-2
User Programming
If the power supply is turned OFF for longer than the data backup time (10 days
at 25
°
C), the data in the DM Area, EM Area, and Error Log, as well as counter
present values, will be lost and any data that is read will be unstable.
If the power supply is to be turned OFF for an extended period of time, the con-
tents of DM 0000 to DM 6143 can be backed up in flash memory. The Backup
Data Corrupted Flag (SR 24914) can also be used as shown below to detect
when backup data (i.e., data in the DM Area, EM Area, and Error Log, as well as
counter present values) has become corrupted to perform appropriate error
processing.
24914
Processing for
corruption of data
backed up for
power interruptions
DM 0000 to DM 6143 (read/write portion of DM Area) can be backed up in flash
memory by the user as described in the next section.
6-3
Backing Up DM Area to Flash Memory
The contents of DM 0000 to DM 6143 can be written to flash memory by turning
ON SR 25200 (DM Flash Memory Backup Bit) in PROGRAM mode. (SR 25200
will turn OFF automatically when transfer has been completed.)
The data stored in flash memory can be read back to DM 0000 to DM 6143 by
using the XFER(70) instruction as shown below.
MOV(21)
LR00
#0100
Execution
condition
@XFER(70)
LR00
#9999
DM0000
25503
MOV(21)
LR01
#0000
ER Flag
Summary of Contents for CS1 -
Page 1: ...Cat No W378 E1 1 Customizable Counter Units SYSMAC CS1 CS1W HI001 HCP22 HCA22 OPERATION MANUAL...
Page 2: ......
Page 3: ...CS1W HIO01 HCP22 HCA22 Customizable Counter Units Operation Manual Produced January 2001...
Page 4: ...iv...
Page 6: ...vi...
Page 10: ......
Page 20: ......
Page 40: ......
Page 60: ......
Page 146: ......
Page 166: ......