SDC C-Project CF Review 프로그램
LYW
2022-06-10 662be16e087b11027318938dc840445b5dbacc27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#pragma once
 
#include "afxwin.h"
#include "CHCommonControls/GridCtrl.h"
 
#define MOTOR_COMMON_ADDR_INFO_GRID_COL_COUNT        13
#define MOTOR_GANTRY_ADDR_INFO_GRID_COL_COUNT        20
#define MOTOR_AXIS_ADDR_INFO_GRID_COL_COUNT            15
#define MOTOR_OFFSET_AND_DIRECTION_GRID_COL_COUNT    4
#define SCHEDULER_MOTOR_PARAM_INFO_GRID_ROW_COUNT    7 
#define SCHEDULER_MOTOR_PARAM_INFO_GRID_COL_COUNT    2
 
 
// CDlgMotor ´ëÈ­ »óÀÚÀÔ´Ï´Ù.
 
class CDlgMotor : public CDialog
{
    DECLARE_DYNAMIC(CDlgMotor)
 
public:
    CDlgMotor(CWnd* pParent = NULL);   // Ç¥ÁØ »ý¼ºÀÚÀÔ´Ï´Ù.
    virtual ~CDlgMotor();
 
public:
    void InitMotorCommonAddrInfoGridContorl();
    void FillMotorCommonAddrInfo();
    void InitMotorGantryAddrInfoGridContorl();
    void FillMotorGantryAddrInfo();
    void InitMotorAxisAddrInfoGridContorl();
    void FillMotorAxisAddrInfo();
    void InitMotorOffestAndDirectionGridContorl();
    void FillMotorOffsetAndDirection();
    
    void InitSchedulerMotorParamInfoGridControl();
    void FillSchedulerMotorParamInfo();
 
    void ResetSchedulerMotorParamInfoGrid();
 
// ´ëÈ­ »óÀÚ µ¥ÀÌÅÍÀÔ´Ï´Ù.
    enum { IDD = IDD_DIALOG_SYS_SETTING_MOTOR };
 
protected:
    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV Áö¿øÀÔ´Ï´Ù.
 
    DECLARE_MESSAGE_MAP()
public:
    virtual BOOL OnInitDialog();
    virtual BOOL PreTranslateMessage(MSG* pMsg);
    afx_msg void OnBnClickedButtonSysMotorReset();
    afx_msg void OnBnClickedButtonSysMotorApply();
    afx_msg void OnEnChangeEditSysMotorGantryCount();
    afx_msg void OnEnChangeEditSysMotorAxisCount();
    afx_msg void OnCheckedUseTheaMotor();
    afx_msg void OnCheckedUseCheckMotorOffset();
 
    CComboBox m_ctrlComboMotorOriginDirection;
    CComboBox m_ctrlComboMotorType;    
    CGridCtrl m_ctrlGridSchedulerMotorParamInfo;
 
    CGridCtrl m_ctrlGridMotorCommonAddr;
    CGridCtrl m_ctrlGridMotorGantryAddr;
    CGridCtrl m_ctrlGridMotorAxisAddr;
    CGridCtrl m_ctrlGridMotorOffsetAndDirection;
    CEdit      m_ctrlThetaMotorAddr;
 
    int m_nGantryCount;
    int m_nAxisCount;
    int m_nAxisMoveCount;
    
    int m_nAFMDelayTime;
    int m_nSnapDelayTime;
    int m_nWSIDelayTime;
    int m_nThetaMotorAddr;
 
    CString m_strMotorPort;
 
    BOOL m_bUseThetaMotor;
    BOOL m_bUseCheckMotorOffset;
    double m_dStartPosX;
    double m_dStartPosY;
};