4.0 Developing Your Own
4
Applications with C-Motion
In This Section
Overview
Using C-Motion
4.1 Overview
C-Motion is a “C” source code library that contains all the code required for communicating to your
Navigator-PC/104 card.
C-Motion includes the following features:
Axis virtualization
The ability to communicate to multiple Navigator-PC/104 cards
The ability to link easily to any “C/C++” application
C-Motion callable functions are broken into two groups, those callable functions that encapsulate direct
motion processor commands, and those callable functions that encapsulate card-specific capabilities.
Motion Processor Commands
The motion processor specific commands are detailed in the Navigator Motion Processor Programmer’s
Command Reference. They are the primary commands that you will use to control the major motion
features including profile generation, servo loop closure, motor output signal generation (PWM and
analog), breakpoint processing, trace operations, and many other functions.
Each Navigator motion processor command listed in the Navigator Motion Processor Programmer’s
Command Reference has a C-Motion command of the identical name, but prefaced by the letters ‘PMD’.
For example the Navigator command SetPosition, is called PMDSetPosition.
Card-Specific Commands
The card-specific C-Motion commands are detailed in section 5.5, Command Summary: Card-Specific
Functions, page 68. These functions provide access to features that are located in the card, as opposed to
in the motion processor. This is a much smaller set of features, and includes:
General Purpose Digital I/O function
Amplifier enable outputs
DAC output enable
Watchdog timer
Reset monitor
Card ID
Navigator-PC/104 User’s Guide
51