AdvancedHMI Software
General Category => Support Questions => Topic started by: vitico bon on December 28, 2016, 11:49:57 AM
-
Hi again Archie,
I am having problems communicating with more than one device (RS485) simultaneously and searching through previous message I see that you referees a lot to a "ModbusBase" file. I don't have that file, I only have "ModbusRTUCom" and "ModbusTCPCom". Is that "ModBusBase" something that was eliminated in newer releases?
Also I will appreciate if you can take a look at this topic where I am explaining the problems I am having right now, and make some suggestions.
http://advancedhmi.com/forum/index.php?topic=1566.0
Thanks a lot!
-
I 'll give my 2cent thought: create with 1 driver ( not 2), then when you need to read sta 2, set disable subscription to true, set address to sta .2, then re-enable the subscription
-
This issue is being addressed. It may be a couple weeks before there is a resolution, but I will keep you posted.
-
Thank you very much Archie and I'm sorry for being such a pain, at least now I know that even if we can not offer at the moment the PC application to our customers I can move on from this and continue with other tests and plans for future projects. Just keep me posted.
Happy new year!
-
While waiting for Archie fixing the driver, do you feel like to try what I suggested. I am just curious to see if it will work. Add a timer, enable it and some codes like below:
Private Sub Timer1_Tick_1(sender As Object, e As EventArgs) Handles Timer1.Tick
If READ_STA2_FLAG Then
ModbusRTUCom1.DisableSubscriptions = True
ModbusRTUCom1.StationAddress = 2
ModbusRTUCom1.DisableSubscriptions = False
GoReadSta2()
READ_STA2_FLAG = False
Else
ModbusRTUCom1.DisableSubscriptions = True
ModbusRTUCom1.StationAddress = 1
ModbusRTUCom1.DisableSubscriptions = False
GoReadSta1()
READ_STA2_FLAG = True
End If
End Sub