The DigitalPanelMeterA is based on an experimental code model that makes this exact modification very easy. On a call to SubscribeToCommDriver it will check all properties starting with PLCAddress to see if what follows matches an existing property name, If it does, it will automatically create a subscription to the PLC variable. So by simply creating a property PLCAddressKeypadMinValue, it will take care of the rest. To do this, just add this code to DigitalPanelMeterA.vb:
'*****************************************
'* Property - Address in PLC to Link to
'*****************************************
Private m_PLCAddressKeypadMinValue As String = ""
<System.ComponentModel.Category("PLC Properties")> _
Public Property PLCAddressKeypadMinValue() As String
Get
Return m_PLCAddressKeypadMinValue
End Get
Set(ByVal value As String)
If m_PLCAddressKeypadMinValue <> value Then
m_PLCAddressKeypadMinValue = value
'* When address is changed, re-subscribe to new address
SubscribeToCommDriver()
End If
End Set
End Property