Python OpenOPC error item definition doesn't conform to the server's syntax 0xC0040008

时间:2017-04-05 08:25:33

标签: python opc

I'm evaluating OpenOPC to create a client to talk to DeltaV OPC server. I've have a Matrikon OPC Server Simulator running. When I list properties for that simulator server I am able to see the properties like

pranny@Sandbox2 MINGW64 ~
$ opc -p Random.Int4
Random.Int4     0     Item ID (virtual property)     Random.Int4
Random.Int4     1     Item Canonical DataType        VT_I4
Random.Int4     2     Item Value                     14240
Random.Int4     3     Item Quality                   Good
Random.Int4     4     Item Timestamp                 04/05/17 07:48:20
Random.Int4     5     Item Access Rights             Read
Random.Int4     6     Server Scan Rate               100.0000
Random.Int4     7     Item EU Type                   0
Random.Int4     8     Item EUInfo                    None
Random.Int4     101   Item Description               Random value.

But when I connect to the DeltaV OPC Server server, I get error like

pranny@Sandbox2 MINGW64 ~
$ opc -p ANALOG_1/AI1/SIMULATE_IN.CV

properties: The item definition does not conform to the server's syntax. (OLE error 0xc0040008)

I did a little bit of research and found these common causes. However, I verified and none of them worked in my case

  • Custom Tag Structure Matrikon OPC Explorer显示的标记结构显示相同的属性,如Canonical数据类型,值,质量等。
  • Permissions Error即使登录是DeltaV Administrator,它也会报告相同的错误

此时我也在考虑使用类似于来自matrikon的OPC Tunneller,但OpenOPC本质上也在做同样的事情,所以不确定隧道器是否也会有所帮助。

1 个答案:

答案 0 :(得分:0)

尝试在 小写

中同时使用文件名标记名称