![background image](http://html1.mh-extra.com/html/omron/cs1w-213-rev-02-2008/cs1w-213-rev-02-2008_operation-manual_742355149.webp)
124
Reading Data with the READ DATA Bit
Section 5-3
Program Example
The work bit R1 is used to begin writing.
5-3
Reading Data with the READ DATA Bit
This section explains the procedures for reading data allocated to the operat-
ing memory area from the PCU using the READ DATA Bit (word n+1, bit 13).
A program example is also provided.
Note
1.
Data can be read while pulses are being output, but not while data is being
written or saved. If attempted, it will result in a multiple start error (error
code 8000).
2.
When transferring data using READ DATA, the data must be transferred in
data units. Data transfer should not start or end part-way through the data.
For example, with X axis sequence #0, the data unit becomes three words,
in addresses 1000 to 1002. If the transfer is started or ended part-way
through, a read transfer words error (error code 8320) or read transfer
source address error (error code 8321) will be generated.
5-3-1
Outline
When the READ DATA Bit (word n+1, bit13) in the operating memory area is
turned ON, consecutive addresses data is read from the CPU to the DM or
EM Area according to the number of read words, the read source address, the
read destination area, and the read destination word designated in the operat-
ing data area.
For an outline, refer to
5-2 Writing Data with the WRITE DATA Bit
. With data
reading, 772 words of data in consecutive addresses can be read at one time.
DIFU
R1
MOV
#0004
D00400
200814
MOV
#000D
D00401
MOV
#01F4
D00402
R1
Write switch
Work bit
Data Transferring Flag
MOV
#112C
D00403
200112
END
Set total number of words to
be written to PCU to "4."
Set the setting area for the
speed data to "000D" (DM Area).
Set DM the beginning word in the
DM Area for setting the speed to
"01F4" (500; transfer source).
Set beginning address for the
data area for when speed is writ-
ten to the PCU to "112C" (des-
tination address).
WRITE DATA
200112
WRITE DATA Bit
Make sure that the
WRITE DATA Bit
remains ON until the
Data Transferring
Flag turns ON.
Содержание CS1W-213 - REV 02-2008
Страница 1: ...Position Control Units Cat No W376 E1 06 SYSMAC CS1W NC113 213 413 133 233 433 OPERATION MANUAL ...
Страница 2: ...CS1W NC113 213 413 133 233 433 Position Control Units Operation Manual Revised February 2008 ...
Страница 3: ...iv ...
Страница 13: ...xiv ...
Страница 15: ...xvi ...
Страница 19: ...xx ...
Страница 43: ...18 Basic Operational Flow Section 2 1 ...
Страница 87: ...62 Servo Relay Unit Section 3 7 ...
Страница 199: ...174 Z phase Margin Section 6 8 ...
Страница 217: ...192 Sample Program Section 7 7 ...
Страница 285: ...260 Easy Backup Function Ver 2 0 or later Section 9 11 ...
Страница 377: ...352 Common Parameter Area Appendix C ...
Страница 395: ...370 Parameter Coding Sheets Appendix F ...