222
Saving Data
Section 4-3
Transfer Data
Set the following data starting at the word specified for the source start word
address (S) and execute the IOWR instruction.
Set X =to 1 (S + 1: 0000, S: 0001) when saving (writing) position data and
system parameters to flash memory. S is the source start word address (S)
set in the IOWR instruction.
4-3-3
Ladder Program Example
Refer to the following examples of actual data transfer using an MC Unit with
the unit number 0 mounted in a CS. In these examples, the IOWR operand
and transfer data are both assumed to be correct.
When debugging, write ladder code that will check the Error Flag and bit 14 of
word n + 10/n + 18.
Example
Saving Position Data to Flash Memory
Settings in DM Area
Description
When task 1 is not being executed in memory (Execution Flag OFF) and none
of the axes is moving (Busy Flags OFF), then the data will be saved to flash
memory.
!Caution
Do not attempt to save data to flash memory during program execution or
while a motor is operating. Doing so can result in unexpected operation.
Note
It normally requires from one to two seconds to save data to flash memory,
but a maximum of 30 seconds can sometimes be required.
0
0
0
0
0
0
S+1
S
0 X
15
00 15
03 00
DIFU
R1
Work bit
IOWR
#17D4
D00100
#00020000
R3
R2
R3
R1
R2
25506 (=)
Execution condition
Set the data
required for transfer.
Address (6100) for saving position data to
flash memory. (17D4 Hex (6100)).
Set the address of the first source word of
the position data.
Set the source unit number to 0 and a
total of 2 words to be transferred.
OUT (Work bit)
OUT (Work bit)
X-axis Busy Flag
Y-axis Busy Flag
Program
Execution
Flag
0001
0000
D0100
D0101
Save to flash memory.
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 ...