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.

How to modify OPC connection parameters ?

More
21 Oct 2013 06:58 #1502 by support
This is not currently possible, you are right. It is on the list of future enhancements (but no planned delivery date yet), though.

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

More
21 Oct 2013 06:04 #1501 by krannila
OK, but then it is not that good in my application.

I'm building an application where I connect with max. 10 OPC servers in different computers.
OPC servers are from different manufacturers and therefore I'd like to tune these connections with own parameters for each OPC server type.


Regards Kari

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

More
21 Oct 2013 05:32 #1500 by support
You are right. Actually the ClientParameters is a static ("Shared" in Visual Basic) property of the EasyDAClient object, i.e. common for all its instances. The better syntax with no warning should be:
EasyDAClient.ClientParameters.ClientReconnectDelay = 30000
Best regards

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

More
21 Oct 2013 04:07 #1499 by krannila
But now when I try to do this: OPCConn1.ClientParameters.ClientReconnectDelay = 30000

Visual Studio 2008 IDE warns about following:
"Access os shared member, constant member, enum member or nested type through an instance, qualifying expression will not be evaluated"

Is this still OK (code compiles with this warning) ?

Regards Kari

=========================
Public WithEvents OPCConn1 As OpcLabs.EasyOpc.DataAccess.EasyDAClient
Dim SubscriptionHandle() As Integer

OPCConn1 = New OpcLabs.EasyOpc.DataAccess.EasyDAClient()

OPCConn1.ClientParameters.ClientReconnectDelay = 30000

SubscriptionHandle = OPCConn1.SubscribeItem(OPCMachineName, OPCServerClass, OPCItemName, DataType, OPC_UPDATE_RATE, Deadband, Nothing)
...




==========================

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

More
20 Oct 2013 14:54 #1498 by support
You cannot assign a new EasyDAClientParameters object to the EasyDAClient object, but you can modify properties of an existing one, like this:
OPCConn1.ClientParameters.ClientReconnectDelay = 30000
Best regards

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

More
20 Oct 2013 07:57 #1496 by krannila
Hi,

I have built an OPC connection to Siemens OPC Server.
Connection works OK and I get data.

But now I'd like to modify connection parameters
- ClientReconnectDelay and so on

How to do that ?

See sample code below.

Regards,
Kari

====================================================
Public WithEvents OPCConn1 As OpcLabs.EasyOpc.DataAccess.EasyDAClient
Dim SubscriptionHandle() As Integer

Dim ClientParameters As New OpcLabs.EasyOpc.DataAccess.EasyDAClientParameters
ClientParameters.ClientReconnectDelay = 30000

' How to add ClientParameter object into EasyDAClient object ?

OPCConn1 = New OpcLabs.EasyOpc.DataAccess.EasyDAClient()
SubscriptionHandle = OPCConn1.SubscribeItem(OPCMachineName, OPCServerClass, OPCItemName, DataType, OPC_UPDATE_RATE, Deadband, Nothing)
...
====================================================

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

Moderators: support
Time to create page: 0.061 seconds