|
|
@ -227,7 +227,8 @@ namespace IEC61850
|
|
|
|
GENERIC_BITSTRING = 26,
|
|
|
|
GENERIC_BITSTRING = 26,
|
|
|
|
CONSTRUCTED = 27,
|
|
|
|
CONSTRUCTED = 27,
|
|
|
|
ENTRY_TIME = 28,
|
|
|
|
ENTRY_TIME = 28,
|
|
|
|
PHYCOMADDR = 29
|
|
|
|
PHYCOMADDR = 29,
|
|
|
|
|
|
|
|
CURRENCY = 30
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public enum ModeValues
|
|
|
|
public enum ModeValues
|
|
|
@ -246,7 +247,12 @@ namespace IEC61850
|
|
|
|
ALARM = 3
|
|
|
|
ALARM = 3
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public class CDC {
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// The CDC class contains helper functions to create DataObject instances for the
|
|
|
|
|
|
|
|
/// most common Common Data Classes.
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
public class CDC
|
|
|
|
|
|
|
|
{
|
|
|
|
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
|
|
|
|
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
|
|
|
|
static extern IntPtr CDC_SPS_create(string name, IntPtr parent, uint options);
|
|
|
|
static extern IntPtr CDC_SPS_create(string name, IntPtr parent, uint options);
|
|
|
|
|
|
|
|
|
|
|
@ -573,12 +579,18 @@ namespace IEC61850
|
|
|
|
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
|
|
|
|
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
|
|
|
|
static extern void IedServer_unlockDataModel(IntPtr self);
|
|
|
|
static extern void IedServer_unlockDataModel(IntPtr self);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
|
|
|
|
|
|
|
|
static extern void IedServer_updateAttributeValue(IntPtr self, IntPtr DataAttribute, IntPtr MmsValue);
|
|
|
|
|
|
|
|
|
|
|
|
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
|
|
|
|
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
|
|
|
|
static extern void IedServer_updateBooleanAttributeValue(IntPtr self, IntPtr dataAttribute, bool value);
|
|
|
|
static extern void IedServer_updateBooleanAttributeValue(IntPtr self, IntPtr dataAttribute, bool value);
|
|
|
|
|
|
|
|
|
|
|
|
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
|
|
|
|
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
|
|
|
|
static extern void IedServer_updateInt32AttributeValue(IntPtr self, IntPtr dataAttribute, int value);
|
|
|
|
static extern void IedServer_updateInt32AttributeValue(IntPtr self, IntPtr dataAttribute, int value);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
|
|
|
|
|
|
|
|
static extern void IedServer_updateInt64AttributeValue(IntPtr self, IntPtr dataAttribute, Int64 value);
|
|
|
|
|
|
|
|
|
|
|
|
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
|
|
|
|
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
|
|
|
|
static extern void IedServer_updateFloatAttributeValue(IntPtr self, IntPtr dataAttribute, float value);
|
|
|
|
static extern void IedServer_updateFloatAttributeValue(IntPtr self, IntPtr dataAttribute, float value);
|
|
|
|
|
|
|
|
|
|
|
@ -588,6 +600,9 @@ namespace IEC61850
|
|
|
|
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
|
|
|
|
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
|
|
|
|
static extern void IedServer_updateUTCTimeAttributeValue(IntPtr self, IntPtr dataAttribute, ulong value);
|
|
|
|
static extern void IedServer_updateUTCTimeAttributeValue(IntPtr self, IntPtr dataAttribute, ulong value);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
|
|
|
|
|
|
|
|
static extern void IedServer_updateTimestampAttributeValue(IntPtr self, IntPtr dataAttribute, IntPtr timestamp);
|
|
|
|
|
|
|
|
|
|
|
|
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
|
|
|
|
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
|
|
|
|
static extern void IedServer_updateQuality(IntPtr self, IntPtr dataAttribute, ushort value);
|
|
|
|
static extern void IedServer_updateQuality(IntPtr self, IntPtr dataAttribute, ushort value);
|
|
|
|
|
|
|
|
|
|
|
@ -892,24 +907,34 @@ namespace IEC61850
|
|
|
|
IedServer_unlockDataModel(self);
|
|
|
|
IedServer_unlockDataModel(self);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void UpdateBooleanAttributeValue(DataAttribute dataAttr, bool val)
|
|
|
|
public void UpdateAttributeValue(DataAttribute dataAttr, MmsValue value)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
IedServer_updateBooleanAttributeValue(self, dataAttr.self, val);
|
|
|
|
IedServer_updateAttributeValue (self, dataAttr.self, value.valueReference);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void UpdateFloatAttributeValue(DataAttribute dataAttr, float val)
|
|
|
|
public void UpdateBooleanAttributeValue(DataAttribute dataAttr, bool value)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
IedServer_updateFloatAttributeValue(self, dataAttr.self, val);
|
|
|
|
IedServer_updateBooleanAttributeValue(self, dataAttr.self, value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void UpdateInt32AttributeValue(DataAttribute dataAttr, int val)
|
|
|
|
public void UpdateFloatAttributeValue(DataAttribute dataAttr, float value)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
IedServer_updateInt32AttributeValue(self, dataAttr.self, val);
|
|
|
|
IedServer_updateFloatAttributeValue(self, dataAttr.self, value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void UpdateVisibleStringAttributeValue(DataAttribute dataAttr, string val)
|
|
|
|
public void UpdateInt32AttributeValue(DataAttribute dataAttr, int value)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
IedServer_updateVisibleStringAttributeValue(self, dataAttr.self, val);
|
|
|
|
IedServer_updateInt32AttributeValue(self, dataAttr.self, value);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void UpdateInt64AttributeValue(DataAttribute dataAttr, Int64 value)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
IedServer_updateInt64AttributeValue (self, dataAttr.self, value);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void UpdateVisibleStringAttributeValue(DataAttribute dataAttr, string value)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
IedServer_updateVisibleStringAttributeValue(self, dataAttr.self, value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void UpdateUTCTimeAttributeValue(DataAttribute dataAttr, DateTime timestamp)
|
|
|
|
public void UpdateUTCTimeAttributeValue(DataAttribute dataAttr, DateTime timestamp)
|
|
|
@ -923,6 +948,11 @@ namespace IEC61850
|
|
|
|
IedServer_updateUTCTimeAttributeValue(self, dataAttr.self, timeVal);
|
|
|
|
IedServer_updateUTCTimeAttributeValue(self, dataAttr.self, timeVal);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void UpdateTimestampAttributeValue(DataAttribute dataAttr, Timestamp timestamp)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
IedServer_updateTimestampAttributeValue (self, dataAttr.self, timestamp.timestampRef);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void UpdateQuality(DataAttribute dataAttr, ushort value)
|
|
|
|
public void UpdateQuality(DataAttribute dataAttr, ushort value)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
IedServer_updateQuality(self, dataAttr.self, value);
|
|
|
|
IedServer_updateQuality(self, dataAttr.self, value);
|
|
|
|