Reading Pcu Parameters - Omron CJ1W-NC271 - 12-2009 Operation Manual

Position control units
Table of Contents

Advertisement

Transferring PCU Parameters
5-2-2

Reading PCU Parameters

Note
Common Operating Memory Area (Output)
Common Operating Memory Area (Input)
before WRITE DATA to enable identifying whether the data that was written
has been transferred correctly.
The PCU's Common Parameters and Axis Parameters are read to the CPU
Unit using the READ DATA Bit in the Common Operating Memory Area. The
data to be transferred is set by specifying the number of transfer words, trans-
fer source, and transfer destination in the Common Operating Memory Area.
Multiple parameters can also be transferred all at once.
(1) Read data from the PCU when the Data Transferring Flag is OFF. READ
DATA cannot be executed from the PCU while the Unit Busy Flag is ON
(PCU initializing or reading/writing Memory Card backup data).
(2) If READ DATA is executed while data is being transferred, a Multistart Er-
ror (Unit error code: 0021) will occur and data will not be read from the
PCU.
Data reading starts when the READ DATA Bit in the Common Operating Mem-
ory Area turns ON. When reading data from the PCU, make sure that the
READ DATA Bit remains ON until the Data Transferring Flag turns ON.
Up to 600 words can be transferred during a single data reading operation.
The maximum amount of data that can be transferred during a single CPU
Unit cycle, however, is 20 words. When reading more than 20 words of data,
the data is divided and read over multiple cycles. When reading data from the
PCU is completed, the Data Transferring Flag turns OFF.
Name
Word
READ DATA
n
Number of read
n+10
words
Read source
n+11
address
Read destination
n+12
area
Read destination
n+13
word
n = CIO 1500 + (unit number × 25)
Name
Word
Data Transferring
n+15
Flag
Unit Busy Flag
n+16
Bit
Contents
0 → 1: Starts reading data
02
---
Specifies the number of words to be read
from the PCU.
---
Specifies the read source address in the
PCU.
---
Specifies the area used to store the data
read from the PCU.
---
The type of area set as the read destination
area is specified by specifying the begin-
ning word of the area in the read destination
word in hexadecimal.
Read destination area:
00B0 hex: CIO Area
00B1 hex: Work Area
00B2 hex: Holding Area
00B3 hex: Auxiliary Area
0082 hex: DM Area
005@ hex: EM Area
@: EM bank No.= 0 to 9, A, B, C
Bit
Contents
14
0: Powerup, transfer completed, or transfer
failed
1: Transferring data
14
0: PCU is not busy
1: PCU is busy
Section 5-2
223

Advertisement

Table of Contents
loading

Table of Contents