Master-Control Communication Setup (xCore)

You are currently viewing the documentation for the latest version (2.2.0). 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 guide shows you how to load the Master-Control program to a ROKAE robot(xCore system), and set up the Master-Control communication between the robot and the Mech-Mind Vision System.

In this section, you will load the robot Master-Control program to the robot system to establish the Master-Control communication between the vision system and the robot.

Preparation

Set up the Network Connection

On the ROKAE robot base or controller cabinet, an Ethernet port is preset as the debug port, and its IP address is fixed at 192.168.0.160. This address is the same on all robots and should not be modified unless necessary. Therefore, the user only needs to connect the robot to the industrial PC with an Ethernet cable and then change the IPC IP address; the detailed steps are as follows.

  1. Use the Ethernet cable to connect the network ports of the IPC and the robot controller. The debug Ethernet ports for each robot are shown in the table below.

    Robot model Debug Ethernet port (192.168.0.160) Illustration

    ER/ER PRO

    J2 Ethernet port

    rokae1

    CR

    J1 Ethernet port

    rokae2

    CR-C

    Controller cabinet Ethernet port

    rokae3

    SR

    J2 Ethernet port

    rokae4

    SR-C

    LAN2 Ethernet port

    rokae5

    XBC5/XBC5E

    Debug Ethernet port

    rokae6

    XBC5M

    LAN2 Ethernet port

    rokae7
    For models not listed above, contact the robot manufacturer or test each Ethernet port’s IP address to locate the port with IP address 192.168.0.160.
  2. set the IP address of the IPC to 192.168.0.222.

  3. Open the command prompt window on the IPC and enter the command ping 192.168.0.160 to verify the communication connection status between the robot and the IPC.

    If the connection fails, check the network port of the robot and the IP address of the IPC to ensure correct configuration for both devices.
  4. On the IPC, install and launch the Robot Assist. Navigate to Options  Connection, enter the IP address 192.168.0.160, then click Connect. If a pop-up indicates that the current robot model is not supported, complete the update as prompted by the software.

    • Robot Assist is the host software for ROKAE robots and runs on PCs and on devices such as xPad2. Connect the device running the Robot Assist software and the robot to the same local area network (LAN). You can establish a connection to the robot by using robot discovery or by manually entering the controller’s service address.

    • In this document, the Robot Assist control software is installed on the same IPC as the vision system.

Check Controller Compatibility

In the Robot Assist interface, go to Options  About ROKAE to view the xCore controller version.

  • The versions used in this section are shown in the figure. If you are using other versions, you can follow the procedures described here to set up the communication. However, we cannot guarantee success. If the setup fails, contact the Mech-Mind technical support for assistance.

  • If the controller version is outdated, it is recommended to contact the robot manufacturer to upgrade the system.

Load the Program Files

In Manual mode, load the Master-Control program as follows.

  1. In the Robot Assist interface, go to Settings  User Groups. Under User Groups, set User Level to Administrator, enter the password 12345(default initial password), then click .

    If the user switches to Administrator and performs no operation for 10 minutes, the system will automatically switch from Administrator to Operator.
  2. In the interface shown, go to Programming  Project Configuration  Import.

  3. In the interface shown, click Open, select the xcore_control.zip file located at the software installation path Mech-Vision and Mech-Viz …/Robot_Server/Robot_FullControl/rokae, click Open, keep the other options at their default values, and finally click Finish. After a successful import, a notification will appear in the bottom-right corner of the interface.

  4. After a successful import, in the interface shown, select the xcore_control project and click Reload. In the pop-up dialog, click Confirm.

Configure External Communication

  1. In the Robot Assist interface, go to Communication  External Communication.

  2. In the communication settings, set Type to Client, Suffix to \r, IP to the IPC IP address, and Port to 8081, then click OK.

  3. In the top toolbar, set the External Communication switch to Enabled.

    You can configure the communication settings only when the External Communication switch is Disabled.

Test Master-Control Communication

Create a Mech-Viz Project

  1. Open Mech-Viz, press Ctrl + N on the keyboard to create a new project. In the following interface, click Load online robot list. Select the robot model corresponding to your real robot brand and model on the interface as shown below.

    Unnamed image
  2. Press Ctrl + S and create or select a folder to save the project.

  3. Right-click the project name in the left panel in Mech-Viz and select Autoload Project.

    Unnamed image

Connect the Robot

  1. Select Master-Control Robot on the toolbar of Mech-Viz.

  2. Input 192.168.0.160 in Robot IP address and select Connect the robot.

    Unnamed image

    Mech-Viz will wait for the master-control program to run before establishing the connection. By default, the waiting time is 120s.

    Unnamed image
    With the following steps, you can load and run the master-control program. Note that the operation should be completed in 120 seconds. Otherwise, you’ll need to select Connect the robot in Mech-Viz again.
  3. In the Robot Assist interface, go to Programming  RL Editor; the xcore_control/task0/main program will be displayed.

  4. In the bottom bar, adjust the program speed as needed, then switch from Manual mode to Automatic mode, and finally power on the robot motors. The final state is as shown below.

  5. Click the green arrow in front of main; the program pointer will point to the main function.

  6. In the right sidebar, click the Run button (if there is no Run button, click Next Page).

  7. If Mech-Viz successfully connects the real robot, the current status will change to Connected. Meanwhile, the icon in the toolbar will turn from blue to green.

    Unnamed image

    If the connection fails, please double-check the IP address of the IPC, clear any robot alarms, and rerun the Master-Control program.

Move robot

  1. In the toolbar of Mech-Viz, change the “Vel.” (velocity) and “Acc.” (acceleration) parameters to 5%.

    Unnamed image
  2. Click Sync Robot in the toolbar, and you can synchronize the poses of the simulated robot in the 3D simulation space with the poses of the real robot. Then click Sync Robot again to unselect it.

    Unnamed image
  3. In the Robot tab, slightly adjust the value of “J1”, for example, from 0˚ to 3˚. This operation will move the simulated robot.

    Unnamed image
  4. Click Move real robot and check if the real robot has moved. If the real robot has reached the JPs set for the simulated robot, the Master-Control communication is working.

    When moving the robot, please ensure the safety of personnel. In the case of an emergency, press the emergency stop button on the button box immediately!
    Unnamed image

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.