OPC和DCOM配置

OPC和DCOM配置

​本文为Java实现OPC通信的一部分

系统:使用win10 64位专业版

PDF文件:

  • 本文,链接:  百度网盘 :https://pan.baidu.com/share/init?surl=445ecO3jvL4C4Kg9mKH2eg  密码: reht,

  • Win7和Win7_SP1网络OPC配置,链接:  百度网盘https://pan.baidu.com/share/init?surl=eh7kwAr14wVgHsWFRuGgwg 密码: dhhc

使用的OPCServer服务器:

  • KEPServer V6,链接:  百度网盘https://pan.baidu.com/share/init?surl=3Bc0gfGxCWo8fddTt-ut-w 密码: ykj2

1.准备

1.1 OPC运行库

KEPServer集成了OPC运行库,所以不需要单独安装

1.2 创建用户并赋予访问权限 :计算机管理

创建用户:

    OPCUser

    123456

添加到DCOM组

2.配置说明

2.1 防火墙关于 DCOM 和 OPC 的规则 :高级安全 Windows Defender 防火墙

开放 DCOM 访问 :DCOM(wmi)启用

135端口:只有一个计算机不需要设置

创建 OPC 程序规则 :允许程序 OPCEnum(就是OPC运行库的程序)

  位置:"C:\Windows\SysWOW64\OpcEnum.exe"

添加 OPC 服务器程序的规则:允许程序 KEPServer的server_runtime

  位置:"C:\Program Files (x 86) \Kepware\KEPServerEX 6\server_runtime.exe"

2.2 配置 DCOM 安全:组件服务

配置 COM 的安全设置:我的电脑--COM属性--安全--访问、** 配置

配置 OPCEnum 的安全设置 :OpcEnum的安全选项

配置 OPCServer 的安全设置 :KEPServer的安全选项

2.3 配置本地安全策略 :

本地安全策略 本地策略--网络访问--匿名 :启用 

2.4.关于Matrikon的DCOM配置

创建用户-->添加到DCOM组

高级安全 Windows Defender 防火墙:创建 OPC 程序规则 :允许程序 OPCEnum

  位置:"C:\Windows\SysWOW64\OpcEnum.exe"

如果还不行,可以将OPCSim加入防火墙

  位置:"C:\Program Files (x86)\Matrikon\OPC\Simulation\OPCSim.exe"

其他不需要了。

3.用户

3.1 创建用户

OPC和DCOM配置

OPC和DCOM配置

OPC和DCOM配置

OPC和DCOM配置3.2添加到DCOM组

OPC和DCOM配置

OPC和DCOM配置

OPC和DCOM配置

OPC和DCOM配置

OPC和DCOM配置

OPC和DCOM配置

OPC和DCOM配置

4.防火墙

4.1 配置防火墙规则:开放 DCOM 访问

打开防火墙

OPC和DCOM配置

找到(DCOM-In)

OPC和DCOM配置

右键属性--已启用

OPC和DCOM配置

 

4.2 创建 OPC 程序规则 :允许程序 OPCEnum

新建入站规则--程序--找到OpcEnum.exe

OPC和DCOM配置

OPC和DCOM配置

OPC和DCOM配置

OPC和DCOM配置

OPC和DCOM配置

OPC和DCOM配置4.3 添加 OPC 服务器程序的规则:允许程序 KEPServer的server_runtime

新建入站规则--程序--找到server_runtime.exe

OPC和DCOM配置

5.组件服务

5.1组件服务:配置 COM 的安全设置

打开组件服务

OPC和DCOM配置

OPC和DCOM配置

OPC和DCOM配置

OPC和DCOM配置

5.2组件服务:OpcEnum的安全选项

OPC和DCOM配置

详细信息

OPC和DCOM配置

OPC和DCOM配置

OPC和DCOM配置

OPC和DCOM配置

OPC和DCOM配置

OPC和DCOM配置

5.3组件服务:KEPServer的安全选项

OPC和DCOM配置

OPC和DCOM配置

OPC和DCOM配置

OPC和DCOM配置

OPC和DCOM配置

6.本地安全策略

6.1本地安全策略 本地策略--网络访问--匿名 :启用

OPC和DCOM配置

OPC和DCOM配置

OPC和DCOM配置

                                                                                                                                           文章来源网络,如有侵权,请联系删除

承接物联网数据采集、平台开发、通讯调试、上位机开发、WEB、Android、IOS、微信小程序、梯形图编程、电路图设计等软件开发,自动化系统集成项目,项目开发、调试。

涉及行业:物联网、工控、MES、智能制造、风电、暖通、水泥、电子、环保、水处理、固废、非标自动化设备等。

联系方式:可通过菜单栏,添加私人微信,具体详聊。