OPC Error Code

4 篇文章 0 订阅
2 篇文章 0 订阅

原链接:OPC Error Code

Errors Code

  1. Citect OPC Errors-
ProtocolMaskMessageComment
100Failed to access variable dbf
101Read of data value was badNo reply from server either server not running,tag status bad or tag not exist on server
102Write of one or more items failed
103Could not resolve the server CLASSID
104Could not add one or more items to the Server
  1. Standard OPC Server Errors(0xCnnnnnnn)-
ProtocolMaskMessageComment
OPCC0040001The value of the handle is invalid.
C0040002A duplicate parameter was passed
C0040004The server cannot convert the data type between the requested data type and the canonical data type
C0040005The requested operation cannot be done on a public group
C0040006Item access rights do not allow the operationAttempt to write to read only data
C0040007Item definition does not exist on the server
C0040008Item definition does not conform to the server’s syntax
C0040009The filter string was not valid
C004000AThe item’s access path is not known to the server
C004000BThe value passed to WRITE was out of range
C004000CDuplicate name not allowed
C004000DThe server does not support the requested data rate, but will use the closest available rate
C004000EA value passed to WRITE was accepted but the value was clamped
C004000FThe operations cannot be completed because the object still has references that exist
C0040010The server’s configuration file has an invalid format
C0040011The server could not locate the requested object
  1. Typical Windows FACILITY_RPC Errors (0x8001nnnn) -
ProtocolMaskMessageComment
80010006The connection terminated
80010007The server is not available
8001000FReceived data is invalid
80010012The call did not execute
80010100System call failed
80010101Could not allocate some required resource
80010103The requested interface is not registered
80010104Could not call the server
80010105The server threw an exception
80010108The server has disconnected from its clients.
8001011BAccess is denied
8001011CRemote calls are not allowed for this process.
  1. Typical Windows FACILITY_DISPATCH Errors (0x8002nnnn) -
ProtocolMaskMessageComment
80020008Bad variable type
8002000AOut of present range
80020005Type mismatch.
  1. Typical Windows FACILITY_ITF Errors (0x8004nnnn) -
ProtocolMaskMessageComment
80040154Interface not registeredLocation settings not set
  1. Typical Windows HRESULT OLE Errors (0x8007nnnn) -
ProtocolMaskMessageComment
80070005General access denied errorNo 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.

  • 3
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值