Set up Standard Interface Communication with SIASUN GCR

This guide shows you how to load the Standard Interface program to a SIASUN GCR robot and set up the Standard Interface communication.

Preparation

Before loading the Standard Interface program files, you need to check hardware and software versions, establish the network connection between the robot and IPC, turn on the interface service in Mech-Vision, and copy the program files.

Check Hardware and Software Versions

Confirm that the controller version is 2.7.0. Version 2.7.0 is tested.

Instructions
  1. Click the profile icon in the upper right corner of the teach pendant, and select About in the drop-down menu.

    check controller 1
  2. Software Version is the controller version.

    check controller 2

Set up Network Connection

  1. Plug the other side of the IPC’s Ethernet cable into the Ethernet port of the robot controller.

  2. Check the robot’s IP address and make sure it is on the same subnet as the IPC.

    Instructions
    1. Click the user profile icon on the upper-right corner of the teach pendant. Click System Setting in the drop-down menu.

      set ip 1
    2. Click Network in the pop-up “System Setting” window, and check the IP address and subnet mask of the robot in the “Local IP” area.

      set ip 2
  3. If the IP address of the robot and that of the IPC are in different subnets, please modify the IPC’s IP address.

Prepare the Program Files

  1. Open the installation directory of the Mech-Mind software products on the IPC, and enter the Communication Component\Robot_Interface\SIASUN folder. You will see the following three files:

    • mm.pro

    • mm.program

    • mm_siasun.script

  2. You can choose to load a project or load programs when configuring the Standard Interface communication for a SIASUN robot.

    Loading a project means to load the whole project which contains the calibration program, Visual Recognition program, Path Planning program, etc., into the robot.

    Loading programs means to load the specific programs that enable the robot to establish communication with the Mech-Mind vision system and to access and process data, into an existing project.

    1. If you need to load the whole project, copy the following files to the root directory of the USB flash drive:

      • mm.pro: the whole project file

    2. If you need to load individual programs, copy the following files to the root directory of the USB flash drive:

      • mm.program: example program of the Standard Interface communication and calibration program

      • mm_siasun.script: robot script for the socket communication and data processing

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

Load the Program Files to the Robot

You can choose to load a project or load programs when configuring the Standard Interface communication for a SIASUN robot.

Refer to the Load Project section if you need to load a whole project to the robot; and refer to the Load Project section if you need to import the Standard Interface communication feature to an existing project.

Load Project

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

  2. Click Project on the upper-left of the teach pendant. Select Management in the drop-down menu.

    load project 1

  3. Select Import in the pop-up “Management” window.

    load project 2

  4. Select the USB flash drive which you plugged into the teach pendant in the pop-up “Select flash” window, and click Select.

    load project 3

  5. Select mm.pro in the pop-up “Please select the file” window, and click Select. The interface returns to the “Management” window and prompts “Import successfully”.

    load project 4

  6. Click the mm project. Click Switch in the pop-up operation menu.

    load project 5

  7. Click Continue in the pop-up dialogue box to restart the controller and finish loading the project.

    load project 6

Load Programs

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

  2. Click Program on the left side panel of the teach pendant. Click Import on the “All programs” panel.

    load program 1

  3. Select the USB flash drive which you plugged into the teach pendant in the pop-up “Select flash” window, and click Select.

    load program 2

  4. Select mm.program in the pop-up “Please select the file” window, and click Select. The interface prompts “Import successfully” and returns to the “Program” page.

    load program 3

  5. Refer to Step 2~4 and import the mm_siasun.script file.

  6. After loading the two files mentioned above, you need to add global variables manually. Click Setting on the left side panel of the teach pendant. Click Variable  Add variable on the operation panel.

    load program 4

  7. Enter Name and Type for the new variable in the pop-up “Create variable” window, and select Persistent.

    load program 5

    The variables that you need to create are listed in the following table.

    • The variable name is case-sensitive.

    • “g_” is already in the text box of the “Create variable” window. Do not input repeatedly.

    Name Type

    g_ipcIp

    string

    g_ipcPort

    number

    g_mmCmd

    number

    g_mmStatus

    number

    g_mmProjectId

    number

    g_mmExceptPose

    number

    g_mmRecipeId

    number

    g_mmPoseType

    number

    g_mmBranchId

    number

    g_mmBranchPort

    number

    g_mmIndexId

    number

    g_mmIndexPort

    number

    g_mmRecvList

    num_list

    g_mmTarget

    num_list

    g_mmNum

    number

    g_nnConfigId

    number

    g_mmBoxSize

    string

    g_mmPosSend

    string

  8. Click Project in the upper-left corner, and click Save project in the drop-down menu.

    save project

Input the IPC’s IP Addresses

After loading the project or programs, you need to configure the IPC’s IP address and port on the teach pendant, so that the robot can communicate with the IPC.

  1. Click Setting on the left side panel of the teach pendant, and then select Variable. Find g_ipcIp and click the editing icon edit icon to its right.

    connect ipc 1

  2. The “Create variable” window pops up. Input the IP address of the IPC in the text box of Initial, and click Confirm. This guide takes 192.168.125.1 as an example. Please input the IP address of the IPC in use.

    connect ipc 2

  3. Find g_ipcPort in the “Variable” panel, and click the editing icon edit icon to its right.

  4. The “Create variable” window pops up. Input the port number of the IPC in the text box of Initial. This guide takes 50000 as an example. Please input the IP address of the IPC in use. Then, click Confirm.

    connect ipc 3

Test Standard Interface Communication

Before testing the Standard Interface communication between the robot and the vision system, make sure that the interface service is started. Then, run a test program on the teach pendant to test the Standard Interface communication.

  1. Click Program on the left side panel. Find and double-click the mmNetTest.jspf program in the “All programs” panel.

    test interface connection 1

  2. Click Run on the simulated robot panel.

    test interface connection 2

  3. If the SIASUN robot successfully establishes the Standard Interface communication with Mech-Vision, the corresponding log will be recorded on the Console tab of the log panel in Mech-Vision.

    vision 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.