Set up Standard Interface Communication with FANUC

This guide shows how to load the Standard Interface program files to a FANUC robot, and set up the Standard Interface communication between 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.

Preparation

Check Controller and Software Compatibility

  • FANUC robot: 6-axis or 7-axis

  • 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 in the selected section.

      check version 2
  • Additional controller 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 the 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

Set up Robot Communication Configuration

  1. Run Mech-Vision, and you may enter different interfaces. Create a new solution according to the instructions below.

    • If you have entered the Welcome interface, click New blank solution.

    create solution 1
    • If you have entered the main interface, click File  New Solution on the menu bar.

    create solution 2
  2. Click Robot Communication Configuration on the toolbar of Mech-Vision.

  3. In the Robot Communication Configuration window, complete the following configurations.

    1. Click the Select robot drop-down menu, and select Listed robot. Click Select robot model, and select the robot model that you use. Then, click Next.

    2. In the Communication mode area, select Standard Interface for Interface service type, TCP Server for Protocol, and HEX (big-endian) for the protocol format.

    3. It is recommended to set the port number to 50000 or above. Ensure that the port number is not occupied by another program.

    4. (Optional) Select Auto enable interface service when opening the solution.

    5. Click Apply.

      tcp hex big endian
  4. On the main interface of Mech-Vision, make sure that the Robot Communication Configuration switch on the toolbar is flipped and has turned blue.

    interface service

Back up Robot Programs

  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 Mech-Center/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

  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

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.