125
Writing Data with the WRITE DATA Bit
Section 5-2
5-2-4
Timing Chart for Writing Data
Writing data is possible even during axis operation.
It is not possible to write data and read data at the same time.
The following diagram is a timing chart for writing data to a 4-axis PCU.
When the data writing operation is completed, the Data Transferring Flag
(word n+8, bit 14) is turned from ON to OFF. If an error occurs during data
transfer, the Error Flag (word n+8, bit 12) is turned ON and the error code is
output to n+10 in the operating memory area. Check this error code to deter-
mine the cause of the error and correct it.
5-2-5
Example of a Write Data Program
A sample program is given below for writing the following speed data to the
PCU. The PCU to be used will be a NC413 designated unit number 0.
Allocation of Areas
The common parameter area is from D20000 to D20002.
The operating memory area is from CIO 2000 to CIO 2019.
The beginning word of the operating data area is D00400.
Speeds to be Transferred
The beginning word address for the data transfer area is D00500, and the
data to be sent is as follows:
Number of write words (l)
Write source area (l+1)
Write source word (l+2)
Write destination address (l+3)
WRITE DATA (n+1, 12)
Data Transferring Flag (n+8, 14)
(9 words)
(Word 100)
Data
Address (transfer
destination)
DM (transfer source)
Setting
Speed #0
112C
112D
00500
00501
03E8
0000 (1,000 pps)
Speed #1
112E
112F
00502
00503
157C
0000 (5,500 pps)
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 ...