原链接:OPC Error Code
Errors Code
- Citect OPC Errors-
Protocol | Mask | Message | Comment |
---|---|---|---|
100 | Failed to access variable dbf | ||
101 | Read of data value was bad | No reply from server either server not running,tag status bad or tag not exist on server | |
102 | Write of one or more items failed | ||
103 | Could not resolve the server CLASSID | ||
104 | Could not add one or more items to the Server |
- Standard OPC Server Errors(0xCnnnnnnn)-
Protocol | Mask | Message | Comment |
---|---|---|---|
OPC | C0040001 | The value of the handle is invalid. | |
C0040002 | A duplicate parameter was passed | ||
C0040004 | The server cannot convert the data type between the requested data type and the canonical data type | ||
C0040005 | The requested operation cannot be done on a public group | ||
C0040006 | Item access rights do not allow the operation | Attempt to write to read only data | |
C0040007 | Item definition does not exist on the server | ||
C0040008 | Item definition does not conform to the server’s syntax | ||
C0040009 | The filter string was not valid | ||
C004000A | The item’s access path is not known to the server | ||
C004000B | The value passed to WRITE was out of range | ||
C004000C | Duplicate name not allowed | ||
C004000D | The server does not support the requested data rate, but will use the closest available rate | ||
C004000E | A value passed to WRITE was accepted but the value was clamped | ||
C004000F | The operations cannot be completed because the object still has references that exist | ||
C0040010 | The server’s configuration file has an invalid format | ||
C0040011 | The server could not locate the requested object |
- Typical Windows FACILITY_RPC Errors (0x8001nnnn) -
Protocol | Mask | Message | Comment |
---|---|---|---|
80010006 | The connection terminated | ||
80010007 | The server is not available | ||
8001000F | Received data is invalid | ||
80010012 | The call did not execute | ||
80010100 | System call failed | ||
80010101 | Could not allocate some required resource | ||
80010103 | The requested interface is not registered | ||
80010104 | Could not call the server | ||
80010105 | The server threw an exception | ||
80010108 | The server has disconnected from its clients. | ||
8001011B | Access is denied | ||
8001011C | Remote calls are not allowed for this process. |
- Typical Windows FACILITY_DISPATCH Errors (0x8002nnnn) -
Protocol | Mask | Message | Comment |
---|---|---|---|
80020008 | Bad variable type | ||
8002000A | Out of present range | ||
80020005 | Type mismatch. |
- Typical Windows FACILITY_ITF Errors (0x8004nnnn) -
Protocol | Mask | Message | Comment |
---|---|---|---|
80040154 | Interface not registered | Location settings not set |
- Typical Windows HRESULT OLE Errors (0x8007nnnn) -
Protocol | Mask | Message | Comment |
---|---|---|---|
80070005 | General access denied error | No permission for logged on user. Edit DCOM security settings on the OPC server PC | |
80070725 | ??? | DLL compatibility issue, see microsoft support downloaded mcrepair.exe and said yes to the overwrite files |
Explanation of Windows Error Codes:
(taken from winerror.h)
Values are 32 bit values layed out as follows -
(Hex) 8 7 6 5 4 3 2 1
(Bin)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
Eg. 8 = 1000 (Warning)
C = 1100 (Error)
C - is the Customer code flag
R - is a reserved bit
Facility - is the facility code
Code - is the facility’s status code
The facility codes are (in Hex) -
#define FACILITY_WINDOWS 8
#define FACILITY_STORAGE 3
#define FACILITY_RPC 1
#define FACILITY_SSPI 9
#define FACILITY_WIN32 7
#define FACILITY_CONTROL A
#define FACILITY_NULL 0
#define FACILITY_INTERNET C
#define FACILITY_ITF 4
#define FACILITY_DISPATCH 2
#define FACILITY_CERT B
Typical OPC Errors are covered by FACILITY_ITF.