Hi
Is it possible to use the DataChanged event of the datasubscriber programmatically?
My code is below.
public MainForm()
{
InitializeComponent();
SubscriptionID = modbusTCPCom1.Subscribe("425000", 1, 500,SubscribedDataChanged);
}
private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
{
modbusTCPCom1.Unsubscribe(SubscriptionID);
}
private void SubscribedDataChanged(object sender,MfgControl.AdvancedHMI.Drivers.Common.PlcComEventArgs e)
{
string mystring = e.Values[0];
string myaddress = e.PlcAddress;
}
Thanks