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

📄 plc_demoview.h

📁 开发虚拟的被控对象及虚拟的PLC,模似PLC的工作过程进行实验。用户可根据具体的实验,确定其输入和输出的控制条件,用虚拟的连线和虚拟的PLC连接,用户利用梯形图的编程方式编写PLC程序控制被控对象的动
💻 H
字号:
// PLC_DEMOView.h : interface of the CPLC_DEMOView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_PLC_DEMOVIEW_H__08245424_D967_4265_B662_31E34E12D198__INCLUDED_)
#define AFX_PLC_DEMOVIEW_H__08245424_D967_4265_B662_31E34E12D198__INCLUDED_

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


class CPLC_DEMOView : public CFormView
{
protected: // create from serialization only
	CPLC_DEMOView();
	DECLARE_DYNCREATE(CPLC_DEMOView)

public:
	//{{AFX_DATA(CPLC_DEMOView)
	enum{ IDD = IDD_PLC_DEMO_FORM };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

// Attributes
public:
	CPLC_DEMODoc* GetDocument();
	CWinThread * m_pxian1,* m_pxian2;

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPLC_DEMOView)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnInitialUpdate(); // called first time after construct
	virtual void OnDraw(CDC* pDC);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CPLC_DEMOView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CPLC_DEMOView)
	afx_msg void OnInput1();
	afx_msg void OnSwitch1();
	afx_msg void OnInput2();
	afx_msg void OnInput3();
	afx_msg void OnInput4();
	afx_msg void OnInput5();
	afx_msg void OnInput6();
	afx_msg void OnInput7();
	afx_msg void OnSwitch2();
	afx_msg void OnSwitch3();
	afx_msg void OnSwitch4();
	afx_msg void OnSwitch5();
	afx_msg void OnSwitch6();
	afx_msg void OnSwitch7();
	afx_msg void OnOutput1();
	afx_msg void OnOutcontrol1();
	afx_msg void OnOutput2();
	afx_msg void OnOutput3();
	afx_msg void OnOutput4();
	afx_msg void OnOutput5();
	afx_msg void OnOutput6();
	afx_msg void OnOutput7();
	afx_msg void OnOutput8();
	afx_msg void OnOutput9();
	afx_msg void OnOutcontrol2();
	afx_msg void OnOutcontrol3();
	afx_msg void OnOutcontrol4();
	afx_msg void OnOutcontrol5();
	afx_msg void OnOutcontrol6();
	afx_msg void OnOutcontrol7();
	afx_msg void OnOutcontrol8();
	afx_msg void OnOutcontrol9();
	afx_msg void OnTimer(UINT nIDEvent);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in PLC_DEMOView.cpp
inline CPLC_DEMODoc* CPLC_DEMOView::GetDocument()
   { return (CPLC_DEMODoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_PLC_DEMOVIEW_H__08245424_D967_4265_B662_31E34E12D198__INCLUDED_)

⌨️ 快捷键说明

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