204
Data Transfer and Storage: Overview
Section 4-1
Note
1.
From CX-Motion, all data is read or written at the same time. Only portions
of one type of data cannot be specified.
2.
All parameters must be written. Refer to
SECTION 3 MC Unit Internal Data
Configuration
for details.
3.
Servo parameters can be read or written.
4.
Present positions, error information, program execution information, and I/
O signal status can be read.
5.
Present positions, error information, and I/O signal status can be read.
6.
All parameters must be read. Refer to
SECTION 3 MC Unit Internal Data
Configuration
for details.
7.
Parameters changed with G69 in the G code cannot be saved.
4-1-3
Using IOWR and IORD Instructions to Transfer Data
Example 1
In the following example, position data is written to the MC Unit by executing
the IOWR instruction.
1,2,3...
1.
Set the following data for the operands of the IOWR instruction.
C: The first destination address in the MC Unit for the position data.
S: The first word in the CPU Unit (e.g., in DM Area) containing the posi-
tion data to be transferred.
D: The destination unit number and total number of words for the position
data that will be transferred. Each position requires three words.
2.
Set the data to be transferred starting at the word specified for S.
3.
Execute the IOWR instruction to transfer position data.
Position data
(3 words/position)
:
:
Execute
(3)
(2)
MC Unit
CPU Unit
Address
Position data
0000
0001
:
:
:
:
:
:
:
:
:
:
:
1998
1999
A0000
A0001
A1998
A1999
:
:
:
:
:
:
:
:
:
:
:
IOWR
C
S
D
(1)
Ladder program
[DM]
Write 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 ...