AdvancedHMI Software
General Category => Support Questions => Topic started by: mluebke on October 03, 2018, 01:58:27 PM
-
How can I use data subscriber to monitor the same tag in multiple plcs for change?
-
I am not sure I understand your question, but try this:
Assuming you have 2 PLC with 2 different IP addresses.
Add 2 PLC drivers and set IP addresses accordingly
Add 2 DataSubscribers and set to proper PLC.
Set the PLCAddress value
Doubleclick the DataSubscribers and start your codes.
-
That is my current setup. I was wondering if there was anyway less network intensive. I have the same tag name, but about 15 different plc's.
-
Regardless if the names are the same, it's physically different PLCs. If it was the other way around, one PLC and 15 HMIs then yes there could be a less network intensive option.
-
I don't know if this helps or not, but you can use an event to change the IP address of the Com Component linked in your DataSubscriber.
I tried it out with two different buttons and it worked.
Private Sub Button6_Click(sender As Object, e As EventArgs) Handles Button6.Click
EthernetIPforCLXCom2.IPAddress = "192.168.0.1"
End Sub
Private Sub Button7_Click(sender As Object, e As EventArgs) Handles Button7.Click
EthernetIPforCLXCom2.IPAddress = "192.168.0.2"
End Sub