Friday, 23 April 2021

Sharing Sourcecode : Modbus Log to MySQL Database - VB

Projek kita kali ini adalah Modbus TCP Client dan Modbus RTU Master Logger ke database MySQL.

silakan download file-file projeknya disini:

4 komentar:

  1. Kereen sekali om, izin belajar di blog ini

    ReplyDelete
  2. My friend, can you please help. While working, an error occurs and the program stops working. Thank you
    Images - https://prnt.sc/26nk9f8
    Text error -
    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************
    System.TimeoutException: No Response from Modbus Slave
    at EasyModbus.ModbusClient.ReadHoldingRegisters(Int32 startingAddress, Int32 quantity)
    at EasyModbus.ModbusClient.ReadHoldingRegisters(Int32 startingAddress, Int32 quantity)
    at EasyModbus.ModbusClient.ReadHoldingRegisters(Int32 startingAddress, Int32 quantity)
    at EasyModbus.ModbusClient.ReadHoldingRegisters(Int32 startingAddress, Int32 quantity)
    at MySQLApp01.Form1.TimerLog_Tick(Object sender, EventArgs e) in D:\Pelatihan\MySQLApp02\MySQLApp01\Form1.vb:line 105
    at System.Windows.Forms.Timer.OnTick(EventArgs e)
    at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


    ReplyDelete
    Replies
    1. based on your error message, it seems your Modbus device is not responding, please check it.
      thanks.

      Delete
  3. I checked it, everything works properly, there is a connection, but the program first thinks for 2-3 minutes, then it gives an error.

    ReplyDelete

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