如何将文件从OPC UA客户端传输到服务器 [英] How to transfer Files from OPC UA Client to Server

查看:1014
本文介绍了如何将文件从OPC UA客户端传输到服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用UA-Expert客户端从我在设备上设置的服务器下载和上传例如.txt文件. 有人可以为我提供逐步解决方案或有关如何实现此目标的示例吗?

I want to Download and Upload, for example a .txt file, with the UA-Expert Client to/from a Server which i have set up on a Device. Could someone provide me a Step by Step solution or an example on how to implement this?

我首先遵循open62541网站上的教程. 我试图遵循并理解OPC-UA规范,特别是第5部分附件C.

I first followed the tutorials from the open62541 website. I tried to follow and understand the OPC-UA-Specifications, particularly Part 5 Annex C.

先谢谢您

推荐答案

open62541不支持此功能,这意味着没有预制的插件可为各种平台实现所需的对象.

open62541 doesn't support this out of the box meaning that there is no pre-made plugin which implements the required Objects for the various platforms.

那意味着您自己要做的工作并不多(特别是如果您不需要通用/跨平台的东西). 几个月前,我已经做过一次这样的事.就像工作了两天.它仅限于从服务器下载特定文件.

That said it isn't to much work to do it yourself (especially if you don't need something generic/cross platform). I've done such a one-off a few months ago. It was like 2 days of work. It was limited to downloading specific files from the server.

如果我的记忆很好,那么您要做的就是启用part5/annec c指定的类型的生成(源树中包含应生成的所有类型的.txt或.csv),之后,您需要实例化此类对象(例如File)并将其放置在服务器地址空间中的某个位置.剩下要做的就是实现各种方法(打开,读取,...),并使用这些方法的回调连接对象.

If my memory serves me well all you need to do is to enable the generation of the types specified by part5/annex c (there is a .txt or .csv in the sourcetree containing all the types that should be generated), after that you need to instantiate such an object (File for example) and place it somewhere in your server address space. What is left to do is to implement the various methods (open, read, ...) And to hook up your objects with callbacks to these.

这篇关于如何将文件从OPC UA客户端传输到服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆