How Can the Standard Interface Programs for ABB Robots be Run in the Background?

You are currently viewing the documentation for the latest version (2.1.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.

For ABB robots, a Standard Interface program can contain a primary program and a secondary program. When the primary program calls the secondary program, the primary program is considered a foreground program, while the secondary program is considered as a background program that needs to automatically run after the robot system starts. This guide mainly describes how to create a Standard Interface background program for an ABB robot and allows the program to run in the background.

Before you begin, please ensure that ABB Standard Interface communication is set up.

Create and Run Background Program

  1. Use RobotStudio to connect the robot and then select the configuration option  Controller  Task to create a secondary program such as mm_vision that runs in the background.

    The first time you create a secondary program, you can set Type to Normal for the program and write program code in this mode. After the program passes the test, set Type to Semistatic for the program, which indicates that the program will be automatically run in the background.
    faq15 1
  2. Restart the controller.

  3. After you restart the controller, load the Standard Interface module MM_Module to mm_vision and then create a module named main_vision.

    faq15 2
  4. Open the main_vision module and write the module code. For example, the sample code in the following figure indicates to trigger the Mech-Vision project to run and obtain the vision result.

    faq15 3
  5. After the code passes the test, set Type of mm_vision to Semistatic and then restart the controller to allow the mm_vision to be automatically run in the background.

    faq15 4

Create and Run Foreground Program

  1. Create a foreground program file and write the program code based on the actual workflow. For example, the sample code in the following figure indicates that the foreground program calls the secondary program when flag_vis is set to true.

    faq15 5
  2. After ensuring that the background program can run normally, you can run the foreground program. For more information, see Run Calibration Program.

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.