- Posts: 8
- Thank you received: 0
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.
UA Alarms&Conditions in FreePascal (Lazarus)
- Joachim@FreePascal
-
- Offline
- Premium Member
-
This is what I got back:
[] Success
[] Success
0
OPC-UA service result - An error specific to OPC-UA service occurred.
---- SERVICE RESULT ----
StatusCode: {BadMonitoredItemFilterInvalid} = 0x80430000 (2151874560)
[] *** Failure -2143092736 (0x80430000): OPC-UA service result - An error specific to OPC-UA service occurred.
[] *** Failure -2143092736 (0x80430000): OPC-UA service result - An error specific to OPC-UA service occurred.
OPC-UA service result - An error specific to OPC-UA service occurred.
---- SERVICE RESULT ----
StatusCode: {BadMonitoredItemFilterInvalid} = 0x80430000 (2151874560)
0
I hope this helps,
thank You
Please Log in or Create an account to join the conversation.
1. First thing that needs to be checked is whether there are some events coming in with non-null eventArgs.Exception. Instead of simply ignoring that ('exit'), in case of non-null eventArgs.Exception, add the eventArgs.ErrorMessage to memo1.Lines.
2. You stated that eventArgs.EventData is always null, but have not stated whetehr the code ever
gets past the 'if assigned(eventArgs.Exception) then exit;' statement. Please clarify.
3. make some 'memo1.Lines.Add...' in the 'except' part of the 'try' statement.
Ideally, make the changes, and then post here the output.
Thank you
Please Log in or Create an account to join the conversation.
Sent: Friday, September 16, 2016 8:48 AM
[...]
Hello [...]
I really would like to use the QuickOPC component for the communication with the Bosch MTX control.
May you can help me to make it run…
Best regards
J.
Please Log in or Create an account to join the conversation.
we have some very basic examples in Delphi for UA Alarms&Conditions that come with the product (just look under the install directory, ExamplesCom\OP). The reason why we do not have more examples is because there is such a big number of tools and languages from which QuickOPC can be used, that it makes it impossible to provide high number of examples in all of them. The Delphi examples show OPC UA Alarms&Conditions, but currently without filtering. It look e.g. like this:
It can also be done with hooking events (using a "pull" mechanism), and there is an example for it as well in the product.
As to the filter: You wrote "it failed". That's not enough information. What precisely have you tried, and what were the results? I would be more than happy to help, and even we can even commonly create some FreePascal examples that would then help other users.
Creating a filter can be fairly complicated - because UA is very flexible in this manner. Below some example in C#. Once you understand what is going on, we can try to do an equivalent, or something similar, in Delphi or FreePascal.
and
Best regards
Please Log in or Create an account to join the conversation.
Sent: Friday, July 22, 2016 7:42 AM
...
Hello Mr Zahradnik,
thank you for your hints.
I have used version 5.3. I develop using FreePascal. Is there any Pascal (Delphi) example available for Alarms & Conditions?
Later I used version 5.4, but it failed also. How can I set a filter for the subscription? I want to subscribe the DiagnosisLogbook of a Bosch control.
Best regards
J.
Please Log in or Create an account to join the conversation.
Thank you for your interest in our products.
QuickOPC version 5.40 supports OPC-UA Alarms & Conditions. Are you using this version?
If not, please have a look at it.
If you are already using it, but something in relation to Alarms&Conditions does not work as expected, please inform me about the details.
Best regards
Please Log in or Create an account to join the conversation.
Sent: Thursday, July 14, 2016 4:26 PM
To: Zbynek Zahradnik <...>
Subject: OPC Labs Download Follow-up Form
...
Hello,
I have played around with the EasyOpcUA typelib with FreePascal (Lazarus). I have to establish a connection with an OPC.UA Server. This runs so far, but I can not access the Alarm-Event via Filter.
Is it planed to implement this feature?
J.
Please Log in or Create an account to join the conversation.