- Posts: 3
- Thank you received: 1
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.
Mapping object to Kepware Simulator Sample
- Whistlerone
-
Topic Author
- Offline
- Junior Member
-
Please Log in or Create an account to join the conversation.
I have not verified my suggestion below, but I have checked how the nodes in the KepServerEx are organized with your configuration,l and it seems to me that I know the reason.
"Channel1" is "Organizes" reference from the Objects folder.
"Device1" is "Organizes" reference from "Channel1".
"Tag1" is "HasComponent" reference from "Device1".
For the first two, the character that precedes them in browse path should be '/', which means "any hierarchical". The use of '.', which means "any component", is not possible beween the Object folder and Channel 1, because the "Organizes" reference is not a component.
The Tag1 is a component, and therefore either '.' or (a broader) '/' will work.
I think that the browse path to Device1 should therefore be [ObjectsFolder]/Channel1/Device1 ; the browse path to Tag1 should be [ObjectsFolder]/Channel1/Device1.Tag1 (or [ObjectsFolder]/Channel1/Device1/Tag1 ).
I hope this helps
Please Log in or Create an account to join the conversation.
- Whistlerone
-
Topic Author
- Offline
- Junior Member
-
- Posts: 3
- Thank you received: 1
Please Log in or Create an account to join the conversation.
can you attach here the project, and the KepServerEx configuration file?
Thank you
Please Log in or Create an account to join the conversation.
- Whistlerone
-
Topic Author
- Offline
- Junior Member
-
- Posts: 3
- Thank you received: 1
Sample code to do a read of the value I am trying to map(This works):
Now the this is the object I am trying to map to.:
and the code to preform the mapping:
This results the exception being thrown:
with no inner exception.
The kepware diagnostic log of the transaction:
So I'm trying to figure out why the TranslateBrowsePathsToNode is failing. I confirmed that 'KEPServerEX' is namespace ns=2 in this instance, and the path seem to match. Is there something obvious that I am missing?
Please Log in or Create an account to join the conversation.