27
Data Exchange
Section 1-6
Note
1.
With the CS1W-MC221, there are no addresses for task 3, task 4, the Z
axis, or the U axis. For the purposes of this illustration, CS1W-MC421 ad-
dresses are shown. For details, refer to
SECTION 3 MC Unit Internal Data
Configuration
.
2.
Words data transfer are required when IORD or IOWR is used for transfer-
ring data between the CPU Unit and the MC Unit. They are not required
when using CX-Motion to transfer data.
3.
The override function selection (6120) can be used only with Unit Ver. 1.15
or later, and with Units whose model number ends in -V1.
4.
Position data, system parameters, and G-language programs are saved to
and read from flash memory. Monitor information and special information
are not.
5.
When positioning by means of a G-language program, the positioning co-
ordinates can be set directly or they can be set indirectly using position
data (A0000 to A1999).
1-6-2
Explanation
PLC Interface Area
Words in the Special I/O Unit Area are allocated to MC Unit according to the
unit number setting switch on the front panel of the Unit. The CS1W-MC421 is
allocated 50 words, and the CS1W-MC221 is allocated 30 words. For details
on the PLC Interface Area, refer to
SECTION 5 Exchanging Data with the
CPU Unit
.
CS1W-MC421
During I/O refreshing, data in the 18 words from n to n+17 (including com-
mands related to operations and other information) is transferred from the
CPU Unit to the MC Unit. Likewise, data in the 30 words from n+18 to n+47
(containing status information) is input from the MC Unit to the CPU Unit.
Words n+48 and n+49 are reserved for the system.
CS1W-MC221
During I/O refreshing, data in the 10 words from n to n+9 (including com-
mands related to operations and other information) are transferred from the
CPU Unit to the MC Unit. Likewise, data in the 16 words from n+10 to n+25
(containing status information) is input from the MC Unit to the CPU Unit.
Words n+26 to n+29 are reserved for the system.
Data
The data consists of system parameters, position data, monitoring informa-
tion, and a command area. System parameters and position data are required
for motion control. Basically, the data is set using CX-Motion and then trans-
ferred to the MC Unit. The transferred data is stored in the MC Unit’s internal
memory and identified by address. The data can then be read or set by using
IORD or IOWR in a ladder diagram program to specify addresses.
Monitoring information is read-only data. It includes MC Unit status, I/O moni-
toring data, and so on.
The command area is used for operations such as transferring position data
and system parameters by using IOWR to write specified data to specified
addresses.
G-language Programming
(MC Programs)
G-language programs are executed by operation commands in the PLC inter-
face area, and they control MC Unit positioning. They are created using CX-
Motion and then transferred to the MC Unit.
Internal Memory and Flash
Memory
System parameters, position data, and G-language programs stored in inter-
nal memory can be saved to flash memory by means of data save commands
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 ...