
399
Basic Program Examples
Section 11-2
Installation and
Wiring
Install and wire the devices according to the directions in
SECTION 3 Installa-
tion and Wiring
.
Connect a 24-VDC control input power supply for the Servo Drive's I/O signals
and connect normally closed switches/sensors for the positive and negative
overtravel inputs (forward drive prohibited and reverse drive prohibited sig-
nals).
Also, when an origin search operation is to be executed, connect a normally
open switch/sensor for the origin proximity input signal (origin return decelera-
tion LS).
11-2 Basic Program Examples
This section provides sample ladder programs related to the PCU's basic
functions.
11-2-1 Transferring PCU Parameters
Overview
The parameters set in the PCU (Common Parameters and Axis Parameters)
can be transferred to and from the CPU Unit's EM Area using the READ DATA
Bit and WRITE DATA Bit.
Also, the parameters that have been written to the PCU can be saved to the
PCU's internal flash memory using the SAVE DATA Bit.
These sample programs use the following parts of the CPU Unit's I/O mem-
ory.
CPU Bus Unit Area
CIO 1500 to CIO 1524
These word addresses are contained in the CPU Bus Unit Area words allo-
cated to unit number 0.
Data Memory Area (DM Area)
D10000 to D10039
These words contain the write data when writing or the read data when read-
ing.
In this sample program, 40 words of data are written and read, and D10000 is
specified as the starting word, so D10000 to D10039 are used.
Work Area (WR Area)
Writing data: W300.00 to W300.06
Reading data: W301.00 to W301.06
Saving data:
W302.00 to W302.06
These Work Area bits are used to show the progress of function execution
and the execution status.
Writing Data
Use the WRITE DATA Bit in the Common Operating Memory Area to write the
write data prepared in the DM Area of the CPU Unit to the PCU.
When the execution condition for the write operation goes ON, the 40 words
of write data (preset in the CPU Unit's DM Area starting at D10000) are trans-
ferred to the PCU's internal memory starting at address 1838 hex.
When the data has been written, W300.05 is turned ON for one cycle.
Summary of Contents for CJ1W-MA - REV 10-2008
Page 3: ...iv ...
Page 5: ...vi ...
Page 21: ...xxii ...
Page 57: ...30 Starting Operation Section 2 2 ...
Page 97: ...70 Wiring Section 3 4 ...
Page 247: ...220 Transferring Servo Parameters Section 5 3 ...
Page 281: ...254 Standard Settings for Servo Drives Using MECHATROLINK Section 6 4 ...
Page 343: ...316 Absolute Encoder Origin Section 8 6 ...
Page 375: ...348 Linear Interpolation Section 9 7 ...
Page 423: ...396 DEVIATION COUNTER RESET Section 10 10 ...
Page 631: ...604 Additional Functions for the CJ1W NCF71 MA Appendix F ...
Page 641: ...614 Index ...
Page 643: ...616 Revision History ...