![background image](http://html1.mh-extra.com/html/omron/cs1w-nc113-rev-02-2008/cs1w-nc113-rev-02-2008_manual_742370131.webp)
5-5
Section
Reading Data with IORD
119
Work bit R1 is used to start writing. When debugging, it is a good idea to create a
ladder program that refers to the ER Flag and Error Flag (word n+8, bit12).
DIFU
R1
IOWR
#112C
D00500
#00040002
R3
R2
R1
R2
R3
=
Set the beginning address (transfer
destination) of the speed data to be
transferred to the PCU to 112C (Hex).
Set the beginning word (transfer
source) of the area in the CPU Unit
where the speed data is set to D00500.
Set the unit number of the transfer des-
tination to 2 (Hex) and the number of
transfer words to 4 (Hex).
If transfer is completed successful-
ly, the Equals Flag turns ON.
Work bit
Work bit
Write switch
Work bit
Work bit
5-5
Reading Data with IORD
5-5-1 Outline
This section outlines how to read positioning sequences from a PCU. Using
IORD, 128 words of data in consecutive addresses can be read at one time.
Refer to
5-4 Writing Data with IOWR
for an outline.
5-5-2 READ DATA Procedure
Refer to
5-5-3 IORD: INTELLIGENT I/O READ
or the Programmable Control-
ler’s operation manual for details on how to set the operands for IORD.
1, 2, 3...
1. Set IORD.
C: Beginning address of the PCU data area.
W: Unit number of the PCU reading the data and the total number of words
to be read.
D: Beginning word address of the area in the CPU Unit where the read
data will be stored.
2. Read the data.
Execute IORD.
5-5-3 IORD: INTELLIGENT I/O READ
An explanation of how to use the IORD instruction is given here.
IORD
C
W
D
@IORD
C
W
D
C: Control code, W: Source unit number and total number of data words read,
D: First destination word
Program Example
Содержание CS1W-NC113 - REV 02-2008
Страница 1: ...CS1W NC113 213 413 133 233 433 Position Control Units ...
Страница 2: ...iv ...
Страница 4: ...vi ...