458
Application Examples
Section 11-3
Example: First Part of Default Settings Read from an OMRON W-series Servo
Drive
Note
All of the data is expressed in hexadecimal.
For example, the data in E1_01024 to E1_01027 indicates parameter Pn100,
a parameter size of 2 bytes, and a set value of 0050 hex (80 decimal).
This data format is also used in the sample program when writing or saving
data from the CPU Unit's EM Area to the Servo Drive. (The parameter size at
the end of the transfer data is 0000 hex, which is the end code.)
Consequently, this program can be used to read the Servo Parameters to the
CPU Unit's EM Area to back up the Servo Parameters and those Servo
Parameters can be transferred to a new Servo Drive if it is necessary to
replace the Servo Drive in the future.
This sample program will start transferring the Servo Parameters when the
Servo Parameter Batch Transfer Bit (CIO 510.00) is ON and W303.03 has
been turned ON (indicating that axes 1 and 2 are both communicating nor-
mally) by the application example shown in
11-3-1 Initial PCU Settings
.
When this program is completed (Servo Parameter Transfer Complete),
W500.05 is turned ON for one cycle. If an error occurs while the Servo Param-
eters are being transferred (Error Flag ON), the transfer will be cancelled at
that point and W500.10 will be turned ON for one cycle.
Sample Ladder
Program
The Write Servo Parameters, Read Servo Parameters, and Save Servo
Parameters functions for axis 1 (program steps 000016 to 000033) are the
same as the functions described in
11-2-3 Transferring Servo Parameters
.
The functions for axis 2 (program steps 000034 to 000051) are the same as
the functions for axis 1, except for the different I/O words. To prevent duplica-
tions, be sure to change the axis 1 output words (CIO 0000 to CIO 0024) to
the corresponding axis 2 output words (CIO 0025 to CIO 0049) and change
the axis 1 input words (CIO 1000 to CIO 1024) to the corresponding axis 2
input words (CIO 1025 to CIO 1049).
Word
+0
+1
+2
+3
+4
+5
+6
+7
E1_01000
0000
0002
0010
0000
0001
0002
1002
0000
E1_01008
0002
0002
0000
0000
0003
0002
0002
0000
E1_01016
0004
0002
0200
0000
0005
0002
0000
0000
E1_01024
0100
0002
0050
0000
0101
0002
07D0
0000
E1_01032
0102
0002
0028
0000
0103
0002
012C
0000
E1_01040
0104
0002
0050
0000
0105
0002
07D0
0000
E1_01048
0106
0002
0028
0000
0107
0002
0000
0000
E1_01056
0108
0002
0007
0000
0109
0002
0000
0000
E1_01064
010A
0002
0000
0000
010B
0002
0004
0000
:
Summary of Contents for CJ1W-NC271 - 12-2009
Page 2: ......
Page 4: ...iv ...
Page 6: ...vi ...
Page 22: ...xxii ...
Page 58: ...30 Starting Operation Section 2 2 ...
Page 244: ...216 Axis Operating Input Memory Areas Section 4 8 ...
Page 264: ...236 Transferring Servo Parameters Section 5 3 ...
Page 396: ...368 Linear Interpolation Section 9 7 ...
Page 648: ...620 List of Error Codes Appendix D ...
Page 674: ...646 Additional Functions for the CJ1W NCF71 MA Appendix F ...
Page 684: ...656 Index ...
Page 686: ...658 Revision History ...