3understanding the mvi69e-ldm api – ProSoft Technology MVI69E-LDM User Manual
Page 39

MVI69E-LDM ♦ "C" Programmable
Contents
Linux Application Development Module
Developer's Manual
ProSoft Technology, Inc.
Page 39 of 130
August 21, 2014
3
Understanding the MVI69E-LDM API
In This Chapter
API Library .............................................................................................39
MVI69E-LDM Development Tools .........................................................40
CIP API Architecture ..............................................................................40
Backplane Device Driver ........................................................................42
The MVI69E LDM CPI API Suite allows software developers to access the CompactLogix
backplane with
out requiring detailed knowledge of the module’s hardware design. The
MVI69E-LDM API Suite consists of three distinct components; the backplane device driver,
the backplane interface engine, and the API library.
You can develop applications for the MVI69E-LDM module using industry-standard Linux
programming tools and the CPI API library. This section provides general information
pertaining to application development for the MVI69E-LDM module.
3.1
API Library
The API provides a library of function calls. The library supports any programming language
that is compatible with the 'C' calling convention. The API library is a dynamic linked library
that must be linked with the application to create the executable program>
Note: The following compiler versions are tested and known to be compatible with the MVI69E module API:
CNU C/C++ V4.4.4 for ARM9
3.1.1 Header File
A header file is provided along with the API library. This header file contains API function
declarations, data structure definitions, and constant definitions. The header file is in
standard 'C' format. Header files for the CIP API are
ocxbpapi.h
and
ocxtagdb.h
.
3.1.2 Sample Code
The sample applications illustrate the usage of the API functions. Full source for the sample
application is included, along with make files to build the sample programs.
3.1.3 CompactLogix Tag Naming Conventions
CompactLogix tags fall into two categories; controller tags and program tags.