![Omron CJ1W-MA - REV 10-2008 Скачать руководство пользователя страница 451](http://html1.mh-extra.com/html/omron/cj1w-ma-rev-10-2008/cj1w-ma-rev-10-2008_operation-manual_742343451.webp)
424
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-MA - REV 10-2008
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 21: ...xxii ...
Страница 57: ...30 Starting Operation Section 2 2 ...
Страница 97: ...70 Wiring Section 3 4 ...
Страница 247: ...220 Transferring Servo Parameters Section 5 3 ...
Страница 281: ...254 Standard Settings for Servo Drives Using MECHATROLINK Section 6 4 ...
Страница 343: ...316 Absolute Encoder Origin Section 8 6 ...
Страница 375: ...348 Linear Interpolation Section 9 7 ...
Страница 423: ...396 DEVIATION COUNTER RESET Section 10 10 ...
Страница 631: ...604 Additional Functions for the CJ1W NCF71 MA Appendix F ...
Страница 641: ...614 Index ...
Страница 643: ...616 Revision History ...