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.

Case sensitive - ElementNameCaseSensitive

More
12 Jul 2017 07:24 #5345 by support
There is actually no way in OPC to achieve what you have indicated. This is because the interpretation of the item IDs is entirely left on the OPC server, with client having no information about their syntax, including case-sensitivity.

Regarding the ElementNameCaseSensitive parameter:

This parameter applies only during browsing, and only in somewhat special case. For browsing, there is a parameter where you can specify a name filter (a string like "AB*", for examples), and the browse operation would return only the items that match the filter. In newest OPC DA specification (3.0), this filter is passed to the OPC server and interpreted there, giving us no choice to influence how it is interpreted. If your target server happens to be OPC DA 1.0 or 2.0, then there is (generally) no name filtering guaranteed to be implemented on the server side. We therefore get all the items from the server, ad then post-filter them on the client side. In that case, you can influence the case-sensitivity of that filtering using this parameter. Note that other aspects of browsing (such as case-sensitivity of the parent node ID passed to the browse operation) are not influenced by this parameter.

Best regards

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

More
11 Jul 2017 15:53 #5344 by VFoxpro
I tried to handle OPC (DA) item case insensitive ..

ElementNameCaseSensitive defaults to False. But somhow it will be ignored.

PowerShell-Example:
PS> $oClient = new-object -com OPCLabs.EasyOpc.DataAccess.EasyDAClient
PS> $oParm = new-object -com OpcLabs.EasyOpc.DataAccess.Engine.EasyDAClientParameters
PS> write-host $oParm.ElementNameCaseSensitive
False
PS> write-host $oClient.ReadItemValue("", "Matrikon.OPC.Simulation.1", "DM1_SPS.nProdukt")
0
PS> write-host $oClient.ReadItemValue("", "Matrikon.OPC.Simulation.1", "DM1_SPS.NPRODUKT")
Exception ...:  "The item definition does not conform to the server's syntax."

Did I choose the wrong way? Is there another way to disregard the case?

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

Moderators: support
Time to create page: 0.052 seconds