In the AdvancedHMIControls project, open SubscriptionHandler.vb
Go to this code:
Public Sub SubscribeTo(ByVal plcAddress As String, ByVal numberOfElements As Integer, ByVal callBack As EventHandler(Of SubscriptionHandlerEventArgs),
ByVal propertyName As String, ByVal ScaleFactor As Double, ByVal ScaleOffset As Double)
'* Check to see if the subscription has already been created
Dim index As Integer
While index < m_SubscriptionList.Count AndAlso (m_SubscriptionList(index).CallBack <> callBack Or
m_SubscriptionList(index).PropertyNameToSet <> propertyName)
index += 1
End While
'* Already subscribed and PLCAddress was changed, so unsubscribe
If (index < m_SubscriptionList.Count) AndAlso m_SubscriptionList(index).PLCAddress <> plcAddress Then
m_ComComponent.Unsubscribe(m_SubscriptionList(index).NotificationID)
m_SubscriptionList.RemoveAt(index)
'* V3.99y - the address changed and old subscription removed, so force the next condition check to re-subscribe
index = m_SubscriptionList.Count
End If
This is where it checks to see if you changed the PLCAddress.