Professional OPC
Development Tools

logos

Online Forums

Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.

Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.

Do not use the Contact page for technical issues.

EsayAEClient No Events with Kepware

More
19 Feb 2019 12:22 #7104 by Barrette
Yeeeeees,

There are a evet, tank you very much !

Have a nice day.

Please Log in or Create an account to join the conversation.

More
19 Feb 2019 11:53 - 19 Feb 2019 11:53 #7103 by support
Hello.

In your example, if you want to connect to an OPC server residing on a remote machine, the name or IP address of the computer goes into the first argument of the SubscribeEvents call. So, you would have something like
client.SubscribeEvents("10.30.82.36", "Kepware.KEPServerEX_AE.V6", 1000);
If possible, the first tests should be done with server residing on the same machine as client, because to set up DCOM properly can drive even an experienced professional crazy.

It is not clear why you are not seeing any events. Have you tried some other OPC A&E client to verify that events should be flowing?

Best regards
Last edit: 19 Feb 2019 11:53 by support.

Please Log in or Create an account to join the conversation.

More
18 Feb 2019 16:07 - 18 Feb 2019 16:31 #7099 by Barrette
Hi,

I try to get event with a KepWare server. ("Kepware.KEPServerEX_AE.V6") .

How to configure the IP adress ?

I try to configure event like this, but there a never event and no error messages.

Can you help me :) :
string srvName = "Kepware.KEPServerEX_AE.V6";
string adress = "10.30.82.36";
 
using (var client = new EasyAEClient())
{
    var eventHandler = new EasyAENotificationEventHandler(client_Notification);
    client.Notification += eventHandler;
    client.EventingFailure += fail;
    int handle = client.SubscribeEvents("", srvName, 1000);
 
    Console.WriteLine("Processing event notifications for 10 seconds...");
    Thread.Sleep(10 * 1000);
 
    client.UnsubscribeEvents(handle);
}
static void client_Notification(object sender, EasyAENotificationEventArgs e)
{
    if (!e.Succeeded)
    {
        Console.WriteLine("*** Failure: {0}", e.ErrorMessageBrief);
            return;
    }
    if (e.EventData != null)
        Console.WriteLine(e.EventData.Message);
}
 
static private void fail(object sender, OpcLabs.BaseLib.FailureEventArgs e)
{
     var s = e.ToString();
     MessageBox.Show(s);
}
Last edit: 18 Feb 2019 16:31 by support.

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.044 seconds