Where should I start with my OPC-UA client?

家住魔仙堡 提交于 2020-12-21 03:54:44

问题


I need to create something to read data from a PLC and write it to a SQL database. I mostly work with Siemens (and Sigmatek) and I think OPC-UA would be a good solution. My problem is that I don't know what the "right" way would be to start with this. With a PLC you sometimes come in contact with C or C++ (I always forget which one). So I think that would be a good starting point, but a good connection to an SQL-database would be very handy. That's where things gets blurry for me.

In the past I made some code (in C#) to read data from an OPC-UA server (on a Sigmatek PLC). Once I was able to read the data in C# it was easy to visualise it with a windows form application and export the data to an excel-file.

I want to start a "project" to learn how to get my data from the OPC-Server, into an SQL-database, generate a report (and create a GUI).

I'm hoping to get a good starting points, suggestions on which programming language to use and maybe a good read that gives me a better understanding of what I'm working with.

Thanks in advance!


回答1:


If you are just looking to move data from a PLC to a database then take a look at Node-Red. Here is a video that should help you get started. Node-Red can do OPC-UA or just talk direct to the PLC with out the need for OPC in the middle it's your choice. If you need more help just ask!!

https://www.youtube.com/watch?v=LaUmhhMdoyY

Node-Red can also do the GUI.

For the reporting you can use https://grafana.com/.

If you would like a good Database to log to look at https://www.timescale.com/.

Grafana and Timescale work well together!!



来源:https://stackoverflow.com/questions/58209686/where-should-i-start-with-my-opc-ua-client

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!