Managing Programs; Program Compilation - Omron R88A-MCW151-DRT-E Operation Manual

Mcw151 series motion control option board
Table of Contents

Advertisement

BASIC Programs
5-5-1

Managing Programs

Storing Programs
Program Commands
5-5-2

Program Compilation

The Motion Perfect software package is used to store and load programs to
and from a computer for archiving, printing and editing. It also has several
controller monitor and debugging facilities. Refer to SECTION 7 Motion Per-
fect Software Package for details on Motion Perfect.
Motion Perfect automatically creates a project which contains the programs to
be used for an application. The programs of the project are kept both in the
controller as on the computer. Whenever a program is created or edited,
Motion Perfect edits both copies in order to always have an accurate backup
outside the controller at any time. Motion Perfect checks that the two versions
of the project are identical using a cyclic redundancy check. If the two differ,
Motion Perfect allows copying the MC Unit version to disk or vice versa.
Programs on the computer are stored in ASCII text files. They may therefore
be printed, edited and copied using a simple text editor. The source programs
are held in the MC Unit in a tokenised form and as a result, the sizes of the
programs will be less on the MC Unit compared to the same programs on the
computer.
Programs on the MC Unit must be held in Flash memory when power is
turned OFF. Similar to the Table and VR variable data, the data will be lost
when the Unit is powered OFF. When a session will be ended, the current
programs in RAM must be copied to Flash memory by using the EPROM
command. The Motion Perfect package provides a button on the control panel
to perform the operation. It will also prompt the user when the program is
closed.
At each start-up before operation the program data in Flash memory will be
copied to RAM.
The MC Unit has a number of BASIC commands to allow creation, manipula-
tion and deletion of programs. Motion Perfect provides buttons which also
perform these operations.
Command
SELECT
Selects a program for editing, deleting etc.
NEW
Deletes the current selected program, a specified
program or all programs.
DIR
Lists the directory of all programs.
COPY
Duplicates a specified program.
RENAME
Renames a specified program.
DEL
Deletes the current selected program or a specified
program.
LIST
Lists the current selected program or a specified
program.
The MC Unit system compiles programs automatically when required. It is not
normally required to force the MC Unit to compile programs, but programs
can be compiled under the Program Menu in Motion Perfect.
The MC Unit automatically compiles programs at the following times.
• The selected program is compiled before it is executed if it has been
edited.
• The selected program is compiled if it has been edited before switching
the selected program to another program.
• The selected program is compiled by using the COMPILE command.
Function
Section 5-5
91

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

R88a-mcw151-e

Table of Contents