Explanation - Omron CS1W-MC221 - 02-2008 Operation Manual

Motion control units
Table of Contents

Advertisement

Data Exchange
1-6-2

Explanation

PLC Interface Area
Data
G-language Programming
(MC Programs)
Internal Memory and Flash
Memory
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).
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.
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 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.
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
Section 1-6
27

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs1w-mc221Cs1w-mc221-v1Cs1w-mc421Cs1w-mc421-v1

Table of Contents