Set up Standard Interface Communication with DOBOT CRA Series

This guide shows you how to set up the Standard Interface communication with a DOBOT CRA Series robot.

Preparation before Loading

Check Controller and Software Compatibility

This guide shows how to use the DobotStudio Pro software to set up the Standard Interface communication between a DOBOT CRA Series robot and Mech-Mind Vision System.

Please use the following controller versions and DobotStudio Pro versions. Other versions have not been tested. If you use other versions, the communication may fail to be set up.

  • Control software name and version: DobotStudio Pro v4.4.0 and later.

You can visit the official DOBOT download center, find the required DobotStudio Pro version in the Control Software section, click the download icon to download the software package, and then install the software.
  • Controller version: 4.4.0.0-stable and later.

  • Controller model: CC-262.

Check Controller Version

  1. Open the installed DobotStudio Pro software and connect the robot as prompted in the selected region of the software, as shown in the following figure.

    connect robot
  2. After the communication is established, the following interface appears. In the lower-right corner of the following interface, check the controller version.

    check version 1

Set up 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.

port

⑤ is the network port of the robot controller.

Set the IP Address

  1. In the upper toolbar of the DobotStudio Pro software, click Settings.

  2. In the left-side navigation pane of the Settings dialog box, select Communication. On the Communication tab, set the robot IP address in the Communication section. To allow communication between the IPC and the robot controller, the robot IP address and the IPC IP address should reside in the same subnet. This means that the network portions and subnet masks of the IP addresses should be the same. For example, 192.168.100.2/255.255.255.0 and 192.168.100.3/255.255.255.0 are in the same subnet.

    set ip
Before you perform this step, please make sure that the robot is connected in DobotStudio Pro. For information about how to connect the robot in DobotStudio Pro, see Step 1 of the Check Controller Version section.

Load the Program Files to the Robot

  1. In the main interface of DobotStudio Pro, click Application. On the Application page, click Script programming to create a script programming project. The created programming project contains two blank files: src0.lua and global.lua, as shown in the following figure.

    create script
    show
    Before you perform this step, please make sure that the robot is connected in DobotStudio Pro. For information about how to connect the robot in DobotStudio Pro, see Step 1 of the Check Controller Version section.
  2. Use a text editor to open the global.lua file by using the Communication Component\Robot_Interface\DOBOT\CR\global.lua path in the installation directory of Mech-Vision&Mech-Viz, and then copy all the content of the global.lua file to the global.lua file in the script programming project.

    global lua

Set up Robot Communication Configuration

  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

Test Standard Interface Communication

  1. Return to the script programming interface of DobotStudio Pro, find the mm_comtest function in the gobal.lua file, and then change the IP address and port number in the mm_init_skt function to the IP address and port number of the IPC.

    test connection 1
  2. Open the src0.lua file and call mm_comtest in this file.

    test connection 2
  3. Click the enable button, as shown in the following figure, to power on the robot.

    test connection 3
  4. Click Run, as shown in the following figure, to run the current program.

    test connection 4
  5. If the following content is displayed in Mech-Vision, the communication is set up.

    test connection 5

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.