Reading Data With Iord; Outline; Read Data Procedure; Iord: Intelligent I/O Read - Omron CJ1W-C113 - REV 02-2008 Operation Manual

Position control units
Table of Contents

Advertisement

Reading Data with IORD

Program example
Write switch
R1
Work bit
R2
Work bit
5-5

Reading Data with IORD

5-5-1

Outline

5-5-2

READ DATA Procedure

1,2,3...
5-5-3

IORD: INTELLIGENT I/O READ

Work bit R1 is used to start writing. When debugging, it is a good idea to cre-
ate a ladder program that refers to the ER Flag and Error Flag (word n+8,
bit12).
R3
=
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.
Refer to 5-5-3 IORD: INTELLIGENT I/O READ or the CS/CJ-series Program-
mable Controllers Instruction Reference Manual (W340) for details on how to
set the operands for IORD.
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.
An explanation of how to use the IORD instruction is given here.
DIFU
R1
Set the beginning address (transfer
destination) of the speed data to be
IOWR
transferred to the PCU to 112C (Hex).
#112C
Set the beginning word (transfer
D00500
source) of the area in the CPU Unit
#00040002
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-
R3
ly, the Equals Flag turns ON.
Work bit
R2
Work bit
IORD
@IORD
C
W
D
Section 5-5
C
W
D
139

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents