目录

采集OPCUAS7

采集OPCUA/S7

需求:采集OPCUA服务数据

采用:KEPServerEX6获取OPCUA服务数据

1.新建甬道3

2.驱动程序选择:OPC UA client

3.设置UA服务器-端点URL:opc.tcp://ip:502

安装教程:https://blog.csdn.net/weixin_41425107/article/details/140861485

采用nodered采集S7协议/OPCUA服务

1.安装nodered

参考:https://www.cnblogs.com/yaopengfei/p/17159691.html

2.安装opcua节点

参考:https://blog.csdn.net/SugarToffee/article/details/138231603

3.安装S7

参考:https://blog.csdn.net/dongfangxinding/article/details/135263743

4.java程序采集S7

参考:https://blog.csdn.net/XS_YOUYOU/article/details/127775881

部署

node-red

node-v18.15.0-x64

双击node-v18.15.0-x64安装

https://i-blog.csdnimg.cn/direct/38868c4d818f43768bf9707755560e56.png

安装PM2

https://i-blog.csdnimg.cn/direct/705d92bab40c45b5b03cde6e4198cb5a.png

使用命令启动nodered

pm2 start c:\iot\node-red\node-red\packages\node_modules\node-red\red.js

使用命令保存当前启动任务,关机重启

pm2 save

node-red访问地址

http://IP:1880

数据采集

https://i-blog.csdnimg.cn/direct/fc7e081939c24bc5b287737b2bb71c70.png

https://i-blog.csdnimg.cn/direct/1080dfaba2d3479e8c778a3c45bd5c47.png

https://i-blog.csdnimg.cn/direct/1f1acfe7433b4658b3385ff294697355.png https://i-blog.csdnimg.cn/direct/06222ae07e2145a6aec8c58adb9fc34d.png

https://i-blog.csdnimg.cn/direct/f6082c20309e43f6828b1abdd96eec1a.png