![background image](http://html1.mh-extra.com/html/omron/cj1w-nc271-12-2009/cj1w-nc271-12-2009_operation-manual_742348451.webp)
423
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.
Содержание CJ1W-NC271 - 12-2009
Страница 2: ......
Страница 4: ...iv ...
Страница 6: ...vi ...
Страница 22: ...xxii ...
Страница 58: ...30 Starting Operation Section 2 2 ...
Страница 244: ...216 Axis Operating Input Memory Areas Section 4 8 ...
Страница 264: ...236 Transferring Servo Parameters Section 5 3 ...
Страница 396: ...368 Linear Interpolation Section 9 7 ...
Страница 648: ...620 List of Error Codes Appendix D ...
Страница 674: ...646 Additional Functions for the CJ1W NCF71 MA Appendix F ...
Страница 684: ...656 Index ...
Страница 686: ...658 Revision History ...