diff --git a/Modules/SicModules/Config/PM/PM1/DeviceModelPM1.xml b/Modules/SicModules/Config/PM/PM1/DeviceModelPM1.xml index bb33197..267aad7 100644 --- a/Modules/SicModules/Config/PM/PM1/DeviceModelPM1.xml +++ b/Modules/SicModules/Config/PM/PM1/DeviceModelPM1.xml @@ -105,7 +105,7 @@ - + diff --git a/Modules/SicModules/Config/PM/PM1/_ioDefinePM1.xml b/Modules/SicModules/Config/PM/PM1/_ioDefinePM1.xml index c9d14da..5992eb7 100644 --- a/Modules/SicModules/Config/PM/PM1/_ioDefinePM1.xml +++ b/Modules/SicModules/Config/PM/PM1/_ioDefinePM1.xml @@ -383,6 +383,7 @@ + diff --git a/Modules/SicModules/Config/PM/PM2/DeviceModelPM2.xml b/Modules/SicModules/Config/PM/PM2/DeviceModelPM2.xml index dd8e718..66c4f80 100644 --- a/Modules/SicModules/Config/PM/PM2/DeviceModelPM2.xml +++ b/Modules/SicModules/Config/PM/PM2/DeviceModelPM2.xml @@ -105,7 +105,7 @@ - + diff --git a/Modules/SicModules/Config/PM/PM2/_ioDefinePM2.xml b/Modules/SicModules/Config/PM/PM2/_ioDefinePM2.xml index defa968..becd98a 100644 --- a/Modules/SicModules/Config/PM/PM2/_ioDefinePM2.xml +++ b/Modules/SicModules/Config/PM/PM2/_ioDefinePM2.xml @@ -384,6 +384,7 @@ + diff --git a/SicUI/Models/PMs/PMOperationView.xaml b/SicUI/Models/PMs/PMOperationView.xaml index e6f182c..9201d7a 100644 --- a/SicUI/Models/PMs/PMOperationView.xaml +++ b/SicUI/Models/PMs/PMOperationView.xaml @@ -6752,6 +6752,7 @@ HorizontalAlignment="Center" VerticalAlignment="Top" Command="{Binding CmdTvEnable}" + CommandReset="{Binding CmdTvReset}" DeviceData="{Binding TV}" RenderTransformOrigin="-1.667,1.222" /> diff --git a/SicUI/Models/PMs/PMOperationViewModel.cs b/SicUI/Models/PMs/PMOperationViewModel.cs index 3f976d3..65e9c38 100644 --- a/SicUI/Models/PMs/PMOperationViewModel.cs +++ b/SicUI/Models/PMs/PMOperationViewModel.cs @@ -1480,6 +1480,7 @@ namespace SicUI.Models.PMs public string LabelU13 { get; set; } public ICommand CmdTvEnable { get; set; } + public ICommand CmdTvReset { get; set; } public ICommand CmdTvPostionToZero { get; set; } public ICommand CmdTurnGasValve { get; set; } public ICommand CmdSetMfcFlow { get; set; } @@ -1488,6 +1489,7 @@ namespace SicUI.Models.PMs { this.DisplayName = "Operation"; CmdTvEnable = new DelegateCommand(PerformCmdTvEnable); + CmdTvReset = new DelegateCommand(PerformCmdTvReset); CmdTurnGasValve = new DelegateCommand(PerformCmdTurnGasValve); CmdSetMfcFlow = new DelegateCommand(PerformCmdSetMfcFlow); } @@ -1516,6 +1518,10 @@ namespace SicUI.Models.PMs var pair = (KeyValuePair)data; InvokeClient.Instance.Service.DoOperation($"{SystemName}.TV.SetTVValveEnable", pair.Value); } + private void PerformCmdTvReset(object data) + { + InvokeClient.Instance.Service.DoOperation($"{SystemName}.TV.SetTVReset", true); + } private void PerformCmdTurnGasValve(object data) { var pair = (KeyValuePair)data;