203
Data Transfer and Storage: Overview
Section 4-1
There are basically three ways that the IOWR/IORD instructions can be used
to read and write data.
3.
Execute autoloading from the IOWR instruction in the ladder program.
IOWR can be used to write an operation code to the command area to au-
tomatically download programs or position data from the CX-Motion. Refer
to
6-16 Automatic Loading.
Note
A system setting error can occur when system parameters are transferred to
an MC Unit. To enable the parameters when this happens, save the parame-
ters in flash memory, and then turn MC Unit power OFF and ON or restart the
MC Unit.
A system setting error occurs if unit parameters and machine specification
parameters are changed without being enabled by cycling MC Unit power or
restarting the Unit. Always save the parameters in flash memory before turn-
ing MC Unit power OFF or restarting the Unit, otherwise the Unit will return to
the original system parameters.
4-1-2
Types of Data
The following types of data can be transferred by using CX-Motion, directly by
executing IOWR/IORD instruction, or by executing an IOWR instruction to
write data to the command area.
Refer to
SECTION 3 MC Unit Internal Data Configuration
for details on the
data that can be written and addresses.
O: Possible, X: Not possible
Purpose
Description
Reading/writing specific position data or parameters
Reading monitor data
IOWR/IORD commands are used when:
• One system parameter is to be written/read.
• Data for up to four position is to be written/read.
• One item in the monitor data is to be read.
Read/writing large amounts of position data
IOWR can be used to write data to the command
area to read/write data for up to 2,000 positions
at once.
Saving data to flash memory
IOWR can be used to write data to the command
area to save system parameters or position data
to flash memory.
Data
Content
Data
structure
Read/Write
CX-Motion (note 1)
IOWR/IORD
Teaching Box
Read
Write Save Read
Write Save Read
Write Save
Programs
G code programs
describing positioning
operations
Intermedi-
ate code
❍
❍
❍
×
×
×
×
×
×
Position
data
Data that indicates
positions
3 words per
position
❍
❍
❍
❍
❍
❍
❍
❍
❍
System
parame-
ters (See
note 7.)
Number of axes used,
number of tasks, feed
rates, and other system
data
2 words per
parameter
❍
❍
❍
❍
❍
(note
2)
❍
❍
(note
3)
❍
(note
3)
❍
Monitor
data
Error codes, present
positions, currently
executing program
numbers, and other data
2 words per
item
❍
(note
4)
×
×
❍
×
×
❍
(note
5)
×
×
Command
area
Special codes written
using the IOWR
instruction to transfer
position data, save data
to flash memory, or to
perform autoloading.
2 or 6 words
per com-
mand
×
×
×
❍
(note
6)
❍
×
×
×
×
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 ...