Showing posts with label Project. Show all posts
Showing posts with label Project. Show all posts

Sunday, 15 August 2021

Sharing Sourcecode : Modbus Float

- 0 komentar

Pada video kali ini kita akan membahas tentang project Modbus TCP Client untuk membaca dan menulis dalam tipe Float, baik Float biasa maupun Float SWAP.


silakan download file projectnya disini: https://drive.google.com/file/d/1JoMDDJ0Vff0QcYMQ3MdBPnjhmHOux6-z/view?usp=sharing

[Continue reading...]

Sunday, 10 May 2020

Video Tutorial : VB Modbus SCADA with AdvancedHMI

- 0 komentar


Introducing AdvancedHMI to build SCADA (Modbus TCP Client) application in Visual Studio. I do not share the project files, because i think if you follow the steps in video then you can practice and learn better. Thank you.

[Continue reading...]

Saturday, 9 May 2020

Video Tutorial : VB Modbus SCADA House Monitoring

- 0 komentar


How to make SCADA application for House (Simulation) please see the previous video here: https://youtu.be/GMceNxKlq-w TimeSteps: 00:04 Form Modification 09:25 Coding 14:50 Test I do not share the project files, because i think if you follow the steps in video then you can practice and learn better. Thank you.
[Continue reading...]

Thursday, 7 May 2020

Video Tutorial : VB Modbus Multi Clients with Easy

- 2 komentar


This video shows How to create desktop application using Visual Basic language in Microsoft Visual Studio 2019 to connect to multiple Modbus TCP Servers. In this project we will use EasyModbus library browsed from our previous project. and we will use multiple Mod_RSsim as Modbus TCP Server Simulator, can be downloaded from here: http://www.plcsimulator.org/downloads TimeSteps: 00:04 Form Design 07:33 Coding 18:14 Test Connection 21:43 Read and Monitoring The project source code can be downloaded here: https://drive.google.com/open?id=10qhOQDDtHBPnFNSznQoozeW4B6453B6r


Thank you.
[Continue reading...]

Wednesday, 6 May 2020

Video Tutorial : VB Modbus Trending Chart

- 0 komentar
Please see the previous video : Visual Basic Modbus TCP Client to MySQL Database https://youtu.be/QUTkz4FxDjM



This video is the advanced step, now we will create a standard Chart for Trending Realtime monitoring Modbus TCP data. This time we will deactivate logging function to MySQL database because we will focus on Trending function. TimeSteps: 00:04 Form Modification 06:34 Coding 11:27 Test The project source code can be downloaded here: https://drive.google.com/open?id=19eBKlvW_o5SdPKY0SigTkSbXd8qf5n3Q


Thank you.
[Continue reading...]

Tuesday, 5 May 2020

Video Tutorial : VB Modbus TCP Client to MySQL Database

- 2 komentar


Please see the previous video :
Visual Basic Modbus TCP Client
http://hadiscada.blogspot.com/2020/05/video-tutorial-visual-basic-modbus-tcp.html

This video is the advanced step, now we will do monitoring Modbus TCP data then logging to MySQL database.


TimeSteps:
00:04 Form Design
05:50 Setup MySQL Database and Table
07:58 Scripting
17:50 Test


The project source code can be downloaded here:
https://drive.google.com/open?id=1Cv8CU8a_tDqLM3YimtGDiuwmxWwJJ-3m


Thank you.
[Continue reading...]

Monday, 4 May 2020

Video Tutorial : Visual Basic Modbus TCP Client

- 0 komentar


This video shows How to create Modbus TCP Client desktop application using Visual Basic language in Microsoft Visual Studio 2019. In this project we will add EasyModbus library using Nuget Package Manager.
and we will use Mod_RSsim Modbus Simulator, can be downloaded from here: http://www.plcsimulator.org/downloads The project source code can be downloaded here: https://drive.google.com/open?id=1hIRpKCkbE_i5zxXpqpNKh4p6xr8XKLd-


Thank you.
[Continue reading...]

Sunday, 3 May 2020

Modbus Logger Expert

- 2 komentar
ModLogX (Modbus Logger Expert) is an application for logging data from Modbus TCP Server or Modbus RTU Slave to SQL database or File or Cloud, and other function.


The features / functions :
1. Connect to Modbus TCP Server/ RTU Slave or act as Modbus TCP Server/ RTU Slave
2. Tag Management for easy access Modbus Register
3. Trending for each tag or group
4.  Log to file (CSV or TXT)
5. Log to SQL (MS SQL Server or MySQL)
6. Log to cloud (Firebase Realtime Database) for access data from mobile device (optional)
7. Alarm configuration based on status/value of tags
8. SMS notification when alarm active
9. Save all configuration to file and Open from file.


Here are some screenshots and few steps to follow:

> open Connection page, click Edit button (icon pencil) then define the connection.

> open Tag Management page, click Add Group button (icon plus) then create new group with defined Start Modbus Register and Length Register to read. then click Add Tag button to create some tag with each Register address defined.

> click menu File > Save, then write your filename. Make sure your Modbus Server was running (here I use Modbus Simulator), then click Activate button.

 > to show the trending, click on the tag then click Trend button (icon line chart).


for more information please ask us by email to:
hadiScada@gmail.com
or Whatsapp message to:
+6281212129806

Please download ModLogX demo exe file from here:
https://app.box.com/s/4m5xaj4rkeuedkezo1j7a99qvj01z64m


Thank you!
[Continue reading...]

Friday, 31 January 2020

Dashboard Designer

- 0 komentar


Dashboard Designer is a Windows desktop application to create HMI (Human Machine Interface) / SCADA (Supervisory, Control and Data Aquisition) application dashboard.
it can connect to various protocol/data source like OPC.
the project is saved in XML file, and can be uploaded/downloaded to/from Cloud (Firebase) storage.


Dashboard Designer - Part 1/3 (Graphic)

Dashboard Designer - Part 2/3 (Connection & Runtime)

Dashboard Designer - Part 3/3 (File Open-Save/Upload-Download)


if you need more information please contact to: hadiScada@gmail.com

Thanks.
[Continue reading...]

Friday, 27 December 2019

OPC Agent Expert (OPCAgentX)

- 0 komentar
OPC Agent Expert (OPCAgentX) is an application to connect to OPC Server, monitor OPC items, log/archive to Database, and many more.

Here are the complete functions:

  • Connect to Local or Remote OPC DA Server
  • Browse OPC items
  • Monitor OPC items values
  • Trend display of monitored OPC items
  • Export and Import OPC items list to file
  • Save and Open configuration to file
  • Alarm configuration and monitoring
  • SQL Database logging configuration and viewer
  • File (CSV, TXT) logging 
  • Cloud logging configuration (using Firebase)
  • Email notification

Here are some screenshoots:

Browse
Connect
Monitor
Trend
Alarm
SQL log
File log 
 
Cloud/Firebase log


You can download the demo from here:



Thank you.
[Continue reading...]

Monday, 13 May 2019

My Simple OPC Client C#

- 0 komentar


This is C# project of My Simple OPC Client. The functions is same with VB project of My Simple OPC Client, and more detail of operation can be read here:
http://hadiscada.blogspot.com/2016/03/my-simple-opc-client.html

The project can be downloaded here:
https://www.4shared.com/zip/w4kGm1KHfi/MySimpleOPCClientC.html

Thank you.
[Continue reading...]

Thursday, 25 April 2019

Excel SCADA : Membuat SCADA di Microsoft Excel

- 4 komentar

Membuat SCADA di Microsoft Excel

Apakah Excel bisa digunakan untuk menampilkan data-data SCADA/HMI ?
mari kita coba bersama.. langkah-langkahnya seperti ini:
1. membuat aplikasi EXE,
untuk membaca data-data dari alat/device. Pada percobaan kali ini kita akan membuat projek WinForm VB, dan koneksinya adalah ke Modbus TCP server (simulator). Hasil pembacaan data akan ditulis ke File Text.
2. membuat file Excel,
untuk menampilkan SCADA nya.
3. membuat script VBA di Excel,
untuk memanggil aplikasi EXE yang sudah dibuat dan secara periodik membaca file Text outputnya lalu mem-plot data-data ke Sheet Excel.

Baiklah mari kita mulai..

Untuk point 1 kita bisa pake library EasyModbus.. contoh projeknya seperti ini:
http://hadiscada.blogspot.com/2019/02/modbus-tcp-client-and-logger-csv.html

tapi untuk praktek kali ini kita tidak akan membuat Logger tapi Realtime data, jadi ada perbedaan di file outputnya, kalau Logger datanya Growing (bertambah terus) sedangkan untuk praktek kali ini datanya tetap, hanya Value-nya saja yang berubah-ubah sesuai pembacaan saat itu (Realtime data).

aplikasi yang akan kita buat harus bisa dipanggil oleh aplikasi dari luar, misal dari Command Prompt (DOS), artinya aplikasi harus punya parameter-parameter yang bisa disesuaikan.. misalnya seperti ini:
kita ingin membaca Modbus TCP di IP 127.0.0.1, dengan list address pada file "D:\addressku.txt" dan output file ada di "D:\dataku.txt"

maka aplikasi harus bisa dipanggil dengan paramater misal seperti ini :
D:\Mod2File.exe 127.0.0.1 "D:\addressku.txt" "D:\dataku.txt"

jadi jika suatu saat kita ingin menambah item yang ingin dibaca maka tinggal tambah di file Text saja.

Membuat aplikasi VB
oke, kita mulai buat aplikasinya.. saya kasih nama Mod2File.exe
kita pake Visual Studio 2010 Express saja, dengan bahasa VB.
di Form-nya cukup tambah objek Timer saja.


di Properties projek nya, bagian Debug, saya isi parameter spt ini, itu maksudnya adalah untuk konek ke Modbus TCP yg ada di localhost (IP: 127.0.0.1) dengan file "addressku.txt" berisi list alamat register yang akan dibaca, dan file "dataku.txt" sebagai output untuk menyimpan nilai/data. angka "5" adalah interval pembacaan data, dalam detik.


Parameter diatas sebetulnya tidak perlu ditulis juga tidak apa-apa.. nanti parameter tersebut akan dikasih dari pemanggilnya (CMD / Excel).

.... skip bagian programming ...

oke, aplikasi sudah selesai.
*pagi pembaca silahkan download file projeknya (link ada di akhir artikel ini), lalu buka.

Test aplikasi
Sekarang mari kita isi file address, seperti ini:


selanjutnya jalankan aplikasi Modbus Simulator, saya pakai Mod_RSsim.
lalu kita tulis nilai di register-register yang akan kita baca,


jalankan projek VB nya
setelah aplikasi dijalankan maka file output ("dataku.txt") akan otomatis dibuat, dan isinya adalah value dari setiap address, seperti ini:


Test dari CMD 
Sekarang mari kita coba panggil Mod2File.exe dari Command prompt..
tutup dulu Visual Studio nya, lalu copy file "Mod2File.exe" dari folder Debug projek. copy juga file DLL "EasyModbus.dll", paste di D: saja biar simple.


sekarang buka Command prompt atau CMD, dan ketik seperti ini:
D:\Mod2File.exe 127.0.0.1 "D:\addressku.txt" "D:\dataku.txt" 5

maka aplikasi Mod2File akan dijalankan dan mulai membaca register Modbus dan meng-update file output secara periodik.

Membuat file Excel
oke. sekarang lanjut ke Excel.
Buka Microsoft Excel, saya pake yang versi 2007. buat blank workbook.


Buatlah tampilan HMI nya, seperti ini saja:


nanti nilai-nilai nya akan tampil di masing-masing kotak Register.
untuk membuat kotak-kotak diatas bisa pake teknik Merge cell, atau tidak pake juga tidak apa-apa, yang penting nanti adalah "Name" nya.
Untuk semua kotak yang akan diisi data, klik kanan lalu "Name a Range.."


beri nama "_REG1" dan seterusnya sesuai urutan


tambahkan sebuah tombol Start untuk triger Start/Stop pembacaan data..
*cara menambahkan tombol silahkan cari tahu sendiri ya..


Membuat VB Script di Excel
buka jendela VB/Macro editor.
*cara membuka jendela macro editor silahkan cari sendiri ya..

buat script di bagian "ThisWorkbook"


klik kanan di VBAProject lalu tambahkan Module, dan isi script berikut



Save file sebagai .XLSM
lokasi filenya simpan saja di D: agar gampang.


Test dari Excel
oke, pastikan aplikasi Modbus Simulator masih berjalan.
sekarang buka Sheet1 dan coba klik tombol Start

jika data tampil pada kotak-kotak register dan nilainya sama dengan nilai pada Modbus Server berarti kita berhasil..


Horee..!



Tambahan:
untuk contoh menampilkan data Bit / Boolean, tambah address Digital Input Register di file addressku,

<gambar>

di Sheet2, gambar HMI yg diinginkan.. lalu edit sedikit script di VBA Excel nya.
contoh hasilnya seperti ini,


kotaknya sebenarnya nilainya cuma 1 dan 0, perubahan warna kotak/cell tersebut memakai fitur Conditional Formatting bawaan Excel.


VB project, DLL library, dan file Excel silahkan download disini:

Semoga bermanfaat.. Terima kasih.
[Continue reading...]

Sunday, 10 February 2019

Modbus (TCP) Client and Logger (CSV)

- 5 komentar
Hello.. here is the VB project of Modbus TCP Client and Logger.
the project using EasyModbus DLL.
the output log file is CSV (comma separated file).

VB form display :

Output CSV file (opened with WPS SpreadSheets) :

the VB project (build using Visual Studio 2010 Express) can be downloaded here :
https://goo.gl/TXNNW8

Thank you..
[Continue reading...]

Friday, 11 January 2019

Learn how to Merge FlexGrid and Export to Excel

- 0 komentar
Here is sample VB net project to display data on MS FlexGrid and then export to MS Excel file.


why using FlexGrid, not DataGrid? because FlexGrid support to Merge cells. but we must be careful when merge cell in FlexGrid, sometime we need to do a little trick to do this (merge cell) in FlexGrid.

There is a Template file in debug folder. here is :

When we Export, the template file has been copied to the new file, then we fill the data to that new file. Here is the result :

so here is the link for the project: goo.gl/zvjbR4


Thanks..
[Continue reading...]

Thursday, 27 December 2018

Modbus TCP Client using EasyModbus

- 6 komentar
Here is the VB project for Modbus TCP Client using EasyModbus (EasyModbusTCP.Net) library.


download here: https://mega.nz/file/I2pjgYiQ#82GUO-3UF4IvZl1dkY6a9vl_coAD6IQvYEYfWJHhsEo

The sample code from EasyModbus website originally is in C# language, in this project I convert it to VB language.

The feature of project:
+ Connect/disconnect to OPC server
+ Read & Write Coil Output
+ Read Digital Input
+ Read Analogue Input
+ Read & Write Holding Register

Actually, the library is support Modbus RTU connection, I was successfully test it but not included in this project. the library also support MQTT, but it still have problem when I test it.

Thank you and Happy new year !

[Continue reading...]

Friday, 23 November 2018

Modbus RTU Client Advance

- 4 komentar
Adalah projek VB yang dibuat untuk memudahkan programmer / engineer / developer yang lain dalam membuat aplikasi Modbus RTU client.
Dengan projek ini, pembuatan aplikasi SCADA/HMI berbasis Modbus RTU akan lebih mudah dibuat. Cukup dengan menambahkan Tag-tag dengan alamat registernya, dan membuat tampilan Screen yang fleksible sesuai kebutuhan, kemudian tinggal menjalankan Runtime.

Step by Step nya:

  1. - download projek VB. disini: https://goo.gl/8Tivz1
  2. - buka dengan Visual Studio (min 2010 express)
  3. - jalankan projek (Run)
  4. - buka tab Tag Management, edit setting Port
  5. - tambah tag2 yang akan dibaca dari device
  1. - coba aktifkan Runtime dg cara klik menu Runtime > Activate 
  2. - matikan program (Stop)
  3. - pada design FormMain, buka tab Screen
  4. - tambahkan beberapa objek yang diinginkan, bebas
  5. - untuk objek Textbox atau Label yang ingin diisi dg nilai dari Tag tertentu dari device, isi property Tag dengan nama Tag di Tag management
  6. - simpan design form, jalankan program dan Activate Runtime


 
Catatan :

ini contoh Textbox yang ingin diisi dg nilai dari register 40001, isi di property Tag nya. semudah itu caranya.

Design Screen nya bisa bebas se-bebas2nya.. bisa ditambah gambar apapun, text dan objek apapun.. yg akan dibaca oleh program hanya property Tag nya.
Dalam menambahkan Tag ada 2 pilihan tipe data, Decimal dan Float. utk tipe Decimal ada fitur Multiplier yaitu pengali, artinya nilai yang terbaca dari device akan dikalikan dg konstanta Multiplier ini.

textbox Multiplier akan muncul ketika memilih tipe data Decimal. tidak boleh kosong, setidaknya isi dengan angka 1.

Saat memilih tipe data Float atau Float Swap, akan muncul textbox Round Digit, ini untuk membatasi jumlah angka dibelakang koma.
Mengenai tipe data Float dan Float Swap, itu mesti dicoba baca ke device nya, mana yg cocok, karena tiap device ber-beda2 tipe float nya.

untuk indikator lampu LED nyala-mati bisa menggunakan objek Panel, lalu digambar Oval warna hijau, lalu di property Tag nya diisi: Visible=10001 misalnya.

Ada fitur Auto Activate dan Full Screen, jadi ketika Tag dan Screen sudah selesai dibuat, aplikasi akan langsung menjalankan Runtime ketika dibuka.

Kekurangan dari projek/aplikasi diatas diantaranya adalah, waktu pembacaan data Modbus akan semakin lambat ketika Tag yang dibuat semakin banyak. Ini dikarenakan, script pada aplikasi tersebut akan membaca register satu per satu ke Modbus Slave, jadi satu Tag masing2 akan dibaca sendiri2, tidak sekaligus.
Untuk kekurangan ini mungkin nanti kedepannya akan ada tambahan fitur untuk bisa membaca per-group register sehingga pembacaan bisa lebih cepat.


Demikian sharing kali ini, semoga bisa bermanfaat.. Terima kasih.
[Continue reading...]

Sunday, 3 June 2018

VB to Excel

- 0 komentar
Projek ini dibuat dengan latar belakang seperti berikut:

- punya aplikasi untuk monitoring beberapa nilai dari device/PLC/yg lain
- nilai-nilai yang dimonitor ingin disimpan ke file Excel
- punya source code projek dari aplikasi monitoring tersebut

Untuk menyimpan file ke Excel sebenarnya ada 2 jenis file yang bisa dipakai, yaitu:
> Comma Separated file (.CSV)
> Excel file (.xlsx)

Kelebihan dari file CSV:
+ simple
+ bisa dibuka dengan Notepad
+ bisa dibuka dengan Excel, walaupun format tampilannya tidak bisa diubah

Kelebihan dari file Excel:
+ format tampilan bisa diubah dan disimpan
+ bisa dikombinasikan dengan Macro/VBA/VBS/Formula dari Excel nya

Baik, mari kita mulai..
tampilan dari aplikasi nya adalah seperti berikut:


pada contoh di atas, aplikasi Monitoring yg sudah ada kita anggap hanya menampilkan 4 buah nilai analog. nilai-nilai tersebut akan berubah-ubah sesuai data dari alat ukur atau sensor atau RTU atau PLC atau sumber lain. pada projek ini kita simulasikan perubahan nilai-nilai itu, terdapat tombol Start/Stop Simulation untuk memulai/mengakhiri simulasi.

Pekerjaan utama kita ada pada group dibawah ("Save Log to"). Jika Anda membuka source code projek monitoring Anda sendiri, maka tahapan ini yang perlu diperhatikan. 
Tambahkan beberapa objek seperti pada tampilan diatas, pada group "Save Log to", juga tambahkan objek Timer (beri nama "TimerLog") untuk secara periodik menyimpan log ke file. Aturlah interval sesuai yang Anda inginkan, pada contoh ini kita atur di 1 second (1000 milisecond), pengaturannya seperti pada gambar berikut:

Saat aplikasi dijalankan, langkah-langkah operasionalnya adalah sebagai berikut: 
1. karena kita pakai simulasi maka pertama kita klik dulu tombol "Start Simulation".
2. pilih jenis file output yang diinginkan (CSV atau Excel).
3. klik tombol "Browse" untuk memilih file yang sudah ada atau menentukan folder file baru.

4. klik tombol "Start Logging" untuk memulai proses logging ke file.
5. untuk menghentikan proses logging, klik tombol "Stop Logging".
6. untuk membuka file output, klik tombol "Open File".
7. tampilan dari output file tampak seperi berikut: 

Demikianlah apa yang bisa kami sampaikan untuk kesempatan kali ini. Semoga bermanfaat dan Terima kasih.

 Source code projek VB nya silahkan download disini:
https://www.4shared.com/zip/o_H4H6GIfi/VBtoExcel.html


[Continue reading...]

Tuesday, 26 December 2017

Modbus RTU Chat

- 0 komentar
Chating via Modbus RTU network?
Here are the design and simple application


 



Tested using ModRS_sim and Visual Serial Port Emulator. Not yet tested with real Modbus RTU device.

please download here for:
source VB project: https://www.4shared.com/zip/gbW8e2X5ei/ModRTUChat_source.html
executable file: https://www.4shared.com/zip/wquCjVjlca/ModRTUChat_exec.html


Thank you.


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