How-to’s
Section 5-1
266
5-1
How-to’s
5-1-1
Startup program
The purpose of this program is to compare the detected MECHATROLINK-II
configuration with the expected one (the expected configuration is the
configuration existing in the moment you create the program).
The STARTUP program does these actions:
• Checks the number of nodes in the system.
• Checks that the node numbers agrees.
• Checks if all slaves are connected and have power.
• Any non agreement, the program stops.
• Sets the correct
ATYPE
as selected in the intelligent axis window.
• Sets the mode,
Run
or
Commisioning
.
5-1-1-1 How to set a startup program
When you add a new CJ1W-MCH72 device to the solution in Trajexia Studio, 2
programs are created by default: the SHELL program, and an application
program called APPLICATION.
Default programs SHELL and APPLICATION
A CJ1W-MCH72 device can execute a program at startup: when the device is
switched on, it executes the program.
You can set the startup priority for a program in Trajexia Studio with the
Priority
property in the
Properties
window. If you click the ellipsis button in
the edit field of this property, the
StartUp Priority
window shows.
StartUp Priority
window
To set the program to run at power up, select the
Run at Power Up
check box
and select a priority in the list. Possible priority values are
Default
or 1 (lowest
priority) to 14 (highest priority).
To set the program not to run at startup, clear the
Run at Power Up
check
box.
!Caution
If the associated Basic Execution Enable flag is set in the PLC during program transfer
with Trajexia Studio, programs in the CJ1W-MCH72 may be corrupted. When the PLC
is not in Program Mode, it is strongly recommended that the PLC is switched to
Program Mode before program transfer and that the mode is not changed until transfer
is completed.
Note
The SHELL program by default runs at startup at priority 1.
Note
OMRON recommends that the statement
RUN “your_program”
is used at the end of
the Startup program to start your application program. The application program starts
when the startup program is executed successfully and without errors.
If you set an application program to “Run at startup” there is a risk that the machine
starts if there is an error on the MECHATROLINK-II bus.
Содержание SYSMAC CJ Series
Страница 2: ......
Страница 70: ...Specifications Section 2 4 58...
Страница 84: ...FINS commands Section 3 4 72...
Страница 148: ...All BASIC commands Section 4 2 136 AXIS 1 AXIS 0...
Страница 277: ...Section 265 SECTION 5 Examples This chapter gives 2 categories of examples and tips How to s Practical examples...
Страница 370: ...Section 358...