Author Topic: ModbusRTU continously sending request  (Read 938 times)

Rox

  • Newbie
  • *
  • Posts: 6
    • View Profile
ModbusRTU continously sending request
« on: May 27, 2016, 02:50:18 AM »
Hi,
I would like to read my controller time in Hour, minutes,secs on click of the button, but I observed the AHMI continously sending the request from start up and then every ~ 3 secs, i wil use small 8 pin microcontroller for this, for a 24 hour timer.  i have the code below for the mentioned button:

  Private Sub ReadContlrTimeBtn_Click(sender As Object, e As EventArgs) Handles ReadContlrTimeBtn.Click
        ModbusRTUCom1.Read("40004", 3)

    End Sub


Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5317
    • View Profile
    • AdvancedHMI
Re: ModbusRTU continously sending request
« Reply #1 on: May 27, 2016, 08:30:55 AM »
Is the ~3 seconds too fast or too slow? You can adjust the refresh rate with the PollRateOverride property of the driver.