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

📄 demo_movedlg.h

📁 850运动控制卡的详细开发资料
💻 H
字号:
// demo_moveDlg.h : header file
//

#if !defined(AFX_DEMO_MOVEDLG_H__EDFCA1A7_124D_11DB_9789_000E1F022A78__INCLUDED_)
#define AFX_DEMO_MOVEDLG_H__EDFCA1A7_124D_11DB_9789_000E1F022A78__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CDemo_moveDlg dialog

class CDemo_moveDlg : public CDialog
{
// Construction
private:
	long	m_nStartV_x;
	long	m_nStartV_y;
	long	m_nStartV_z;
	long	m_nStartV_w;

	long	m_nRatio_x;
	long	m_nRatio_y;
	long	m_nRatio_z;
	long	m_nRatio_w;

	long	m_nDriveSpeed_x;
	long	m_nDriveSpeed_y;
	long	m_nDriveSpeed_z;
	long	m_nDriveSpeed_w;

	long	m_nVelocityAcc_x;
	long	m_nVelocityAcc_y;
	long	m_nVelocityAcc_z;
	long	m_nVelocityAcc_w;

	long	m_nVelocityDec_x;
	long	m_nVelocityDec_y;
	long	m_nVelocityDec_z;
	long	m_nVelocityDec_w;

	float	m_fAccTime_x;
	float	m_fAccTime_y;
	float	m_fAccTime_z;
	float	m_fAccTime_w;
public:
	int cardno;
	CDemo_moveDlg(CWnd* pParent = NULL);	// standard constructor


// Dialog Data
	//{{AFX_DATA(CDemo_moveDlg)
	enum { IDD = IDD_DEMO_MOVE_DIALOG };
	long	m_nLogicPos_w;
	long	m_nLogicPos_x;
	long	m_nLogicPos_y;
	long	m_nLogicPos_z;
	long	m_nCurrentSpeed_w;
	long	m_nCurrentSpeed_x;
	long	m_nCurrentSpeed_y;
	long	m_nCurrentSpeed_z;
	long	m_nCountPulse_w;
	long	m_nCountPulse_x;
	long	m_nCountPulse_y;
	long	m_nCountPulse_z;
	BOOL	m_bEnableDemo_w;
	BOOL	m_bEnableDemo_x;
	BOOL	m_bEnableDemo_y;
	BOOL	m_bEnableDemo_z;
	BOOL	m_bEnableSymmetry_Acc_w;
	BOOL	m_bEnableSymmetry_Acc_x;
	BOOL	m_bEnableSymmetry_Acc_y;
	BOOL	m_bEnableSymmetry_Acc_z;
	BOOL	m_bEnableCurve_Move;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDemo_moveDlg)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	void CheckNum(long &num,long min,long max);
	void CalAccTime();
	void SetAddSpeed();
	HICON m_hIcon;
	BOOL	m_bEqualityVelocity;//是做匀速直线,还是变速直线运动,默认是匀速直线
	int		m_nCard850Num;
	CToolTipCtrl	*m_pToolTip;


	// Generated message map functions
	//{{AFX_MSG(CDemo_moveDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnBtnSetting();
	afx_msg void OnRadioAlternation();
	afx_msg void OnRadioUnchange();
	afx_msg void OnCheckEnableDemoW();
	afx_msg void OnCheckEnableDemoX();
	afx_msg void OnCheckEnableDemoY();
	afx_msg void OnCheckEnableDemoZ();
	afx_msg void OnCheckAccModeW();
	afx_msg void OnCheckAccModeX();
	afx_msg void OnCheckAccModeY();
	afx_msg void OnCheckAccModeZ();
	afx_msg void OnCheckMoveType();
	virtual void OnOK();
	afx_msg void OnSetfocusEditCountPulseW();
	afx_msg void OnSetfocusEditCountPulseX();
	afx_msg void OnSetfocusEditCountPulseY();
	afx_msg void OnSetfocusEditCountPulseZ();
	afx_msg void OnTimer(UINT nIDEvent);
	virtual void OnCancel();
	afx_msg void OnBtnContinue();
	afx_msg void OnChangeEditCountPulseX();
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnButtonOnstop();
	afx_msg void OnButtonClear();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	void Init850Card();
	void SetAllAxisLogicPos();
	void CheckAxisStatus();
	void EnableCheckWnd(BOOL bEnable);
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DEMO_MOVEDLG_H__EDFCA1A7_124D_11DB_9789_000E1F022A78__INCLUDED_)

⌨️ 快捷键说明

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