简体   繁体   English

JeasyOpc问题,如何使用JeasyOpc客户端连接到局域网中的其他计算机?

[英]JeasyOpc Problem, how to connect to other computers in LAN using JeasyOpc client?

I made a program basing on JeasyOpc source code, whan i try to use it on localhost there is no problem it works fine (i can see the opc server and can read signals from it). 我基于JeasyOpc源代码制作了一个程序,当我尝试在localhost上使用它时,它工作正常没有问题(我可以看到opc服务器并可以从中读取信号)。 Than i tried to read signals from a another computer in our Lan - not working. 比起我,我试图从局域网中的另一台计算机读取信号-无法正常工作。 I configured the DCOM as required but nothing helps. 我按要求配置了DCOM,但没有任何帮助。 I even downloaded a trial version of Matrikon Opc tunneler it helps to detect opc servers on Lan with other opc browsers(otherwise they couldn't detect), but not with my JeasyOpc basing program. 我什至下载了Matrikon Opc tunneler的试用版,该版本可通过其他opc浏览器(否则无法检测到)来检测Lan上的opc服务器,但无法使用我的JeasyOpc基础程序。 Please Help! 请帮忙!

Thanks in advance for your answer! 预先感谢您的回答!

It sounds like OpcEnum is not configured correctly. 听起来好像OpcEnum配置不正确。

  1. Make sure OpcEnum isn't listed in Window's Firewall. 确保在Windows的防火墙中未列出OpcEnum。 It doesn't matter how correct your DCOM settings are if the firewall is blocking access. 如果防火墙阻止访问,则DCOM设置的正确性并不重要。

  2. Start with authentication levels set to none, and add security slowly. 首先将身份验证级别设置为无,然后慢慢添加安全性。 在此处输入图片说明

  3. Make sure both computers part of the same workgroup/domain. 确保两台计算机属于同一工作组/域。

  4. Enable file-sharing for the computers. 为计算机启用文件共享。 This has fixed some problems I've experienced with OPC in the past. 这解决了我过去使用OPC遇到的一些问题。 I'm guessing it toggles some DCOM setting somewhere. 我猜想它会在某处切换某些DCOM设置。 Don't ask me exactly why this works. 不要问我确切的原因。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM