Showing posts with label C#. Show all posts
Showing posts with label C#. Show all posts

Tuesday, 30 May 2023

Tutorial: WPF SCADA - Day 5 (finale - Graphic Dashboard)

- 0 komentar

 Assalaamu'alaikum.. 


Teman2 yang saya hormati, tibalah kita pada akhir seri DIY membuat aplikasi SCADA: WPF SCADA. 

Pada video kali ini kita akan belajar bagaimana membuat Dashboard SCADA. Kita akan menggunakan library Livecharts untuk membuat objek Gauge, Bar Chart dan Line Chart. 



AFAIK, ada 2 tipe Graphic pada aplikasi/software SCADA: 

1. Fixed Graphic/Dashboard

2. Dynamic Graphic/Dashboard


Yang tipe 1 itu maksudnya adalah tampilan SCADA nya tidak bisa kita rubah-rubah. Semua objek yang ditampilkan pada halaman Graphic/Dashboard dibuat di-script atau dibuat saat development, dan ketika aplikasi sudah jadi maka tampilan tersebut tidak bisa dirubah lagi, baik Teksnya, Warnanya, atau Posisinya. Biasanya aplikasi SCADA dengan tipe ini dibuat khusus/custom untuk client/user tertentu.


Tipe yang ke-2 itu maksudnya adalah tampilan SCADA nya bisa kita buat sendiri, ada fitur Graphic Designer untuk membuat tampilan dengan cara menambahkan objek-objek yang kita inginkan. Ini yang biasa ada pada software2 SCADA branded, termasuk SCALARE* 


*SCALARE ini walaupun termasuk low-cost SCADA software tapi sudah ada fitur Graphic Designer. Silakan download SCALARE FREE Version disini: hadiscada.com/scalare


Demikian materi yang bisa kami bagi. Kami memohon maaf karena banyak kekurangannya. Semoga ada yang bisa teman2 manfaatkan dari sini. 

We are sorry to all my friends who can not understand Bahasa Indonesia, because from the beginning until this end, I use Bahasa to explain the lessons.   


Terima kasih. Sampai jumpa pada video2 yang lainnya. 

WalhamduliLLAAH.. wassalaam..

[Continue reading...]

Tutorial: WPF SCADA - Day 4 (Modbus Connect, Read & Write)

- 0 komentar

 Asslaamu'alaikum.. 


Pada tutorial kali ini kita akan instal library EasyModbus untuk konek, baca dan tulis ke Modbus TCP Server. Kita akan menggunakan aplikasi ModbusHD sebagai Modbus TCP Server simulator. 



Selamat menyaksikan.

Terima kasih dan Salam.

[Continue reading...]

Friday, 26 May 2023

Tutorial: WPF SCADA - Day 3 (Theme & Icon)

- 0 komentar

 Assalaamu'alaikum..


Jumpa lagi dengan HadiSCADA, mudah-mudahan teman-teman tidak bosan, karena pelajaran kita masih banyak.. hehe..


Melanjutkan pembelajaran kita sebelumnya, pada video kali ini kita akan menambahkan Theme dan Icon pada projek WPF SCADA kita dengan menggunakan library dari MaterialDesign.


Dengan library tersebut kita bisa merubah warna-warna objek dengan mudah. Kita bisa juga menambahkan icon pada beberapa objek yang diperlukan seperti pada objek Button dan Menu. Hal tersebut bisa membuat aplikasi kita menjadi tampak lebih profesional dan menarik.


Silakan disimak dan diikuti tutorialnya, jika ada masalah silakan tulis di komentar atau hubungi kami via WA. Semoga bermanfaat.


Terima kasih dan Salam..

[Continue reading...]

Wednesday, 24 May 2023

Tutorial: WPF SCADA - Day 2 (Menu File Save Open)

- 0 komentar

 Assalaamu'alaikum...


Melanjutkan pembelajaran sebelumnya, kali ini kita akan memodifikasi projek WPF SCADA kita dengan menambahkan Menu, yang berisi menu File diantaranya untuk Save dan Open ke/dari file Text, juga menu Recents untuk menyimpan list file yang sudah dibuka. 


Untuk yang belum melihat materi sebelumnya (Day 1) silakan buka link berikut : 

Part 1 : https://youtu.be/GVif1Z4Eo0o

Part 2 : https://youtu.be/BjtyPY1htB8


Beberapa point yang akan kita pelajari di video kali ini adalah:

1. Membuat Menu, Menu Item dan Separator menu

2. Membuat script untuk setiap menu

3. Menampilkan Save File Dialog dan Open File Dialog

4. Menulis file Text dengan Stream Writer

5. Membaca file Text dengan Stream Reader

6. Menyimpan data pada Properties Settings aplikasi

7. Menghapus dan menambahkan Menu Item dengan script


Silakan disimak, dipelajari dan diikuti. Sebaiknya teman-teman langsung praktek di komputer masing-masing. 




Demikian dari kami. Sampai jumpa di pelajaran berikutnya, insya Allah. 


Salam.

[Continue reading...]

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

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

Friday, 24 March 2023

Tutorial: iOS & Android MQTT Client App - Xamarin Forms Visual Studio Mac

- 0 komentar

 Hello innovators!


This video tutorial is for you who want to create Mobile Application as MQTT client for iOS and Android using Xamarin Forms project with Visual Studio on Mac.

From this app, you can Subscribe to get/read data and Publish to set/write data to some MQTT topics on the MQTT broker.


These are the steps:

00:00 - intro

00:11 - login to Miqottt.com and get main Topic

00:50 - test with MQTT Explorer

01:34 - create a new Xamarin Forms project

04:46 - edit MainPage layout

11:01 - install M2Mqtt package

11:49 - scripting

18:30 - start Runtime iOS emulator

21:32 - start Runtime Android emulator



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

Wednesday, 22 March 2023

Tutorial: C# MQTT Client WinForm

- 0 komentar

 Hello innovators !



This video tutorial is for you who want to create a C# Windows Form application as a MQTT client. 

From this app, you can Subscribe to get/read data and Publish to set/write data to some MQTT topics on the MQTT broker.


These are the steps:

00:00 - intro

00:11 - login to Miqottt.com and get Topic

00:39 - create a new C# WinForm project

04:21 - add M2Mqtt library

04:49 - scripting

13:40 - test Runtime with MQTT Explorer



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

Friday, 10 March 2023

Tutorial: C# S7-PLC Client

- 0 komentar

 This tutorial shows you how to create an application that can read and write to a Siemens S7-PLC.

We use Visual Studio 2022, with C# and WinForm .Net Framework type project.




These are the steps:

00:00 - Create C# WinForm Project

07:42 - Scripting

13:57 - Test with S7-PLC DB Simulator

 

The S7DBSim application can be downloaded from this link: 

https://youtu.be/ZGsIwFcajUE

  

Thank you, and have a nice day!

[Continue reading...]

Sunday, 26 February 2023

Tutorial: Modbus Chart - C# WPF

- 0 komentar

Hi innovators! 


This tutorial shows you the easy way to create an application that displays Modbus data on a Chart object.

We use Visual Studio 2022, with C# and WPF .Net Framework type project.



These are the steps:

00:00 - Create a C# WPF Project

00:42 - Install EasyModbus & LiveCharts package

01:28 - Create Chart objects

08:28 - Coding / Scripting

14:37 - Test with Modbus TCP Server Simulator (ModbusHD)

18:30 - Change some parameters

 

The Modbus simulator (ModbusHD) can be downloaded from this link:

https://hadiscada.blogspot.com/2021/05/modbushd-update-version-210.html


Thank you, and have a nice day!

[Continue reading...]

Friday, 24 February 2023

Tutorial: Modbus Gauge - C# WPF

- 0 komentar

 Hi innovators! 


This video tutorial shows you the easy way to create an application that displays Modbus data on a Gauge object.

We use Visual Studio 2022, with C# and WPF .Net Framework type project.


These are the steps:

00:00 - Create a C# WPF Project

01:37 - Install the library of EasyModbus & LiveCharts

02:39 - Create Gauge objects

10:05 - Set Name of Gauge objects

11:07 - Coding / Scripting

15:09 - Test with Modbus TCP Server Simulator (ModbusHD)

 

Thank you, and have a nice day!

[Continue reading...]

Sunday, 19 February 2023

Tutorial: Modbus RTU Master Multi Slave - C# & VB.net

- 0 komentar

 This video tutorial shows you the easy way to create a Modbus RTU/Serial Master application (using C# and VB.net on Visual Studio 2022) and read some Holding Registers from multiple Modbus RTU Slaves. 



The Modbus RTU/Serial Slave devices are simulated by ModbusHD application, you can get the app from this link:

https://hadiscada.blogspot.com/2021/05/modbushd-update-version-210.html

 

and the COM ports are emulated by Virtual Serial Port Emulator (VSPE), you can download from here:

http://www.eterlogic.com/Products.VSPE.html



Thanks, and have a nice day!

[Continue reading...]

Sunday, 12 February 2023

Tutorial Modbus TCP Server C# Desktop App

- 1 komentar

Hi inovators! 

This video shows a simple and easy tutorial for creating a Modbus TCP Server application using C# on Visual Studio 2022.

These are the steps:

+ Create a new WinForm .Net Framework project

+ Install Easymodbus package from NuGet.

+ Add some objects.

+ Write the scripts/coding.

+ Test with Modbus TCP Client (ModbusHD).

 

Download ModbusHD from here: 

https://hadiscada.blogspot.com/2021/05/modbushd-update-version-210.html

 

Thanks, and have a nice day!

[Continue reading...]

Tuesday, 7 February 2023

Tutorial Modbus TCP Client Xamarin Mobile App

- 0 komentar

This video tutorial shows you how to create a Mobus TCP Client app on mobile (Android) using Visual Studio with a Xamarin Forms C# project.

For Modbus TCP Server Simulator, please download ModbusHD application from here: https://drive.google.com/file/d/1qlb29iHVV4s2ykGiPQvSF1xa7I4dhFTe/view


[Continue reading...]

Monday, 31 May 2021

ASP.net Web Application - Modbus Monitor

- 0 komentar
Pada video ini kita akan membuat aplikasi web sederhana dengan ASP.net C# yang akan membaca data register dari Modbus TCP Server dan menampilkannya di halaman web.

[Continue reading...]

Monday, 26 April 2021

Sharing Sourcecode : Modbus QW to Double - C#

- 0 komentar

Read QW (Quad Word / 4 Register) of Modbus and Convert to Double.

Download the sourcecode here:

[Continue reading...]

Wednesday, 14 April 2021

Sharing Sourcecode : Modbus RTU Master - C#

- 0 komentar
Pada kesempatan kali ini kami membahas sourcecode porjek sederhana aplikasi Modbus RTU Master dengan bahasa C#. File projeknya bisa diunduh disini: https://drive.google.com/file/d/15jVHQ3R-JusoH8Nwao33DI29nlZfztQ3/view?usp=sharing Salam.

[Continue reading...]

Tuesday, 13 April 2021

Sharing Sourcecode : Modbus TCP Client - C#

- 0 komentar

Pada kesempatan kali ini kami membahas sourcecode projek aplikasi sederhana Modbus TCP Client dengan bahasa C#.

silakan download sourcecode projeknya disini:

untuk aplikasi ModbusHD bisa didownload disini:

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