Omron CK5M-CPU 1 Series Startup Manual page 30

Table of Contents

Advertisement

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, open
Project name – PMAC Script
Language – Motion Programs
– prog1.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.
30
&1;
#1->8388608X;
OPEN PROG 1
INC;
TA800;
TS300;
LINEAR;
While (1 < 2)
{
TA800;
TS300;
TM3000;
X10;
DWELL2000;
X-10;
DWELL2000;
}
CLOSE

Advertisement

Table of Contents
loading

This manual is also suitable for:

1s seriesCk3m-cpu 1 seriesCk3e series

Table of Contents