Timing Chart For Writing Data; Example Of A Write Data Program - Omron CJ1W-C113 - REV 02-2008 Operation Manual

Position control units
Table of Contents

Advertisement

Writing Data with the WRITE DATA Bit
5-2-4

Timing Chart for Writing Data

5-2-5

Example of a Write Data Program

Allocation of Areas
Speeds to be Transferred
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.
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)
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.
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.
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.
The beginning word address for the data transfer area is D00500, and the
data to be sent is as follows:
Data
Speed #0
Speed #1
(9 words)
(Word 100)
Address (transfer
DM (transfer source)
destination)
112C
00500
112D
00501
112E
00502
112F
00503
Section 5-2
Setting
03E8
0000 (1,000 pps)
157C
0000 (5,500 pps)
125

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents