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.

Writing an item value (byte) takes different Long times???

More
01 Mar 2016 10:11 #3893 by support
This can be caused by the server, or by the client. Let's start with the client, which is what we can influence. QuickOPC maintains OPC connections automatically, and creating a connection takes some time. It is therefore possible that the shorter times you are seeing are in situations where the connection already exists, while the longer times are when the connection needs to be set up first.

Default hold periods are "relatively" short (max 30 seconds). If you do your Write-s less frequently, the connection would be closed, and then needs to be reestablished.

QuickOPC keeps a connection open 1) for a configurable time period after operations like Read or Write, and 2) while any subscription exists.

You can use e.g.
easyDAclient = new EasyDAClient();
 easyDAclient.InstanceParameters.HoldPeriods.TopicRead = 5*60*1000;
 easyDAclient.InstanceParameters.HoldPeriods.TopicWrite = 5*60*1000;

- in this case, to extend the hold periods to 5 minutes, or any other time periods that suits your needs. If you increase the hold periods but still your 2nd and subsequent Write-s take sometimes longer, the problem would rather be on the server side.



Best regards

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

More
29 Feb 2016 12:50 #3891 by tmouslih
Hello,

Writing an item value (byte) takes different Long times???

_easyDaClient.WriteItemValue (_TCPServerAdress, _ServerClass, tagName, value);

The execution time of this call takes between 50ms or longer up to 800ms.


I would be very grateful if you can answer me the question. What is wrong?
How should I do it, so that the execution time is fast and remains constant?

Thank you very much.

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

Moderators: support
Time to create page: 0.041 seconds