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.

Disconnect

More
02 May 2017 09:17 #5125 by VFoxpro
Replied by VFoxpro on topic Disconnect
Thank you for your assistance. I will download the updated version and do some further testing.

Best regards!

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

More
01 May 2017 06:08 #5122 by support
Replied by support on topic Disconnect
I was able to reproduce the problem. Thank you once again for reporting it.

We have made a fix. It is available in recent build of QuickOPC 2016.2, which is now available from the Download area on this site. Internal version is 5.41.1186.1 or later.

Best regards
The following user(s) said Thank You: VFoxpro

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

More
28 Apr 2017 12:00 #5119 by support
Replied by support on topic Disconnect
Thank you for the findings. I will attempt to reproduce and investigate here. I will reply through the forums when I have some new information.

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

More
28 Apr 2017 11:56 #5118 by VFoxpro
Replied by VFoxpro on topic Disconnect
Hello again!

Are you saying that this is not happening ?


In order to get a second opinion, I tried the same with Windows PowerShell 2.0:
Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. Alle Rechte vorbehalten.
 
PS C:\Users\kemme> $oClient = new-object -com OPCLabs.EasyOpc.DataAccess.EasyDAClient
PS C:\Users\kemme> $oClient.InstanceParameters.Timeouts.ReadItem = 5000
PS C:\Users\kemme> $Value = $oClient.ReadItemValue("", "Matrikon.OPC.Simulation.1", "DM1_SPS.nProdukt")
PS C:\Users\kemme> write-host $Value
12

Same effect: The connection does not timeout at all.

So, it's not only a Foxpro related question. It seems to be a COM related issue ...

Regards!

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

More
28 Apr 2017 09:11 #5113 by VFoxpro
Replied by VFoxpro on topic Disconnect
Hello!

QuickOPC manages the connections automatically. There I a chapter about in the User's Guide.


Meanwhile I discovered that chapter ... :whistle:

Are you saying that this is not happening ?


No disconnect at all. Not after 30s, 30minutes or even 30 hours. I have no subscriptions. Just a single ReadItemValue as shown below.

oClient = CREATEOBJECTEX("OPCLabs.EasyOpc.DataAccess.EasyDAClient", "")
? oClient.ReadItemValue("", "Matrikon.OPC.Simulation.1", "DM1_SPS.nProdukt")
RELEASE oClient

Even releasing the Object oClient does not lead to a disconnect.

Matrikon Server still indicates two connections, which is Foxpro and the Matrikon OPC-Explorer.

Quitting Visual Foxpro disconnects from the server.

Regards!
Attachments:

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

More
28 Apr 2017 05:26 - 28 Apr 2017 05:26 #5112 by support
Replied by support on topic Disconnect
Hello,

QuickOPC manages the connections automatically. There I a chapter about in the User's Guide.
In this particular case, after a single Read, and if nothing else is in play (such as no subscriptions), QuickOPC should disconnect roughly 30-32 seconds after the Read (but not immediately; the time is also configurable).

Are you saying that this is not happening ?

Best regards
Last edit: 28 Apr 2017 05:26 by support.

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

More
27 Apr 2017 14:50 #5111 by VFoxpro
Replied by VFoxpro on topic Disconnect
I started testing EasyOPC DataAccess with Visual Foxpro 9.

After creating an instance with CREATEOBJECT("OPCLabs.EasyOpc.DataAccess.EasyDAClient") followed by ReadItemValue() a connection to the OPC-Server will be established.

How can I disconnect from the OPC-Server? Without quitting the whole application ...



Regards!
Attachments:

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

More
27 Apr 2017 14:40 #5110 by VFoxpro
Disconnect was created by VFoxpro
I just started testing QuickOPC with Visual Foxpro 9.

After creating a client instance CREATEOBJECT("OPCLabs.EasyOpc.DataAccess.EasyDAClient") the OPC-Server will be connected with the following ReadItemValue().

How can I disconnect from the OPC-Server ? Without quitting the whole application ...



Regards!
Attachments:

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

Moderators: support
Time to create page: 0.056 seconds