![background image](http://html1.mh-extra.com/html/omron/r88m-k-series/r88m-k-series_startup-manual_742246032.webp)
32
4
In the programming area of the
plc1.plc tab page, write a
program as shown on the right.
This example program turns a
servo ON, starts user program 1
for the motor, then exits periodic
execution of the PLC user
program.
5
Setting the start of the user
program
In the Solution Explorer pane,
open
Project name
–
Configuration
–
pp_disable.txt
.
6
In the programming area of the
pp_disable.txt tab page, add the
program shown on the right to
the last line.
The pp_disable.txt program is
automatically executed when the
Controller starts.
This example program runs the
PLC1 script.
open plc 1
while(sys.ecatMasterReady==0){};
P1000=Sys.Time+1;
while(P1000>Sys.Time){};
ECAT[0].Enable=1;
P1000=Sys.Time+1;
while(P1000>Sys.Time){};
cmd"&1enable";
P1000=Sys.Time+5;
while(P1000>Sys.Time){};
cmd"&1b1r";
disable plc 1;
close
enable plc 1;
Содержание R88M-K Series
Страница 11: ...11 6 5 2 Motor Setup 6 5 3 Creation of Operation Check Programs 6 5 4 Project Data Transfer and Operation Check...
Страница 13: ...13 5 From the File menu select New then Project 6 Enter a project name and location and select OK...
Страница 46: ...46 10 Revision History Revision code Revised date Revised content A 5 Apr 2019 First edition...
Страница 47: ...2019 0419 0419 O038 E1 01 Note Do not use this document to operate the Unit...