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 takes the robot controller YRC1000 as an example, and the robot system version is YAS2.94.00-00.
-
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 (which is sixteen 9s by default), and then press Enter to enter the MANAGEMENT MODE.
-
On the Main Menu, select
. Select DETAIL of the NETWORK FUNCTION SETTING option, and press the SELECT 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 the SELECT 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 not, modify the IP address of the IPC by referring to Set IPC IP Address, window=_blank.
-
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, as shown below.
If you cannot find this General Workpiece Recognition 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 up Robot Communication Configuration
-
Click theRobot Communication Configuration button in the toolbar of Mech-Vision to open the Robot Communication Configuration window.
-
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. Ensure that the port number is not occupied by another program. It is recommended to select Auto enable interface service when opening the solution. Lastly, click the Apply button.
-
In the Mech-Vision main interface, confirm that the Robot Communication Configuration button on the toolbar has been slid to the right and turned 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 the ENTER 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 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 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 loading the frontend programs, select menu: JOB[SELECT JOB] to view the list of loaded programs. If you can see all frontend programs in the JOB LIST, then the loading of the fronted programs 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
Before testing the Standard Interface communication between the robot and the vision system, make sure that the interface service is started. 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 the MM_AUTO_CALIB program and press the Select key to open it. Select line 0001, and select the IP address and port number in the text box at the bottom right. Press Enter to enter the IP address change interface. Change the IP address to that of the IPC.
If the host port number set in Mech-Vision is modified, the port number 50000 here should be changed to the host port number in Mech-Vision. -
Twist the mode key on teach pendant to TEACH to enter the TEACH mode.
-
On the teach pendant, press the SERVO ON READY key, and then hold down the enable 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 the interlock key and test run key on the teach pendant at the same time to test whether the communication is normal.
-
Check whether logs will be displayed on the Mech-VisionLog panel in the Console tab. If the following log is displayed, the communication between the YASKAWA robot and the vision system is established successfully.
Now you have loaded the robot Standard Interface program and the configuration files to the robot system to establish the Standard Interface communication between the vision system and the robot.