![background image](http://html1.mh-extra.com/html/omron/cj1w-nc271-12-2009/cj1w-nc271-12-2009_operation-manual_742348476.webp)
448
Application Examples
Section 11-3
11-3 Application Examples
This section shows sample application programs created by combining the
basic sample programs introduced in the previous section.
To make the basic sample programs easier to understand, the basic sample
programs reused in this section's application examples keep the same Work
Area word and bit addresses that were allocated in the previous section.
11-3-1 Initial PCU Settings
Overview
This application combines the data-writing and data-saving functions from
11-
2-1 Transferring PCU Parameters
with the communications function from
11-
2-2 Starting and Stopping MECHATROLINK Communications
to make the Ini-
tial PCU Settings. The 80 words of parameter data (including unused words)
must be preset in EM Area words E0_00000 to E0_00079 with the 40 words
of Common Parameters and 40 words of Axis Parameters (20 words each for
axes 1 and 2).
In this program, the initial PCU settings are made when H0.00 is OFF and the
task switches from INI to RUN status. After the initial settings are made, the
PCU is restarted. The transferred and saved parameters are enabled and
H0.00 is turned ON (Set) at the same time so that the initial settings are not
made again.
To make the initial settings again, reset H0.00 and execute the program again.
When H0.00 is reset, the Initial Task Execution Flag is used as the Write Data
execution condition and the Unit Data Write End Flag (W300.05) is used as
the Save Data execution condition. When the Save Data operation is com-
pleted (W302.05 ON), the Unit is restarted and H0.00 is turned ON.
MECHATROLINK communications will be controlled by the new Common
Parameters in the PCU either after the Unit restart at the end of initial settings
if H0.00 is OFF, or after starting the program (task) if H0.00 is ON.
This sample program uses the following parts of the CPU Unit's I/O memory.
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.
EM Area bank 0
E0_00000 to E0_00079
These 80 EM words are used to transfer to the PCU the 40 words of Common
Parameters and 40 words of Axis Parameters (20 words each for axes 1 and
2).
Work Area (WR Area)
Writing Data:
W300.00 to W300.06
Saving Data:
W302.00 to W302.06
Starting Communications: W303.00 to W303.04
Restarting the Unit:
W304.00 to W304.03
These Work Area bits are used to show the progress of function execution
and the execution status.
The following parts of I/O memory are used in the combined program exam-
ple.
Содержание 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 ...