143
Saving Data
Section 5-6
Program Example
The work bit R1 is used to begin reading. When debugging, it is a good idea
to create a ladder program that refers to the ER Flag and Error Flag (word
n+8, bit12).
5-6
Saving Data
Data transferred to the PCU will be erased either when the power to the Pro-
grammable Controller is turned OFF or when the PCU is restarted. To pre-
serve the data that has been transferred, it must be saved in the PCU’s flash
memory. Once it has been saved, it can be read out and used the next time
the power to the PCU is turned on or restarted. When the data is saved, all
data including parameters existing at that point in time are saved.
Note
1.
Do not turn OFF the power or restart the PCU while data is being saved. It
may cause a failure in the PCU’s internal flash memory, or cause the PCU
to operate abnormally.
2.
If a failure does occur in the flash memory, a flash memory error (error
code 9300) will be generated when data is saved. Saving data can take as
long as 30 seconds.
3.
Only save data when all axes are stopped and no other commands are be-
ing executed. Otherwise the data will not be saved, and a multiple start er-
ror (error code 8000) will result.
5-6-1
Flash Memory
The contents of the PCU’s internal memory are lost when the power supply is
turned OFF or when the PCU is restarted. By saving the contents of the inter-
nal memory to the flash memory, parameters and other data can be retained.
The following types of data can be saved in the flash memory:
DIFU
R1
IORD
#112C
#00040002
D00500
R3
R2
R1
R2
R3
=
Set the beginning address (transfer
source) of the speed data to be trans-
ferred from the PCU to 112C (Hex).
Set the unit number of the transfer
source to 2 (Hex) and the number of
transfer words to 4 (Hex).
Set the beginning word (transfer destina-
tion) of the area in the CPU Unit where
the speed data is stored to D00500.
If transfer is completed successfully,
the Equals Flag turns ON.
Work bit
Work bit
Read switch
Work bit
Work bit
Contents of DM Area after read is completed.
D00500
0 3 E 8
D00501
0 0 0 0
D00502
1 5 7 C
D00503
0 0 0 0
Speed #0
Speed #1
Summary of Contents for CJ1W-C113 - REV 02-2008
Page 2: ...CJ1W NC113 213 413 133 233 433 Position Control Units Operation Manual Revised February 2008 ...
Page 3: ...iv ...
Page 13: ...xiv ...
Page 15: ...xvi ...
Page 19: ...xx ...
Page 27: ...xxviii Conformance to EC Directives 6 ...
Page 43: ...16 Control System Principles Section 1 7 ...
Page 47: ...20 Basic Procedures Section 2 ...
Page 139: ...112 Examples of Parameter Settings Section 4 9 ...
Page 173: ...146 Transferring Data with CX Position Section 5 7 ...
Page 223: ...196 Sample Program Section 7 7 ...
Page 259: ...232 Sample Program Section 8 10 ...
Page 293: ...266 Easy Backup Function Ver 2 0 or later Section 9 11 ...
Page 369: ...342 Reading Error Information with CX Position Section 11 8 ...
Page 385: ...358 Common Parameter Area Appendix C ...