[DAType]
public class Demo
{
[DANode, DAItem]
public bool var1 { get; set; }
}
static void Main()
{
var mapper2 = new DAClientMapper();
var demo = new Demo();
mapper2.Map(demo, new DAMappingContext
{
ServerDescriptor = "xxxxxxxxxxxxx",
NodeDescriptor = new DANodeDescriptor { BrowsePath = "/Demo" },
GroupParameters = 1000,
});
mapper2.Read();
demo.var1 = true;
mapper2.WriteTarget(demo.var1, false);
mapper2.Subscribe(/*active:*/true);
}
Hi
I am currently developing wpf with opc 2021 da. My OPC data structure is the same as /Demo from your OPC labs kit server. The opc connection is good, I can read&write&subscribe. However, livemapping couldn't make any changes to the KW-opcclient. no reading, no writing. Did I miss anything? Please advise. Thanks.
public class Demo
{
[DANode, DAItem]
public bool var1 { get; set; }
}
static void Main()
{
var mapper2 = new DAClientMapper();
var demo = new Demo();
mapper2.Map(demo, new DAMappingContext
{
ServerDescriptor = "xxxxxxxxxxxxx",
NodeDescriptor = new DANodeDescriptor { BrowsePath = "/Demo" },
GroupParameters = 1000,
});
mapper2.Read();
demo.var1 = true;
mapper2.WriteTarget(demo.var1, false);
mapper2.Subscribe(/*active:*/true);
}
Hi
I am currently developing wpf with opc 2021 da. My OPC data structure is the same as /Demo from your OPC labs kit server. The opc connection is good, I can read&write&subscribe. However, livemapping couldn't make any changes to the KW-opcclient. no reading, no writing. Did I miss anything? Please advise. Thanks.