Open Core Interface - MLPI
MLPI-MotionLogicProgrammingInterface(mlpi4LabVIEW)  1.26.2
MLPI LabVIEW Reference (mlpi4LabVIEW)

Introduction

The MLPI (an acronym for Motion Logic Programming Interface) is a programming interface and a part of the Open Core Interface (OCI). It's used to write applications to configure and run motion controllers supplied by Bosch Rexroth AG which supports the MLPI technology, like IndraMotion XLC/MLC 13VRS and newer.

The MLPI is divided into different "toolboxes". Each toolbox contains mainly the same set of functionality, but focuses on a different programming domain or development environment like C/C++ (mlpiCore), Java (mlpi4Java), LabVIEW (mlpi4LabVIEW), etc.

overview.png
MLPI Overview
Note
For more information about all provided toolboxes please get the complete MLPI SDK, the examples and apps from our Open Core Engineering network website at http://www.boschrexroth.com/oce.

As you can use PLC function and functions blocks to program a device using a PLC application, the MLPI allows you to program the device using e.g. the high-level programming language G within the third-party development environment LabVIEW from National Instruments. For this case the MLPI provides the mlpi4LabVIEW toolbox with an extensive and comfortable set of VIs and CTLs within the LabVIEW add-on palette mlpi4LabVIEW.

Trademarks

LabVIEW™ and cRIO™ are registered trademarks of National Instruments Inc. See http://www.ni.com/legal/trademarks for a list of additional trademarks. Other product or brand names may be trademarks or registered trademarks of their respective holders.

Patents

National Instruments products are protected by one or more U.S. patents. Please see http://www.ni.com/legal/patents for more information.

Important notes

Before you start working with the mlpi4LabVIEW toolbox in combination with a real machine, make sure you have read and understood the safety precautions for using electric drives and controls. Safety information is shipped with each device or can be obtained from the device vendor.

Version information

The mlpi4LabVIEW toolbox is based on Open Core Engineering SDK. For information about server version of the MLPI and the corresponding firmware version please refer to Server versions of MLPI. For the latest information, please visit the Bosch Rexroth website http://www.boschrexroth.com/oce.

Installation

This section describes various informations and notes about the installation of the mlpi4LabVIEW toolbox.

Note
In general case we suggest you using the "VI Package Manager" install package mlpi4labview-*.*.*.*.vip for an easy, fully automated installation. We provide this package as an add-on installation at our download section of http://www.boschrexroth.com/oce. Alternatively you also can get all needed things from an installed MLPI SDK (manually installation).

Requirements

To use the mlpi4LabVIEW toolbox, you need to install the following packages at first:

  • National Instruments LabVIEW 2011 or higher (http://www.ni.com/trylabview/).
  • National Instruments LabVIEW Real-Time Module 2014 or higher for using the toolbox together with a NI cRIO-906x or NI cRIO-903x.
  • Bosch Rexroth IndraWorks Suite 13VRS or higher (optional) for easy initial commissioning of Bosch Rexroth devices.

VIPM installation

The "VI Package Manager" install package mlpi4labview-*.*.*.*.vip supports you with a fully guided toolbox installation. After selection of your desired LabVIEW version and the accepting of the Bosch Rexroth license agreements the mlpi4LabVIEW toolbox will be completely installed. Choosing the VIPM installation you are also be able to uninstall this toolbox by using the VI Package Manager.

lv_vipm_install_select.png
lv_vipm_install_license.png

Manually installation

On using an installed MLPI SDK you are also able to manually integrate the mlpi4LabVIEW toolbox into your desired LabVIEW environment. Choosing the manually installation you also have to remove all files and folders manually if required.

  • Copy the complete mlpi4LabVIEW toolbox folder <MLPI-SDK>/01VRS/mlpi4LabVIEW/lib/mlpi4LabVIEW into the LabVIEW folder <LabVIEW>/vi.lib/addons/.
  • Move the error code file <LabVIEW>/vi.lib/addons/mlpi4LabVIEW/mlpi4LabVIEW-errors.txt into the folder <LabVIEW>/project/errors/.
  • Move the help file <LabVIEW>/vi.lib/addons/mlpi4LabVIEW/mlpi4LabVIEW.chm into the folder <LabVIEW>/help/.
  • Move the example content file <LabVIEW>/vi.lib/addons/mlpi4LabVIEW/_Example/mlpi4LabVIEW.bin3 into the folder <LabVIEW>/examples/exbins/.
  • Move all sub folders of the example folder <LabVIEW>/vi.lib/addons/mlpi4LabVIEW/_Example/* to a new sub folder <LabVIEW>/examples/mlpi4LabVIEW/*.
  • (Re-) Start the LabVIEW environment.
lv_toolbox_palette.png

After a successfully installation you will find the mlpi4LabVIEW toolbox within the LabVIEW "Addons" palette.

Toolbox content

The mlpi4LabVIEW toolbox directory contains following content:

  • ApiLib, ContainerLib, IoLib, LogicLib, MotionLib, ParameterLib, RobotLib, SystemLib, TaskLib, TraceLib, WatchdogLib:
    These folders called libraries includes VIs and CTLs that are applied to program your LabVIEW applications for the IndraMotion MLC/XLC. For more information about the individual VIs, look at libraries references in this document.
  • _NativeInterface:
    These folder includes the native shared libraries for PCs with OS Microsoft Windows and for cRIO controllers with OS Linux RT from National Instruments. For standalone applications (LabVIEW Run-Time application, cRIO application) you have to add the desired native libraries to your application (Win32/Win64) resp. into the system library folder (cRIO) because without this shared libraries the MLPI cannot be used.
  • _Example:
    This folder (resp. the folder <LabVIEW>/example/mlpi4LabVIEW) includes examples showing the usages of the mlpi4LabVIEW toolbox.
  • _SubVIs:
    This folder includes needed sub VIs which are not designated for common custom usages.
  • mlpi4LabVIEW.chm:
    This file contains the documentation of the mlpi4LabVIEW toolbox. The information about the VIs are also directly available through the context help of the VIs.
  • mlpi4LabVIEW-errors.txt:
    This file contains adapted error codes (diagnosis numbers) of the IndraMotion MLC/XLC. The original error codes of the IndraMotion MLC/XLC are mapped into different unused spaces of the LabVIEW error codes. To adapt this mapped error codes you have to modify the sub VI mlpiSubErrorCodeConverter.vi and also this file.
  • mlpiConfig.ini:
    In general case you have to set the IP address of the IndraMotion MLC/XLC, the user name and the password and all other desired options on every opening of a MLPI connection via VI "Connect (mlpiApiConnect.vi)". Alternatively you can set this properties once within this configuration file.

The MLPI programming interface is separated into different libraries.

LibOverview.png

You can find detailed informations about each library and its usage within this documentation.

Support

The Open Core Engineering network website at http://www.boschrexroth.com/oce is the focal point for all development issues around the Open Core Interface (OCI). It provides a discussion forum for questions and issues to a panel of experts and follows the philosophy "Members helping members". Rexroth supports with its own team of application developers, core specialists, and product managers. Please visit the Open Core Engineering network forum at http://www.boschrexroth.com/network - register and be a part of it.

First Steps

Learn how to setup a simple application.

Next Steps

Following the above steps you should have successfully...

  • installed National Instruments LabVIEW
  • installed the mlpi4LabVIEW toolbox
  • created a basic application

Congratulations, you should now have all the basics to start developing your own application using the MLPI. For more information visit our forum, have a look at the other pages of this documentation and look for the sample applications which are located in the "samples" path of your MLPI-SDK installation directory. All the non MLPI-related documentation (Indralogic PLC, Fieldbusses, PLC-Open, Indradrive, etc...) can be found in the IndraWorks Suite installation.

For the latest information, you should look at the Bosch Rexroth web site http://www.boschrexroth.com/oce.