Set up Standard Interface Communication with Kawasaki

This guide shows how to load the Standard Interface program files to a Kawasaki 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

  • Controller: E-series or F-series

  • Controller system software version: no requirement

  • Additional controller software options: no requirement

Set up the Network Connection

Connect the Hardware

Plug one end of the Ethernet cable into the network port of the IPC and the other end into the network port of the robot controller.

Two Ethernet ports are provided by the CPU board of the robot controller. The IP addresses of the two ports must reside in different subnets. In most cases, Ethernet port 1 (the upper one) is used to connect the front panel of the controller, while Ethernet port 2 (the lower one) is reserved.

handware connection

Set IP Addresses

  1. Press the Aux. button on the teach pendant, and then select 8. System  12. Network Setting to set the IP address of the robot Ethernet port.

    set ip 1
    set ip 2
    set ip 3
  2. Set the IP address and subnet mask of port 1 on the Port 1 network setting page. The IP addresses of the robot and the IPC must reside in the same subnet. If a network gateway is used, set the Gateway parameter.

    set ip 4

    If port 2 on the robot is used for network connection, press the Next Page button on the bottom of the Port 1 network setting page to go to the Port 2 network setting page and set the IP address.

    set ip 5
    set ip 6

    After you set the IP address, press the ENTER key on the teach pendant to confirm.

    login button
  3. Restart the controller.

    restart robot

Set up Communication with Robot

  1. Open 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 section, select Standard Interface for Interface service type, TCP Server for Protocol, and ASCII 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 ascii
  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

Load the Program Files to the Robot (Auto)

You can follow the instructions below to allow standard interface programs or standard interface example programs to be auto-loaded to the robot. In this example, standard interface programs are auto-loaded by performing the following steps. The steps to auto-load standard interface example programs are similar.

If the auto-load process fails and you cannot resolve the issue, proceed to Load the Program Files to the Robot (Manual).
  1. Navigate to the installation directory of Mech-Vision and Mech-Viz, go to the Robot Program Loader folder by using the Communication Component\tool\Robot Program Loader path, and then double-click the Robot Program Loader program to open the loader. The main interface of the loader appears.

    To switch languages in the loader, select a different language from the drop-down list in the upper-right corner and restart the loader for the new language to take effect.
  2. In the main interface, select the KAWASAKI robot brand, enter the actual robot IP address, and then click Connect.

    If the connection fails, click Test network connection in the lower-right corner to troubleshoot the issue.
    auto loading files1
  3. In the KAWASAKI Program Loading interface, click the folder icon, select the path of the backup files, and then click Back up. If the files are backed up, a message that indicates the backup is successful is displayed in the Log section.

    If errors occur in the subsequent loading process, the files can be used to reset the robot system.
    auto loading files2
  4. Select Load the master-control program(s) and then click Load with one-click. If the files are loaded to the robot, a message that indicates the program files are successfully loaded appears in the Log section.

    If you want to load standard interface example programs, select Load the standard interface example program(s) and then click Load with one-click.
    auto loading files3

After the preceding operations are compete, proceed to Test Standard Interface Communication.

Load the Program Files to the Robot (Manual)

If you have completed operations in Load the Program Files to the Robot (Auto), skip this section.

Prepare the Files

Navigate to Communication Component\Robot_Interface\KAWASAKI from the installation directory of Mech-Vision and Mech-Viz, copy the mm_module.as file to the root directory of your flash drive, and then plug the flash drive to the USB port of the accessory panel on the controller.

Precautions for Loading Files

  1. Save user programs.

    If user programs exist in the program list on the teach pendant, save them before you load program files. If no user programs exist on the teach pendant, skip this step.
    Click here for instructions
    1. Press the Aux. button, and select 2. Save/Load  1. Save..

      attention before burning 1
      attention before burning 2
      attention before burning 3
    2. On the Save page, press Input File name to enter the file name, and then press the Save button. After the file is saved, press the R key on the teach pendant to return to the main page.

      attention before burning 4
  2. Before you load files, check if registered programs exist in the Program area on the teach pendant. If yes, deregister these programs by following instructions as shown below.

    attention before burning 5
  3. Before you load files, check to make sure that the robot is in teach mode. After above checks, the interface of the teach pendant is shown as below.

    attention before burning 6

Load the Program Files to the Robot

  1. Press the Aux. button on the teach pendant.

    load the program files 1
  2. Select 2. Save/Load  2. Load .

    load the program files 2
    load the program files 3
  3. Double-click the program file mm_module.as to allow mm_module.as to be displayed in the File Name field. Then, select LOAD.

    load the program files 4
  4. After you load the files, check to make sure that no errors occurred during the loading process. Press the R key on the teach pendant to exit.

    load the program files 5

Test Standard Interface Communication

Select and Modify the Program Used for the Communication Test

  1. Press the program area on the teach pendant. In the pop-up menu, select Directory.

    test connect 1
  2. Select the foreground program mm_comtest in the Directory list. Then, press the ENTER key on the teach pendant to confirm the selection.

    test connect 2

    The following figure shows the interface after the program is added.

    test connect 3
  3. Reset the parameters of the mm_init_skt function in the mm_comtest program by performing the following steps.

    1. Press J/E on the teach pendant, select Program Edit in the pop-up menu, and then press ENTER to confirm.

      test connect 4
      test connect 5
    2. Select mm_comtest in the program menu and press the ENTER key to confirm.

      test connect 6
    3. Move the red selection frame to line 5 on the teach pendant by using the arrow keys to select call mm_init_skt(127,0,0,1,50000). Then, press the ENTER key to confirm.

      test connect 7
    4. Use the arrow keys and number keys on the teach pendant to change 127,0,0,1 to the IP address of the IPC and “50000” to the host port number set in Mech-Vision. After you modify the settings, press ENTER to confirm and press R to exit.

      test connect 8
    5. In the prompted confirm window, press Yes and then Close.

      test connect 9
    test connect 10

Run the Program and Test Connection

  1. Switch Teach/Repeat on the controller to REPEAT, and switch the teach lock on the teach pendant to OFF. After these operations, the robot should be in REPEAT mode.

    change mode
  2. Switch to the STEP CONT. REP. ONCE mode on the screen, and reset REP. SPD to 10%.

    test connect 11
  3. Hold the A key on the keypad and press MOTOR on the screen to make MOTOR lit. Hold the A key on the keypad and press CYCLE on the screen to make CYCLE lit. If RUN is not lit, press A and RUN/HOLD together on the teach pendant.

    When RUN, MOTOR, CYCLE are all lit, the communication test program starts to run.
    test connect 12
  4. 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.