OpcClient icon indicating copy to clipboard operation
OpcClient copied to clipboard

Java OPC DA connect KingView

Open Wang1517337712 opened this issue 2 years ago • 7 comments

你好;你的测试类中有测试过组态王(KingView)?请问测试成功了吗?

Wang1517337712 avatar Oct 26 '22 00:10 Wang1517337712

你好,Kepware和KingScada系列产品都可以,和软件关系不大,它们都遵循OpcDA协议,所以是通用的

GreatGarlic avatar Oct 26 '22 01:10 GreatGarlic

我想请教一下您是怎么通过OPC DA连接上KingScada系列产品的;我连接KingView(组态王)失败了

Wang1517337712 avatar Oct 26 '22 05:10 Wang1517337712

先用通用opc client测试你opcDA配置好着没,如果client没问题,一般情况下,这个client也没有问题

GreatGarlic avatar Oct 26 '22 05:10 GreatGarlic

OPC Quick Client工具是可以连接上KingView的;使用Java通过OPC DA连接King View就失败;同样的代码连接KEP Server就没问题

Wang1517337712 avatar Oct 26 '22 06:10 Wang1517337712

是连都连不上还是说获取不到对应的变量的值?

GreatGarlic avatar Oct 26 '22 12:10 GreatGarlic

连都连不上;连接报错org.jinterop.dcom.common.JIException: Message not found for errorCode: 0x800702E4

Wang1517337712 avatar Oct 26 '22 12:10 Wang1517337712

@Wang1517337712 https://www.hifreud.com/2014/12/27/opc-4-client-invoke-use-utgard/ https://segmentfault.com/a/1190000010091596 https://blog.csdn.net/qq_33720460/article/details/79082235 https://blog.csdn.net/GeorgeDiDi/article/details/53129008 https://www.hifreud.com/2014/12/27/opc-4-client-invoke-use-utgard/ 建议参考下这几个文档,一般连不上可能是防火墙和dcom的配置问题

GreatGarlic avatar Dec 07 '22 09:12 GreatGarlic