Reading Data With Iord; Outline; Read Data Procedure; Iord: Intelligent I/O Read - Omron CS1W-NC113 Manual

Hide thumbs Also See for CS1W-NC113:
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 create 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 Programmable Control-
ler's operation manual 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.
C: Control code, W: Source unit number and total number of data words read,
D: First destination word
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
119

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs1w-nc213Cs1w-nc433Cs1w-nc233Cs1w-nc413Cs1w-nc133

Table of Contents