Thursday 27 December 2018

Modbus TCP Client using EasyModbus

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 !

4 komentar:

  1. kalau di c# bagaimana ya pak? untuk 1 button 1 data menyalakan output

    ReplyDelete
    Replies
    1. sama kok library nya, beda di bahasa aja..

      Delete
  2. Pak 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

    ReplyDelete
    Replies
    1. itu karena beda data type nya, perlu dirubah ke Unsigned Integer atau mungkin ke Long.

      Delete

 
Copyright © . HadiSCADA - Posts · Comments
Theme Template by BTDesigner · Powered by Blogger