Showing posts with label OPC UA. Show all posts
Showing posts with label OPC UA. Show all posts

Tuesday, 16 May 2023

Tutorial: C# OPC UA Client

- 0 komentar

 Halo teman2 inovator!


Pada tutorial kali ini kita akan belajar bagaimana membuat aplikasi sederhana untuk membaca data dari sebuah OPC UA Server, artinya kita akan membuat sebuah aplikasi OPC UA Client. Kita akan menggunakan Visual Studio 2022 dan bahasa C# dengan tipe aplikasi Desktop Windows Form atau bisa disingkat WinForm. 

Aplikasi OPC UA Server yang akan kita gunakan ada 2 macam, yaitu memakai OPCAgentX dari HadiSCADA (silakan lihat di video2 kami sebelumnya jika teman2 belum tahu) dan untuk mensimulasikan fungsi Write kita akan pakai OPC UA Server Simulator dari Integration Objects. 


OPC UA berbeda dengan OPC DA. OPC UA memliki banyak kelebihan. Kekurangan2 pada OPC DA seperti ribetnya konfigurasi DCOM, sudah tidak perlu dipikirkan lagi. Sebenarnya ada beberapa macam koneksi, namun pada tutorial kali ini kita akan menggunakan koneksi Anonymous artinya kita tidak perlu mendefinisikan user authentication apapun, kita hanya perlu parameter IP atau nama komputer dan nama OPC UA Server nya.

Untuk projek kali ini kita akan menggunakan library OPC UA Helper. Kami tidak terlalu mengerti mengenai legalitas library ini, jadi kami tidak bertanggung jawab apabila ada permasalahan terkait legalitas atau apapaun yang menyangkut hukum. Disini kami menunjukan tutorial untuk tujuan pembelajaran saja.


Untuk membaca data dari sebuah OPC Server, ada 2 metode yang bisa dilakukan. Pertama adalah metode Read dan yang kedua adalah metode Subscription. Metode Read butuh triger manual untuk membaca data bisa dari penekanan tombol atau bisa dikombinasikan dengan objek Timer untuk melakukan Read setiap interval waktu tertentu, metode ini disebut juga metode Polling. Sedangkan metode Subscibe atau Subscription dia tidak perlu triger manual, setiap kali ada perubahan value di sisi server akan dikirim pemberitahuan ke sisi client. 

Baik metode Polling ataupun Subscribe masing2 punya kelebihan dan kekurangan masing2. Silakan teman2 coba2 sendiri dan temukan metode yang paling pas untuk sistem yang teman2 punya.


Berikut adalah timeline dari video tutorial kali ini:

00:00 - intro

00:08 - setup OPCAgentX as OPC UA Server

02:17 - create a new project

13:41 - test Connect

16:05 - test Read value

16:26 - Write value

21:12 - Subscribe



Demikian yang bisa kami sajikan kali ini, semoga bermanfaat. Terima kasih dan Salam inovasi!

[Continue reading...]

Tuesday, 9 May 2023

Tutorial: C# OPC UA Server

- 0 komentar

Welcome to the tutorial on creating an OPC UA Server application using C#!

OPC UA (Open Platform Communications Unified Architecture) is an industry standard for communicating and exchanging data between different devices and systems. In this tutorial, we will learn how to create an OPC UA Server application using C# language.

The OPC UA Server application we will create will be able to receive requests from OPC UA clients, send requested data, and provide additional functions such as creating and deleting nodes. By the end of this tutorial, you will understand how OPC UA Server application works and be able to apply it to different IoT and industrial automation projects.

Let's get started!



00:00 - intro

00:08 - download OPC UA Helper

01:31 - test with OPCAgentX

03:24 - change Server name

05:23 - change Server port

06:17 - create new Folder & Tags

09:15 - change Application name

09:42 - change Form icon

11:19 - change App file icon


Thank you!

[Continue reading...]

Saturday, 6 May 2023

Publish OPC DA as OPC UA Server

- 0 komentar

Welcome to this tutorial on how to use OPCAgentX to publish OPC DA data as an OPC UA server. OPCAgentX is a free Windows application that supports OPC DA and OPC UA clients and offers features such as trend/chart, SQL database log, alarms, notifications, and publishing to MQTT.

With OPCAgentX, you can bridge the gap between OPC DA and OPC UA by publishing OPC DA data as an OPC UA server. This allows you to integrate OPC DA data with modern systems and applications that support OPC UA.

To get started, the first thing you need to do is download and install OPCAgentX from this link:

https://mega.nz/file/5yRlhQwR#3wcTCVOhYa3mWJa9kG9rEcC6HvSak7lCvth4n8dcAOs




We hope you found this tutorial helpful. Thanks for watching!

[Continue reading...]

Friday, 5 May 2023

How to Publish OPC Data to MQTT

- 0 komentar

Welcome to this tutorial on how to use OPCAgentX to publish OPC data to MQTT. MQTT is a popular messaging protocol used in the Internet of Things (IoT) to exchange data between devices and systems.


With OPCAgentX, you can easily read OPC data from OPC UA or OPC DA servers and publish it to an MQTT broker. To get started, the first thing you need to do is download and install OPCAgentX from this link:

https://mega.nz/file/5yRlhQwR#3wcTCVOhYa3mWJa9kG9rEcC6HvSak7lCvth4n8dcAOs




For free MQTT broker please register and login to Miqottt.com and follow the tutorials.

With OPCAgentX, you can easily publish OPC data to MQTT and integrate it with other IoT devices and systems. 

We hope you found this tutorial helpful. Thanks for watching!

[Continue reading...]

Read OPC UA with OPCAgentX

- 0 komentar

Welcome to this tutorial on how to use OPCAgentX application to read data from an OPC UA Server. OPCAgentX is a free Windows application that supports OPC DA and OPC UA clients and offers features such as trend/chart, SQL database log, alarms, notifications, and publishing to MQTT.


To get started, the first thing you need to do is download OPCAgentX from this link: 

https://mega.nz/file/5yRlhQwR#3wcTCVOhYa3mWJa9kG9rEcC6HvSak7lCvth4n8dcAOs


Then follow the video.



With OPCAgentX, you can easily read data from an OPC UA Server and visualize it. 

We hope you found this tutorial helpful. Thanks for watching!

[Continue reading...]
 
Copyright © . HadiSCADA - Posts · Comments
Theme Template by BTDesigner · Powered by Blogger