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.

Problem with live mapping

More
05 Mar 2015 14:40 #2933 by support
Replied by support on topic Problem with live mapping
I recommend that you use only the CLS-compliant types. They are described in the link I provided earlier, and the type conversions we make are described in the "Concepts" document for QuickOPC, section Advanced Topics, chapter Data Types. Sometimes (depending on the server) it may then be necessary to specify the RequestedDataType on the item, but I do not think this is the case with Kepware server.

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
  • Visitor
05 Mar 2015 14:28 #2932 by miron
Replied by miron on topic Problem with live mapping
I will check it.
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.

More
05 Mar 2015 13:53 #2931 by support
Replied by support on topic Problem with live mapping
I was now able to load the configuration into the server, and also run your LINQPad code, thank you (.XML file extension is now allowed, too).

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
  • Visitor
05 Mar 2015 11:12 - 05 Mar 2015 11:24 #2928 by miron
Replied by miron on topic Problem with live mapping
Configuration once ageing.
I have changed xml extension.

Now should be ok because it is text file, not binary.
Attachments:
Last edit: 05 Mar 2015 11:24 by miron.

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

  • miron
  • Topic Author
  • Visitor
  • Visitor
05 Mar 2015 11:10 #2927 by miron
Replied by miron on topic Problem with live mapping
You could see which driver you have to choose during installation on picture.


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.
Attachments:

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

More
05 Mar 2015 10:26 #2922 by support
Replied by support on topic Problem with live mapping
I have upgraded V5.17.495.0, but still cannot open the configuration. Couldn't it got damaged because it was renamed to .TXT? Please upload it once again.

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
  • Visitor
05 Mar 2015 10:21 #2921 by miron
Replied by miron on topic Problem with live mapping
No problem :-).

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

More
05 Mar 2015 10:06 #2919 by support
Replied by support on topic Problem with live mapping
I am sorry, I have now found that you have described the version you are using. Please ignore the previous post. I will upgrade on my side.

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

  • miron
  • Topic Author
  • Visitor
  • Visitor
05 Mar 2015 10:06 #2918 by miron
Replied by miron on topic Problem with live mapping
"Currently I am using: KepSerwer V5.16.728.0"


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.

More
05 Mar 2015 10:03 #2917 by support
Replied by support on topic Problem with live mapping
Which version of the Kepware server are you using please? I cannot load the configuration file into my V5.15.585.0 (I can upgrade if necessary).

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.

Moderators: support
Time to create page: 0.082 seconds