Qdatasheet_Logo
Integrated circuits, Transistor, Semiconductors Search and Datasheet PDF Download Site

PC104 View Datasheet(PDF) - PMD

Part Name
Description
MFG CO.
'PC104' PDF : 70 Pages View PDF
4
Developing Your Own Applications with C-Motion
4.2 Using C-Motion
The following files make up the C-Motion distribution:
C-Motion.h/C-Motion.c
PMDpar.h/PMDpar.c
PMDW32ser.h/PMDW32ser.c
PMDdrv.h/PMDdrv.c
PMDPC/104.h/PMDPC/104.c
PMDutil.h/PMDutil.c
PMDtrans.h/PMDtrans.c
PMDecode.h
PMDocode.h
PMDtypes.h
PMDdiag.h
Definition/declaration of the PMD Navigator command set
Parallel interface functions
Windows serial communication interface functions
Windows PC/104 driver communication interface functions
Windows PC/104 driver communication interface functions
General utility functions
Generic transport (interface) functions
Defines the PMD Navigator and C-Motion error codes
Defines the control codes for Navigator commands
Defines the basic types required by C-Motion
Defines a string structure for each command code that
can be used for debugging or diagnostics
If you use Visual Studio 6.0 or later, it may be advantageous to use the pre-made Visual Studio
Project MB80.dsp in the C-Motion Examples folder.
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 the motion processor
#include “C-Motion.h”. In addition, the required interfaces need to be #defined as shown below.
Only the required interfaces need to be included.
#define PMD_PARALLEL_INTERFACE
#define PMD_W32SERIAL_INTERFACE
#define PMD_DRIVER_INTERFACE
// use this for a standard parallel interface under
DOS or Win9x
// use this for a standard serial interface under
Win9x/NT/2000/XP
// use this for a standard parallel interface under
Win9x/NT/2000/XP
By customizing the base interface functions, C-Motion can be ported to virtually any hardware
platform. An example would be a memory-mapped IO scheme that uses the parallel interface.
This would be built using the PMDPar.c/.h source files as a basis.
C-Motion is a set of functions that encapsulate the motion processor command set. Every command
has as its first parameter an axis handle. The axis handle is a structure containing information
about the interface to the motion processor and the axis number that the handle represents. Before
52
Navigator-PC/104 User’s Guide
Share Link: GO URL

All Rights Reserved © qdatasheet.com  [ Privacy Policy ] [ Contact Us ]