I606 Ev+ Operating System Users Manual en
I606 Ev+ Operating System Users Manual en
User's
I6-E-01
Copyright Notice
The information contained herein is the property of Omron Adept Technologies, Inc., and shall not be
reproduced in whole or in part without prior written approval of Omron Adept Technologies, Inc. The
information herein is subject to change without notice and should not be construed as a commitment by
Omron Adept Technologies, Inc. The documentation is periodically reviewed and revised.
Omron Adept Technologies, Inc., assumes no responsibility for any errors or omissions in the
documentation. Critical evaluation of the documentation by the user is welcomed. Your comments assist
us in preparation of future documentation. Please submit your comments to: [email protected].
Page 3
Table Of Contents
Introduction 7
What Is Described in This Manual? 8
What Systems Can I Use This Manual With? 8
What Other Manuals Might I Need? 8
What About Safety? 10
Conventions 13
Using Files 33
Understanding Disk Files 34
Using Directories 39
Executing Programs 46
Understanding Programs 47
Removing Objects from System Memory 50
Understanding Program Modules 53
Page 5
Using Hard Drives 55
Command Programs 60
Introduction 61
Creating Command Programs 61
Running Command Programs 62
Controlling Command Programs 63
Example Command Program 64
System Messages 66
Error Messages 66
Page 6
Introduction
Introduction
The following topics are described in this chapter:
Page 7
What Is Described in This Manual?
Material
Manual Recommended for:
Covered
Periodic
maintenance of
the device.
Page 8
What Other Manuals Might I Need?
Material
Manual Recommended for:
Covered
AIM application module user's Installing and Programmers and users of the
guides using AIM application module
application
modules
Page 9
What About Safety?
Material
Manual Recommended for:
Covered
(VisionWare,
MotionWare,
AIM PCB, etc.).
Page 10
What About Safety?
We recommend you read the American National Standard for Industrial Robot Systems-
Safety Requirements, published by the Robotic Industries Association in conjunction with
the American National Standards Institute. The publication, ANSI/RIA R15.06-1992,
contains guidelines for robot system installation, safeguarding, maintenance, testing,
startup, and operator training. The document is available from the American National
Standards Institute, 1430 Broadway, New York NY 10018. All Omron Adept robot systems
sold in Europe must conform to European Certification requirements. For details, see the
manual supplied with your robot.
System Safeguards
Safeguards should be an integral part of robot workcell design, installation, operator training,
and operating procedures. Omron Adept robot systems have various communication
features to aid you in constructing system safeguards. These include remote emergency
stop circuitry and digital input and output lines.
Computer-Controlled Robots
Omron Adept robots are computer controlled, and the program that is running the robot may
cause it to move at times or along paths you may not anticipate. When the white HIGH
POWER light1 on the Front Panel is illuminated, do not enter the workcell because the robot
may move unexpectedly.
Page 11
What About Safety?
Page 12
Conventions
1White is the color of the light on the Front Panel. If a remote front panel has been installed
by another party, the color may vary.
Conventions
This section discusses:
l Typographic conventions
l Keyboard conventions
Typographic Conventions
The following typographic conventions are used throughout this manual:
This Represents
The name of a physical key or button that you must press, such as the
ENTER key and the PROGRAM START button.
italic Placeholders that you must provide in typed input. This font also
indicates new terms and other emphasized words.
Initial The name of an object such as a window, screen, menu, button, dialog
Page 13
Conventions
This Represents
Capitals box, or dialog box component. Examples are the Display menu and the
Task Profiler window. The logical names of physical function keys or
buttons use regular font and follow the interface's capitalization, which
usually has initial capital letters in all principal words.
Keyboard Conventions
Key combinations appear in the following format:
Notation Meaning
KEY1+KEY2 A plus sign (+) between keys means that you must press the keys at
the same time. For example, "Press CTRL+Z" means that you press
CTRL and hold it down while you press Z.
Abbreviations
The following abbreviations may appear in this manual:
Abbreviation Meaning
CE European Certification
DAC Digital-to-Analog
Converter
I/O Input/output
Page 14
Your Omron Adept System Hardware
Page 15
Before You Begin
l A motion device (see the User Guide for your robot or the Adept SmartMotion
Installation Guide)
or
l Motion interface module (sMI6) (see the Adept SmartMotion Installation Guide)
l Conveyor belts
The following topics summarize the hardware components that may be part of your Omron
Adept system. See Learning the Basics on page 21 for the basics about using the eV+
operating system software.
Systems supporting vision will have either an Omron Adept SmartVision EX vision processor
or a Windows PC, running ACE Sight software. This will be connected to the controller by
Ethernet.
The Adept SmartController User's Guide covers the installation of the Omron Adept
SmartController EX as well as the interconnection to the equipment in your automation
system.
All the other hardware described in this topic is optional and may or may not be included in
your system.
Page 16
The Controller and Memory
The controller also contains memory chips for the system's Random Access Memory (RAM).
Programs that are actively executing, and the data needed by those programs, reside in
RAM. See your Omron Adept controller user's guide for more details.
Information that is not actively being used is stored on mass storage devices, such as a
Secure Digital (SD) card. For more details, see the section Using Permanent File Storage on
page 54.
Page 17
The Pendant
See your Omron Adept robot user's guide for details on the installation and configuration of
the Omron Adept hardware and the interconnection between the Omron Adept controller and
your Omron Adept robot. See the Adept SmartMotion Developer's Guide for details on
configuring and tuning a motion system on the Omron Adept SmartMotion platform.
The Pendant
The Omron Adept pendant, shown in the following figure, allows you to move a robot or
motion device and to teach locations used by motion control programs. The features of the
pendant are covered in the Adept T20 Pendant User's Guide.
Page 18
Other Input and Output Devices
T20 Pendant
Page 19
Other Input and Output Devices
vision equipment. The ACE Sight User's Guide covers the use of Omron Adept's vision
software.
Serial I/O
The Omron Adept SmartController has connectors for RS-232 and RS-422/RS-485
communication with other controllers or computers. See the Adept SmartController User's
Guide for details on installing serial I/O devices. See the eV+ Language User's Guide for
details on programming serial I/O.
Digital I/O
Omron Adept's digital I/O system behaves similarly to programmable logic controllers (PLCs),
allowing input from and output to devices generating and receiving simple on/off signals.
Digital I/O uses optical isolation modules to insulate the controller from noise generated by
inductive devices in the workcell. See the Adept SmartController User's Guide for details on
installing digital I/O devices. See the eV+ Language User's Guide for details on programming
digital I/O.
Ethernet
The Omron Adept SmartVision EX and the Omron Adept SmartController EX products include
shielded RJ45 Ethernet receptacles. The hardware (and required option licenses) provide
TCP/IP and FTP capabilities. See the Adept SmartController User's Guide and the Adept
SmartVision EX User's Guide for details on Ethernet communications on the Omron Adept
SmartController EX and Omron Adept SmartVision EX products.
Page 20
Learning the Basics
Page 21
Using the Controller
l Using a pointing device to make selections. This type of interaction is used with
programs written for ACE-based systems. For details on the ACE user interface basics,
see the ACE User's Guide.
l Initiating actions and responding to system requests with the pendant. The pendant is
generally used with motion systems.
l Use of the T20 pendant is described in the Adept T20 Pendant User's Guide.
The following are the minimum steps required to get an Omron Adept system up and
running.
l An Omron Adept robot, or a motion device and the Adept SmartMotion system option.
l Installation of the Omron Adept robot or motion device should be covered in the
documentation provided with that robot or motion device.
l Interconnection of the robot with the controller is covered in the robot user
guide.
l Safety equipment.
Page 22
Using the Controller
before proceeding.
l The Adept SmartController User's Guide covers the physical interconnect of I/O
devices.
l The ACE User's Guide describes using peripheral devices with the ACE interface
and eV+.
l The eV+ Language User's Guide covers eV+ programming considerations for
accessing the peripheral devices.
l Conveyor Belts.
l The ACE User's Guide describes using conveyor belts with the ACE interface
and eV+.
l The ACE Sight User's Guide details installing and configuring cameras and
strobe lights.
Your Omron Adept controller ships from the factory with the eV+ operating system installed
and configured. The procedure for installing or upgrading the eV+ system is described in the
ACE User's Guide.
Page 23
Using the Controller
Turn on the controller by pressing the on/off switch to ON. The controller will perform a series
of self-tests and load the operating system. The system power-up and boot procedures will
take about a minute.
When using the ACE interface, you can connect to the controller and power-up the motion
device with the ACE software. For more details, see the Getting Started chapter in the ACE
User's Guide.
The remainder of this topic describes the operations when accessing the V+ system directly
through the Monitor window.
Each time the controller is turned on, a start-up calibration procedure must be performed for
the motion device. The CALIBRATE command performs this start-up procedure. Programs
that send instructions to a motion device will not execute properly unless this start-up
procedure is completed.
When the controller is first turned on, power is not sent to the motion device. To enable
power, enter the command:
ENABLE POWER
The system begins executing a command as soon as you press the ENTER key. (When shown
in the documentation, the symbol "↵" indicates that the ENTER key should be pressed.)
The Front Panel High Power Enable button has a default 10-second timeout period. For most
systems, this button will blink during that time, and you must press and release the button to
enable high power. The Timeout period can be modified or disabled in the eV+ system. If
disabled, you will not need to press the High Power Enable button.
Once robot HIGH POWER has been enabled, the motion device start-up calibration must be
performed (if your system is not one of those listed below). To perform start-up calibration,
enter the command:
Page 24
Using the Command Line
CALIBRATE
The motion device will proceed through a series of motions to verify its current location and
the state of its position encoders. Once the calibration procedure is complete, robot control
programs can be executed. The calibration procedure is not required for the following:
l All Viper robots, the Cobra 350 robot, and Quattro robots. The auto-calibrate bit has
been set for these robots, which causes these robots to be automatically calibrated
when the system is turned on. Therefore, it is not necessary to use the CALIBRATE
command with these robots.
l Systems (such as stand-alone vision systems) that do not have an attached motion
device.
When a PANIC button is pressed or other emergency stop switch is tripped, HIGH POWER is
immediately removed from the motion device. Power is also removed from the device if a
servo error is reported. For example, a servo error occurs if the motion device cannot attain a
desired location (for example, if the device runs into something).
Before the motion device can be used again, you must enter the command:
ENABLE POWER
NOTE: You can also enable power by pressing the Robot Power button on the pendant.
1This switchprovides terminals for the user to connect an AC power source. If this option is
not used on your system, the switch will be inactive.
NOTE: Many of the commands, formerly available only through the command line, are
now more easily accessed through the ACE interface. However, you can still reach the
Page 25
Using the Command Line
command line through ACE, by clicking on the Monitor Window ( ) icon on the ACE
toolbar. For more details on the ACE interface, see the ACE User's Guide.
The remainder of this topic describes the operations when accessing the V+ system directly
through the Monitor window.
Whenever the typing cursor appears, the system is ready to accept input from the keyboard.
(At many times, you can even type before the cursor appears, and your typing will be
buffered until the system is ready to accept it.)
NOTE: On ACE systems, Monitor commands cannot be entered when the Monitor window
is closed. To display the Monitor window, select the Monitor Window ( ) icon from the
ACE toolbar. For more details on the ACE interface, see the ACE User's Guide.
ID ↵
Command Parameters
Most commands require additional information that tells the system exactly how you want
the command executed. This additional information is specified as parameters on the
command line. You specify unique information for each command parameter. Command
parameters must be entered in the order they are listed, and they must be separated
(delimited) in exactly the fashion shown. A comma is normally used to separate parameters.
Occasionally, an equal sign, "=", is used. You must always type a space between a command
and its list of parameters. Spaces before and after parameter separators are optional.
Page 26
Using the Command Line
STATUS ↵
is entered, status information for all the used system tasks will be displayed. If the
command:
STATUS 1 ↵
is entered, status information will be displayed only for system task number 1.
If one or more parameters follow an omitted parameter, the parameter separator(s) must be
typed. If all the parameters following an omitted parameter are optional, and those
parameters are also omitted, the separators do not need to be typed (see below for an
example).
For more detailed information, see the eV+ Operating System Reference Guide.
l Parameters shown in bold lowercase letters are required and should be replaced with
values you provide. For example, drive should be replaced with a drive letter you
choose.
l Parameters shown in non-bold lowercase letters are optional. If you omit an optional
parameter, the system will use a default value.
Page 27
Using the Command Line
The following sample command has one required and one optional parameter:
SAMPLECOMMAND param_required, param_optional
If both parameters are specified, the comma separating the parameters must be entered. If
the optional parameter is not specified, the comma can be omitted.
STAT ↵
STA ↵
To Cancel a Command
To cancel an executing command, press CTRL+C. These keystrokes will NOT halt a program
that was started with the EXECUTE command. The ABORT command halts an executing
program.2
Many commands output information to the monitor. This output can be temporarily halted by
pressing the SCROLL LOCK key. To restart the output, press SCROLL LOCK again.
The following keys move the typing cursor on the command line:
The and keys move the typing cursor left and right. Shift+ or Ctrl+ moves the
typing cursor to the beginning of the line. Shift+ or Ctrl+ moves the typing cursor to
the end of the line.
Ctrl+U erases all the characters from the typing cursor to the beginning of the line.
The system prompt is always in insert mode. If the typing cursor is not at the end of the line,
entered characters will be inserted to the right of the cursor and the remaining characters are
pushed to the right.
Regardless of the position of the typing cursor, the whole command line will be submitted
when the ENTER or RETURN key is pressed.
Page 28
Using the Graphics-Based Interface
Once a program has begun execution in task number 0, the "." prompt will disappear.
However, any time the system is not actively requesting input, you can begin typing a
Monitor command. As soon as you begin typing, the asterisk "*" prompt will be displayed
along with any characters you type.
The only time you cannot enter a command is when the system is waiting for input from the
keyboard. For example, suppose the following message is displayed in the Monitor window:
Are you sure (Y/N)? [ ]
The typing cursor at the end of the line tells you the system is waiting for you to enter a
response at the keyboard. (Entering CTRL+Z at this point will generally abort the program
that displayed the prompt.)
NOTE: If you are entering a command while a program is executing, the program will
wait until you press ENTER before displaying to the Monitor window any output generated
by the program. Therefore, you should not leave a partially-typed command in the
Monitor window, since it may cause programs with screen output to wait indefinitely.
1Thismanual covers the most commonly used Monitor commands and parameters. All the
Monitor commands and their complete syntax are covered in the eV+ Operating System
Reference Guide.
2ABORT does not stop any robot motion that has already begun. Use any emergency stop
button to immediately halt robot motion.
Page 29
Using Software
You move the pointer arrow around the screen by rolling the trackball (see the following
figure) or sliding the mouse in the direction you want to move the pointer. Do not press any
pointer device buttons when you simply want to move the pointer to a different location on
the screen.
To Click
To Click the pointing device, move the pointer until it is over the area you want to click on,
then press and release the CLICK button (see the following figure). Clicking selects windows,
presses buttons, and performs other actions within an application.
To Drag
To drag the pointing device, move the pointer to the starting location, press and hold the
CLICK button, then move the pointer to a different location and release the CLICK button.
Some of the uses for dragging are to move or resize windows and to select items in pulldown
menus.
NOTE: The ACE software uses the basic Microsoft Windows format. Refer to the
AdeptWindows User's Guide and the Windows Operating System online help for more
information.
Using Software
In the course of using an Omron Adept system you will deal with two primary types of
software: operating system software and application programs. If you are using an AIM-based
application 1, you will also access special database software.
Page 30
The Operating System
When you first turn on the Omron Adept controller, this software is automatically loaded and
made ready for use. You do not have to do anything special to make this software active. For
details on customizing and optimizing the operating system behavior, see Customizing an
Omron Adept System, which lists several options for customizing and optimizing the
operating system behavior. However, as delivered from Omron Adept, the operating system
will correctly run your basic system.
Application Software
Application software makes the Omron Adept system perform the tasks required by your
particular automation system. Application software has many sources: Omron Adept
provides standard graphical interface and optional application packages; Omron Adept
system integrators provide custom software programs; or you may create your own
application software. Application software must be specifically loaded from the Secure Digital
card to system RAM each time the controller is turned on, or after each time the programs
are removed to make room in RAM to run other programs. For details on loading and
unloading the software, see Understanding eV+ Programs.
In general, unless you are programming applications, you do not have to be concerned with
the internal operation of the operating system.
Page 31
Using Files and Directories
operating system uses a hierarchical file system for organizing files and isolating related files.
The section Understanding Disk Files describes the file directory structure.
With large storage devices, it is particularly important that you carefully organize your file
structure so you can quickly locate needed files. Carefully-organized files make common
operations, such as copying, deleting, and renaming files, much easier. It is very difficult to
clean up a badly disorganized file structure. Therefore, before you begin copying large
quantities of files to your system storage device(s), carefully read the section Understanding
Disk Files .
Page 32
Using Files
Using Files
The following topics are described in this chapter:
Page 33
Understanding Disk Files
NOTE: Because they are handled the same way as files stored on a hard disk drive, files
stored on an SD card are referred to as disk files.
When the ACE interface is used, the Process Manager automates much of the programming
and program/file management through a point-and-click interface. For those who wish to
access the eV+ system directly, the Controller Development Tools are used for program/file
management and direct V+ monitor prompt operations. These tools are accessed from the
Controller Development Tools ( ) icon on the ACE toolbar. For more details, see the topic
Controller Development Tools in the ACE User's Guide.
The ACE File Explorer provides a graphical interface for copying, deleting, renaming, and
storing files. It is accessed from the File Explorer ( ) icon on the ACE toolbar. For more
details, see the topic File Explorer in the ACE User's Guide.
The remainder of this topic describes the operations when accessing the V+ system directly
through the Monitor window.
Disk Files
One of the biggest differences between the eV+ system and other operating systems is the
nature of a disk file. In most operating systems, a disk file contains a single executable
program, text document, or data file. With the eV+ system, a file can contain several items,
the most common of which are programs and the values of global variables.
The reasons for this file strategy will become clear as later topics discuss the way the eV+
system executes programs, handles subroutines, and stores the values of program variables.
The important thing to remember as you become familiar with the eV+ file structure is that
when you load or store a file, you are not necessarily loading or storing a single program.
Subdirectories
In normal operations, you may wind up with large quantities of files. If you had no way of
organizing and isolating related files, your disk drives would quickly become awkward and
difficult to use. The eV+ system supports use of a directory structure to help organize and
manage disk files. Subdirectories and the directory structure are covered in the next section.
Page 34
Understanding Disk Files
File Names
Each file within a subdirectory must have a unique name. The eV+ system uses this name to
keep track of the file and to allow you to access the file. There are also several file extensions
that are used for different types of files in the eV+ system.
eV+ file name requirements are similar to MS-DOS file name requirements. File names
must:
l Use only letters (a - z), digits (0 - 9), and the underscore (_) character. (eV+ ignores
the case of letters used in file names.)
l Use only one period, which marks the beginning of the file name extension.
You may use any valid file name for your files. However, you might want to be aware that
Omron Adept uses several common naming schemes, including the following file name
extensions:
l Omron Adept's optional AIM software uses the extensions ovr, ov2, db, mnu, and
rfd.
l eV+ programs
l User Data
Page 35
Understanding Disk Files
eV+ programs contain coded instructions that tell the computer what to do and which
external devices to communicate with.
User data is generated by various eV+ programs, such as camera calibration programs or the
Omron Adept AIM database management system.
eV+ variables provide specific information needed by a program. For example, the location
values that a robot is to move to can be stored in a disk file.
In general, unless you will be writing custom programs for the eV+ system, you do not need
to be concerned about creating new data files. The files will be created already, or will be
created and modified automatically by the programs that you run. You may need to copy
existing files from one disk to another. Copying disk files is covered in the following sections .
When the ACE system is used to access the V+ system, the File Explorer is used for most file,
directory, and file-management operations. The File Explorer is accessed from the ACE
toolbar.
The File Explorer can be used to list, cut, copy, paste, or rename the files on a storage device
(for example, a hard drive or Secure Digital (SD) card).
For details, refer to the topic File Explorer in the ACE User's Guide.
The following sections describe how to access files when the ACE system is not used, or when
the ACE Monitor window is used.
Page 36
Understanding Disk Files
The FDIRECTORY command lists all the files in a subdirectory (see Working with
Subdirectories on page 43), along with information about each file's size, type, and creation
date. After you enter the command:
FDIRECTORY ↵
l The first and second columns list the file name and extension (e.g., "SYSTEM.CPY").
l The third column lists the file size in disk sectors (each sector holds 512 bytes).
P indicates that the file (and any programs it contains) is protected and cannot be
modified or copied.
D indicates that the entry is a subdirectory.
R indicates that the file is read-only.
l The last columns list the date and time the file was created or copied.
l The final line of the display lists the total number of unused sectors on the disk and
the total capacity of the disk. In this example, the disk drive has 27,768 sectors
unused out of 41,744 sectors available on the disk.
You can list specific groups of files using the wildcard character (an asterisk) and portions of a
file name. The command:
FDIRECTORY MY*.* ↵
will list only the files that begin with "MY". The command:
FDIRECTORY *.V2 ↵
will list all the files with the extension "V2". The command:
FDIRECTORY *Y*.* ↵
will list all the files that have a "Y" as the second character of the file name. (Note that in this
case, the initial asterisk represents only one character, while the second and third asterisks
represent zero or more characters.)
Page 37
Understanding Disk Files
You can also use wildcards in certain file copying and deleting operations.
l Change the name of a file while copying the file (useful for making backup copies of a
file).
The command:
will make a copy of old_file, name the copy new_file, and place it in the same subdirectory as
old_file. The command:
will make a copy of my_file.v2 from the A drive and place it in the current subdirectory with
the name my_file.v2. For details on setting the current directory, see The Current Directory
on page 42.
The FCOPY command can be used for copying a few files. However, if you are copying many
files, the ACE File Explorer should be used. For more details, see the topic File Explorer in the
ACE User's Guide.
To change a file name without changing its location, use the FRENAME command. The
command:
will change the name of disk file "old_name" to "new_name". Note that any disk or directory
specification must be included in the specification of "new_name", not in "old_name".
Disk files that are no longer used or needed should be deleted from the disk. This recovers
space on the disk for other files. If you are copying or storing files to a disk and get a "disk full"
message, the only way to continue with the copy or store operation is to delete some files
from the disk (or specify a different disk device). The FDELETE command removes files from
the disk.
FDELETE old_file ↵
Page 38
Using Directories
and the file "old_file" will be removed from the current subdirectory (after you respond to a
confirmation prompt). Note that the file name "old_file" is different from "old_file.v2". You
must specify the entire file name when deleting files.
To delete all the files in the current subdirectory with the extension "v2", enter the
command:
FDELETE *.v2 ↵
To delete all the files in the current subdirectory, enter the command:
FDELETE *.* ↵
If you have the optional AIM software, the AIM File Manager provides a graphical interface for
copying, deleting, renaming, and storing files. See the AIM Baseline User's Guide for details.
Using Directories
When the ACE interface is used, the Process Manager automates much of the programming
and program/file management through a point-and-click interface. For those who wish to
access the eV+ system directly, the Controller Development Tools are used for program/file
management and direct V+ monitor prompt operations. These tools are accessed from the
Controller Development Tools ( ) icon on the ACE toolbar. For more details, see the topic
Controller Development Tools in the ACE User's Guide.
The ACE File Explorer provides a graphical interface for copying, deleting, renaming, and
storing files. It is accessed from the File Explorer ( ) icon on the ACE toolbar. For more
details, see the topic File Explorer in the ACE User's Guide.
The remainder of this topic describes the operations when accessing the V+ system directly
through the Monitor window.
Page 39
Using Directories
The eV+ file structure is a hierarchical file system. Files and subdirectories are organized in a
multilevel tree structure. In order to get to the files stored in lower levels, you must go
through all the levels starting at the top. The top-level directory is called the root directory (it
forms the root of the inverted tree). The root directory can contain files and other directories.
Each directory under the root directory can also contain other directories and files.
There are a few simple rules for using files and subdirectories:
l Directories have the same naming requirements as files, except they cannot have an
extension.
l At any one level, all directory and file names must be unique.
Page 40
Using Directories
Directory Structure
Understanding Paths
A path consists of the directions to a specific file or directory within the directory structure.
Paths are used with LOAD, FCOPY, FDELETE, and other file-related commands to identify a
particular file. A full path always starts at the root directory and moves through each level
until you reach the desired file. In the above example, the path to new_file.v2 starts at the
root directory and goes through subdirectory PROGS_2 before arriving at new_file.v2.1
l Start with the letter of the drive you want to access followed by a colon (":").
LOAD D:\PROGS_2\DATA_1\big_file.lc ↵
Page 41
Using Directories
CD D:\PROGS_2\DATA_1 ↵
After the above default path has been set, the command:
LOAD my_file.v2 ↵
will load the copy of "my_file.v2" that is in the subdirectory "DATA_1" rather than the copy in
the root directory.
You can also change relative to the current directory with the CD command. If the current
directory is D:\PROGS_2 and you enter the command:
CD DATA_1 ↵
The current directory will change to D:\PROGS_2\DATA_1. If you now enter the command:
Page 42
Using Directories
CD .. ↵
the current directory will become D:\PROGS_2\. The ".." tells the system to go up one level
in the directory structure (note that there is a space between "CD" and "..").
Absolute Paths
The default subdirectory set with a CD command can always be overridden by using a full
path specification. An absolute or full path starts with a backslash and may include the drive
designation. The command:
LOAD D:\PROGS_1\my_progs.rv ↵
will load the disk file my_progs.rv in the PROGS_1 subdirectory regardless of the default set
with a CD command.
Relative Paths
A partial path can be added to any default path that has been set with a CD command. The
following commands will load the file old_file.v2 (from the directory structure shown in the
figure Default Directory Specification):
CD D:\PROGS_2 ↵
LOAD DATA_1\old_file.v2 ↵
CD ↵
Path Examples
Assume you set the default path to D:\PROGS_2\. The following commands will attempt to
load the indicated files (from the directory structure shown in the figure Directory
Structure):
To view all the files in the current subdirectory, enter the command:
Page 43
Using Directories
FDIRECTORY ↵
To view all the files in a subdirectory other than the current one, use a path. The command:
FDIRECTORY D:\PROGS_2\DATA_1\ ↵
FDIRECTORY *.v2 ↵
will display the files in the specified directory that have the extension "v2". The command:
FDIRECTORY D:\PROGS_2\file*.* ↵
will display the files in the current directory that have names beginning with "file".
To Create a Subdirectory
To create a new subdirectory directly below the current directory, enter the command:
FDIRECTORY/C dir_name ↵
FDIRECTORY/C D:\PROGS_2\DATA_1\dir_name ↵
To Delete a Subdirectory
Before a subdirectory can be deleted, the subdirectory must be empty (no disk files and no
subdirectories can be in the directory).
The command:
FDELETE *.* ↵
will delete all the files (but not subdirectories) in the current subdirectory. Since all file-related
commands look only at the current directory or the directory specified at the end of a path,
files in any other directories are not accessed regardless of whether they are above, below, or
on the same level as the current directory. The subdirectory DATA_1 can be deleted with
either of the following groups of commands (assuming there are no files in DATA_1):
FDELETE D:\PROGS_2\DATA_1\*.* ↵
FDIRECTORY/D D:\PROGS_2\DATA_1 ↵
or:
CD D:\PROGS_2 ↵
Page 44
Using Directories
FDELETE DATA_1\*.* ↵
FDIRECTORY/D DATA_1 ↵
1Directory names and file names are shown here in capital and small letters to help illustrate
the directory structure. They are normally both shown in all capital letters (and can always
be typed either way).
Page 45
Executing Programs
Executing Programs
The following topics are described in this chapter:
Understanding Programs 47
Removing Objects from System Memory 50
Understanding Program Modules 53
Page 46
Understanding Programs
Understanding Programs
Your Omron Adept controller will not perform any useful work until you "run" a program. This
is a two-step process: First you LOAD a disk file that contains the eV+ program, then you
EXECUTE or COMMAND one of the programs that is contained in the file.
When the ACE interface is used, the Process Manager automates much of the programming
and program/file management through a point-and-click interface. For those who wish to
access the eV+ system directly, the Controller Development Tools are used for program/file
management and direct V+ monitor prompt operations. These tools are accessed from the
Controller Development Tools ( ) icon on the ACE toolbar. For more details, see the topic
Controller Development Tools in the ACE User's Guide.
The remainder of this topic describes the operations when accessing the V+ system directly
through the Monitor window.
Disk Files
A disk file may contain either or both of two different types of programs: Monitor command
programs and executable eV+ programs.
NOTE: Because they are handled the same way, files stored on a Secure Digital (SD) card
are referred to as disk files.
Monitor command programs perform system-level functions such as loading files, changing
the default path, and starting executable eV+ programs. These programs are similar to MS-
DOS batch programs or UNIX scripts. The commands detailed in the rest of this manual can
be put into Monitor command programs. The section Command Programs on page 60
provides details on writing basic Monitor command programs.
Executable eV+ programs contain the logic, motion control, and vision instructions that
actually control a workcell. Creating and modifying executable eV+ programs is covered in the
eV+ Language User's Guide and eV+ Language Reference Guide.
The documentation for program files delivered by Omron Adept specifies which program in a
disk file is the main program, and whether the main program is a Monitor command program
or an executable eV+ program. The documentation for program files supplied by third parties
should include this same information.
You can see what type of programs a disk file contains by entering the command:
FLIST file_specification ↵
The contents of the file will scroll up the Monitor window. Use the Scroll Lock key to pause
scrolling. If a program is a Monitor command program, all the lines in the program will be
preceded with "MC" (or ";", which indicates a comment). Remember, a disk file can contain
many programs, including both Monitor command and executable eV+programs.
Page 47
Understanding Programs
A file can be loaded through the ACE graphical interface, or with the eV+ LOAD command
typed at the eV+ Monitor prompt. For information on using the ACE system, refer to the
Controller Development Tools topic in the ACE User's Guide.
The LOAD command places a copy of the contents of a disk file in RAM. The figure below
shows the effect of the command:
LOAD my_file ↵
This command places the contents of the disk file "my_file" into RAM. "my_file" contains two
programs and the values of variables used by those programs.
The LOAD command does not actually start a program executing; it simply places a copy of
the disk file contents into system RAM so additional commands can start the program, or
modify the program, or modify the values of the program variables.
To see all the programs that have been loaded into memory, use the DIRECTORY command.
(FDIRECTORY lists files on the SD card; DIRECTORY lists programs in RAM.)
Page 48
Understanding Programs
If the program "init.system" is in RAM (loaded using the ACE Program Manager) and it is a
Monitor command program, the command:
COMMANDS init.system ↵
will start the program. If "init.system" is an executable eV+ program, the preceding
instruction will result in the error:
*Can't mix MC & program instructions*
EXECUTE prog_main ↵
The program "prog_main" was loaded as part of the disk file "my_file". When is
pressed, the program begins executing. In the course of execution, "prog_main" makes use
of "prog_sub" and the variables that were loaded with the disk file "my_file".
NOTE: If the executable program will control a motion device, the device must be
powered up and calibrated before the program is executed. See To Power Up the Motion
Device on page 24.
Page 49
Removing Objects from System Memory
l The name of the main program is the name of the disk file (without any extension)
preceded by "a.". For example, the disk file that holds the program could be named
"MYSAMPLE.V2". The main executable program in that file is "a.mysample".
These conventions are not requirements: Programs that are not supplied by Omron Adept
may follow other conventions. See the documentation provided with the files for details on
which program to execute.
Emergency Stop
To immediately halt a robot or motion device and halt execution of a program, activate any
remote emergency stop connected to the system (such as the red panic button on the
optional remote front panel). This will immediately turn off power to the motion device and
stop the execution of any program currently attached to the robot or motion device.
ABORT ↵
ABORT can be entered even though the normal system prompt (".") is not displayed during
program execution. When you type the first letter, an "*" will appear where the dot prompt
would normally appear. This special prompt is displayed when commands are being entered
while a program is executing.
NOTE: If a robot is in motion when the ABORT command is entered, the robot will NOT
halt immediately, but will complete the current motion.
The only time you cannot enter the ABORT command is when the system is waiting for input
from the keyboard. For example, suppose the following message is displayed in the Monitor
window:
Are you sure Y/N?
The typing cursor at the end of the line tells you the system is waiting for you to enter a
response at the keyboard. To halt program execution at this point, press CTRL+Z. Program
execution will halt with an "unexpected end of file" error message.
Page 50
Removing Objects from System Memory
When a program completes, it is not automatically removed from system memory (RAM). To
free up the RAM for use by other programs and data, objects in memory must be specifically
removed with a DELETE command. The LOAD command will not overwrite programs that
reside in system memory. Therefore, if you want to load new programs with identical names,
you must delete the programs currently in RAM.
When the ACE interface is used, the Process Manager automates much of the programming
and program/file management through a point-and-click interface. For those who wish to
access the eV+ system directly, the Controller Development Tools are used for program/file
management and direct V+ monitor prompt operations. These tools are accessed from the
Controller Development Tools ( ) icon on the ACE toolbar. For more details, see the topic
Controller Development Tools in the ACE User's Guide.
The remainder of this topic describes the operations when accessing the V+ system directly
through the Monitor window.
Command Action
DELETE Deletes specified programs and any programs or variables that are
used in those programs (but are not used by other programs not being
deleted).
DELETEM Deletes a program module and all programs in the module. The
variables used by the programs, and referenced programs outside the
module, are not deleted. See Understanding Program Modules.
DELETEP Deletes specified programs from memory. Other programs used by the
specified programs are not deleted, and variables used by the program
are not deleted.
ZERO Deletes ALL the programs and data in system memory (the operating
system is not affected).
In normal operations, you are most likely to use the DELETE, DELETEM, and ZERO
commands.
Page 51
Removing Objects from System Memory
Objects do not have to be removed from RAM before different disk files are loaded and other
programs are executed (unless you are loading a program with the same name as one
already in RAM). However, if you get an "out of memory" message while loading a disk file,
the only way to complete the load operation is to delete objects from system memory.
In addition to the commands described previously, the FDELETE command removes disk files
from the SD card.
NOTE: Once a disk file is deleted from the storage device, it cannot be recovered.
FDELETE does not remove objects from RAM (if they have been loaded). The DELETE
commands remove objects from RAM. This does not delete a program that is being executed
or is present on the stack for any execution task. These commands do not affect the disk files
from which the objects were loaded. After objects have been removed from RAM, they can be
reloaded using the LOAD command (but, of course, only if they are stored on disk).
Page 52
Understanding Program Modules
.LOAD my_file.v2 ↵
The MDIRECTORY command will list the modules resident in system memory:
.MDIRECTORY ↵
.MODULE a.my_file
The DELETEM command will remove the module and all the programs in the module from
system memory:
.DELETEM a.my_file ↵
Are you sure (Y/N)? Y ↵
.MDIRECTORY ↵
.DIRECTORY ↵
Page 53
Using Permanent File Storage
Page 54
Using Digital Storage Cards
Because the eV+ system is very efficient, most, if not all, eV+ applications will fit onto the SD
card.
Backing Up Data
SD cards are very reliable storage devices, but they can fail. Data on a failed card may not be
readable and may be completely lost. Therefore, Omron Adept strongly recommends that you
make periodic backups of your card. The eV+ system and user data can be backed up using
the Backup utility and File Explorer tool in the ACE software. In the event of a card failure, the
backup data can be used to restore the contents to a new SD card. For details on creating a
system backup and using the File Explorer to copy files, see the ACE User's Guide.
You can obtain additional preformatted SD cards from Omron Adept. Please contact Omron
Adept Customer Service for assistance.
Page 55
Customizing an Omron Adept System
Introduction 57
Customizing the Controller Hardware 57
Changing the Controller Configuration 57
System Software Switches 58
Page 56
Introduction
Introduction
The majority of system customization operations are made through the ACE software. A few
operations require setting hardware (DIP) switches on the controller. For more details, see
the Configuration Tools chapter in the ACE User's Guide.
Most controller configuration changes will not take effect until the controller has been
restarted. The ACE software automatically prompts you when a change has been made that
requires a controller restart.
The changes made with the ACE software are written to the operating system SD card.
Therefore, if you make changes to the configuration and then start the system with a
different SD card, a different controller configuration might be in place. You can use the
ACE system to make an exact copy of the operating system and its current configuration for
backup. If a card failure results in the loss of your operating system, you can load the
operating system directly from the backup. You can also copy the system files from that
backup to restore the copy on a replacement SD card. For more details on creating a system
backup, see the ACE User's Guide.
DIP switch #1 controls what IP address to use. If switch #1 is ON, eV+ will use the default IP
address. For details on the default IP address, see the Adept SmartController User's Guide. If
switch #1 is OFF, eV+ will use the IP address stored on the Secure Digital (SD) card.
DIP switch #2 controls the communication interface. If switch #1 is ON, eV+ will listen on
the serial port labeled TERM. If switch #2 is OFF, eV+ will use the normal connection through
Ethernet.
NOTE: All the other switches should be kept on the OFF position. They are reserved for
future use.
Page 57
System Software Switches
For more details, see the Controller Editor topic in the ACE User's Guide. For information on
configuring other aspects of your system, see the Configuration Tools chapter in the ACE
User's Guide.
Most of these system switches should be controlled through the ACE interface, or by
executing programs, and not changed from the Monitor prompt.
The remainder of this topic describes the operations when accessing the V+ system directly
through the Monitor window.
BELT Used to turn on the conveyor tracking features of eV+ (if OFF
the option is installed).
This will usually be set from the belt object editor in the ACE
interface.
Page 58
System Software Switches
To enable a system switch, type ENABLE followed by a space and the switch name. For
example:
ENABLE BELT
Page 59
Command Programs
Command Programs
The following topics are described in this chapter:
Introduction 61
Creating Command Programs 61
Running Command Programs 62
Controlling Command Programs 63
Example Command Program 64
Page 60
Introduction
Introduction
Command programs are special programs that consist of a series of Monitor commands.
Command programs automate system startup and other frequently executed Monitor
command sequences. Command programs can be started from the eV+ monitor prompt or
from the manual control pendant. With the auto-start feature, a command program can be
started automatically when the Omron Adept system is turned on.
Command programs are most commonly used in V+ based applications, as described in the
following cases:
l At system startup, the Omron Adept controller autostart switch will launch the
command program "auto" located in D:\AUTO.V2. For details, see Autostarting a
Command Program on page 62.
When the ACE software is used, this is not really needed, because the V+ Module
object saves the programs in the workspace. The same can be said for V+ application
variables contained in the V+ Global Variable Collection object. It is all saved in the
workspace by simply clicking the Save button. For more details on the V+Module
object and the V+ Global Variable Collection object, see the ACE User's Guide.
or select:
a V+ program editor opens, which allows you to create and edit your V+ programs. For more
details on using the program editor, see the ACE User's Guide.
Several commands require subsequent input from the user. For example, CALIBRATE and
DELETEP normally require confirmation, and POINT and HERE normally require responses to
the query "Change?". When commands such as these are processed in a command program,
Page 61
Running Command Programs
the commands will be performed without any prompts being issued. Make sure your Monitor
command programs can execute correctly without operator response.
Every nonblank line of a Monitor command program must contain either a Monitor command
or a comment.
LOAD my_cmd.pg ↵
COMMANDS my.cmd.program ↵
NOTE: The EXECUTE command expects programs that contain eV+ program
instructions, not Monitor commands. If you use the EXECUTE command to run a
program with lines that begin with "MC", the program will abort and you will get a
message indicating that you cannot mix program instructions and Monitor commands.
1. The autostart option must be enabled in the controller NVRAM configuration settings.
2. A disk file with the name "AUTO.V2" must reside on the default disk. See The Default
Disk Path for details on specifying the default disk.
3. The AUTO.V2 disk file must contain a program named "auto". The "auto" program
must be a Monitor command program. (Other programs, and data, can be stored in
the AUTO.V2 disk file.)
Then, when the controller is turned on, the operating system is loaded, the default disk
specification is set, and the following commands are issued automatically:
Page 62
Controlling Command Programs
LOAD auto.v2
COMMANDS auto
NOTE: The eV+ system does not wait for HIGH POWER to be turned on, or for any other
event or condition. The autostart command program must explicitly invoke any such
functions, or they must be performed by programs invoked by the command program. For
example, if you want to require that the operator press the PROGRAM START button on
the controller when the command program is processed, you must include a WAIT.START
command in the command program.
4. The CTRL key is held down while the C key is pressed. (This will terminate processing of
the command program. However, the command being processed, or a program
invoked by the command program, will continue to completion.)
5. Another command program is invoked from within the active command program.
(Unlike starting an executable program, control will not return to the first command
program when the second command program completes.)
Page 63
Example Command Program
eV+ control instructions (for example, GOTO and IF) are ignored in a command program.
Command programs can proceed only in a top-down manner, from the first line to the last.
3. This is a comment line. Notice that each comment line begins with a semicolon (";").
Lines beginning with a semicolon (with optional leading spaces) are ignored during
execution.
7. Wait for the operator to toggle the AUTOMATIC/MANUAL switch and press the START
soft key on the pendant.
Page 64
Example Command Program
on HIGH POWER, the operator must make sure the robot area is
clear.
10. Load the file "main.v2" using the default path specification.
11. Move the robot to the location named "safe" (assumed to be stored in "main.v2" or
already in memory).
12. CYCLE.END is used to wait for the robot to complete the motion to "safe" prior to
execution of the next line.
13. Initiate continuous execution of the program "motion" (assumed to have been loaded
from "main.v2" or already in memory).
This program could be initiated by the Monitor command "COMMANDS auto". The program
could also be initiated automatically when the system is turned on (as described in Running
Command Programs on page 62).
Page 65
System Messages
System Messages
While the eV+ system is being used, it is possible for hardware and software errors to occur.
For example, if commands or instructions are not entered in the correct way, the system
rejects the input. The usual response is to output an error message to the system terminal
indicating what is wrong so that the user can correct the error.
When using the ACE software to program and interface with the eV+ system, error
messages are reported in that interface, usually in the form of pop-up windows. These
windows typically contain the error message along with a Details button that can be selected
for more information. The message and details can also be copied to the Windows clipboard
and then pasted in an email or other document.
Error Messages
The eV+ Language Reference Guide contains descriptions of the eV+ error messages and
suggests remedies to correct the problems.
NOTE: If the system has more than one robot connected and an error is associated with
a specific robot, the robot number is appended to the error message in the form "(Robot
#)".
Page 66
OMRON Corporation Industrial Automation Company Authorized Distributor:
Kyoto, JAPAN
Contact: industrial.omron.eu
Regional Headquarters
OMRON EUROPE B.V. OMRON ELECTRONICS LLC
Wegalaan 67-69, 2132 JD Hoofddorp 2895 Greenspoint Parkway, Suite 200 Hoffman Estates,
The Netherlands IL 60169 U.S.A.
Tel: (31)2356-81-300/Fax: (31)2356-81-388 Tel: (1) 847-843-7900/Fax: (1) 847-843-7787