Omron 1S Series Startup Manual page 31

Programmable multi-axis controller
Hide thumbs Also See for 1S Series:
Table of Contents

Advertisement

3
Creating the PLC program
In the Solution Explorer, open
Project name – PMAC Script
Language – PLC Programs –
plc1.plc.
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.
open plc 1
while(sys.ecatMasterReady==0){};
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
31

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ck5m-cpu1 1 seriesCk3m-cpu1 1 seriesCk3e series

Table of Contents