GithubHelp home page GithubHelp logo

dgiot_opc_client's Introduction

dgiot_opc_client

数蛙OPC桥接服务

dgiot_opc_client

数蛙OPC桥接服务 实现opc转mqtt功能,支持opc指标扫描和读写

使用指南

opc的准备配置见(使用KepServerEx进行数据模拟)

下例为:准备完成的OPC Quick Client界面

bridge1.png

下面将以上例讲解数蛙OPC桥接流程:

  • 使用数蛙OPC桥接服务

在命令行中执行dgiot_opc.exe

bridge2.png

输入命令:

dgiot_opc opcda bridge pump.iotn2n.com

bridge3.png

登录http://pump.iotn2n.com:18083查看客户端连接情况

bridge4.png

可见上例中,客户端ID为2686e。点击客户端ID查看客户端详情。

bridge5.png

可见,该客户端订阅了主题:dgiot_opc_da

然后在页面左边的菜单栏中点击工具->Websocket,进入配置页面,填入对应的客户端ID后,点击连接。

bridge6.png

在配置界面的消息模块中填写消息的主题、主题后,点击“发送”

bridge7.png

消息内容如下:

{"cmdtype":"read", "opcserver":"Kepware.KEPServerEX.V6", "group":"group", "items":"group.item.中开泵.opc", "noitemid":"000" }
字段名 说明
cmdtype 服务端操作客户端的指令,例:“read”为读取操作,“scan”为扫描操作
opcserver opc服务器名
group 对应的通道名
items 对应的设备标签名

消息成功发送后,页面中的发布消息列表将产生记录,同时客户端收到消息后也会产生响应

bridge8.png

bridge9.png

可以见到使用read命令,客户端显示出opc中的模拟数据:THIS_IS_A_TEST

如果在页面上设置服务器订阅主题:dgiot_opc_da_ack,则客户端可将显示出的数据上传至页面中,可见于“订阅消息列表”

bridge10.png

点击发送后可见订阅消息列表中出现消息:

bridge11.png

dgiot_opc_client's People

Contributors

lsxredrain avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.