參數(shù)資料
型號: MC73110
廠商: Electronic Theatre Controls, Inc.
英文描述: Advanced 3-Phase Motor Control IC
中文描述: 先進的三相馬達控制IC
文件頁數(shù): 32/40頁
文件大?。?/td> 1362K
代理商: MC73110
MC73110 Developer’s Kit Manual
32
Developing Your Own Applications with C-Motion
4
4.1 Theory of Use
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 communicating to the motion
processor, the axis handle must be initialized using the following sequence of commands:
// the axis handle
PMDAxisHandle handle;
// open serial interface to PMD processor and initialize handle to axis one
PMDSetupAxisInterface_Serial( &handle, PMDAxis1, 1 ); // COM1
Once the axis handle has been initialized, any of the motion processor commands can be executed. C-Motion.h
includes the prototypes for all motion processor commands as implemented in C-Motion. Refer to this file for
the required parameters for each command. The
MC73110 Product Manual
is the primary source for information
about the operation and purpose of each command.
Every C-Motion processor command returns a status code of type PMDresult. The return code for every
command executed should be checked before attempting to execute more commands.
PMDresult result,status;
result = PMDSetVelocity(&handle, 100000);
if (result != PMD_ERR_OK)
{
printf(“Error: %s\n”, PMDGetErrorMessage(result));
return;
}
Many commands require additional parameters. Some standard values are defined by C-Motion and can be used
with the appropriate commands. Refer to PMDtypes.h for a complete list of defined types. An example of
calling one of the C-Motion functions with the pre-defined types is shown below.
PMDSetConditionMask(&handle, PMDConditionMaskAmpDisable, PMDConditionOverTemp);
In addition to the processor commands, C-Motion provides several support functions. A subset of these are:
void PMDCloseAxisInterface(PMDAxisHandle* axis_handle);
should be called to terminate an interface connection.
char *PMDGetErrorMessage(PMDresult errorCode);
returns a character string representation of the corresponding PMD chip or C-Motion error code.
void GetCMotionVersion(PMDuint8* MajorVersion, PMDuint8* MinorVersion);
returns the major and minor version number of C-Motion.
相關(guān)PDF資料
PDF描述
MC740-430E 47-Gb/s 4:1 Multiplexer
MC74VHC1G03DFT2 2-Input NAND Gate with Open Drain Output
MC74VHC1G03DFT4 2-Input NAND Gate with Open Drain Output
MC74VHC1G03DTT1 2-Input NAND Gate with Open Drain Output
MC74VHC1G03DTT3 2-Input NAND Gate with Open Drain Output
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
MC7330-1101978 制造商:Sierra Wireless 功能描述:LTE |HSPA+| GPS |Data only| NTT Docomo
MC7350-1102014 制造商:Sierra Wireless 功能描述:LTE|CDMA| GPS |Data only| Sprint/Verizon
MC7350-L-1102015 制造商:Sierra Wireless 功能描述:LTE Only|GPS|Data Only| Verizon
MC7354-1102016 制造商:Sierra Wireless 功能描述:LTE |HSPA+|CDMA| GPS |Data only| USA
MC74 制造商:ONSEMI 制造商全稱:ON Semiconductor 功能描述:Serial Digital Temperature Sensor