AdvancedHMI Software

General Category => Support Questions => Topic started by: mluebke on October 03, 2018, 01:58:27 PM

Title: How can I use data subscriber to monitor the same tag in multiple plcs for chang
Post 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?
Title: Re: How can I use data subscriber to monitor the same tag in multiple plcs for chang
Post by: bachphi on October 03, 2018, 03:47:30 PM
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.
Title: Re: How can I use data subscriber to monitor the same tag in multiple plcs for chang
Post by: mluebke on October 03, 2018, 03:53:06 PM
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.
Title: Re: How can I use data subscriber to monitor the same tag in multiple plcs for chang
Post by: Phrog30 on October 04, 2018, 07:22:25 AM
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.
Title: Re: How can I use data subscriber to monitor the same tag in multiple plcs for chang
Post by: billerl on October 11, 2018, 03:03:43 PM
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