OPC 错误码
OPC 錯誤碼
//============================================================================== // TITLE: operror.h // // CONTENTS: // // Defines error codes for the Data Access specifications. // // (c) Copyright 1997-2003 The OPC Foundation // ALL RIGHTS RESERVED. // // DISCLAIMER: // This code is provided by the OPC Foundation solely to assist in // understanding and use of the appropriate OPC Specification(s) and may be // used as set forth in the License Grant section of the OPC Specification. // This code is provided as-is and without warranty or support of any sort // and is subject to the Warranty and Liability Disclaimers which appear // in the printed OPC Specification. // // MODIFICATION LOG: // // Date By Notes // ---------- --- ----- // 1997/05/12 ACC Removed Unused messages // Added OPC_S_INUSE, OPC_E_INVALIDCONFIGFILE, OPC_E_NOTFOUND // 1997/05/12 ACC Added OPC_E_INVALID_PID // 2002/08/12 CRT Added new error codes for DA3.0 // 2003/01/02 RSA Updated formatting. Added messages to proxy/stub resource block. // 2003/10/12 RSA Added error codes for complex data. //#ifndef __OPCERROR_H #define __OPCERROR_H#if _MSC_VER >= 1000 #pragma once #endif // _MSC_VER >= 1000// The 'Facility' is set to the standard for COM interfaces or FACILITY_ITF (i.e. 0x004) // The 'Code' is set in the range defined OPC Commmon for DA (i.e. 0x0400 to 0x04FF) // Note that for backward compatibility not all existing codes use this range.// // Values are 32 bit values layed out as follows: // // 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 // 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 // +---+-+-+-----------------------+-------------------------------+ // |Sev|C|R| Facility | Code | // +---+-+-+-----------------------+-------------------------------+ // // where // // Sev - is the severity code // // 00 - Success // 01 - Informational // 10 - Warning // 11 - Error // // C - is the Customer code flag // // R - is a reserved bit // // Facility - is the facility code // // Code - is the facility's status code // // // Define the facility codes //// // Define the severity codes //// // MessageId: OPC_E_INVALIDHANDLE // // MessageText: // // The value of the handle is invalid. // 句柄的值無效。 #define OPC_E_INVALIDHANDLE ((HRESULT)0xC0040001L)// // MessageId: OPC_E_BADTYPE // // MessageText: // // The server cannot convert the data between the specified format and/or requested data type and the canonical data type. // 服務器無法在指定格式和/或請求的數據類型與規范數據類型之間轉換數據。 #define OPC_E_BADTYPE ((HRESULT)0xC0040004L)// // MessageId: OPC_E_PUBLIC // // MessageText: // // The requested operation cannot be done on a public group. // 請求的操作不能在公共組上執行。 #define OPC_E_PUBLIC ((HRESULT)0xC0040005L)// // MessageId: OPC_E_BADRIGHTS // // MessageText: // // The item's access rights do not allow the operation. // item的訪問權限不允許操作。 #define OPC_E_BADRIGHTS ((HRESULT)0xC0040006L)// // MessageId: OPC_E_UNKNOWNITEMID // // MessageText: // // The item ID is not defined in the server address space or no longer exists in the server address space. // ItemID沒有在服務器地址空間中定義,或者不再存在于服務器地址空間中。(查看OPCITEMDEF.szItemID是否正確) #define OPC_E_UNKNOWNITEMID ((HRESULT)0xC0040007L)// // MessageId: OPC_E_INVALIDITEMID // // MessageText: // // The item ID does not conform to the server's syntax. // Item ID不符合服務器的語法。(查看OPCITEMDEF.szItemID是否正確) #define OPC_E_INVALIDITEMID ((HRESULT)0xC0040008L)// // MessageId: OPC_E_INVALIDFILTER // // MessageText: // // The filter string was not valid. // 篩選器字符串無效。 #define OPC_E_INVALIDFILTER ((HRESULT)0xC0040009L)// // MessageId: OPC_E_UNKNOWNPATH // // MessageText: // // The item's access path is not known to the server. // 服務器不知道該item的訪問路徑。 #define OPC_E_UNKNOWNPATH ((HRESULT)0xC004000AL)// // MessageId: OPC_E_RANGE // // MessageText: // // The value was out of range. // 這個值超出了范圍 #define OPC_E_RANGE ((HRESULT)0xC004000BL)// // MessageId: OPC_E_DUPLICATENAME // // MessageText: // // Duplicate name not allowed. // 不允許重復名稱。 #define OPC_E_DUPLICATENAME ((HRESULT)0xC004000CL)// // MessageId: OPC_S_UNSUPPORTEDRATE // // MessageText: // // The server does not support the requested data rate but will use the closest available rate. // 服務器不支持請求的數據速率,但將使用最接近的可用速率。(可依據返回使用速率設置請求速率) #define OPC_S_UNSUPPORTEDRATE ((HRESULT)0x0004000DL)// // MessageId: OPC_S_CLAMP // // MessageText: // // A value passed to write was accepted but the output was clamped. // 接受了傳遞給write的值,但是限制了輸出。 #define OPC_S_CLAMP ((HRESULT)0x0004000EL)// // MessageId: OPC_S_INUSE // // MessageText: // // The operation cannot be performed because the object is bering referenced. // 由于對象是白引用的,所以無法執行該操作。 #define OPC_S_INUSE ((HRESULT)0x0004000FL)// // MessageId: OPC_E_INVALIDCONFIGFILE // // MessageText: // // The server's configuration file is an invalid format. // 服務器的配置文件是無效格式。 #define OPC_E_INVALIDCONFIGFILE ((HRESULT)0xC0040010L)// // MessageId: OPC_E_NOTFOUND // // MessageText: // // The requested object (e.g. a public group) was not found. // 未找到所請求的對象(例如公共組)。 #define OPC_E_NOTFOUND ((HRESULT)0xC0040011L)// // MessageId: OPC_E_INVALID_PID // // MessageText: // // The specified property ID is not valid for the item. // 指定的屬性ID對項無效。 #define OPC_E_INVALID_PID ((HRESULT)0xC0040203L)// // MessageId: OPC_E_DEADBANDNOTSET // // MessageText: // // The item deadband has not been set for this item. // 此項目的死區尚未設置。 #define OPC_E_DEADBANDNOTSET ((HRESULT)0xC0040400L)// // MessageId: OPC_E_DEADBANDNOTSUPPORTED // // MessageText: // // The item does not support deadband. // 此項目不支持死區。 #define OPC_E_DEADBANDNOTSUPPORTED ((HRESULT)0xC0040401L)// // MessageId: OPC_E_NOBUFFERING // // MessageText: // // The server does not support buffering of data items that are collected at a faster rate than the group update rate. // 服務器不支持緩沖以比組更新速度更快的速度收集的數據項。 #define OPC_E_NOBUFFERING ((HRESULT)0xC0040402L)// // MessageId: OPC_E_INVALIDCONTINUATIONPOINT // // MessageText: // // The continuation point is not valid. // 延續點無效。 #define OPC_E_INVALIDCONTINUATIONPOINT ((HRESULT)0xC0040403L)// // MessageId: OPC_S_DATAQUEUEOVERFLOW // // MessageText: // // Not every detected change has been returned since the server's buffer reached its limit and had to purge out the oldest data. // 并不是所有檢測到的更改都返回了,因為服務器的緩沖區已經達到極限,必須清除最舊的數據 #define OPC_S_DATAQUEUEOVERFLOW ((HRESULT)0x00040404L)// // MessageId: OPC_E_RATENOTSET // // MessageText: // // There is no sampling rate set for the specified item. // 沒有為指定的項目設置采樣率。 #define OPC_E_RATENOTSET ((HRESULT)0xC0040405L)// // MessageId: OPC_E_NOTSUPPORTED // // MessageText: // // The server does not support writing of quality and/or timestamp. // 服務器不支持寫入質量和/或時間戳。 #define OPC_E_NOTSUPPORTED ((HRESULT)0xC0040406L)// // MessageId: OPCCPX_E_TYPE_CHANGED // // MessageText: // // The dictionary and/or type description for the item has changed. // 項目的字典和/或類型描述已更改。 #define OPCCPX_E_TYPE_CHANGED ((HRESULT)0xC0040407L)// // MessageId: OPCCPX_E_FILTER_DUPLICATE // // MessageText: // // A data filter item with the specified name already exists. // 具有指定名稱的數據篩選項已經存在。 #define OPCCPX_E_FILTER_DUPLICATE ((HRESULT)0xC0040408L)// // MessageId: OPCCPX_E_FILTER_INVALID // // MessageText: // // The data filter value does not conform to the server's syntax. // 數據篩選器值不符合服務器的語法。 #define OPCCPX_E_FILTER_INVALID ((HRESULT)0xC0040409L)// // MessageId: OPCCPX_E_FILTER_ERROR // // MessageText: // // An error occurred when the filter value was applied to the source data. // 當過濾器值應用于源數據時發生錯誤。 #define OPCCPX_E_FILTER_ERROR ((HRESULT)0xC004040AL)// // MessageId: OPCCPX_S_FILTER_NO_DATA // // MessageText: // // The item value is empty because the data filter has excluded all fields. // 項值為空,因為數據篩選器排除了所有字段。 #define OPCCPX_S_FILTER_NO_DATA ((HRESULT)0x0004040BL)#endif // ifndef __OPCERROR_H總結
- 上一篇: 大厂技术实现 | 腾讯信息流推荐排序中的
- 下一篇: 平面几何趣题集萃