207
Data Transfer and Storage: Overview
Section 4-1
S+4:
The first destination address for transferred position data.
Specifies the first destination address in MC Unit internal RAM
for the transferred position data.
Range: 0000 to 07CF hex (0 to 1999)
S+5:
Always 0000 hex
3.
Set the position data to be transferred in the DM/EM Area beginning at the
word specified for S+2. Each position requires three words.
4.
Execute the IOWR instruction to transfer position data to the MC Unit.
Example 2
In the following example, position data is read from an MC Unit.
1,2,3...
1.
Set the following data for the operands of the IOWR instruction.
C: The address of the command area (17D7 hex). Refer to
3-6 Command
Area
for information on the command area.
S: The first word (in DM/EM Area) to store the position data that will be
transferred.
D: The destination unit number and total number of words for the position
data that will be transferred.
The total number of words transferred is 0006 hex (transfer data for po-
sition data).
Example: If the Unit No. is 12, D = #00060000C
2.
Set the following data as the transfer data for position data.
S+0:
Total number of words to read
Specify the total number of words for the 1 to 2,000 position
data items in multiples of three (each position requires three
words).
Range: 0003 to 1770 hex (3 to 6,000, 3 words/position)
CPU Unit
Ladder program
Execute (3)
Transfer Data for Position Data
Total number of words to read
The transfer destination area designation (DM/EM).
Position data (3 words/data item)
DM/EM Area
Position data read
MC Unit
Address
Position data
A0000 data
A0001 data
A1998 data
A1999 data
Always 0000
Always 0000
Address
Command area
POSITION DATA READ
IOWR
C
S
D
:
:
0000
0001
:
:
:
:
:
:
:
:
:
:
:
1998
1999
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
(1)
(4)
17D7
(#17D7)
The address of the first source word for transferred
position data.
The address of the first destination word for transferred
position data.
Summary of Contents for CS1W-MC221 -
Page 1: ...Motion Control Units Cat No W359 E1 04 CS1W MC221 V1 421 V1 OPERATION MANUAL ...
Page 2: ...CS1W MC221 V1 421 V1 Motion Control Units Operation Manual Revised February 2008 ...
Page 3: ...iv ...
Page 5: ...vi ...
Page 11: ...xii ...
Page 15: ...xvi ...
Page 19: ...xx ...
Page 27: ...xxviii Conformance to EC Directives 6 ...
Page 133: ...106 Installation Section 2 2 2 2 4 Dimensions CS1W MC421 CS1W MC221 ...
Page 173: ...146 Connecting Peripheral Devices Section 2 7 ...
Page 227: ...200 Command Area Section 3 6 ...
Page 351: ...324 Interface Specifics Section 5 4 ...
Page 513: ...486 Absolute Encoder Interface Specifications Section 9 7 ...
Page 575: ...548 Error Log Section 12 6 ...
Page 589: ...562 Performance Appendix A ...
Page 655: ...628 Control Bit Flag Timing Charts Appendix E ...
Page 683: ...656 Origin Search Patterns Appendix F ...
Page 685: ...658 Encoder Divider Rate and Rotation Speed for OMRON Servo Drivers Appendix G ...