?? m5apiw32.h
字號:
// ---- FEEDBACK SETUP -----------
#define P3502_SETUP_ENCODER_FEEDBACK 0x00000001L
#define P3502_SETUP_RESOLVER_FEEDBACK 0x00000002L
#define P3502_SETUP_ABSOLUTE_FEEDBACK 0x00000004L
// ---- DIGITAL IO SETUP ---------
#define P3502_SETUP_4IN_4OUT 0x00000008L
#define P3502_SETUP_3IN_ENCODER_IN 0x00000010L
#define P3502_SETUP_3IN_ENCODER_OUT 0x00000020L
// ---- COMM INTERFACE -----------
#define P3502_SETUP_RS232 0x00000040L
#define P3502_SETUP_RS485HD 0x00000080L
#define P3502_SETUP_RS485FD 0x00000100L
#define P3502_SETUP_CAN 0x00000200L
#define P3502_SETUP_PROFIBUS 0x00000400L
// ---- CAN ID SETUP -------------
#define P3502_SETUP_USE_M3ID 0x00000800L
#define P3502_SETUP_USE_M4ID 0x00001000L
#define P3502_SETUP_USE_CANOPEN 0x00002000L
// ---- MOTOR SETUP --------------
#define P3502_SETUP_INVERT_MOTORDIR 0x00004000L
// ---- INPUT USAGE --------------
#define P3502_SETUP_USE_SW2_AS_ENABLE 0x00008000L
#define P3502_SETUP_USE_SW2_AS_BRAKE 0x00010000L
// ---- OUTPUT USAGE -------------
#define P3502_SETUP_ERROR_TO_OUT0 0x00020000L
// ---- COUNTER SETUP ------------
#define P3502_SETUP_INVERT_COUNTER 0x00040000L
//-----------------------------------------------------------------------
// old PCube Functionnames
//-----------------------------------------------------------------------
#define PCube_getCubeState PCube_getModuleState
#define PCube_getDefCubeVersion PCube_getModuleVersion
#define PCube_getModulesIdMap PCube_getModuleIdMap
#define PCube_getDefBurncount PCube_getDefBurnCount
#define PCube_getDefSerialNo PCube_getModuleSerialNo
#define PCube_getDefPulsesPerTurn PCube_getDefIncPerTurn
#define PCube_getDefDioSetup PCube_getDefDioData
#define PCube_getActPos PCube_getPos
#define PCube_getActVel PCube_getVel
#define PCube_getActPosInc PCube_getPosInc
#define PCube_syncModule PCube_homeModule
#define PCube_moveCurrent PCube_moveCur
#define PCube_moveCurrentInc PCube_moveCurInc
#define PCube_moveCurrentExtended PCube_moveCurExtended
#define DLR_FTSInit PCube_initDLR_FTS
#define DLR_FTSGetData PCube_getDataDLR_FTS
#define PCube_getStatusInternal PCube_getStateInternal
#define PCube_ConfigFromFile PCube_configFromFile
#define PCube_getInitString PCube_getDeviceInitString
#define PCube_getName PCube_getDeviceName
#define PCube_getRevision PCube_getDeviceRevision
#define PCube_setTargetVel PCube_setRampVel
#define PCube_setTargetAcc PCube_setRampAcc
//-----------------------------------------------------------------------
// new PCube Functionnames
//-----------------------------------------------------------------------
#ifdef __cplusplus
extern "C" {
#endif
M5DLL_API int WINAPI PCube_getDllVersion( void );
M5DLL_API int WINAPI PCube_setDllDebug( int iDebug, int iDebugLevel, int iDebugFile );
M5DLL_API int WINAPI PCube_configFromFile( const char* acFileName );
M5DLL_API int WINAPI PCube_openDevice( int* piDeviceId, const char* acInitString );
M5DLL_API int WINAPI PCube_closeDevice( int iDeviceId );
M5DLL_API int WINAPI PCube_closeDevices( void );
M5DLL_API int WINAPI PCube_getDeviceCount( void );
M5DLL_API int WINAPI PCube_getDeviceIdMap( int* aiIdMap );
M5DLL_API const char* WINAPI PCube_getDeviceRevision( int iDeviceId );
M5DLL_API const char* WINAPI PCube_getDeviceInitString( int iDeviceId );
M5DLL_API const char* WINAPI PCube_getDeviceName( int iDeviceId );
M5DLL_API int WINAPI PCube_setDeviceName( int iDeviceId, const char* acDeviceName );
M5DLL_API int WINAPI PCube_setDeviceDebug( int iDeviceId, int iDebug, int iDebugLevel, int iDebugFile );
M5DLL_API int WINAPI PCube_getModuleCount( int iDeviceId );
M5DLL_API int WINAPI PCube_getModuleIdMap( int iDeviceId, int* aiIdMap );
M5DLL_API int WINAPI PCube_getModuleState( int iDeviceId, int iModuleId, unsigned long* puiState );
M5DLL_API int WINAPI PCube_getModuleType( int iDeviceId, int iModuleId, unsigned char* pucValue );
M5DLL_API int WINAPI PCube_getModuleVersion( int iDeviceId, int iModuleId, unsigned short* puiValue );
M5DLL_API int WINAPI PCube_getModuleSerialNo( int iDeviceId, int iModuleId, unsigned long* puiValue );
M5DLL_API int WINAPI PCube_getDefConfig( int iDeviceId, int iModuleId, unsigned long* puiValue );
M5DLL_API int WINAPI PCube_getDefSetup( int iDeviceId, int iModuleId, unsigned long* puiValue ); //OS: available from 35xx
M5DLL_API int WINAPI PCube_getDefBaudRate( int iDeviceId, int iModuleId, unsigned char* pucValue );
M5DLL_API int WINAPI PCube_getDefBurnCount( int iDeviceId, int iModuleId, unsigned char* pucValue );
M5DLL_API int WINAPI PCube_getDefGearRatio( int iDeviceId, int iModuleId, float* pfValue );
M5DLL_API int WINAPI PCube_getDefLinearRatio( int iDeviceId, int iModuleId, float* pfValue );
M5DLL_API int WINAPI PCube_getDefCurRatio( int iDeviceId, int iModuleId, float* pfValue );
M5DLL_API int WINAPI PCube_getDefBrakeTimeOut( int iDeviceId, int iModuleId, unsigned short* puiValue );
M5DLL_API int WINAPI PCube_getDefIncPerTurn( int iDeviceId, int iModuleId, unsigned long* puiValue );
M5DLL_API int WINAPI PCube_getDefDioData( int iDeviceId, int iModuleId, unsigned long* puiValue ); //OS: not available from 35xx
M5DLL_API int WINAPI PCube_getDefA0( int iDeviceId, int iModuleId, short* piValue );
M5DLL_API int WINAPI PCube_getDefC0( int iDeviceId, int iModuleId, short* piValue );
M5DLL_API int WINAPI PCube_getDefDamp( int iDeviceId, int iModuleId, short* piValue );
M5DLL_API int WINAPI PCube_getDefHomeOffset( int iDeviceId, int iModuleId, float* pfValue );
M5DLL_API int WINAPI PCube_getDefHomeVel( int iDeviceId, int iModuleId, float* pfValue );
M5DLL_API int WINAPI PCube_getDefMinPos( int iDeviceId, int iModuleId, float* pfValue );
M5DLL_API int WINAPI PCube_getDefMaxPos( int iDeviceId, int iModuleId, float* pfValue );
M5DLL_API int WINAPI PCube_getDefMaxVel( int iDeviceId, int iModuleId, float* pfValue );
M5DLL_API int WINAPI PCube_getDefMaxAcc( int iDeviceId, int iModuleId, float* pfValue );
M5DLL_API int WINAPI PCube_getDefMaxCur( int iDeviceId, int iModuleId, float* pfValue );
M5DLL_API int WINAPI PCube_getDefMaxDeltaPos( int iDeviceId, int iModuleId, float* pfValue );
M5DLL_API int WINAPI PCube_getConfig( int iDeviceId, int iModuleId, unsigned long* puiValue );
M5DLL_API int WINAPI PCube_getIncRatio( int iDeviceId, int iModuleId, float* pValue );
M5DLL_API int WINAPI PCube_getStateDioPos( int iDeviceId, int iModuleId, unsigned long* puiShortState, unsigned char* pucDio, float* pfPos ); //OS: available from 2518 and 3518
M5DLL_API int WINAPI PCube_getDioData( int iDeviceId, int iModuleId, unsigned long* puiValue );
M5DLL_API int WINAPI PCube_getA0( int iDeviceId, int iModuleId, short* piValue );
M5DLL_API int WINAPI PCube_getC0( int iDeviceId, int iModuleId, short* piValue );
M5DLL_API int WINAPI PCube_getDamp( int iDeviceId, int iModuleId, short* piValue );
M5DLL_API int WINAPI PCube_getHomeOffset( int iDeviceId, int iModuleId, float* pValue );
M5DLL_API int WINAPI PCube_getHomeOffsetInc( int iDeviceId, int iModuleId, long* piValue );
M5DLL_API int WINAPI PCube_getHomeVel( int iDeviceId, int iModuleId, float* pfValue ); //OS: available from 2518 and 3518
M5DLL_API int WINAPI PCube_getHomeVelInc( int iDeviceId, int iModuleId, long* piValue ); //OS: available from 2518 and 3518
M5DLL_API int WINAPI PCube_getPos( int iDeviceId, int iModuleId, float* pfPos );
M5DLL_API int WINAPI PCube_getPosInc( int iDeviceId, int iModuleId, long* piValue );
M5DLL_API int WINAPI PCube_getPosCountInc( int iDeviceId, int iModuleId, long* piValue );
M5DLL_API int WINAPI PCube_getVel( int iDeviceId, int iModuleId, float* pfVel );
M5DLL_API int WINAPI PCube_getVelInc( int iDeviceId, int iModuleId, long* piValue );
M5DLL_API int WINAPI PCube_getIPolVel( int iDeviceId, int iModuleId, float* pValue );
M5DLL_API int WINAPI PCube_getCur( int iDeviceId, int iModuleId, float* pfCur );
M5DLL_API int WINAPI PCube_getCurInc( int iDeviceId, int iModuleId, short* piValue );
M5DLL_API int WINAPI PCube_getMinPos( int iDeviceId, int iModuleId, float* pfValue );
M5DLL_API int WINAPI PCube_getMinPosInc( int iDeviceId, int iModuleId, long* piValue );
M5DLL_API int WINAPI PCube_getMaxPos( int iDeviceId, int iModuleId, float* pfValue );
M5DLL_API int WINAPI PCube_getMaxPosInc( int iDeviceId, int iModuleId, long* piValue );
M5DLL_API int WINAPI PCube_getMaxVel( int iDeviceId, int iModuleId, float* pfValue );
M5DLL_API int WINAPI PCube_getMaxVelInc( int iDeviceId, int iModuleId, long* piValue );
M5DLL_API int WINAPI PCube_getMaxAcc( int iDeviceId, int iModuleId, float* pfValue );
M5DLL_API int WINAPI PCube_getMaxAccInc( int iDeviceId, int iModuleId, long* piValue );
M5DLL_API int WINAPI PCube_getMaxCur( int iDeviceId, int iModuleId, float* pfValue );
M5DLL_API int WINAPI PCube_getDeltaPos( int iDeviceId, int iModuleId, float* pfValue );
M5DLL_API int WINAPI PCube_getDeltaPosInc( int iDeviceId, int iModuleId, long* piValue );
M5DLL_API int WINAPI PCube_getMaxDeltaPos( int iDeviceId, int iModuleId, float* pfValue );
M5DLL_API int WINAPI PCube_getMaxDeltaPosInc( int iDeviceId, int iModuleId, long* piValue );
M5DLL_API int WINAPI PCube_getSavePos( int iDeviceId, int iModuleId, float* pfValue ); //OS: available from 2518 and 3518
M5DLL_API int WINAPI PCube_getSyncTime( int iDeviceId, int iModuleId, short* piValue ); //OS: available from 3602
M5DLL_API int WINAPI PCube_setConfig( int iDeviceId, int iModuleId, unsigned long uiValue );
M5DLL_API int WINAPI PCube_setDioData( int iDeviceId, int iModuleId, unsigned long uiValue );
M5DLL_API int WINAPI PCube_setA0( int iDeviceId, int iModuleId, short iValue );
M5DLL_API int WINAPI PCube_setC0( int iDeviceId, int iModuleId, short iValue );
M5DLL_API int WINAPI PCube_setDamp( int iDeviceId, int iModuleId, short iValue );
M5DLL_API int WINAPI PCube_setHomeOffset( int iDeviceId, int iModuleId, float fValue );
M5DLL_API int WINAPI PCube_setHomeOffsetInc( int iDeviceId, int iModuleId, long iValue );
M5DLL_API int WINAPI PCube_setHomeVel( int iDeviceId, int iModuleId, float fValue ); //OS: available from 2518 and 3518
M5DLL_API int WINAPI PCube_setHomeVelInc( int iDeviceId, int iModuleId, long iValue ); //OS: available from 2518 and 3518
M5DLL_API int WINAPI PCube_setRampVel( int iDeviceId, int iModuleId, float fValue );
M5DLL_API int WINAPI PCube_setRampVelInc( int iDeviceId, int iModuleId, long iValue );
M5DLL_API int WINAPI PCube_setRampAcc( int iDeviceId, int iModuleId, float fValue );
M5DLL_API int WINAPI PCube_setRampAccInc( int iDeviceId, int iModuleId, long iValue );
M5DLL_API int WINAPI PCube_setMinPos( int iDeviceId, int iModuleId, float fValue );
M5DLL_API int WINAPI PCube_setMinPosInc( int iDeviceId, int iModuleId, long iValue );
M5DLL_API int WINAPI PCube_setMaxPos( int iDeviceId, int iModuleId, float fValue );
M5DLL_API int WINAPI PCube_setMaxPosInc( int iDeviceId, int iModuleId, long iValue );
M5DLL_API int WINAPI PCube_setMaxVel( int iDeviceId, int iModuleId, float fValue );
M5DLL_API int WINAPI PCube_setMaxVelInc( int iDeviceId, int iModuleId, long iValue );
M5DLL_API int WINAPI PCube_setMaxAcc( int iDeviceId, int iModuleId, float fValue );
M5DLL_API int WINAPI PCube_setMaxAccInc( int iDeviceId, int iModuleId, long iValue );
M5DLL_API int WINAPI PCube_setMaxCur( int iDeviceId, int iModuleId, float fValue );
M5DLL_API int WINAPI PCube_setMaxDeltaPos( int iDeviceId, int iModuleId, float fValue );
M5DLL_API int WINAPI PCube_setMaxDeltaPosInc( int iDeviceId, int iModuleId, long iValue );
M5DLL_API int WINAPI PCube_setSyncTime( int iDeviceId, int iModuleId, short iValue ); //OS: available from 3602
M5DLL_API int WINAPI PCube_homeModule( int iDeviceId, int iModuleId );
M5DLL_API int WINAPI PCube_haltModule( int iDeviceId, int iModuleId );
M5DLL_API int WINAPI PCube_resetModule( int iDeviceId, int iModuleId );
M5DLL_API int WINAPI PCube_recalcPIDParams( int iDeviceId, int iModuleId );
M5DLL_API int WINAPI PCube_movePos( int iDeviceId, int iModuleId, float fPos );
M5DLL_API int WINAPI PCube_movePosInc( int iDeviceId, int iModuleId, long iPos );
M5DLL_API int WINAPI PCube_movePosExtended( int iDeviceId, int iModuleId, float fPos, unsigned long* puiShortState, unsigned char* pucDio, float* pfPos );
M5DLL_API int WINAPI PCube_moveRamp( int iDeviceId, int iModuleId, float fPos, float fVel, float fAcc );
M5DLL_API int WINAPI PCube_moveRampInc( int iDeviceId, int iModuleId, long iPos, long iVel, long iAcc );
M5DLL_API int WINAPI PCube_moveRampExtended( int iDeviceId, int iModuleId, float fPos, float fVel, float fAcc, unsigned long* puiState, unsigned char* pucDio, float* pfPos );
M5DLL_API int WINAPI PCube_moveVel( int iDeviceId, int iModuleId, float fVel );
M5DLL_API int WINAPI PCube_moveVelInc( int iDeviceId, int iModuleId, long iVel );
M5DLL_API int WINAPI PCube_moveVelExtended( int iDeviceId, int iModuleId, float fCur, unsigned long* puiShortState, unsigned char* pucDio, float* pfPos );
M5DLL_API int WINAPI PCube_moveCur( int iDeviceId, int iModuleId, float fCur );
M5DLL_API int WINAPI PCube_moveCurInc( int iDeviceId, int iModuleId, long iCur );
M5DLL_API int WINAPI PCube_moveCurExtended( int iDeviceId, int iModuleId, float fCur, unsigned long* puiShortState, unsigned char* pucDio, float* pfPos );
M5DLL_API int WINAPI PCube_moveStep( int iDeviceId, int iModuleId, float fPos, unsigned short uiTime );
M5DLL_API int WINAPI PCube_moveStepInc( int iDeviceId, int iModuleId, long iPos, unsigned short uiTime );
M5DLL_API int WINAPI PCube_moveStepExtended( int iDeviceId, int iModuleId, float fPos, unsigned short uiTime, unsigned long* puiShortState, unsigned char* pucDio, float* pfPos );
M5DLL_API int WINAPI PCube_homeAll( int iDeviceId );
M5DLL_API int WINAPI PCube_resetAll( int iDeviceId );
M5DLL_API int WINAPI PCube_haltAll( int iDeviceId );
M5DLL_API int WINAPI PCube_serveWatchdogAll( int iDeviceId );
M5DLL_API int WINAPI PCube_setBaudRateAll( int iDeviceId, unsigned char pucValue );
M5DLL_API int WINAPI PCube_startMotionAll( int iDeviceId );
M5DLL_API int WINAPI PCube_savePosAll( int iDeviceId );
M5DLL_API int WINAPI PCube_waitForHomeEnd( int iDeviceId, int iModuleId, unsigned long uiTime );
M5DLL_API int WINAPI PCube_waitForMotionEnd( int iDeviceId, int iModuleId, unsigned long uiTime );
M5DLL_API int WINAPI PCube_waitForRampEnd( int iDeviceId, int iModuleId, unsigned long uiTime );
M5DLL_API int WINAPI PCube_waitForRampDec( int iDeviceId, int iModuleId, unsigned long uiTime );
M5DLL_API int WINAPI PCube_waitForRampSteady( int iDeviceId, int iModuleId, unsigned long uiTime );
M5DLL_API int WINAPI PCube_waitForHomeEndAll( int iDeviceId, unsigned long uiTime );
M5DLL_API int WINAPI PCube_waitForMotionEndAll( int iDeviceId, unsigned long uiTime );
M5DLL_API int WINAPI PCube_waitForRampEndAll( int iDeviceId, unsigned long uiTime );
M5DLL_API int WINAPI PCube_waitForStartMotionAll( int iDeviceId );
M5DLL_API int WINAPI PCube_xmit8Bytes( int iDeviceId, int iModuleId, void* pBytes );
M5DLL_API int WINAPI PCube_xack8Bytes( int iDeviceId, int iModuleId, void* pBytes );
M5DLL_API int WINAPI PCube_doInternal( int iDeviceId, int iModuleId, void* pBytes );
M5DLL_API int WINAPI PCube_getStateInternal( int iDeviceId, int iModuleId, unsigned long* puiState );
M5DLL_API int WINAPI PCube_updateModuleIdMap( int iDeviceId );
M5DLL_API int WINAPI PCube_initEMS_IO( int iDeviceId, unsigned char ucType, unsigned long uiSerialNo );
M5DLL_API int WINAPI PCube_getDataEMS_DIO( int iDeviceId, int iModuleId, int iChannelId, int* piData );
M5DLL_API int WINAPI PCube_getDataEMS_AIO( int iDeviceId, int iModuleId, int iChannelId, float* pfData );
M5DLL_API int WINAPI PCube_setDataEMS_DIO( int iDeviceId, int iModuleId, int iChannelId, int iData );
M5DLL_API int WINAPI PCube_setDataEMS_AIO( int iDeviceId, int iModuleId, int iChannelId, float fData );
M5DLL_API int WINAPI PCube_initDLR_FTS( int iDeviceId );
M5DLL_API int WINAPI PCube_getDataDLR_FTS( int iDeviceId, float* pfDataFX, float* pfDataFY, float* pfDataFZ, float* pfDataTX, float* pfDataTY, float* pfDataTZ, long* piState );
M5DLL_API int WINAPI PCube_getDataSCHUNK_FTC( int iDeviceId, int iModulId, int iChannelTypeId, float* pfDataFX, float* pfDataFY, float* pfDataFZ, float* pfDataTX, float* pfDataTY, float* pfDataTZ, short* piState );
M5DLL_API int WINAPI PCube_setNullSCHUNK_FTC( int iDeviceId, int iModulId, short* piState );
M5DLL_API int WINAPI PCube_getDataMP55_IO( int iDeviceId, int iModuleId, float* pfData );
M5DLL_API int WINAPI PCube_setTaraMP55_IO( int iDeviceId, int iModuleId, float fData );
#ifdef __cplusplus
}
#endif
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -