栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > C/C++/C#

OPC UA学习

C/C++/C# 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

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的最新版本,安装后运行。
在软件上增加对温度的监控:

概念

对照前面搭建的实例,参考文章:

  1. OPC-UA和IEC 62541协议 - stardsd - 博客园
  2. 学习open62541 — [20] 标准Reference类型_whahu1989的专栏-CSDN博客

学习对象、地址空间、引用等概念。

开发 开源代码
  • 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
  • OPC Foundation - .Net & Java
  • intel/Converter-for-OPCUA - Python
  • Systerel / S2OPC · GitLab - C
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/429651.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号