Reading Data With The Read Data Bit; Outline - Omron CS1W-NC113 Manual

Hide thumbs Also See for CS1W-NC113:
Table of Contents

Advertisement

Reading Data with the READ DATA Bit

Program Example
Write switch
R1
Work bit
5-3
Reading Data with the READ DATA Bit

5-3-1 Outline

READ DATA Procedure
1, 2, 3...
108
The work bit R1 is used to begin writing.
200814
Data Transferring Flag
This section explains the procedures for reading data allocated to the operating
memory area from the PCU using the READ DATA Bit (word n+1, bit 13). A pro-
gram 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.
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 operating 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.
1. Set common parameters. (Refer to 4-2 Common Parameter Area.)
m:
Set the operating data area either to DM or to EM.
DIFU
R1
Set total number of words to
MOV
be written to PCU to "4."
#0004
D00400
Set the setting area for the
MOV
speed data to "000D" (DM Area).
#000D
D00401
Set DM the beginning word in the
MOV
DM Area for setting the speed to
#01F4
"01F4" (500; transfer source).
D00402
Set beginning address for the
MOV
data area for when speed is writ-
#112C
ten to the PCU to "112C" (des-
D00403
tination address).
WRITE DATA
200112
END
Section
5-3

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs1w-nc213Cs1w-nc433Cs1w-nc233Cs1w-nc413Cs1w-nc133

Table of Contents