Quantcast
Viewing all 1794 articles
Browse latest View live

Getting 'Read not completed' and 'Write not completed' errors while trying to read from Softing.OPC.S7 - by: LuisGar

Ok, Thanks, I am trying to update my application to the new libraries, but since at least the documentation were well writen it would be more helpful,

here an example of what I mean.

Before I was able to read a collect the item selected in this way

OPCItemDialog.ServerDescriptor.MachineName

now is

OPCItemDialog.InputsOutputs.CurrentNodeDescriptor.ServerDescriptor.MachineName

nested into 2 layers deeper. is it actually the correct way to collect the data from this form??

Disabling automatic subscriptions made with OPC Reads - by: support

When you call Read, QuickOPC sets up an OPC subscription internally anyway. This is in attempt to have the values “ready” for you next time, without having to go the OPC server. QuickOPC observes the pattern of Reads, and from time to time, it adjusts the update rate of the OPC subscription. This is done by removing the items from one OPC group and adding them to a different group.

The rate adjusting operation may have some side-effects. It may be time consuming and be the reason of the occasional longer processing times. Writes would be affected indirectly – because (unless you specifically specify differently), only one “channel” is used to communicate with the OPC server, so while the items are being moved, other operations have to wait as well.

Also, the value of an OPC item that is being moved to a different group may be unavailable momentarily.

We do not provide a straightforward way to disable the auto-subscription and rate-adjusting mechanism described above. But you can try to set the parameters as below – the first two are static properties and should be set just once, at the beginning of the program; the other two are instance properties and should be set on each instance of EasyDAClient (if you have more than one):




Note that when doing it like this, it may very well happen that you Read times will become slower – because they will become a “true” OPC reads.

Subscription stopped firing events - by: sjscheider

Over the last couple weeks, we've noticed that some devices stop communicating with our client code. When we've dug into the issue further, we've noticed that the device still indicates that is connected to our client code as does our client code. However, no data change events for the 3 subscriptions appear to be occurring. We have exception handing in the data change event code and we are not seeing exceptions. We also log all events that occur in the server condition changed event and no messages are logged.

It is as though the connection to the device is somehow frozen. We tried rebooting the device but that does not fix the issue. The only way we've been able to fix the issue is by restarting the client app.

Any thoughts on how to debug this issue further? It appears very random with different devices. Any suggestions on how to detect this issue and resolve it?

Thanks,
Scott

Getting data type without reading node - by: gtan14

Is there a way to get the data type of a node without actually reading it? OPCDA has a method GetPropertyValue that seems to achieve this. Is there something similar for OPCUA?

Cannot browse OPC servers in remote computer - by: SZL

Hello,

We develop an application to browse OPC tags in local or remote computer.
We use the "OpcBrowseControl" control.

The local browsing working well, but the remote not (remote computer IP: 172.25.118.1). I try add the remote server name to the "Any computer" and "Network", but it throw errors:

(I dont know the required format and I not found the documentation about this)


In "Any computer" node:



In "Network" node:



Another client, for example Kepware Quick Client can connect to the remote OPC Server from the same computer:



Can you help me please what is the correct format or what is the problem in this case?

Thank you!

Advanced Installer auto register QuickOPC - by: SZL

Hello,

I follow this description to build the auto registration into my installation file:
http://opclabs.doc-that.com/files/onlinedocs/QuickOpc/Latest/User%27s%20Guide%20and%20Reference-QuickOPC/License_Store.htmlhttp://opclabs.doc-that.com/files/onlinedocs/QuickOpc/Latest/User%27s%20Guide%20and%20Reference-QuickOPC/License_Store.html

I build the setup with Advanced Installer.
So I export my registry entries from the development computer and I integrate the keys into Advanced Installer setup project.
In production computer after the installation I have licencing problems with the QuickOPC controls.
In this case I need execute the QuickOPC installer with custom installation - Production (.NET) and use the licensemanager to activate the QuickOPC product.
The copy of the registry entries from development computer is not enough?



What need I do to make this installer working in production environment?

Thank you!

Forcing AsyncIO2::Read - by: Holbach

It appears that when doing an EasyDAClient.Read or ReadMutliple that an AsyncIO3::ReadMaxAge call is issued.

Is there a way to force this to be a AsyncIO2::Read call instead?

The use case here is that we are working with a Matrikon Server that does not correctly handle the ReadMaxAge call, but does appear to be responding to a AsyncIO2 Read as expected.

Any WinForm Examples? - by: gkalipershad

I have a customer that is testing with LiveMapping. We have the Console app that installs with the toolkit, but they are requesting a WinForms sample application that displays LiveMapping. Specifically one that can write a value to an OPC DA Server. I wanted to see if you had anything before I attempted to write my own.

Thanks,
GK

Upgrading a Project with Live Binding - by: gkalipershad

Hello,

I am working with a customer who has a project compiled with version 5.40 of the toolkit. He is trying to upgrade to 5.54 and is having some issues. In my own testing, I am running into similar issues. I have a 4 point bindings set up. If I try to update the references in the Visual Studio solution, it looks like the bindings still look for the 5.40 dlls. If I try to replace the DAConnectivity, PointBinder and BindingExtender components on the form, it deletes all the configured bindings. Do you have any suggestions?

Thanks,
GK

Installation with LicensingException - by: SolutionNow

We have purchased a license and installed in numerous PCs without problem, until a couple of days ago when a colleague attempted to install the license on two different PCs but he encountered the same licensing error:

Not allowed to run by the license "Multipurpose". You might be using a trial license, and the version of the software you are using is obsolete. Obtain a recent version to resolve this problem.
Component name: "QuickOPC", license IDs: "Multipurpose", version number: 554, release date: 09/11/2018, trial validity: 210 days, option name: "EasyUAClient


In theory we haven't changed version or done anything different compared to previous successful installations, why are we now having this problem?

Thank you

DataChange event firing every 5 seconds for disconnected devices/servers - by: sjscheider

If I unplug or turn off a device, 2 things are happening that I'd like to get more information about.
  1. It appears that the data change event is firing for all subscriptions every 5 seconds. What is the purpose of this event firing since there is not any data changes to report? What actions do you recommend performing in this scenario? We are capturing this an an error condition and we are getting way too many errors when multiple devices are disconnected unexpectedly. (Example, the network cable is unplugged from a switch.) Should we simply ignore all events. What would be the recommended way to detect the event? We currently see 2 different messages.



    Are there any setting to make this event occur less often? What are the ramifications of changing these settings?
  2. In the ServerConditionChanged event handler, we the Connections ConnectionState event firing every 15 seconds. What settings controller this frequency? What are the ramifications of changing these settings?

Thanks for all of your assistance.

Getting 'Read not completed' and 'Write not completed' errors while trying to read from Softing.OPC.S7 - by: djorsher

Hi,

I'm trying to read and write to a Softing S7 server running on localhost, but getting errors.

I'm using OpcLabs.EasyOpc.DataAccess.EasyDAClient via the win32com client for Python.

I've installed on my machine (Windows 7) both the Softing S7 server and the Softing Demo Server.

When reading and writing from/to the Demo Server - it works.

The commands I'm issuing are:
client = win32com.client.Dispatch('OpcLabs.EasyOpc.DataAccess.EasyDAClient')
client.WriteItemValue('localhost','Softing.OPC.S7.DA.1', 'NodeB/Test1', 1)
client.ReadItemValue('localhost','Softing.OPC.S7.DA.1','NodeB/Test1')


I'm getting these errors:

1. Read not completed. This error indicates that it could not be verified that the requested read operation was completed during the timeout period. It is possible that the read operation will actually succeed or fail, but later. Increase the timeout period if you want to obtain positive or negative indication of the operation outcome. Other reason for this error may be that under heavy loads, topic request or response queue is overflowing. Check the event log for queue overflow errors (if event logging is supported by the product and enabled).

2. Write not completed. This error indicates that it could not be verified that the requested write operation was completed during the timeout period. It is possible that the write operation will actually succeed or fail, but later. Increase the timeout period if you want to obtain positive or negative indication of the operation outcome. Other reason for this error may be that under heavy loads, topic request or response queue is overflowing. Check the event log for queue overflow errors (if event logging is supported by the product and enabled).

After issuing the write operation, the item value is set to 1, but it hangs for a while, and then I'm getting this error.

Any help would be appreciated.

Cannot browse OPC servers in remote computer - by: SZL

Hello,

We develop an application to browse OPC tags in local or remote computer.
We use the "OpcBrowseControl" control.

The local browsing working well, but the remote not (remote computer IP: 172.25.118.1). I try add the remote server name to the "Any computer" and "Network", but it throw errors:

(I dont know the required format and I not found the documentation about this)


In "Any computer" node:



In "Network" node:



Another client, for example Kepware Quick Client can connect to the remote OPC Server from the same computer:



Can you help me please what is the correct format or what is the problem in this case?

Thank you!

Hold Periods. Server Detach meaning - by: Andriy

Hello,

I can't find explanation of "Hold Periods - Server Detach" property (when and how it is used). Can you provide an example?
Suppose, I read one OPC item once. Next 30 sec the connection to OPC server will be maintained by "Topic Read" property.
Does it mean that connection longlivity is 30sec + 10sec if "Server Detach" property has value 10 sec?

Best regards

Read ad Write multiple values - by: Jesus Rodriguez

Hi

I have the following code to read and write:

import win32com.client
client = win32com.client.Dispatch('OpcLabs.EasyOpc.DataAccess.EasyDAClient')

value = client.ReadItemValue('', 'CoDeSys.OPC.02', '.Inputs[9]')
client.WriteItemValue('', 'CoDeSys.OPC.02', '.Inputs[9]', 7)

They work well but I would like to know how to read and write multiple values in just one function. Is there any function already doing this?

Thank you.

Getting 'Read not completed' and 'Write not completed' errors - by: LuisGar

error Run time is over the limit in license "Multipurpose" - by: LuisGar

Well, now I have another Problem, if I ignore the time the program now requires to load and continue running it, after a while, the OPC Connection stops working, I dont get any update of the data, I means not new Events are fired by the OPCClient, The same variables are being monitored by another tool which also use OPC protocol, so the OPC Server is still working. In my error log files I found no error at all related with OPC.

Read ad Write multiple values - by: Jesus Rodriguez

Hi

I have the following code to read and write:

import win32com.client
client = win32com.client.Dispatch('OpcLabs.EasyOpc.DataAccess.EasyDAClient')

value = client.ReadItemValue('', 'CoDeSys.OPC.02', '.Inputs[9]')
client.WriteItemValue('', 'CoDeSys.OPC.02', '.Inputs[9]', 7)

They work well but I would like to know how to read and write multiple values in just one function. Is there any function already doing this?

Thank you.

Checking if node exists on server - by: gtan14

Is there a way to see if a node exists given a browse path such as this - Data Type Examples.16 Bit Device.R Registers.Double2? QuickOPC for DA has a method ReadItem() where I can pass in the machine, server and itemid, and for the item id, I'm just passing in that browse path. Does UA have something similar?

Error "Server failed", no reconnection - by: support

...from time to time, some of the systems connected via OPCLabs/Tunneller return errors, and one of them some times won’t reconnect.
Typically this event occurs:

EasyDAClient_ItemChanged Error: -1073442815
“Server failed. This error originates in the OPC Data Access server. A vendor specific fatal error has occurred within the server. The server is no longer functioning. The recovery procedure from this situation is vendor specific. The application will try to reconnect to the server after a configurable period. Technical information: The call to IOPCServer::GetStatus on the OPCServer object has returned OPC_STATUS_FAILED in the OPCSERVERSTATUS structure.”

There might be network problems or the problem is maybe, as indicated, the OPC DA server (Honeywell HWHsc.OPCServer in this case), but the big problem is that EasyOPC some times is not reconnecting after this event occurs, but when we are testing the same connection with Matrikon Explorer, for instance, with the same amount of items (about 2000) this has no problems, and all items appear with quality Good.
We have to restart our webserver to reinitiate easyopc, then it normally works, but some times maybe two or three restarts are required to reconnect to this “troubled” system.

Do you have any suggestions which EasyOPC options we should use in this case to make the client as “reconnectable” as possible ? (we have been a little afraid to make changes from standard, except the ones we have already sent you, and 7 OPC connections in total, from which 6 work fine, will be affected by the same changes)
Viewing all 1794 articles
Browse latest View live