private int SubscriptionID1;
private void Button2_Click_1(object sender, EventArgs e)
{
SubscriptionID1 = ethernetIPforCLXCom1.Subscribe("MyTag", 1, 500, Subscription_DataReceived);
}
private void Subscription_DataReceived(object sender,MfgControl .AdvancedHMI . Drivers.Common.PlcComEventArgs e)
{
Label1.Text = e.Values[0];
}
private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
{
ethernetIPforCLXCom1.UnSubscribe(SubscriptionID1);
}