![background image](http://html1.mh-extra.com/html/omron/cs1w-mc221/cs1w-mc221_operation-manual_742361233.webp)
206
Data Transfer and Storage: Overview
Section 4-1
4-1-4
Transferring Position Data Using the Command Area
Example 1
In the following example, position data is written to 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 (17D6 hex). Refer to
3-6 Command
Area
for information on the command area.
S: The first word (in DM/EM Area) storing the position data that will be
transferred.
D: The destination unit number and total number of words of the position
data that will be transferred. The total number of words transferred is
0006 hex (POSITION DATA WRITE).
Example: If the Unit No. is 12, D = #00060000C
2.
Set the following data as the transfer data for position data.
L+0: Total number of words written
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/data item)
S+1:
Always 0000 hex
S+2:
The first source address of transferred position data.
Specifies the first source address in the DM or EM area that is
storing position data that will be transferred.
S+3:
The transfer source area designation (DM or EM).
Specifies the DM or EM area that is storing position data that
will be transferred.
X = 0: DM Area, X = 1 to D: Correspond to banks 0 to C in the
EM Area
CPU Unit
Ladder program
Executes (4)
Transfer Information for Position Data (2)
Total number of words written
Address of the first source word for transferred position data.
Always 0000
The transfer source area designation (DM or EM).
Always 0000
The first destination address for transferred position data.
Position data (3 words position)
DM/EM Area
Write position data
MC Unit
Address
Position data
A0000 data
A0001 data
A1998 data
A1999 data
Address
Command area
POSITION DATA WRITE
IOWR
C
S
D
:
:
0000
0001
:
:
:
:
:
:
:
:
:
:
:
1998
1999
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
(3)
(1)
17D6
(#17D6)
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 ...