Master-Control Communication Setup

You are currently viewing the documentation for the latest version (2.2.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 guide shows you how to load the Master-Control program to ROKAE industrial and collaborative robots, 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

Check Hardware and Software Versions

  • The versions used in this section are as shown in the figures. For other versions, you can try the operations based on the existing documentation (full support is not guaranteed). If you encounter any problems, please contact Mech-Mind technical support.

  • If the controller version is too low, it is recommended to contact the robot manufacturer to upgrade the version.

  • The robot in use is a ROKAE industrial or collaborative robot.

  • The HMI version is 5.0.13.0411 or above, and the RC version is 3.2 or above.

    Click here for instructions

    Open the Robot Assist software, and select Options  About ROKAE to view the versions of HMI and RC.

    check versions
  • The Robot Assist software has been installed on the IPC.

    • Robot Assist is the host computer software for ROKAE robots, which can run on PCs, xPad2, and other devices. To connect the device where Robot Assist is installed and the robot to the same LAN, you can use robot detection, manually enter the controller service address, or other methods to establish a connection with the robot.

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

Set up the Network Connection

ROKAE industrial robots are controlled by controllers, such as the XBC5 series controllers. When setting up the network connection, plug the network cable into the debug Ethernet port of the controller.

Some models of ROKAE collaborative robots adopt a controller-free design (such as ER, ER PRO, CR, and SR), while other models adopt a controller-based design (such as CR-C and SR-C). For collaborative robots with a controller-free design, a debug Ethernet port is provided on the robot base for setting up the network connection; for collaborative robots with a controller-based design, the debug Ethernet port is located on the controller.

The IP address of the default debug Ethernet port on the ROKAE robot base or controller is fixed at 192.168.0.160. This address is the same on all robots and is not recommended to be changed. Therefore, you only need to connect the robot and the IPC with a network cable, and then change the IP address of the IPC. The specific operations are as follows.

  1. Plug one end of the network cable into the Ethernet port of the IPC, and plug the other end into the debug Ethernet port on the robot base or controller. The debug Ethernet ports of each robot model are listed in the following table.

    Robot model Debug Ethernet port (192.168.0.160) Image

    ER/ER PRO

    Port J2

    rokae1

    CR

    Port J1

    rokae2

    CR-C

    Controller port

    rokae3

    SR

    Port J2

    rokae4

    SR-C

    Port LAN2

    rokae5

    XBC5/XBC5E

    Debug Ethernet port

    rokae6

    XBC5M

    Port LAN2

    rokae7
    For robot models not listed above, please consult the robot manufacturer or test the IP address of each port to find out the Ethernet port whose IP address is 192.168.0.160.
  2. In the IPC, set the IP address of the IPC (for example, 192.168.0.222).

  3. In the command line window of the IPC, enter the ping 192.168.0.160 command to check whether the robot and the IPC are connected successfully.

    If they are not connected successfully, please check the robot Ethernet port and the IP address of the IPC to ensure that both are configured correctly.

Load the Program Files to the Robot

To prevent the loading operations from affecting the robot system, it is recommended to back up the robot system files before loading the program files. If any problem occurs during the operations, you can restore the robot system with the backup files. For detailed operations, please refer to Back up Robot Files.
  1. Open the Robot Assist software, and click the WiFi icon in the lower-right corner. Enter “192.168.0.160” (the IP address of the robot) in the address bar, and then click Connect.

  2. Select Settings  User Group, select the “System” user level, enter the password “123456”, and then click Login.

    enter super admin
  3. Select Program  Prj Configuration  Import.

    import project
  4. In the Project Options area, select xcore. In the Select Project area, click Open.

    select project
  5. In the file selection dialog box that appears, select the program file package to be loaded. After confirming that the correct file is selected, click Finish. After a successful import, a notification will appear in the bottom-right corner of the interface.

    The program file package to be loaded is located in the Communication Component/Robot_Server/Robot_FullControl/rokae directory in the installation path of Mech-Vision and Mech-Viz. The xcore_control.zip file is used for collaborative robots, and Industrial.zip is used for industrial robots.
    import project successfully
  6. After a successful import, set Select Project to the name of the imported project (xcore_control for collaborative robots, or Industrial for industrial robots), and then click Reload. In the pop-up dialog box, click OK.

    reload project

Configure External Communication

  1. In the Robot Assist interface, select Communication  External Communication.

  2. In the Communication Settings area, set Type to “Client”, set Suffix to “\r”, set IP and Port to the IP address and port (8081 by default) of the IPC, and then click OK.

    external communication settings
  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.

    set autoload

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.

    master connect robot

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

    master wait for master
    With the following steps, you can 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 Program  RL Editor; the xcore_control/task0/main program will be displayed. NOTE: For industrial robots, the displayed program is Industrial/task0/main.

    select main program
  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.

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

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

    click run button
  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.

    connected successfully

    If the connection fails, please double-check the IP addresses set for the robot and 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 moved to the pose of 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 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.