Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - headzero

Pages: [1]
1
Open Discussion / C# Subscribe
« on: July 10, 2017, 10:48:55 AM »
Hi

Can anyone tell me what I am doing wrong with my C# subscribe/callback here. I get the message back with a value of 1 for the subID but the call back never fires.

private void btnStart_Click(object sender, EventArgs e)
        {
            try
            {
                subID = testplc.Subscribe("dateTime[0]", 6, t, the_callback);
                testplc.PollRateOverride = 1000;
            }
            catch (Exception ex)
            {
                MessageBox.Show(Convert.ToString(ex));
            }
            MessageBox.Show("Subscription " + Convert.ToString(subID) + " is subscribed" ,"Subscription ID");
        }

        private void the_callback(object sender, MfgControl.AdvancedHMI.Drivers.Common.PlcComEventArgs e)
        {
            txtOutput.Text = e.Values[0];
            label1.Text = "Connected";
        }


2
Open Discussion / DF1Comm()
« on: March 16, 2013, 06:54:19 PM »
First off this is an awesome project! I have enjoyed testing your VB.net stuff against a few A/B processors. Although I have written and support many OPC applications in VB6 when it comes to .net I like to use C# .I have been playing with the AdvancedHMIDrivers and I have had success connecting and transferring data to/from ControlLogix PLCs but I would like to know what arguments I have to pass to the DF1Comm() to use it in my C# projects?

Pages: [1]