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

Tuesday, 18 April 2023

Download and install OPCDAAuto.dll

- 0 komentar

Hello innovators! 

Before we start to build an OPC DA Client application, we need to install the OPC DA library first. This video shows you how to install OPCDAAuto.dll on your Windows system. 

This step is important because the library is not available on NuGet. And the OPC Foundation does not publish this one on the website any more.

So, make sure that you successfully install the library, because in the next tutorial we will use it to create an OPC DA client application.


Here are the steps:

1. download OPCDAAuto.rar from this link: 

https://mega.nz/file/IyJgkZYL#z7qf0ZjR6QKSy7BkQjKtkz_LJT4w4XcGsbYJDcMkyoc

2. extract the file

3. Copy file OPCDAAuto.dll and if your Windows is:

3a. 32-bit then Paste to C:\Windows\System32

else

3b. 64-bit then Paste to C:\Windows\SysWOW64

4. open Command Prompt, and if your Windows is:

4a. 32-bit then type: cd C:\Windows\System32

else

4b. 64-bit then type: cd C:\Windows\SysWOW64

5. type: regsvr32 OPCDAAuto.dll

done!


[Continue reading...]

Friday, 14 April 2023

OPC Agent Expert : OPC DA & UA Client Windows App

- 2 komentar

 Hello innovators!



OPCAgentX is a comprehensive OPC client application designed for Windows that supports both OPC Data Access (DA) and OPC Unified Architecture (UA). With a variety of powerful features such as trend/chart displays, SQL database logging, alarm and notification capabilities, and MQTT publishing, OPCAgentX is a robust solution for real-time data acquisition.


00:00 - intro

00:11 - OPC DA Browse & Monitor

01:54 - Trend / Chart

03:34 - SQL Database logging

06:02 - File logging

08:29 - Alarm

10:51 - Publish to MQTT

12:17 - OPC UA

13:46 - Options Theme


Download OPCAgentX free version here:

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


Thanks and have a nice day!

[Continue reading...]

Wednesday, 5 April 2023

Tutorial : EXCEL to MQTT - VB WinForm

- 0 komentar

 How to publish data from Excel file to MQTT, and write back data from MQTT to Excel file


Part 1 : Create VB project, Read & Write Excel file



Part 2 : MQTT publish and subscribe, Testing



We will use :

+ Miqottt.com as MQTT broker

+ WPS Office spreadsheet to create Excel (xlsx) file

+ Visual Studio 2022

+ MQTT Explorer

[Continue reading...]

Tutorial: MySQL to MQTT - VB.net WinForm

- 0 komentar

 Hello innovators !


This video tutorial shows how to create a VB (Visual Basic) dot Net Windows Form application to read data from MySQL and publish to MQTT. 


These are the steps:

00:00 - intro

00:11 - setup database & login to Miqottt.com

01:34 - create a new VB WinForm project

10:20 - install package: MySQLConnector & M2Mqtt

11:55 - scripting

27:25 - start Runtime & Test


We use Miqottt as a MQTT broker. If you don't know about it, please watch the previous video here: https://youtu.be/G7tTA49Vd7w

Miqottt is FREE. You can register and follow the steps here: miqottt.com

 

Thanks, and have a nice day !

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