Robot Communication Configuration

In this tutorial, you will learn how to load the Standard Interface program files to the FANUC 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.

Preparation before Loading

Check Hardware and Software Versions

  • Controller system software version: V7.5, 7.7, 8.x, or 9.x.

    Click here for instructions
    1. Press the MENU key on the teach pendant, select UTILITIES  Hints by using the arrow keys, and then press ENTER.

      check version 1
    2. In the UTILITIES Hints interface, check the software version of the controller in the selected section.

      check version 2
  • Confirm that the FANUC robot has installed the required software packages:

    1. One of R651 or R632 (KAREL)

    2. R648 (User Socket Msg)

    Click here for instructions
    1. Press the MENU key on the teach pendant, select NEXT by using the arrow keys, and then press ENTER.

      check version 3
    2. Select STATUS  Version ID by using the arrow keys, and then press ENTER.

      check version 4
    3. Press NEXT, and then press F3 (i.e., select ORDER FI).

      check version 5
    4. Make sure that the required software packages are installed, as shown in the figure.

      check version 6

Set up Network Connection

Connect the Hardware

Plug the Ethernet cable of the IPC into the Ethernet port of robot controller as shown in the figure. You can plug the cable into either the CD38A port or CD38B port. CD38A corresponds to Port 1 in the robot IP setting, while CD38B corresponds to Port 2.

hardware connection

Set IP Addresses

  1. Press MENU on the teach pendant. Select SETUP  Host Comm by using the arrow keys. Press ENTER to open the SETUP Protocols interface.

    ip setup
  2. Select TCP/IP and press F3 (i.e., select DETAIL) to open the SETUP Host Comm interface.

    tcpip
  3. If the Ethernet cable is connected to the CD38A port (Port 1), select the IP address line by using the arrow keys, and press ENTER. Input the IP address by using the keyboard of the teach pendant, and press ENTER to finish. Note that the robot IP address should reside in the same subnet as that of the IPC, and the two IP addresses should be different.

    set ip p1
    set ip p2

    If the Ethernet cable is connected to the CD38B port (Port 2), press F3 (i.e. select PORT) to switch to Port 2. Select the IP address line by using the arrow keys, and press ENTER. Input the IP address using the keyboard of the teach pendant, and press ENTER to finish. Note that the robot IP address should reside in the same subnet as that of the IPC, and the two IP addresses should be different.

    set ip p3

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. In the Application Template tab of the Solution Library, select the Random Target Object Loading solution, as shown below.

    project build select project

    If you cannot find the Random Target Object Loading solution in the Solution Library, click the Download icon in the upper-right corner.

  4. 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 Mech-Vision project, but it may contain more than one project in complex application scenarios.

    • The Random Target Object Loading solution only contains one project “Vis_Target_Object_Recognition”.

    project build check project list

    In the Graphical Programming Workspace of the main interface, the workflow of the “Vis_Target_Object_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 up Robot Communication Configuration

This example already sets the robot communication configuration for the FANUC robot (FANUC_LR_MATE_200ID) by default. The Robot Communication Configuration option on the toolbar is enabled.

robot interface config

Back up Robot Program Files

  1. Insert the flash drive, and press MENU. Select FILE  File by using the arrow keys. Then, press ENTER to open the FILE interface.

    • Please ensure that your flash drive is no more than 32 GB in size and the file system of the flash drive is FAT32.

    • You can connect the flash drive to the robot controller or the teach pendant based on the actual requirement.

    enter file path
  2. In the FILE interface, press F5 (i.e., select UTIL). Select Set Device by using the arrow keys, and press ENTER.

    select device
  3. If your flash drive is connected to the controller, select USB Disk (UD1:) by using the arrow keys, and press ENTER. If your flash drive is connected to the teach pendant, select USB on TP (UT1:) by using the arrow keys, and press ENTER.

    enter usb file
  4. In the FILE interface, press F5 (i.e., select UTIL). Select Make DIR by using the arrow keys, and press ENTER.

    build file 1
  5. Select Words, Upper Case, Lower Case, or Options/Keybd and use the keys F1~F5 to name the folder, for example, as AOA. Then, press ENTER to confirm and enter the new folder.

    build file 2
  6. Press F4 (i.e., select BACKUP). Select All of above by using the arrow keys, and press ENTER to backup the files.

    rebase file 1
  7. A message asking whether to delete the new folder before backing up files will be displayed on the screen. Press F4 to select YES. Then, a message asking whether to back up all files will be displayed on the screen. Press F4 to select YES.

    rebase file 2
    rebase file 3
  8. After the backup is complete, select all files by using the arrow keys, and then press ENTER to view all backup files.

    check file 1
    check file 2

Prepare Program Files

Navigate to Communication Component/Robot_Interface from the installation directory where Mech-Vision and Mech-Viz are installed. Copy all contents of the FANUC folder to the root directory of your flash drive.

  • Please ensure that your flash drive is no more than 32 GB in size and the file system of the flash drive is FAT32.

  • Do NOT directly copy the FANUC folder and paste it to the root directory of the flash drive.

  • All copied folders and files must be saved to the root directory of the flash drive. Do not rename them.

Load the Program Files to the Robot

  1. Insert the flash drive, and press MENU. Select FILE  File by using the arrow keys. Then, press ENTER to open the FILE interface.

    You can connect the flash drive to the robot controller or the teach pendant based on the actual requirement.

    select file
  2. Press F5 (i.e., select UTIL). Select Set Device by using the arrow keys, and press ENTER.

    set device
  3. If your flash drive is connected to the controller, select USB Disk (UD1:) by using the arrow keys, and press ENTER. If your flash drive is connected to the teach pendant, select USB on TP (UT1:) by using the arrow keys, and press ENTER.

    all files usb
  4. Select all files by using the arrow keys, and press ENTER to view the root directory of the flash drive.

    all files
  5. In the root directory of the flash drive, select INSTALL by using the arrow keys. Press ENTER, and press F4 (i.e., select YES) to start loading the programs.

    install file
  6. When the Programs Loaded message is displayed, the program files are loaded. Press F4 (i.e., select OK) to return to the previous interface.

    loaded successfully

Test Standard Interface Communication

Select and Modify the Program Used for the Communication Test

  1. After you load the program files, press SELECT on the teach pendant to enter the program selection interface. Select MM_COMTEST by using the arrow keys and then press ENTER to start the program.

    mm test
  2. In the MM_COMTEST interface, set the MM_COMTEST function. This function has four parameters. Select one of the parameters by using the arrow keys, press F5 to select CHANGE, and then change the value as needed.

    • Parameter 1: client port number (1-8)

    • Parameter 2: IP address of the IPC

    • Parameter 3: IPC (server) port number, which should be the same as the setting in Mech-Vision

    • Parameter 4: timeout period (min)

    mm init skt

Run the Program and Test Connection

  1. Turn the switch on the teach pendant to ON and turn the switch on the controller to T1.

  2. Press STEP on the teach pendant to switch to Step mode. Now the Step icon on the teach pendant turns yellow as shown below.

    step
    step 2
  3. Press and hold one of the enabling switches on the back of the teach pendant.

    enable switch
  4. Press and hold SHIFT, and then repeatedly press FWD to manually run the MM_COMTEST program in Step mode. If the MM:Restart Robot information is returned, restart the robot.

    restart robot
  5. After you restart the robot, press and hold SHIFT, and then repeatedly press FWD to manually run MM_COMTEST in Step mode.

  6. If the communication between the robot and the vision system is set up, a log will be recorded on the Console tab of the Log panel of Mech-Vision.

    vision center log

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.

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.