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.

  • In this section, you will load 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.

  • If you are using the robots of other brands, you can find instructions on setting up the Standard Interface communication with the desired robot from the section Standard Interface Communication.

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
    1. Press and hold the MAIN MENU key on the teach pendant, and power on the robot to enter the maintenance mode.

      set ip 1
      If the robot is already started, please restart the robot while pressing the MAIN MENU key on the teach pendant.
    2. In the maintenance mode, select SYSTEM  SECURITY  MANAGEMENT MODE.

      set ip 2
      set ip 3
    3. Enter the password (the default password is sixteen 9s), and then click Enter to enter the MANAGEMENT MODE.

      set ip 4
      set ip 5
    4. On the Main Menu, select SYSTEM  SETUP  OPTION FUNCTION. Select DETAIL of the NETWORK FUNCTION SETTING option, and press the SELECT key on the teach pendant to enter the NETWORK FUNCTION SETTING interface.

      set ip 6
      set ip 7
      check network option
    5. Check whether the status of ETHERNET is displayed as USED.

      check network ethernet
      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
    1. In the MANAGEMENT MODE of the maintenance mode, select MotoPlus APL.  MotoPlus FUNC. SETTING on the Main Menu.

    2. On the MotoPlus FUNC. SETTING interface, check whether the status of APPLI. AUTOSTART AT POWER ON is ENABLE.

      check motoplus 1
    3. If the status is “UNABLE”, select UNABLE, and press the SELECT key on the teach pendant to switch the status to “ENABLE”.

      check motoplus 2

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

  1. 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.
  2. Make sure that the IP address of the YASKAWA robot and that of the IPC are in the same subnet.

    Operation instructions
    1. In the MANAGEMENT MODE of the maintenance mode, select SYSTEM  SETUP  OPTION FUNCTION 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.

      set ip 8
    2. Check the IP address of the robot (that is IP address of LAN2).

      set ip address 2
    3. 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

  1. Open Mech-Vision. If the Welcome interface as shown below is displayed, it indicates that Mech-Vision is started successfully.

    image
  2. In the Welcome interface of Mech-Vision, click Create from solution library to open the Solution Library.

    project build welcome interface library

    The Solution Library is a resource library that provides typical solutions or projects (with sample data) from various application scenarios.

  3. Select the General Workpiece Recognition project from the Solution Library.

    project build select project

    If you cannot find this project in the Solution Library, click More at the bottom of the Solution Library interface.

  4. 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.

    project build check project info

    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.

    project build check project list

    In the Graphical Programming Workspace of the main interface, the workflow of the “General Workpiece Recognition” project will be displayed.

    project build check project step
  5. In the project list, right-click the solution, and select Autoload Solution.

    project build click auto load

    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.

    project build auto load finish
    The project ID will be used by the robot pick-and-place program to trigger the Mech-Vision project to run.
  6. On the menu bar, select File  Save Solution.

    project build save solution

Set “Robot and Interface Configuration”

  1. Click Robot and Interface Configuration in the toolbar of Mech-Vision.

  2. 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 robot model
  3. Select Standard Interface in the Communication Option area, and TCP Server and ASCII for Protocol, and then click Apply.

    configure communication 1
  4. 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.

    configure communication 2

Prepare the Program Files

  1. On the IPC, open Mech-Center/Robot_Interface/YASKAWA in the installation directory of the Mech-Vision and Mech-Viz software.

  2. 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.
  3. 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
    1. In the MANAGEMENT MODE of the maintenance mode, select MotoPlus APL.  DELETE on the Main Menu.

      delete motoplus app 1
    2. 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.

      delete motoplus app 2
    3. Press the ENTER key on the teach pendant, and press the YES button on the pop-up dialog box to delete the program.

      delete motoplus app 3

Load the Program Files to the Robot

Load the Backend Program File

  1. Under the maintenance mode, select MotoPlus APL.  DEVICE  USB: Pendant on the Main Menu.

    begin to load 1
    begin to load 2
  2. Select MotoPlus APL.  LOAD(USER APPLICATION). 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.

    begin to load 3
    begin to load 4
    begin to load 5
    If you are using the controller DX200, you need to select mm_module_dx200.out here.
  3. After the loading completes, select MotoPlus APL.  FILE LIST. If you can see the backend program file (YRC1000.OUT), the loading of the backend program file is successful.

    begin to load 6
    begin to load 7
    If you are using the controller DX200, you will see DX200.OUT here after the loading succeeds.
  4. 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

  1. Under the online mode, select SYSTEM INFO  SECURITY on the Main Menu. Select MANAGEMENT MODE in the drop-down menu, and input the default password (sixteen 9s).

    change language level 1
    change language level 2
    change language level 3

    Press Enter in the lower-right corner of the teach pendant screen to enter the management mode.

    change language level 4
  2. Press the right-arrow icon 2 button in the lower-left corner of the teach pendant screen. Then select SETUP  TEACHING COND, and select EXPANDED in the drop-down menu of LANGUAGE LEVEL.

    change language level 5
    change language level 6
  3. Select EX. MEMORY  DEVICE, and then select USB: Pendant for in the drop-down menu of DEVICE.

    loading foreground program 1
    loading foreground program 2
  4. Select EX. MEMORY  FOLDER. In the FOLDER LIST, select and enter the JBI folder.

    loading foreground program 3
    loading foreground program 4
    loading foreground program 5
  5. Select EX. MEMORY  LOAD, and select JOB. A list of jobs to load will be displayed on the screen.

    loading foreground program 6
    loading foreground program 7
    loading foreground program 8
  6. Select EDIT  SELECT ALL.

    loading foreground program 9
    loading foreground program 10
  7. Press the ENTER key on the teach pendant. Select YES in the pop-up dialog box to start loading the programs.

    loading foreground program 11
  8. After the loading completes, select JOB  SELECT JOB. If you can see all the jobs in the JOB LIST, the loading of frontend program files is successful.

    loading foreground program 12
    loading foreground program 13

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.

  1. On the teach pendant, select JOB  SELECT JOB on the Main Menu to enter the JOB LIST interface.

    loading foreground program 12
    loading foreground program 13
  2. 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 the ENTER key. Change the IP address and port number to the actual ones of the IPC, and press Enter on the screen.

    test connection 1
    test connection 2
    test connection 3
  3. Move the cursor to line 0001, press the INFORM LIST key on the teach pendant. Select CONTROL  PAUSE in the pop-up menu of the screen, and then press INSERT and ENTER keys on the teach pendant. This step will insert a PAUSE command after line 0001.

    test connection 4
    test connection 5
    test connection 6
    test connection 7
    test connection 8
  4. Twist the mode key on the teach pendant to TEACH to enter the TEACH mode.

  5. 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.

    test connection 9
    test connection 10
    test connection 11

    This step ensures that the job runs from the first line.

  6. Press and hold down the INTER LOCK and TEST 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.

    test connection 12
    test connection 13
  7. 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.

    vision center log
  • Delete the PAUSE command after testing the communication to avoid mistaken pause during calibration. To delete the PAUSE command, move the cursor to line 0002 where the PAUSE command resides, and then press the DELETE and ENTER keys in sequence on the teach pendant.

We Value Your Privacy

We use cookies to provide you with the best possible experience on our website. By continuing to use the site, you acknowledge that you agree to the use of cookies. If you decline, a single cookie will be used to ensure you're not tracked or remembered when you visit this website.