Hello,
I have two classes with properties which i mapped succesfully, which means i can read the correct data from the server. Now I want to change properties and write the values to the server for each class. After Calling simply the client.write() methode one class is able to write on the server, the other ignores the writing without a message.
Following the structure of the two classes, with reduced properties
The one which will be ignored:
[UANamespace("CODESYSSPV3/3S/IecVarAccess"), UAType]
public class MappedIoAnalog : BindablePropertyBase
{
private double actualValue;
[UANode(BrowsePath = ".Actual_Value"),
UAData(Operations = UADataMappingOperations.All, Kind = UADataMappingKind.Value),
UAMonitoring(SamplingInterval = 250), UASubscription(PublishingInterval = 500)]
public double ActualValue
{
get { return actualValue; }
set { SetProperty(ref actualValue, value); }
}
}
}
The one which will write, the class :
[UANamespace("CODESYSSPV3/3S/IecVarAccess")]
[UAType]
public class MappedMotionAxis : BindablePropertyBase
{
private AxisControl controlProperties = new AxisControl();
[UANode(BrowsePath = ".control")]
public AxisControl ControlProperties => controlProperties;
}
[UANamespace("CODESYSSPV3/3S/IecVarAccess")]
[UAType]
public class AxisControl : BindablePropertyBase
{
private double currentPosition;
[UANode(BrowsePath = ".Current_position"),
UAData(Operations = UADataMappingOperations.ReadAndSubscribe, Kind = UADataMappingKind.Value),
UAMonitoring(SamplingInterval = 250), UASubscription(PublishingInterval = 500)]
public double CurrentPosition
{
get { return currentPosition; }
set { SetProperty(ref currentPosition, value); }
}
}
I am calling the write method like this
What the mistake here? Did I miss any Attribute? The write method should write all mappings, or shouldn't it?
best regards