Robot Communication Setup

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.

In this tutorial, you will learn how to load the Master-Control program files to the ABB robot and configure the Master-Control communication.

  • In this section, you will load the robot Master-Control program and the configuration files to the robot system to establish the communication between the vision system and the robot, thus helping the Mech-Mind Vision System obtain control over the robot.

  • If you are using the robots of other brands, you can find instructions on setting up the Master-Control communication configuration with the desired robot from the section Master-Control Communication.

Video Tutorial: Robot Interface Configuration

Preparation

Check the Controller and RobotWare Version

  1. Make sure that D652 or DSQC1030 IO board has been installed on the robot controller.

  2. The robot controller is IRC4 or IRC5, and the version of RobotWare is between 6.02 to 6.15.

    Check the RobotWare version on the teach pendant, as shown below.

    check version1
    check version2
  3. The following control module options should be installed:

    • 616-1 PCInterface

    • 623-1 Multitasking

      Check whether the above controller options are installed on the teach pendant, as shown below.

      check installation
  • To master-control an ABB robot, you must install the above control module options.

  • If the preceding conditions cannot be met, the vision side cannot communicate with the robot through the master-control mode. Please contact the vendor of your robot.

Connect the Network

Connect the Hardware

Plug the Ethernet cable of the IPC into the X6 (WAN) port of the robot controller, as shown below.

port

Set IP Addresses

You can set the IP address on the teach pendant or in RobotStudio.

RobotStudio is the simulation and offline programming software for ABB robots. This software can be installed on the IPC or another computer. In this example, RobotStudio is installed on another computer.
Set the IP address by using the teach pendant
  1. Restart the controller on the teach pendant, as shown below.

    ip setting1
    ip setting2
    ip setting3
    ip setting4
  2. After the restart, the following interface is displayed. Please follow the steps below to set the IP address. Make sure that the IP addresses of the robot and the IPC are on the same subnet.

    ip setting5
    ip setting6
    ip setting7
    ip setting8
    ip setting9
    ip setting10
Set the IP address by using RobotStudio

Set the IP address by using RobotStudio, as shown below.

Please restart the robot after the IP address is set.
ip setting11
Please restart the robot after the IP address is set.

Check if the IP address is changed

Click upper-left menu  System info  WAN in the to check if the IP address is changed.

ip setting12
ip setting13
  • Ensure that the Ethernet cable of the IPC is connected to the X6 (WAN) network port of the robot controller.

  • Please distinguish the IP address of the robot LAN port when setting the IP address.

  • Make sure that the IP address of the ABB robot and that of the IPC are in the same subnet.

Load the Program Files to the Robot (Auto)

After you set parameters in the Robot Program Loader tool, the tool auto-loads files to the ABB robot. Follow the steps below.

If the auto-load process fails and you cannot resolve the issue, proceed to Load the Program Files to the Robot (Manual).
  1. Switch the key in the controller to the automatic mode, and ensure that the motor indicator light is on.

    calilbration process8
  2. Navigate to the installation directory of Mech-Vision and Mech-Viz, go to the Robot Program Loader folder by using the Mech-Center\tool\Robot Program Loader path, and then double-click the Robot Program Loader program to open the loader. The main interface of the loader appears.

    auto load files1
    auto load files2
  3. Select the ABB robot brand, enter the actual robot IP address, and then click Connect.

    auto load files3
    If the connection fails, click Test network connection in the lower-right corner to troubleshoot the issue.
  4. In the ABB Program Loading interface, select a folder to store the backup files and then click Back up. If the files are backed up, “Back up successfully” will be displayed in the Log section.

    auto load files4
    • If errors occur in the subsequent loading process, the files can be used to reset the robot system.

    • If you have loaded master-control programs to the robot, you can load master-control programs again only after you reset the robot system.

  5. After the backup succeeds, select Load the Master-Control program(s) to confirm the folder that stores the program files and then select the IO card type of the robot. In this example, No IO card is selected. Your card type may be different from the card type that is used in this example. Set the card type based on your actual scenario. After you set the preceding parameters, click Load with one-click. If a message that indicates the program files are successfully loaded appears in the Log section, the files are loaded to the robot.

    auto load files5

If the auto-load process succeeds, the controller restarts. After the auto-load process succeeds, proceed to Test Master-Control Communication.

Load the Program Files to the Robot (Manual)

If the autoload process succeeds, skip this section.

  • Before you manually load files to the robot, we recommend that you perform a backup. This way, you can reset the robot system if an incorrect operation occurs.

  • If you have loaded master-control programs to the robot, you can load master-control programs again only after you reset the robot system.

Preparation

Backup

Before you operate the robot, follow the backup instructions below to back up the system so that the robot system can be restored if an incorrect operation occurs. You can back up the files by using the teach pendant or RobotStudio.

Backup on the teach pendant
  1. Go to the home page by using the menu in the upper-left corner, and then click Restart.

    backup1
  2. Click the Backup Current System... button.

    backup2
  3. Click 1 below to rename the backup folder, click 2 below to rename the folder, and then click the Backup button.

    backup3
Back up the files by using RobotStudio
  1. In the home interface of RobotStudio, select the controller you want to backup, and then select Backup  Create Backup….

    backup4
  2. In the pop-up window, confirm the backup name and location and click OK.

    backup5

Resetting

  • Two types of resetting exist: resetting RAPID and resetting the system.

  • Resetting RAPID deletes the current RAPID program and data and retains system parameter settings.

  • Resetting the system restores the default system parameters and RAPID program, and resets the I/O settings. If a communication board or other communication devices are used, you must re-configure them after the system is reset.

Reset RAPID

Determine whether you need to reset RAPID based on the following flowchart.

reset
  1. Go to the home page by using the menu in the upper-left corner, and then click Restart.

    reset1
  2. Click Advanced....

    reset2
  3. Select Reset RAPID, and then click Next.

    reset5
  4. Click the Reset RAPID.

    reset6
Reset System
Resetting the system will restore the factory settings. Please make sure that you have completed the backup operation.
  1. Go to the home page by using the menu in the upper-left corner, and then click Restart.

    reset1
  2. Click Advanced....

    reset2
  3. Select Reset system and click Next.

    reset3
  4. Click the Reset system button.

    reset4

Obtain the Program Files

Copy the program files into a USB flash drive. Please locate the folder where Mech-Vision and Mech-Viz are installed, and the files are stored in Mech-Center/Robot_Server/Robot_FullControl/abb/RobotWare 6.

  1. The config files in the RobotWare 6 folder should be compatible with the I/O Unit in use. Choose the right config files from the config folders based on the actual scenario.

    • If a DSQC 652 I/O unit is used, select D652.cfg and SYS.cfg.

    • If a DSQC 1030 I/O unit is used, select DSQC1030.cfg and SYS.cfg.

    • If other I/O unit is used or the program is only used for automatic calibration, select EIO.cfg and SYS.cfg.

  2. In the RobotWare 6 folder, files in the MM folder are robot program modules.

Open RobotStudio and Connect to the Controller

Click the Controller menu of RobotStudio, and select Add Controller  Add Controller on the toolbar. In the prompted Add Controller dialog box, select the controller, and click the OK button.

load program2

Obtain Write Access to the Robot

  1. On the toolbar, click Request Write Access to request the write access to the teach pendant.

    load program2 1
  2. In the prompted Request for Write Access dialog box on the teach pendant, tap Grant.

Load the Robot Configuration Files

  1. Click the Controller menu of RobotStudio, and select Load Parameters  Parameters…​ on the toolbar. Select the configuration files to import from the USB flash drive, select the Load parameters and replace duplicates radio button, and then click the Open button.

    load program3
  2. In the prompted dialog boxes, click Confirm.

    load program3 1

Load the Robot Program Modules

  1. Click the Controller menu of RobotStudio, and select File Transfer on the toolbar. On the left panel of the File Transfer interface, select the “MM” folder, and then click the Transfer button to transfer this folder to the HOME directory of the robot system.

    load program4
  2. Click the Controller menu of RobotStudio, and select Restart on the toolbar to restart the robot system.

Till now, you have loaded the master-control program and the configuration files to the robot.

Test Master-Control Communication

After the robot system has been rebooted, perform the following steps to test whether the master-control communication can be established with the robot:

Switch the Robot to Automatic Mode

  1. In the robot controller, switch the robot to the automatic mode by using the switch key.

  2. In the prompted dialog box on the teach pendant, tap Confirm.

  3. In the robot controller, press the motor power button to power up the robot. When the robot is powered on, this button is solid on.

Run the Program

  1. Move the PP of tasks T_ROB1 and safe_area to Main respectively. After selecting PP to Main, if a window as shown below pops up, please tap Yes to confirm.

    run program1
    run program1 1
    run program2
    run program1 1
  2. Run the program manually or automatically. The program pointer is shown in the figure below.

    run program3

Create a Mech-Viz Project

  1. Open Mech-Viz and press the Ctrl+N key to createMech-Viz a project. Select the robot model corresponding to your real robot brand and model on the interface as shown below.

    select robot
  2. Press the Ctrl+S key 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 checkbox.

    set autoload

Connect to the Robot

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

  2. Input the IP address of the real robot in Robot IP address (the IP address in the picture is only an example). Click Connect the robot.

    connect robot 1

    If the 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.

    connect robot 2

    If the connection fails, please double-check the robot IP address.

Move the Robot

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

    move robot 1
  2. Click Sync Robot in the toolbar to 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 disable the synchronization.

    move robot 2
  3. On the Robot tab in the lower-right corner of the interface, slightly adjust the joint position of J1 (for example, from 0° to 3°). The stimulated robot will move accordingly.

    move robot 3
  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 teach pendant!
    move robot 4
  1. Press Ctrl+S , create a new folder named “Viz_Carton_Picking”, select it, and then click Select folder.

    save viz project

    After the Mech-Vizproject is saved successfully, in the Resources panel, the project name is displayed as Viz_Carton_Picking.

  2. Right-click the project name, and select Autoload project checkbox.

    auto load viz project

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.