OPC UA学习

OPC UA学习,第1张

OPC UA学习 OPC UA概念

OPC中国官网
从网上随便一搜就一大堆关于OPC UA协议的概述,不赘述

体会一下

我们搭建一个OPC UA的服务器和客户端,体会一下OPC UA的使用,参考:https://help.aliyun.com/document_detail/111325.html

服务器
# ubuntu16.04 安装依赖库
sed -i 's/archive.ubuntu/mirrors.aliyun/g' /etc/apt/sources.list
sed -i 's/security.ubuntu/mirrors.aliyun/g' /etc/apt/sources.list
apt update && apt install -y python3 python3-pip wget
pip3 install --upgrade pip==9.0.1 -i https://mirrors.aliyun.com/pypi/simple/
pip install opcua==0.98.3 -i https://mirrors.aliyun.com/pypi/simple/

# 下载代码
wget http://iotedge-web.oss-cn-shanghai.aliyuncs.com/public/driverSample/opcua_simulation_server.tar.gz
tar -zxvf opcua_simulation_server.tar.gz 
cd opcua_simulation_server && chmod +x opcua_simulation_server.sh
./opcua_simulation_server.sh
客户端

从https://www.unified-automation.com/downloads/opc-ua-clients.html下载UaExpert的最新版本,安装后运行。
在软件上增加对温度的监控:

代码
  • open62541: an open source implementation of OPC UA - Python & C
  • Free OPC-UA Library - Python & C++
  • gopcua/opcua: Native Go OPC-UA library - Go
  • NodeOPCUA! the OPCUA sdk for node.js - Typescript

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5073384.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-11-16
下一篇 2022-11-16

发表评论

登录后才能评论

评论列表(0条)

保存