EasyManua.ls Logo

Omron CK M-CPU1 1 Series - Page 32

Omron CK M-CPU1 1 Series
52 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
32
Creation of Operation Check Programs
Create programs to be used to check operations.
A specific language is used for the operation check programs. Refer to Power PMAC User’s
Manual and Power PMAC Software Reference Manual for details.
1
Creating the Motion program
In the Solution Explorer pane,
open Project namePMAC
Script LanguageMotion
Programsprog1.pmc.
2
In the programming area of the
prog1.pmc tab page, write a
program as shown on the right.
This example program rotates a
motor in the normal direction,
stops the rotation, then repeats
rotation in the reverse direction
and stops.
&1;
#1->131072X;
OPEN PROG 1
INC;
TA800;
TS300;
LINEAR;
While (1 < 2)
{
TA800;
TS300;
TM3000;
X20;
DWELL2000;
X-20;
DWELL2000;
}
CLOSE

Related product manuals