![background image](http://html1.mh-extra.com/html/omron/cj1w-c113-rev-02-2008/cj1w-c113-rev-02-2008_operation-manual_742339166.webp)
139
Reading Data with IORD
Section 5-5
Program example
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).
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 CS/CJ-series Program-
mable Controllers Instruction Reference Manual (W340) 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.
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
IORD
C
W
D
@IORD
C
W
D
Содержание CJ1W-C113 - REV 02-2008
Страница 1: ...Position Control Units Cat No W397 E1 07 SYSMAC CJ1W NC113 213 413 133 233 433 OPERATION MANUAL ...
Страница 2: ...CJ1W NC113 213 413 133 233 433 Position Control Units Operation Manual Revised February 2008 ...
Страница 3: ...iv ...
Страница 13: ...xiv ...
Страница 15: ...xvi ...
Страница 19: ...xx ...
Страница 27: ...xxviii Conformance to EC Directives 6 ...
Страница 43: ...16 Control System Principles Section 1 7 ...
Страница 47: ...20 Basic Procedures Section 2 ...
Страница 139: ...112 Examples of Parameter Settings Section 4 9 ...
Страница 173: ...146 Transferring Data with CX Position Section 5 7 ...
Страница 223: ...196 Sample Program Section 7 7 ...
Страница 259: ...232 Sample Program Section 8 10 ...
Страница 293: ...266 Easy Backup Function Ver 2 0 or later Section 9 11 ...
Страница 369: ...342 Reading Error Information with CX Position Section 11 8 ...
Страница 385: ...358 Common Parameter Area Appendix C ...
Страница 399: ...372 Parameter Coding Sheets Appendix E ...