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.
Problem with live mapping
System.Boolean (C# bool), and System.String (C# string) are perfectly OK as mapped property types.
At this point I need to get a clarification from you as to whether there still is an open problem after this, and what precisely it is (ideally, with new code that shows just that problem, and "observed behavior" versus "expected behavior" description).
Best regards
Please Log in or Create an account to join the conversation.
- miron
- Topic Author
- Visitor
Yes in second one I made mistake.
In production code is ok.
No I figure out that I should use type Int64 instead than uint.
Beacouse of my mistake i could not realize that should be Int64.
Which types I should use?
Is there possibility to use uint, bool, string as type of mapped property?
Please Log in or Create an account to join the conversation.
I have hard time figuring out what is the nature of the complaint, and there seems to be at least two issues you are reporting here? Please try to pinpoint in your descriptions the two relevant things: "the observed behavior" and "the expected behavior" clearly. Anyway, let's start with the first issue, the way I understand it. If I misunderstood, correct me.
You have following lines in the Main() method:
td.LoadZonePosition.RwTestData.Value = 9001;
mp.WriteTarget(td.LoadZonePosition.RwTestData,true);
Thread.Sleep(1000);
td.LoadZonePosition.RwTestData.Value = 0;
mp.ReadTarget(td.LoadZonePosition.RwTestData,true);
And you expect the td.LoadZonePosition.RwTestData.Value be 9001 after they are executed, and not 0, right?
If so, the reason for this is that the Write is not performed. And it is not performed, because of the following type definition you have:
[DAType]
public class RwTestData
{
[DANode(BrowsePath = "")]
[DAItem(Operations = DAItemMappingOperations.Subscribe)]
[DARead(DataSource = DADataSource.Device)]
public Int64 Value {get;set;}
[DANode(BrowsePath = "")]
[DAItem(Kind = DAItemMappingKind.Exception,
Operations=DAItemMappingOperations.ReadAndSubscribe)]
[DARead(DataSource = DADataSource.Device)]
public Exception Exception {get;set;}
[MetaMember("NodeDescriptor")]
public NodeDescriptor NodeDescriptor { get; set; }
}
Note that the Value property is annotated with "Operations = DAItemMappingOperations.Subscribe". There is nothing that tells it to be included in Reads or Writes.
Best regards
Please Log in or Create an account to join the conversation.
- miron
- Topic Author
- Visitor
I have changed xml extension.
Now should be ok because it is text file, not binary.
Please Log in or Create an account to join the conversation.
- miron
- Topic Author
- Visitor
In custom installation in tree features you should localize "Communication Drivers"
and next localize "Simulation Suite".
And in subtree should be Memory Based Driver.
You could choose all Simulation Suite.
=====
I have exported also configuration as xml file.
Please Log in or Create an account to join the conversation.
Furthermore, I am not experienced with Kepware server that much. I tried adding the channel myself, but the memory driver is not available to me - not in the server configuration UI, which is understandable because I only have the Simulator driver installed, but when I run the installation, I do not see it in the list of available Communication Drivers either.
Please advise.
Please Log in or Create an account to join the conversation.
- miron
- Topic Author
- Visitor
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- miron
- Topic Author
- Visitor
or as I wrote you can create memory driver:
In this case you need create memory channel: "common2OpcModel"
and driver: "msarna"
and import tags csv
Please Log in or Create an account to join the conversation.
Note: For easiness with future uploads, I have enabled the .OPF extension on the forums.
Best regards
Please Log in or Create an account to join the conversation.