Copyright 2020 SEIKO EPSON CORPORATION. All rights reserved.
EPSON RC+ 7.0 Option AOI (Add-On Instructions) Rev.1 i
1.
Damage or malfunction caused by improper use which is not described in the manual, or
careless use.
2.
Malfunctions caused by customers’ unauthorized disassembly.
3.
Damage due to improper adjustments or unauthorized repair attempts.
4.
Damage caused by natural disasters such as earthquake, flood, etc.
1.
If the robot or associated equipment is used outside of the usage conditions and product
specifications described in the manuals, this warranty is void.
2.
If you do not follow the WARNINGS and CAUTIONS in this manual, we cannot be
responsible for any malfunction or accident, even if the result is injury or death.
3.
We cannot foresee all possible dangers and consequences. Therefore, this manual cannot
warn the user of all possible hazards.
FOREWORD
Thank you for purchasing our robot products.
This manual contains the information necessary for the correct use of the Manipulator.
Please carefully read this manual and other related manuals before installing the robot
system.
Keep this manual handy for easy access at all times.
WARRANTY
The robot and its optional parts are shipped to our customers only after being subjected to
the strictest quality controls, tests, and inspections to certify its compliance with our high
performance standards.
Product malfunctions resulting from normal handling or operation will be repaired free of
charge during the normal warranty period. (Please ask your Regional Sales Office for
warranty period information.)
However, customers will be charged for repairs in the following cases (even if they occur
during the warranty period):
Warnings, Cautions, Usage:
ii EPSON RC+ 7.0 Option AOI (Add-On Instructions) Rev.1
TRADEMARKS
Microsoft, Windows, and Windows logo are either registered trademarks or trademarks of
Microsoft Corporation in the United States and/or other countries. Allen-Bradley and Studio
5000 are registered trademarks of Rockwell Automation, Inc.. Other brand and product
names are trademarks or registered trademarks of the respective holders.
TRADEMARK NOTATION IN THIS MANUAL
Microsoft® Windows® 8 Operating system
Microsoft® Windows® 10 Operating system
Throughout this manual, Windows 8, and Windows 10 refer to above respective operating
systems. In some cases, Windows refers generically to Windows 8, and Windows 10.
NOTICE
No part of this manual may be copied or reproduced without authorization.
The contents of this manual are subject to change without notice.
Please notify us if you should find any errors in this manual or if you have any comments
regarding its contents.
MANUFACTURER
CONTACT INFORMATION
Contact information is described in “SUPPLIERS” in the first pages of the following
manual:
Robot System Safety and Installation Read this manual first
EPSON RC+ 7.0 Option AOI (Add-On Instructions) Rev.1 iii
iv EPSON RC+ 7.0 Option AOI (Add-On Instructions) Rev.1
This manual contains instructions on how to use EPSON RC+ 7.0 SPEL AOI (Add-OnInstructions). AOI allows Allen-Bradley® PLC users to execute commands in EPSON
robot controllers from a PLC ladder logic program. EPSON AOI uses extended remote I/O
to communicate with the controller via EtherNet/IP.
2. Operation
2.1 Requirements
To use SPEL Add-On-Instructions, the following are required:
- An EPSON robot controller with an EtherNet/IP Fieldbus slave board installed. The
controller must have firmware version 7.5.0.0 or greater installed.
- A Windows PC with EPSON RC+ 7.0 v7.5.0 or greater installed. This is used to
configure the robot controller for AOI operation, and to create a project in the controller
when a robot point file is used.
2.2 Robot Controller Preparation
To prepare the robot controller for SPEL AOI execution:
1. Introduction
1. Install an EtherNet/IP Fieldbus slave board in the controller and connect it to the Ethernet
network used for communication with the PLC.
2. Configure the robot controller for use with SPEL AOI. See chapter 3. Configuring the
Robot Controller.
2.3 PLC Project Preparation
To prepare the PLC project for SPEL AOI execution:
1. Setup the A1 EtherNet module for communication with the robot controller. You can
import the EpsonEtherNetIP.L5X file (recommended), or you can manually set it up. See
chapter 5, Creating a PLC Program.
2. Either import all SPEL AOIs into the project by importing SPEL_All.L5x, or import the
desired SPEL AOIs separately. You must always import the SPEL_Init AOI.
3. Create a rung for execution of the SPEL_Init AOI. This must be executed once before
executing other AOIs. SPEL_Init executes SPEL_ResetError and checks robot controller
configuration. There are no errors, then AOI execution is allowed.
2.4 SPEL AOI Common Inputs and Outputs
Each SPEL AOI has the following common inputs and outputs:
BOOL output bit that indicates the status of execution of the AOI.
If this is high, then the AOI is executing.
BOOL output bit that indicates the status of completion of the AOI.
If this is high, then the AOI execution is complete.
Error
BOOL output bit that indicates if an error occurred during execution.
INT error codes from the robot controller. These should be 0 in
bit is high.
Outputs:
InCycle
Done
ErrCode1 and
ErrCode2
AOIs have additional inputs and/or outputs. These are described separately for each AOI
in the chapter 5.SPEL AOI Reference.
normal operation, and one or both are greater than 0 when the Error
2.5 SPEL AOI General Operation
General operation of all SPEL AOIs is as follows:
1. SPEL_Init AOI must have been executed one time sucessfully before executing other
SPEL AOIs.
2. Set the Start input from low to high to start execution.
3. During execution, the Done and Error output bits are set to low and the InCycle output
bit is set to high.
4. After execution, the Done output bit is set to high and the InCycle output bit is set to
low. If an error occurred during execution, the Error output bit is set to high, and the
error code values ErrCode1 and ErrCode2 are set. See the chapter 6. Error Codes for
more information.
5. If an error occurs, SPEL AOI execution is prevented until the SPEL_ResetError AOI
is executed.
3. Configuring the Robot Controller
In this chapter we will describe how to configure the robot controller Fieldbus slave to
work with the PLC when using SPEL AOIs. Perform the following steps:
1. Start EPSON RC+ 7.0 on your PC.
2. Connect to the robot controller. You may need to configure a connection to the robot
controller in [Setup]-[PC to Controller Communications]. See the EPSON RC+ 7.0
User's Guide for instructions.
3. From the [Setup] menu, select [System Configuration].
4. Click [Controller]-[Inputs/Outputs]-[Fieldbus Slave]. Configure the number of input and
output bytes to 128 as shown below, then click <Apply>.
EPSON RC+ 7.0 users are provided with Allen-Bradley® Logix Designer files which are
installed on the user PC by the EPSON RC+ v7.5.0 or greater installer. The files are
located in \EpsonRC70\Fieldbus\EtherNetIP\AOI on the user PC.
In this chapter, we will show how to create a simple example project to turn robot motors
on and off using SPEL AOIs.
To create a new project, make sure you are in offline mode and follow these steps:
1. Start the Studio 5000® software, then click [New Project]. The New Project dialog will
be displayed.
2. Choose your Controller family and PLC controller model number. Enter a project name
2. Type in “generic” in the search field. Click “ETHERNET MODULE” under catalog
number, then click <Create>.
3. Enter the values as shown, and use the IP address of the robot controller EtherNet/IP
slave, then click <OK>.
4. Click <OK> on the next window.
Saving your project at this stage is a good idea. When creating a new Ethernet module,
please note that connection parameter values should match your robot controller values.
1. Now you need to import AOIs in the new project. For this example, you will import
all SPEL AOIs. You can also import individual AOIs.
To do this, right click on [Add-On Instructions] folder from [Controller Organizer],
click [Import Add-On Instruction].
2. Navigate to \EpsonRC70\Fieldbus\EtherNetIP\AOI, then select “SPEL_All.L5X” file
For AOI operation in general, refer to section 2.5, SPEL AOI General Operation.
For each AOI in the Operation section, there is also a referal to the corresponding SPEL+
command in the SPEL+ Language Reference manual which has more details about the
command.
Each AOI has a simple example.
SPEL_Above
Description
Sets the elbow orientation of the specified point to Above.
Common inputs and Outputs
Refer to section 2.4 SPEL AOI Common Inputs and Outputs.
Inputs
Point INT point number to set its orientation to ABOVE.
Operation
Refer to section 2.5 SPEL AOI General Operation.
Refer to Elbow Statement in the SPEL+ Language Reference manual.
Example
To set P0 orientation to Above, set [Point] to “0”, as shown below.
Sets the point to point acceleration and deceleration. Specifies the ratio (%) of the maximum
acceleration/deceleration using an integer equals to or greater than 1.
Common inputs and Outputs
Refer to section 2.4 SPEL AOI Common Inputs and Outputs.
Inputs
Accel INT value of acceleration as percentage.
Decel INT value of deceleration as percentage.
Operation
Refer to section 2.5 SPEL AOI General Operation.
Refer to Accel Statement in the SPEL+ Language Reference manual.
Example
To set acceleration to 50% and deceleration to 50%, set [Accel] to “50” and [Decel] to “50”, as shown below.