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.

OPC Client for :NET stops Read

More
14 Mar 2014 14:14 #1771 by support
OK, the reply does not contain the full information (build number), but for now it is sufficient.
This is very difficult to diagnose without having it reproduced.

Can you "Break" the program into the debugger when this happens, and verify that the execution is truly stopped inside the statement you suspect, and capture the call stack?

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

More
14 Mar 2014 09:40 #1770 by barbieri
VERSION IS 5.23
thanks
matteo

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

More
14 Mar 2014 09:02 #1769 by support
Hello,

which version and build of QuickOPC are you using please? (one way to find out is to right-click one of its assemblies in Windows Explorer, select Properties, then view the version info on the Detail tab).

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

More
14 Mar 2014 08:46 #1768 by barbieri
Hello,

I've a .NET application that read everytime a list of TAGS on a Siemens PLC.
After some time the application start a Read Item Value operation but does not give any result.
Also no timeout happened.

My application runs on a pc with WIndows 7.

I initialize the OPC as follows:

MyEasyDAClient = new OpcLabs.EasyOpc.DataAccess.EasyDAClient();
EasyDAClient.SharedParameters.Machine.MachineReconnectDelay = 1000;

MyEasyDAClient.InstanceParameters.Mode.AllowAsynchronousMethod = true; // false
MyEasyDAClient.InstanceParameters.Mode.AllowSynchronousMethod = true;
MyEasyDAClient.Isolated = true;
MyEasyDAClient.InstanceParameters.HoldPeriods.ItemDetach = 5000;
MyEasyDAClient.InstanceParameters.HoldPeriods.ServerDetach = 30000;
MyEasyDAClient.InstanceParameters.HoldPeriods.TopicRead = 5000;
MyEasyDAClient.InstanceParameters.HoldPeriods.TopicWrite = 5000;
MyEasyDAClient.InstanceParameters.UpdateRates.ReadAutomatic = 10000;// Timeout.Infinite;
MyEasyDAClient.InstanceParameters.UpdateRates.WriteAutomatic = -1;// Timeout.Infinite;

MyEasyDAClient.InstanceParameters.Mode.DesiredMethod DAReadWriteMethod.Synchronous;
MyEasyDAClient.SynchronizationContext = dispatcherSynchronizationContext1;
MyEasyDAClient.InstanceParameters.Timeouts.BrowseAccessPaths = 10000;
MyEasyDAClient.InstanceParameters.Timeouts.BrowseNodes = 25000;
MyEasyDAClient.InstanceParameters.Timeouts.BrowseProperties = 20000;
MyEasyDAClient.InstanceParameters.Timeouts.BrowseServers = 20000;
MyEasyDAClient.InstanceParameters.Timeouts.GetProperty = 10000;
MyEasyDAClient.InstanceParameters.Timeouts.ReadItem = 10000;
MyEasyDAClient.InstanceParameters.Timeouts.WriteItem = 10000;

I tried with Syncronous and Asyncronous method without any change.


The function that I use to read is this:



public static object ReadItemValue(string Machine, string Server, string TAG)
{
object obj = null;
try
{
m_Mut.WaitOne();
if (OpcInitialized)
{
obj = MyEasyDAClient.ReadItemValue(Machine, Server, TAG);
}
else
throw new SVException(LoadStringWithModuleName("A100_007"));
}
catch (Exception ex)
{
throw new Exception(LoadString("A102_177") + "TAG:" + TAG, ex);
}
finally
{
m_Mut.ReleaseMutex();

}
return obj;
}

Everything seems to stop at " obj = MyEasyDAClient.ReadItemValue(Machine, Server, TAG);" without any error.

Thanks

Matteo

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

Moderators: support
Time to create page: 0.053 seconds