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.
- Forum
- Discussions
- QuickOPC-Classic in COM
- Reading, Writing, Subscriptions, Property Access
- Writing many tags
Writing many tags
With Isolated set to true, each such EasyDAClient will have its own OPC-DA connection to the server. Whether this will cause the server to use more communication channels to the PLC - I cannot answer - it is up to the server, so you need to ask the server vendor, or test it out. In general, OPC servers should expect multiple (many) connections to them, and for this reason, optimize the access to the device and not create separate connections in this way.
But, I do not see why you should need *many* objects with Isolated = true. If the Writes are causing the problem, you can use one 'Isolated' EasyDAClient for such Writes.
Regards
Please Log in or Create an account to join the conversation.
- I-Tecnology
- Topic Author
- Offline
- Elite Member
- Posts: 26
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- I-Tecnology
- Topic Author
- Offline
- Elite Member
- Posts: 26
- Thank you received: 0
My PLC (Siemens S7-300) has a limited number of ethernet connection to use. When I configure an OPC device on my OPC server I use one channel of my PLC.
With the Isolated Property setted to True the number of comunication channel with PLC will increase? or only the number of channel with the OPC server will increase?
If I use many EasyDAClient object with Isolated=true, what kind of problem may I have? Problem with PLC o r problems due to the performance of PC?
The features of Isolated property are the same for OPC DA and OPC UA?
Best regards
Please Log in or Create an account to join the conversation.
By default, operations on the same target OPC server are serialized by QuickOPC, even if you invoke them from a different thread or on different EasyDAClient objects. In this respect, you are right, and this could be a reason why you are getting timeouts. BTW, 3 seconds are quite (maybe too) low.
If this kind of serialization is the issue, here is how to work around it: Set the Isolated property of the EasyDAClient ot 'true'. This causes it to use a separate connection to the target OPC server (separate from all other Isolated connections, and from the non-Isolated connection as well). Be careful - you can safely create quite a lot of EasyDAClient-s with Isolated = 'false', because they share the same target OPC server connection, but EACH EasyDAClient with Isolated set to 'true' will have its OWN connection. For this reason, you should think over the design carefully, and possibly share the same "isolated" EasyDAClient between the pieces of code/threads that actually benefit from using the same connection while keeping a separate EasyDAClient for other purposes.
Best regards
Please Log in or Create an account to join the conversation.
- I-Tecnology
- Topic Author
- Offline
- Elite Member
- Posts: 26
- Thank you received: 0
I think that the problem is that my writing operation is too long. So other reading or writing operation in other thread will have problem to comunicate with the PLC. I have timeouts in OPC client at 3s and I'm using asyncronuos mode. I'm using TopServer ver5.21 with default settings.
I think to divide the writing operation in many instruction of writemultiplevalues, but before to make this modify I want to know if there are some parameters to resolve this problem.
Best regards
Please Log in or Create an account to join the conversation.
the default timeout on the client side is 1 minute. Are you saying that when doing this big write, other operations block for that long?
Or, are we talking about some timeout on the server or device side? Can you describe the symptoms more precisely, and send the actual error message and exception details?
Base on that I will then provide further advise.
Thank you
Please Log in or Create an account to join the conversation.
- I-Tecnology
- Topic Author
- Offline
- Elite Member
- Posts: 26
- Thank you received: 0
I have a multithread application and many EasyDaClient objects. PLC is only one.
When I write a big number of tags(about 600bytes) with a writeMultipleValues operation using one of this objects, I have many timeout error messages from the other EasyDAClient objects.
Is there a parameter to make ths big write operation slowly?
Best regards
Please Log in or Create an account to join the conversation.
- Forum
- Discussions
- QuickOPC-Classic in COM
- Reading, Writing, Subscriptions, Property Access
- Writing many tags