Set up Standard Interface Communication with CGXi

You are currently viewing the documentation for the latest version (2.1.2). To access a different version, click the "Switch version" button located in the upper-right corner of the page.

■ If you are not sure which version of the product you are currently using, please feel free to contact Mech-Mind Technical Support.

This topic introduces the process of setting up the Standard Interface communication with a CGXi robot.

Preparation

Check Controller and Software Compatibility

The models and versions listed below are tested and can be used. For other models and versions, you may refer to this guide for operation. If any issues occur, please contact Mech-Mind Technical Support.

  • Robot model: G6

  • Controller model: K20

  • Robot software version: v1.8b-rc7

    Click here for instructions

    In the teach pendant interface, select the hamburg icon in the lower-left corner  About to check the robot software version.

    setup2
    setup3

User Login

During operation, the login dialog box may occasionally pop up automatically on the teach pendant interface. At this time, select Programmer as the user name, enter admin as the password, and tap Login to continue.

setup4

Set up the Network Connection

Connect the Hardware

Plug one end of the Ethernet cable into the port of the IPC and the other end into the LAN1 port of the robot controller. The following figure shows a sample LAN1 port.

setup5

Set the IP Address

  1. On the teach pendant interface, tap Config  Communic  Network to open the network settings page. Under Controller – Network settings, enter the controller’s IP address and subnet mask, and then tap OK.

    setup6
  2. In the upper-right corner, tap Reconnect controller for the above network settings to take effect.

    setup7
  3. In the IPC, set the IP address of the IPC.

    To allow communication between the IPC and the robot controller, the IP addresses of the IPC and robot controller must 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.169/255.255.255.0 and 192.168.100.170/255.255.255.0 are in the same subnet.

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. Under Robot integration, click Open program folder.

      The files needed for subsequent loading will be copied from this folder. Do not close this folder.
    5. (Optional) Select Auto enable interface service when opening the solution.

    6. Click Apply.

tcp ascii
  1. 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

  1. Copy the mm folder in the opened program folder (the CGXI folder) to the flash drive.

    You can also find the program folder in the Communication Component/Robot_Interface/CGXI path in the installation directory of Mech-Vision and Mech-Viz.

  2. Plug the flash drive into the USB port on the back of the robot teach pendant.

    setup8
  3. On the teach pendant interface, tap Open, go to the controller system’s program folder. Then, tap New folder to create a new folder named mm. After the folder is created, tap Cancel to return to the main interface.

    setup9
  4. On the main interface of the teach pendant, tap the hamburger menu in the lower-left corner  Setting.

    setup10
  5. On the following interface, tap Import/export  Import  Import project.

    setup11
  6. On the Import project page, the folders on the flash drive will be displayed. Double tap the mm folder to enter it, drag to select all files, and then tap Next.

    setup12
    setup13
  7. The path will automatically switch to the controller system’s program folder. Double tap to open the newly created mm folder, and then tap OK.

    setup14
  8. If the files are imported successfully, a message Import project success will pop up. Tap OK, and then tap Exit.

    setup15
  9. Return to the teach pendant main interface, tap Open, and double tap the mm folder to view the imported files.

    Make sure to select All Files as the file type in the lower-right corner.
    setup16

Test Standard Interface Communication

Select and Modify the Program Used for the Communication Test

  1. On the teach pendant main interface, tap Open, double tap the mm folder to enter it, select the mm.crp file, and then tap OK.

    setup17
  2. Return to the teach pendant main interface and tap Program on the left side. In the Robot main program, set the Call subprogram name to mm_comtest.

    The mm_comtest program is used to test the communication between the robot and the vision system. If you need to run another program, change the subprogram name accordingly.
    setup18
  3. On the following interface, open the mm_comtest subprogram and select the first script file (mm_open_socket.crscript).

    setup19
  4. Tap Edit, change the value of the mm_ip variable to the IPC’s IP address, and change the value of the mm_port variable to the host port configured in Mech-Vision. Then tap Apply.

    setup20

Run the Program and Test Connection

  1. On the teach pendant main interface, tap the Run button in the upper-right corner to execute the mm_comtest program.

    setup21
  2. 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

Is this page helpful?

You can give a feedback in any of the following ways:

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.