31
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.
3
Creating the PLC program
In the Solution Explorer pane,
open
Project name
–
PMAC
Script Language
–
PLC
Programs
–
plc1.plc
.
&1;
#1->131072X;
OPEN PROG 1
INC;
TA800;
TS300;
LINEAR;
While (1 < 2)
{
TA800;
TS300;
TM3000;
X20;
DWELL2000;
X-20;
DWELL2000;
}
CLOSE