Author Topic: How can I use data subscriber to monitor the same tag in multiple plcs for chang  (Read 622 times)

mluebke

  • Newbie
  • *
  • Posts: 2
    • View Profile
How can I use data subscriber to monitor the same tag in multiple plcs for change?

bachphi

  • Hero Member
  • *****
  • Posts: 642
    • View Profile
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.
===================================================
This is NOT alt.read.my.mind.
No such thing is sh^t-for-brains unless you are posting to alt.read.my.mind.
===================================================

mluebke

  • Newbie
  • *
  • Posts: 2
    • View Profile
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.

Phrog30

  • Guest
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.

billerl

  • Newbie
  • *
  • Posts: 13
    • View Profile
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