|
|
@@ -333,6 +333,25 @@ namespace Aitex.Core.RT.IOCore
|
|
|
provider.SetValue(this, value);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ public async Task<bool> SetPulseValue( float value, int milliSecondsDelay)
|
|
|
+ {
|
|
|
+
|
|
|
+ IIoProvider provider = IoProviderManager.Instance.GetProvider(this.Provider);
|
|
|
+
|
|
|
+ await Task.Delay(milliSecondsDelay);
|
|
|
+
|
|
|
+ if (_floatValues[index] != value)
|
|
|
+ {
|
|
|
+ LOG.Write($"Write AO[{Name}] from {_floatValues[index]} to {value}");
|
|
|
+ }
|
|
|
+
|
|
|
+ _floatValues[index] = value;
|
|
|
+ return true;
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|