![Omron CS1W-213 - REV 02-2008 Скачать руководство пользователя страница 161](http://html1.mh-extra.com/html/omron/cs1w-213-rev-02-2008/cs1w-213-rev-02-2008_operation-manual_742355161.webp)
136
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 CS/CJ-series Programma-
ble 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
Содержание CS1W-213 - REV 02-2008
Страница 1: ...Position Control Units Cat No W376 E1 06 SYSMAC CS1W NC113 213 413 133 233 433 OPERATION MANUAL ...
Страница 2: ...CS1W NC113 213 413 133 233 433 Position Control Units Operation Manual Revised February 2008 ...
Страница 3: ...iv ...
Страница 13: ...xiv ...
Страница 15: ...xvi ...
Страница 19: ...xx ...
Страница 43: ...18 Basic Operational Flow Section 2 1 ...
Страница 87: ...62 Servo Relay Unit Section 3 7 ...
Страница 199: ...174 Z phase Margin Section 6 8 ...
Страница 217: ...192 Sample Program Section 7 7 ...
Страница 285: ...260 Easy Backup Function Ver 2 0 or later Section 9 11 ...
Страница 377: ...352 Common Parameter Area Appendix C ...
Страница 395: ...370 Parameter Coding Sheets Appendix F ...