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

📄 stdafx.h

📁 用visual c++编写的OPC程序。
💻 H
字号:
// stdafx.h : include file for standard system include files,
//  or project specific include files that are used frequently, but
//      are changed infrequently
//

#if !defined(AFX_STDAFX_H__BA92897B_8E00_11D3_A1E7_004005319944__INCLUDED_)
#define AFX_STDAFX_H__BA92897B_8E00_11D3_A1E7_004005319944__INCLUDED_

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

#define VC_EXTRALEAN		// Exclude rarely-used stuff from Windows headers

#include <afxwin.h>         // MFC core and standard components
#include <afxext.h>         // MFC extensions
#include <afxdisp.h>        // MFC OLE automation classes
#include <afxdtctl.h>		// MFC support for Internet Explorer 4 Common Controls
#include <afxtempl.h>
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h>			// MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT

#include "resource.h"

#include "opc.h"
#include "opcerror.h"

#define DATATIMEFORMAT  // define this to use OPCSTMFORMATDATATIME
                        // otherwise, uses OPCSTMFORMATDATA

extern UINT OPCSTMFORMATDATA;
extern UINT OPCSTMFORMATDATATIME;
extern UINT OPCSTMFORMATWRITECOMPLETE;
//*******************************************************************
// OPC Quality
// Limit Bit Field
#define		QUAL_NOT_LIMITED			0x0000
#define		QUAL_LOW_LIMITED			0x0001 
#define		QUAL_HIGH_LIMITED			0x0002
#define		QUAL_CONSTANT				0x0003

// Substatus code for all
#define		QUAL_NON_SPECIFIC			0x0000

// Substatus code for GOOD
#define		QUAL_LOCAL_OVERRIDE			0x0018

// Substatus code for BAD
#define		QUAL_CONFIGURATION_ERROR	0x0004
#define		QUAL_NOT_CONNECTED			0x0008
#define		QUAL_DEVICE_FAILURE			0x000C
#define		QUAL_SENSOR_FAILURE			0x0010
#define		QUAL_LAST_KNOWN_VALUE		0x0014
#define		QUAL_COMM_FAILURE			   0x0018
#define		QUAL_OUT_OF_SERVICE			0x001C	
	
// Substatus codes for UNCERTAIN
#define		QUAL_LAST_USABLE_VALUE		0x0004
#define		QUAL_SENSOR_NOT_ACCURATE	0x0010
#define		QUAL_ENG_UNITS_EXCEEDED		0x0014
#define		QUAL_SUB_NORMAL				0x0018
#define     QUAL_SUBSTATUS_MASK        0x001C

// Quality codes
#define		QUAL_BAD					   0x0000
#define		QUAL_UNCERTAIN				0x0040
#define		QUAL_GOOD					0x00C0
#define     QUAL_STATUS_MASK        0x00C0

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

#endif // !defined(AFX_STDAFX_H__BA92897B_8E00_11D3_A1E7_004005319944__INCLUDED_)

⌨️ 快捷键说明

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