|
|
|
Using C-Motion C-Motion is a “C” source code library that contains code for communicating to the motion processor using a parallel or serial interface. Please contact PMD for the latest version of the CMotion library. All C-Motion examples are intended for use on a PC running a Windows® Operating System. The library also contains files which are MicroSoft Visual Studio® 6.0 projects. Every example folder will have a file with a “.dsp” extension. If Visual Studio 6.0 is installed on the PC, then clicking on the “.dsp” file will open the project and the user should be able to compile the project without errors. If a development environment besides Visual Studio is being used then C-Motion can still be utilized however the user is now responsible for setting up the project so that all of the necessary source, object, and library files are properly linked during a compile. The developer’s initial utilization of C-Motion is intended for use with PMD’s Development Kit boards, which are inserted into either an ISA or PCI slot on a PC. Hence there are examples that are specific to ISA or PCI communication. However C-Motion is also useful to developers who have purchased a chip level product from PMD. In particular it is a useful starting point for developing the section of code that will run on their host processor that is responsible for communicating to the PMD chip. One very important function of C-Motion is to translate one user level function call into several low level read and write instructions. These low level instructions, which are passed to the communication bus, are in the format of packet structures defined in the Programmer’s Reference or Programmer’s Command Reference for the product of choice. The theory is that the developer will only need to modify the low-level communication routines in C-Motion based on the type of host processor and the subsequent communication routines provided by that host processor. C-Motion includes the following features:
The following files make up the C-Motion source code distribution:
C-Motion can be linked to your application code by including the above “C” source files in your application. Then, for any application source file that requires access to a PMD motion processor # include “C-Motion.h”. By customizing the base interface functions in PMDpar.c or PMDW32ser.c,
C-Motion can be
ported to virtually any hardware platform. Use of C-Motion on generic
platforms is covered in
Section 3.2.2.2.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Site Map Performance Motion Devices, Inc. 55 Old Bedford Road | Lincoln, MA 01773 | P: 781.674.9860 F: 781.674.9861 | motion-control@pmdcorp.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||