Showing posts with label OPC Client. Show all posts
Showing posts with label OPC Client. 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...]

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...]

Thursday, 20 April 2023

Tutorial: OPC DA Client - C# WinForm

- 0 komentar

 Hello innovators!


Welcome to this tutorial on how to create an OPC DA client application. OPC (OLE for Process Control) is a widely-used industrial automation protocol that enables communication between various automation systems. In this tutorial, we will be creating a client application that can connect to an OPC DA server, read and write data.


Before we begin, you will need to have the following installed:

+ A development environment : Visual Studio 2022

+ The OPC DA Automation Wrapper Library : watch this video https://youtu.be/KNxQExjK_CQ

+ The OPC Server/Simulator : watch this video https://youtu.be/a0WNkViknoo

+ other OPC Client application for comparation : watch this video https://youtu.be/yaCpdWu4T-A





These are the steps:

00:00 - intro

00:08 - Create a New Project

08:32 - Add Reference

09:11 - Coding / Scripting

22:42 - Testing

24:33 - Compare with OPCAgentX

25:36 - Extra


That's it! With these steps, you can create a basic OPC DA client application that can read data from an OPC server and write it. From here, you can build on this foundation to create more complex and powerful client applications that can fully leverage the capabilities of the OPC protocol.


Thanks, and have a nice day!

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