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 !
kalau di c# bagaimana ya pak? untuk 1 button 1 data menyalakan output
ReplyDeletesama kok library nya, beda di bahasa aja..
DeletePak mau tanya kalau hasil value saat di tampilkan keluar hasil berbeda yaitu minus itu kenapa ya? value saya aslinya 42000 tapi saat di read di program hasil nya -17800 mohon info nya
ReplyDeleteitu karena beda data type nya, perlu dirubah ke Unsigned Integer atau mungkin ke Long.
Delete