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.

getting null (was: OPC UA Syntax for Simatic.NET UA server)

More
05 Sep 2019 06:46 #7704 by support
Hello,

there probably is an error, you just do not see it. In order to get the error information, add a mapping with Kind set to Exception (the type of the .NET property then needs to be an Exception) or ErrorMessage (the type of the .NET property then needs to be a String).

See:

- opclabs.doc-that.com/files/onlinedocs/QuickOpc/Latest/User%2...rame.html#Mapping%20Kinds.html
- opclabs.doc-that.com/files/onlinedocs/QuickOpc/Latest/User%2...n%20the%20Mapper%20Object.html


Best regards

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

More
04 Sep 2019 10:23 - 05 Sep 2019 06:41 #7700 by Giuseppe12
I've to read data from Siemens Panel TP 900 Comfort with OPC UA.

I've set
UAEndpointDescriptor endpointDescriptor = "opc.tcp://192.168.107.12:4870";

After I've set
var mapper = new UAClientMapper();

After
mapper.Map(datiseghetto, new UAMappingContext
            {
                EndpointDescriptor = endpointDescriptor,
 
                NodeDescriptor = new UANodeDescriptor
                {                                    
                    BrowsePath = UABrowsePath.Parse("[ObjectsFolder]/WinCC Panel RT/[nsu=urn:HmiWebLink:VarProvider;ns=3;s=Tags]",  "")
                },
                MonitoringParameters = 1000, 
            });
where datiseghetto is a class
var datiseghetto = new Lettura_Seghetto();
 
[UANamespace("nsu=urn:HmiWebLink:VarProvider;ns=3")]
    [UAType]
    public class Lettura_Seghetto
    {        
        [UANode(BrowsePath = "/CED_TriggerScritturaVersoUffici"),
            UAData(Operations = UADataMappingOperations.ReadAndWrite, ValueType = typeof(string))]
        public string CED_TriggerScritturaVersoUffici;
    }
When I invoke the method
mapper.Read();

no error occurs but the value of "CED_TriggerScritturaVersoUffici" is always null.

Why ? What is wrong ?

Thanks
Giuseppe
Last edit: 05 Sep 2019 06:41 by support.

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

Moderators: support
Time to create page: 0.046 seconds