AdvancedHMI Software

General Category => Support Questions => Topic started by: Rox on May 27, 2016, 02:50:18 AM

Title: ModbusRTU continously sending request
Post by: Rox 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

Title: Re: ModbusRTU continously sending request
Post by: Archie 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.