Master-Control Communication Setup (Industrial Robot)

You are viewing an old version of the documentation. You can switch to the documentation of the latest version by clicking the top-right corner of the page.

This guide shows you how to set up Master-Control communication with a ROKAE industrial robot.

Preparation

Check Hardware and Software Versions

  • The robot in use is a ROKAE industrial robot.

  • The series of the controller is XBC3 (XBC5 has not been tested), and the version is 3.6 or above.

  • Mech-Vision & Mech-Viz versions: 1.5.0 or above

Start the Robot and Teach Pendant

Turn the controller’s power switch on, as shown below. If the controller is started successfully, a welcome interface will appear on the teach pendant.

rokae industrial 1

Check the Controller Version

On the teach pendant, press the icon in the upper left corner, and then press Help to check the version.

rokae industrial 2
rokae industrial 3

Switch the User Type to Admin

An operator user does not have the right to manage files or operate. Therefore, please switch to the admin user.

  1. On the teach pendant, press the icon in the upper left corner, and then press Settings.

  2. Press General Settings  User Group, and select admin.

    rokae industrial 5
  3. Enter the password 123456 in the pop-up window.

Set up the Network Connection

Connect the Hardware

Use the Ethernet cable to connect the network ports of the IPC and the robot controller.

rokae industrial 4

Configure External Communication

  1. On the teach pendant, press the icon in the upper left corner, and then press Settings.

  2. Press Communication  External Communication, configure Socket communication as shown in the figure below, and then click Connect.

    rokae industrial 4 1
  3. Restart the controller.

Set the IP Address

The default IP address of the ROKAE robot to communicate with the vision system is 192.168.2.160, which cannot be modified currently. However, you can modify the IP address of the IPC (192.168.2.222 is used in this example) to ensure that their IP addresses are in the same subnet. Please refer to Set IP Address of the IPC for detailed instructions.

After modifying the IP address on the IPC, open the Command Prompt window of the IPC, enter “ping 192.168.2.160”, and test whether the connection between the IPC and the robot is successful.

Prepare the Program Files

  1. On the IPC, go to Communication Component/Robot_Server/Robot_FullControl/rokae from the installation directory where Mech-Vision and Mech-Viz are installed.

    There are three subfolders in the rokae folder:

    • singleTask5 contains commonly-used projects that support robot motion control and DO receiving. In this section, singleTask5 is used as an example.

    • splineCurve is an upgraded version of singleTask5. It is specifically developed for gluing applications. When running the program, please select either singleTask5 or splineCurve.

    • getDIServer is an integral service program to receive robot DI. If you want to use singleTask5 and getDIServer at the same time, the multitasking function should be enabled on the robot side. For detailed instructions, please refer to Enable Multitasking.

  2. Plug the USB flash drive into the USB port of the IPC. Copy the rokae folder to the USB flash drive and then remove the USB flash drive safely.

Load the Program Files to the Robot

It is recommended to back up robot system files before loading Master-Control program files to avoid system corruption that may be caused by the loading operation. In case any issue occurs, you can use the backup file to restore the robot system. Please refer to Backup and Restore Robot Files for detailed instructions.
  1. Plug the USB flash drive with the program files into the USB port on the robot controller.

  2. On the teach pendant, press the icon in the upper left corner, and then press Project.

  3. Press Project Manager.

    rokae industrial 9 1
  4. Press More and select Show U disk.

    rokae industrial 10
  5. Select the singleTask5 folder in the flash drive, press More, and select Copy U disk folder to root directory.

    rokae industrial 11

    Once pasted successfully, the singleTask5 folder can be found in the file browser at the bottom left.

Configure Robot I/O

  1. On the teach pendant, press the icon in the upper left corner, and then press Settings.

  2. Press Communication  IO Configuration  Add in turn.

    rokae industrial 12
  3. Add do0, and the specific options are shown below.

    rokae industrial 13

    Similarly, add do0 to do7. The final result is shown in the figure below.

    rokae industrial 14

Test Master-Control Communication

  1. Create a Mech-Viz Project.

  2. Click Master-Control Robot on the toolbar of Mech-Viz.

    Input 192.168.2.160 (required value) in Robot IP address and click Connect the robot.

    Unnamed image

    Mech-Viz will wait for the master-control program to run before establishing 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 finished in 120s. Otherwise, you’ll need to click Connect the robot in Mech-Viz again.

  1. Select the local singleTask5 folder, and press Load.

    rokae industrial 15
  2. Switch the manual mode to automatic mode. The figure below shows the teach pendant in the automatic mode.

    rokae industrial 16

    Select Ok in the pop-up window as shown below.

    rokae industrial 17
  3. Press the button on the controller as shown in the figure below. If the once-flashing indicator light turns to be always on, the servo is successfully turned on in the automatic mode.

    rokae industrial 18
  4. Press the R button in the lower right corner to power on the robot.

    rokae industrial 19
  5. Press Debug and select PP to Main.

    rokae industrial 20
  6. Click the icon as shown below to adjust the program’s running speed.

    rokae industrial 21
  7. Press the button as shown below to run the program.

    rokae industrial 22

    In Mech-Viz, the current status shows “connected”.

    rokae industrial 30

After finishing the above operation, please move the robot.

Common Operations

Backup and Restore Robot Files

Backup

  1. Plug the USB flash drive with the program files into the USB port on the teach pendant.

  2. On the teach pendant, press the icon in the upper left corner, and then press Settings.

  3. Press General Settings  Backup/Restore, and select Backup.

    rokae industrial 6
  4. Select Backup in the pop-up window.

    rokae industrial 7

Recover

  1. Press General Settings  Backup/Restore, and select Restore.

    rokae industrial 8
  2. In the pop-up window, press Browse to select the directory where the backup files are stored. Then select the data to be restored according to the actual requirement, and press Restore.

    rokae industrial 9

Enable Multitasking

Confirm Whether the Robot Supports Multitasking

By default, ROKAE robots do not support multitasking. To enable multitasking, you need to request a license key (a string of keys based on MAC address encryption) from the manufacturer.

  1. On the teach pendant, press the icon in the upper left corner, and then press Settings.

  2. Press General Settings  Authorization and check whether there is an authorized function.

    rokae industrial 23

    If not, you need to contact the robot manufacturer to request a license key and enter it in the corresponding text box.

Configure getDIServer and singleTask5 Tasks

  1. Copy and paste singleTask5 and getDIServer to the robot system. Please refer to Prepare the Files for detailed instructions.

  2. Add gi0.

    1. On the teach pendant, press the icon in the upper left corner, and then press Settings.

    2. Press Communication  IO Configuration  Add in turn.

      rokae industrial 12
    3. Configure the options as shown in the figure below, and press OK.

      rokae industrial 24
  3. Configure tasks and parameters.

    1. On the teach pendant, press the icon in the upper left corner, and then press Settings.

    2. Press General Settings  Task  New.

      rokae industrial 25
    3. Configure the two tasks as shown in the figure below, and click OK.

      rokae industrial 26
      rokae industrial 27

    Please refer to Test Robot Connection to learn about how to run the tasks.

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.