Robot Communication Setup
In this tutorial, you will learn how to load the Standard Interface program files to the YASKAWA robot, and set up the Standard Interface communication between the Mech-Mind Vision System and the robot.
|
Video Tutorial: Robot Interface Configuration (Standard Interface Communication)
|
Preparation Before Loading
Check Hardware and Software Versions
-
Confirm that the robot is a 6-axis YASKAWA robot. This tutorial uses YASKAWA_GP8 as an example.
-
Confirm that the robot controller is YRC1000, YRC1000micro or DX200. This tutorial uses the controller YRC1000 as an example.
-
Confirm that the Ethernet option has been enabled for the YASKAWA robot.
Operation instructions
-
Press and hold the
MAIN MENU
key on the teach pendant, and power on the robot to enter the maintenance mode.If the robot is already started, please restart the robot while pressing the MAIN MENU
key on the teach pendant. -
In the maintenance mode, select
. -
Enter the password (the default password is sixteen 9s), and then click Enter to enter the MANAGEMENT MODE.
-
On the Main Menu, select
. Select DETAIL of the NETWORK FUNCTION SETTING option, and press theSELECT
key on the teach pendant to enter the NETWORK FUNCTION SETTING interface. -
Check whether the status of ETHERNET is displayed as USED.
If the status is “UNUSED”, please contact the robot manufacturer for support.
-
-
Confirm that the MotoPlus option has been enabled for the YASKAWA robot.
Operation instructions
-
In the MANAGEMENT MODE of the maintenance mode, select
on the Main Menu. -
On the MotoPlus FUNC. SETTING interface, check whether the status of APPLI. AUTOSTART AT POWER ON is ENABLE.
-
If the status is “UNABLE”, select UNABLE, and press the
SELECT
key on the teach pendant to switch the status to “ENABLE”.
-
If the preceding conditions cannot be met, the vision system cannot communicate with the robot through the Standard Interface. Please contact the robot manufacturer for support. |
Connect the Network
-
Plug the Ethernet cable of the IPC into the LAN2 (CN106) port on the CPU board of the robot controller.
If you are using the DX200 controller, plug the Ethernet cable of the IPC into the CN104 port on the CPU board of the robot controller. -
Make sure that the IP address of the YASKAWA robot and that of the IPC are in the same subnet.
Operation instructions
-
In the MANAGEMENT MODE of the maintenance mode, select
on the Main Menu. Select DETAIL of the LAN INTERFACE SETTING option, and press theSELECT
key on the teach pendant to enter the LAN INTERFACE SETTING interface. -
Check the IP address of the robot (that is IP address of LAN2).
-
Make sure that the IP address of the robot and that of the IPC are in the same subnet. If they are not in the same subnet, please refer to the section Set the IP Addresses on the IPC to modify the IP address of the IPC.
-
Create a Mech-Vision Project and Save It
-
Open Mech-Vision. If the Welcome interface as shown below is displayed, it indicates that Mech-Vision is started successfully.
-
In the Welcome interface of Mech-Vision, click Create from solution library to open the Solution Library.
The Solution Library is a resource library that provides typical solutions or projects (with sample data) from various application scenarios.
-
Select the General Workpiece Recognition project from the Solution Library.
If you cannot find this project in the Solution Library, click More at the bottom of the Solution Library interface.
-
After this project is selected, the information introducing this project will be displayed on the lower part of the Solution Library interface. Set the solution name and path, and then click Create.
After the project is created, the created solution and project will be displayed in the project list in the upper-left corner of the Mech-Vision main interface.
-
A solution is a set of configurations and data related to robots and robot communication, vision processing, path planning, etc. that are required for the machine vision application.
-
A project is a workflow of vision processing in the solution. Normally, a solution only contains one project, but it may contain more than one project in complex application scenarios. In this tutorial, the solution requires only one project.
In the Graphical Programming Workspace of the main interface, the workflow of the “General Workpiece Recognition” project will be displayed.
-
-
In the project list, right-click the solution, and select Autoload Solution.
After this solution is set to autoload, the project name will be displayed in green, and the project ID will be displayed in the left of the project name.
The project ID will be used by the robot pick-and-place program to trigger the Mech-Vision project to run. -
On the menu bar, select
.
Set “Robot and Interface Configuration”
-
Click Robot and Interface Configuration in the toolbar of Mech-Vision.
-
Click the Select robot drop-down menu, and select Listed robot. Then, click Select robot model, select the YASKAWA robot model “YASKAWA-GP8” and click Next to continue.
-
Select Standard Interface in the Communication Option area, and TCP Server and ASCII for Protocol, and then click Apply.
-
Make sure the Interface Service is started: On the toolbar of Mech-Vision, the Interface Service switch on the far right is flipped and turned to blue.
Prepare the Program Files
-
On the IPC, open
Mech-Center/Robot_Interface/YASKAWA
in the installation directory of the Mech-Vision and Mech-Viz software. -
Copy the JBI folder, sample folder, and the mm_module_yrc1000.out file to the root directory of the USB flash drive.
-
mm_module_yrc1000.out: the robot backend program file (MotoPlus application file).
-
JBI folder: stores robot frontend program files (Job files).
-
sample: stores simple pick-and-place example program files.
If you are using the controller DX200, you need to copy the backend program file mm_module_dx200.out here.
-
-
Plug the USB flash drive into the USB port on the rear panel of the teach pendant.
Make Sure That No Program Is Running in MotoPlus
Before you load robot program files to the robot, make sure that no other MotoPlus programs are running.
-
If no programs are running, skip this section.
-
If there are any running program, delete this application program.
Operation instructions
-
In the MANAGEMENT MODE of the maintenance mode, select
on the Main Menu. -
On the MotoPlus APL. DELETE interface, select the program file to delete, and then press the
SELECT
key on the teach pendant to select this file. -
Press the
ENTER
key on the teach pendant, and press the YES button on the pop-up dialog box to delete the program.
-
Load the Program Files to the Robot
Load the Backend Program File
-
Under the maintenance mode, select
on the Main Menu. -
Select
. Select mm_module_yrc1000.out, press theENTER
key on the teach pendant, and click YES in the pop-up window to start loading the program.If you are using the controller DX200, you need to select mm_module_dx200.out here. -
After the loading completes, select
. If you can see the backend program file (YRC1000.OUT), the loading of the backend program file is successful.If you are using the controller DX200, you will see DX200.OUT here after the loading succeeds. -
After you have loaded the backend program file, reboot the robot to enter the online mode.
You need to load the frontend program files and the example program files under the online mode. Therefore, you need to perform this operation after loading the backend program file.
Load the Frontend Program Files
-
Under the online mode, select
on the Main Menu. Select MANAGEMENT MODE in the drop-down menu, and input the default password (sixteen 9s).Press
Enter
in the lower-right corner of the teach pendant screen to enter the management mode. -
Press the right-arrow button in the lower-left corner of the teach pendant screen. Then select
, and select EXPANDED in the drop-down menu of LANGUAGE LEVEL. -
Select
, and then select USB: Pendant for in the drop-down menu of DEVICE. -
Select
. In the FOLDER LIST, select and enter the JBI folder. -
Select
, and select JOB. A list of jobs to load will be displayed on the screen. -
Select
. -
Press the
ENTER
key on the teach pendant. Select YES in the pop-up dialog box to start loading the programs. -
After the loading completes, select
. If you can see all the jobs in the JOB LIST, the loading of frontend program files is successful.
Load the Example Program File
Repeat the loading steps in the section “Load the Frontend Program Files” to load the example program file.
Please note that you need to select the SAMPLE folder when selecting a folder to load.
Test Standard Interface Communication
When you test the Standard Interface communication between the robot and the vision system, first make sure that the interface service is started, and then run a test program on the teach pendant to test the Standard Interface communication. You can directly use the loaded calibration program (MM_AUTO_CALIB) as the test program.
-
On the teach pendant, select
on the Main Menu to enter the JOB LIST interface. -
Select MM_AUTO_CALIB in the JOB LIST, and press the
SELECT
key to open the job. Move the cursor to line 0001, press the SELECT key. In the text box at the bottom, move the cursor to the IP address and port number, and press theENTER
key. Change the IP address and port number to the actual ones of the IPC, and press Enter on the screen. -
Move the cursor to line 0001, press the
INFORM LIST
key on the teach pendant. Select in the pop-up menu of the screen, and then pressINSERT
andENTER
keys on the teach pendant. This step will insert a PAUSE command after line 0001. -
Twist the mode key on the teach pendant to
TEACH
to enter the TEACH mode. -
On the teach pendant, press the
SERVO ON READY
key, and then hold down theenable switch
on the back while moving the cursor back to line 0000 on the screen.This step ensures that the job runs from the first line.
-
Press and hold down the
INTER LOCK
andTEST STAR
keys on the teach pendant at the same time. After the robot executes line 0001, the cursor will automatically stop at line 0002 where the PAUSE command resides. -
Check whether logs will be displayed on the Console tab of the Mech-Vision Log panel. If logs as below are displayed, the YASKAWA robot can establish the Standard Interface communication with the vision system successfully.
|