⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ads1240.h

📁 基于PCI-1240运动控制卡的示例5-PTP
💻 H
📖 第 1 页 / 共 2 页
字号:
									DWORD *lpReturnValue);

FEXPORT LRESULT FTYPE P1240MotWrReg(BYTE byBoard_ID,
									BYTE byWriteAxis,
									WORD wCommandCode,
									DWORD dwWriteValue);

FEXPORT LRESULT FTYPE P1240MotSavePara(BYTE byBoard_ID,
									   BYTE bySaveAxis);

FEXPORT LRESULT FTYPE P1240MotEnableEvent(BYTE byBoard_ID,
										  BYTE bySettingAxis,
										  BYTE byX_AxisEvent,
										  BYTE byY_AxisEvent,
										  BYTE byZ_AxisEvent,
										  BYTE byU_AxisEvent);

FEXPORT LRESULT FTYPE P1240MotCheckEvent(BYTE  byBoard_ID,
										 DWORD *lpRetEventStatus,
										 DWORD dwMillisecond);

FEXPORT LRESULT FTYPE P1240MotRdMutiReg(BYTE  byBoard_ID,
										BYTE  byReadAxis,
										WORD  wCommandCode,
                                        DWORD *lpReturn_XAxisValue,
										DWORD *lpReturn_YAxisValue,
                                        DWORD *lpReturn_ZAxisValue,
										DWORD *lpReturn_UAxisValue);

FEXPORT LRESULT FTYPE P1240MotWrMutiReg(BYTE  byBoard_ID,
										BYTE  byWriteAxis,
										WORD  wCommandCode,
                                        DWORD dwWrite_XAxisValue,
										DWORD dwWrite_YAxisValue,
                                        DWORD dwWrite_ZAxisValue,
										DWORD dwWrite_UAxisValue);

FEXPORT LRESULT FTYPE P1240MotHome(BYTE byBoard_ID,
								   BYTE byHomeAxis);

FEXPORT LRESULT FTYPE P1240MotHomeStatus(BYTE byBoard_ID,
										 BYTE byHomeAxis,
										 DWORD *lpReturnValue);

FEXPORT LRESULT FTYPE P1240MotDI(BYTE byBoard_ID,
								 BYTE byReadDIAxis,
								 BYTE *lpReturnValue);

FEXPORT LRESULT FTYPE P1240MotDO(BYTE byBoard_ID,
								 BYTE byWriteDOAxis,
								 BYTE byWriteValue);

FEXPORT LRESULT FTYPE P1240MotExtMode(BYTE byBoard_ID,
									  BYTE byAssignmentAxis,
									  BYTE byExternalMode,
									  LONG lPulseNum);

FEXPORT LRESULT FTYPE P1240MotReset(BYTE byBoard_ID);

FEXPORT LRESULT FTYPE P1240InitialContiBuf(BYTE byBufID, 
										   DWORD dwAllPointNum);

FEXPORT LRESULT FTYPE P1240FreeContiBuf(BYTE byBufID);

FEXPORT LRESULT FTYPE P1240SetContiData(BYTE				byBufID,
										LPMotMoveBuffer		lpPathData,
										DWORD				dwPointNum);

FEXPORT LRESULT FTYPE P1240StartContiDrive(BYTE		byBoard_ID,
										   BYTE		byMoveAxis,
										   BYTE		byBufID);

FEXPORT LRESULT FTYPE P1240GetCurContiNum(BYTE	byBoard_ID,
										  DWORD *lpReturnValue);

/********************************************************************
/* Comparator Function
/********************************************************************/

FEXPORT LRESULT FTYPE P1240BuildCompTable(BYTE		byBoard_ID,
										   BYTE		byMoveAxis,
										   DWORD	*dwTableArray,
										   DWORD	dwAllPointNum	);

FEXPORT LRESULT FTYPE P1240BuildSpeedTable(BYTE				byBoard_ID,
										   BYTE				byMoveAxis,
										   MotSpeedTable	*SpeedTable,
										   DWORD			dwAllPointNum	);
/********************************************************************
/* Directly access the register Functions
/********************************************************************/

FEXPORT LRESULT FTYPE P1240SetCompPLimit ( 
	                      BYTE byBoard_ID, 
						       BYTE bySetAxis, 
						       DWORD byWriteValue );

FEXPORT LRESULT FTYPE P1240SetCompNLimit ( 
	                      BYTE byBoard_ID, 
						       BYTE bySetAxis, 
					      	 DWORD byWriteValue );

FEXPORT LRESULT FTYPE P1240EnableCompPLimit ( 
	                      BYTE byBoard_ID, 
						       BYTE bySetAxis, 
					      	 USHORT Enable );

FEXPORT LRESULT FTYPE P1240EnableCompNLimit ( 
	                      BYTE byBoard_ID, 
						       BYTE bySetAxis, 
					      	 USHORT Enable );

FEXPORT LRESULT FTYPE P1240SetPLimitLogic ( 
	                      BYTE byBoard_ID, 
						       BYTE bySetAxis, 
					      	 USHORT Value );

FEXPORT LRESULT FTYPE P1240SetNLimitLogic ( 
	                      BYTE byBoard_ID, 
						       BYTE bySetAxis, 
					      	 USHORT Value );

FEXPORT LRESULT FTYPE P1240SetCompareObject ( 
	                      BYTE byBoard_ID, 
						       BYTE bySetAxis, 
					      	 USHORT Value );

FEXPORT LRESULT FTYPE P1240SetPulseMode ( 
	                      BYTE byBoard_ID, 
						       BYTE bySetAxis, 
					      	 USHORT Value );

FEXPORT LRESULT FTYPE P1240SetPulseLogic ( 
	                      BYTE byBoard_ID, 
						       BYTE bySetAxis, 
					      	 USHORT Value );

FEXPORT LRESULT FTYPE P1240SetPulseDirLogic ( 
	                      BYTE byBoard_ID, 
						       BYTE bySetAxis, 
					      	 USHORT Value );

FEXPORT LRESULT FTYPE P1240SetEncoderMultiple ( 
	                      BYTE byBoard_ID, 
						       BYTE bySetAxis, 
					      	 USHORT Value );

FEXPORT LRESULT FTYPE P1240SetServoAlarm ( 
	                      BYTE byBoard_ID, 
						       BYTE bySetAxis, 
								 USHORT Enable,
					      	 USHORT Value );

FEXPORT LRESULT FTYPE P1240SetInPosition ( 
	                      BYTE byBoard_ID, 
						       BYTE bySetAxis, 
								 USHORT Enable,
					      	 USHORT Value );

FEXPORT LRESULT FTYPE P1240SetHomeLogic ( 
	                      BYTE byBoard_ID, 
						       BYTE bySetAxis, 								 
					      	 USHORT Value );

FEXPORT LRESULT FTYPE P1240SetZLogic ( 
	                      BYTE byBoard_ID, 
						       BYTE bySetAxis, 								 
					      	 USHORT Value );

FEXPORT LRESULT FTYPE P1240SetOutput ( 
	                      BYTE byBoard_ID, 
						       BYTE bySetAxis, 								 
					      	 USHORT Value );

FEXPORT LRESULT FTYPE P1240SetOutputType ( 
	                      BYTE byBoard_ID, 
						       BYTE bySetAxis, 								 
					      	 USHORT Enable );

FEXPORT LRESULT FTYPE P1240SetInputLogic ( 
	                      BYTE byBoard_ID, 
						       BYTE bySetAxis,
								 USHORT D4Value,
								 USHORT D6Value );

FEXPORT LRESULT FTYPE P1240GetError (
								 BYTE byBoard_ID, 
						       BYTE byGetAxis,
								 USHORT * lpValue	);

FEXPORT LRESULT FTYPE P1240GetDriverState (
								 BYTE byBoard_ID, 
						       BYTE byGetAxis,
								 USHORT * lpValue	);

FEXPORT LRESULT FTYPE P1240GetMotionState (
								 BYTE byBoard_ID, 
						       BYTE byGetAxis,
								 USHORT *lpValue	);

FEXPORT LRESULT FTYPE P1240GetMotionInput (
								 BYTE byBoard_ID, 
						       BYTE byGetAxis,
								 USHORT *lpValue	);

FEXPORT LRESULT FTYPE P1240GetCompareState (
								 BYTE byBoard_ID, 
						       BYTE byGetAxis,
								 USHORT *lpValue	);

FEXPORT LRESULT FTYPE P1240GetInput (
								 BYTE byBoard_ID, 
						       BYTE byGetAxis,
								 USHORT *lpValue );

// motion functions
FEXPORT LRESULT FTYPE P1240MoveAbs(
						       BYTE byBoard_ID,
								 BYTE byMoveAxis,								 
								 LONG lPulseNumber );

FEXPORT LRESULT FTYPE P1240MoveIns(
						       BYTE byBoard_ID,
								 BYTE byMoveAxis,								 
								 LONG lPulseNumber );

FEXPORT LRESULT FTYPE P1240MoveCircle(
							    BYTE byBoard_ID,
								 BYTE byMoveAxis,
								 BYTE byAxisDirection,								 
								 LONG lCenter1,
								 LONG lCenter2 );

FEXPORT LRESULT FTYPE P1240SetStartSpeed(
								 BYTE byBoard_ID,
								 BYTE bySetAxis,
								 DWORD lSpeedValue );

FEXPORT LRESULT FTYPE P1240SetDrivingSpeed(
								 BYTE byBoard_ID,
								 BYTE bySetAxis,
								 DWORD lSpeedValue );

FEXPORT LRESULT FTYPE P1240SetAcceleration(
								 BYTE byBoard_ID,
								 BYTE bySetAxis,
								 DWORD accel );

FEXPORT LRESULT FTYPE P1240SetDeceleration(
								 BYTE byBoard_ID,
								 BYTE bySetAxis,
								 DWORD decel,
                         LONG lRetrieve );    

FEXPORT LRESULT FTYPE P1240SetJerk(
								 BYTE byBoard_ID,
								 BYTE bySetAxis,
								 DWORD lJerk );

FEXPORT LRESULT FTYPE P1240SetRange(
								 BYTE byBoard_ID,
								 BYTE bySetAxis,
								 DWORD lRange );


FEXPORT LRESULT FTYPE P1240GetSpeed (
								 BYTE byBoard_ID, 
						       BYTE byGetAxis,
								 DWORD *lpValue );

FEXPORT LRESULT FTYPE P1240GetAcel (
								 BYTE byBoard_ID, 
						       BYTE byGetAxis,
								 DWORD *lpValue );

FEXPORT LRESULT FTYPE P1240GetPracticalRegister (
								 BYTE byBoard_ID, 
						       BYTE byGetAxis,
								 DWORD *lpValue );

FEXPORT LRESULT FTYPE P1240GetTheorecticalRegister (
								 BYTE byBoard_ID, 
						       BYTE byGetAxis,
								 DWORD *lpValue );

FEXPORT LRESULT FTYPE P1240SetPracticalRegister(
								 BYTE byBoard_ID,
								 BYTE bySetAxis,
								 LONG lPosition );

FEXPORT LRESULT FTYPE P1240SetTheorecticalRegister(
								 BYTE byBoard_ID,
								 BYTE bySetAxis,
								 LONG lPosition );

/*
// IPO
FEXPORT LRESULT FTYPE P1240MoveLineContinuous(
								 BYTE byBoard_ID,
								 BYTE byMoveAxis,
								 LONG lPosition1,
								 LONG lPosition2,
                         LONG lPosition3 );

FEXPORT LRESULT FTYPE P1240MoveArcContinuous(
								 BYTE byBoard_ID,
								 BYTE byMoveAxis,
								 BYTE byAxisDirection,
								 LONG lCenter1,
								 LONG lCenter2,
								 LONG lEnd1,
								 LONG lEnd2 );
*/

FEXPORT BOOL FTYPE P1240_OutpWord (
                      BYTE byBoard_ID,
                      unsigned short nPort,
                      unsigned short wWord );

FEXPORT BOOL FTYPE P1240_InpWord(
                      BYTE byBoard_ID,
                      unsigned short nPort,
                      unsigned short* ptWord );


#ifdef __cplusplus
}
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -