![background image](http://html1.mh-extra.com/html/omron/cs1w-nc113-rev-02-2008/cs1w-nc113-rev-02-2008_manual_742370134.webp)
5-5
Section
Reading Data with IORD
122
ing the data. The beginning word for the DM Area where the read data is to be
stored is set at D00500.
CPU Unit
Unit number
Data transfer
PCU (NC413: unit number 2)
Data area
Speed #0
Speed #1
Note
Depending on the timing of IORD instructions, transfer errors may not be
reflected in the CPU Unit. (For details, refer to
5-1 Transferring and Saving
Data.
)
The work bit R1 is used to begin reading. 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
IORD
#112C
#00040002
D00500
R3
R2
R1
R2
R3
=
Set the beginning address (transfer
source) of the speed data to be trans-
ferred from the PCU to 112C (Hex).
Set the unit number of the transfer
source to 2 (Hex) and the number of
transfer words to 4 (Hex).
Set the beginning word (transfer destina-
tion) of the area in the CPU Unit where
the speed data is stored to D00500.
If transfer is completed successfully,
the Equals Flag turns ON.
Work bit
Work bit
Read switch
Work bit
Work bit
Contents of DM Area after read is completed.
D00500
0 3 E 8
D00501
0 0 0 0
D00502
1 5 7 C
D00503
0 0 0 0
Speed #0
Speed #1
Program Example
Содержание CS1W-NC113 - REV 02-2008
Страница 1: ...CS1W NC113 213 413 133 233 433 Position Control Units ...
Страница 2: ...iv ...
Страница 4: ...vi ...