|
@@ -27,7 +27,7 @@ namespace Venus_MainPages.ViewModels
|
|
internal class OverVenusViewModel : BindableBase
|
|
internal class OverVenusViewModel : BindableBase
|
|
{
|
|
{
|
|
#region 私有字段
|
|
#region 私有字段
|
|
- private List<string> m_CurrentModuleRecipes=new List<string>();
|
|
|
|
|
|
+ private List<string> m_CurrentModuleRecipes = new List<string>();
|
|
private bool m_PVN21ValveIsOpen;
|
|
private bool m_PVN21ValveIsOpen;
|
|
private bool m_PVN22ValveIsOpen;
|
|
private bool m_PVN22ValveIsOpen;
|
|
private bool m_N2ValveIsOpen;
|
|
private bool m_N2ValveIsOpen;
|
|
@@ -148,7 +148,7 @@ namespace Venus_MainPages.ViewModels
|
|
private float m_ChillerTempSetpoint;
|
|
private float m_ChillerTempSetpoint;
|
|
private float m_WallTempSetpoint;
|
|
private float m_WallTempSetpoint;
|
|
|
|
|
|
- private bool m_HeIsPressureMode=true;
|
|
|
|
|
|
+ private bool m_HeIsPressureMode = true;
|
|
|
|
|
|
private bool m_ChillerIsOn;
|
|
private bool m_ChillerIsOn;
|
|
|
|
|
|
@@ -190,16 +190,16 @@ namespace Venus_MainPages.ViewModels
|
|
|
|
|
|
private float m_PendulumValvePosition;
|
|
private float m_PendulumValvePosition;
|
|
|
|
|
|
- private bool m_IsTurboPumpAtSpeed;
|
|
|
|
|
|
+ private bool m_IsTurboPumpAtSpeed;
|
|
private bool m_TurboPumpWaterFlowSwitch;
|
|
private bool m_TurboPumpWaterFlowSwitch;
|
|
|
|
|
|
private bool m_IsHasWafer;
|
|
private bool m_IsHasWafer;
|
|
|
|
|
|
- private Recipe m_CurrentRecipe=new Recipe ();
|
|
|
|
|
|
+ private Recipe m_CurrentRecipe = new Recipe();
|
|
|
|
|
|
- private RecipeResult m_CurrentRecipeResult=new RecipeResult ();
|
|
|
|
|
|
+ private RecipeResult m_CurrentRecipeResult = new RecipeResult();
|
|
|
|
|
|
- private RecipeStep m_CurrentRecipeStep = new RecipeStep();
|
|
|
|
|
|
+ private RecipeStep m_CurrentRecipeStep = new RecipeStep();
|
|
|
|
|
|
private double m_ChamberPressureFeedBack;
|
|
private double m_ChamberPressureFeedBack;
|
|
|
|
|
|
@@ -250,7 +250,7 @@ namespace Venus_MainPages.ViewModels
|
|
public float PendulumValvePosition
|
|
public float PendulumValvePosition
|
|
{
|
|
{
|
|
get { return m_PendulumValvePosition; }
|
|
get { return m_PendulumValvePosition; }
|
|
- set{SetProperty(ref m_PendulumValvePosition, value);}
|
|
|
|
|
|
+ set { SetProperty(ref m_PendulumValvePosition, value); }
|
|
}
|
|
}
|
|
|
|
|
|
public float BiasMatchC1
|
|
public float BiasMatchC1
|
|
@@ -510,11 +510,11 @@ namespace Venus_MainPages.ViewModels
|
|
public double TurboN2FlowSetPoint
|
|
public double TurboN2FlowSetPoint
|
|
{
|
|
{
|
|
get { return m_TurboN2FlowSetPoint; }
|
|
get { return m_TurboN2FlowSetPoint; }
|
|
- set
|
|
|
|
|
|
+ set
|
|
{
|
|
{
|
|
if (value != m_TurboN2FlowSetPoint)
|
|
if (value != m_TurboN2FlowSetPoint)
|
|
- {
|
|
|
|
- InvokeClient.Instance.Service.DoOperation($"{ModuleName}.MfcN2.SetPoint", value);
|
|
|
|
|
|
+ {
|
|
|
|
+ InvokeClient.Instance.Service.DoOperation($"{ModuleName}.MfcN2.SetPoint", value);
|
|
}
|
|
}
|
|
SetProperty(ref m_TurboN2FlowSetPoint, value);
|
|
SetProperty(ref m_TurboN2FlowSetPoint, value);
|
|
}
|
|
}
|
|
@@ -755,8 +755,8 @@ namespace Venus_MainPages.ViewModels
|
|
get { return m_RtDataValues; }
|
|
get { return m_RtDataValues; }
|
|
set { SetProperty(ref m_RtDataValues, value); }
|
|
set { SetProperty(ref m_RtDataValues, value); }
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
public bool PumpIsOpen
|
|
public bool PumpIsOpen
|
|
{
|
|
{
|
|
@@ -787,7 +787,7 @@ namespace Venus_MainPages.ViewModels
|
|
set { SetProperty(ref m_IsVAC, value); }
|
|
set { SetProperty(ref m_IsVAC, value); }
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
//public bool BRFIsOn
|
|
//public bool BRFIsOn
|
|
//{
|
|
//{
|
|
// get { return m_BRFIsOn; }
|
|
// get { return m_BRFIsOn; }
|
|
@@ -809,22 +809,22 @@ namespace Venus_MainPages.ViewModels
|
|
get { return m_IsPositionMode; }
|
|
get { return m_IsPositionMode; }
|
|
set { SetProperty(ref m_IsPositionMode, value); }
|
|
set { SetProperty(ref m_IsPositionMode, value); }
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
|
|
|
|
public double HeGasSetpoint
|
|
public double HeGasSetpoint
|
|
{
|
|
{
|
|
get { return m_HeGasSetpoint; }
|
|
get { return m_HeGasSetpoint; }
|
|
- set
|
|
|
|
|
|
+ set
|
|
{
|
|
{
|
|
- SetProperty(ref m_HeGasSetpoint, value);
|
|
|
|
|
|
+ SetProperty(ref m_HeGasSetpoint, value);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public int HePressureSetpoint
|
|
public int HePressureSetpoint
|
|
{
|
|
{
|
|
get { return m_HePressureSetpoint; }
|
|
get { return m_HePressureSetpoint; }
|
|
- set
|
|
|
|
|
|
+ set
|
|
{
|
|
{
|
|
- SetProperty(ref m_HePressureSetpoint, value);
|
|
|
|
|
|
+ SetProperty(ref m_HePressureSetpoint, value);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public float SRFFwdPowerSetpoint
|
|
public float SRFFwdPowerSetpoint
|
|
@@ -1035,6 +1035,9 @@ namespace Venus_MainPages.ViewModels
|
|
public DelegateCommand EndStepCommand =>
|
|
public DelegateCommand EndStepCommand =>
|
|
_EndStepCommand ?? (_EndStepCommand = new DelegateCommand(OnEndStep));
|
|
_EndStepCommand ?? (_EndStepCommand = new DelegateCommand(OnEndStep));
|
|
|
|
|
|
|
|
+ private DelegateCommand<object> _AbortRecipeCommnad;
|
|
|
|
+ public DelegateCommand<object> AbortRecipeCommnad =>
|
|
|
|
+ _AbortRecipeCommnad ?? (_AbortRecipeCommnad = new DelegateCommand<object>(OnAbortRecipe));
|
|
#endregion
|
|
#endregion
|
|
|
|
|
|
#region 构造函数
|
|
#region 构造函数
|
|
@@ -1045,7 +1048,7 @@ namespace Venus_MainPages.ViewModels
|
|
m_IsATM = true;
|
|
m_IsATM = true;
|
|
|
|
|
|
ModuleName = "PMA";
|
|
ModuleName = "PMA";
|
|
-
|
|
|
|
|
|
+
|
|
CurrentModuleRecipes = GetFilesNames(Path.Combine(QueryDataClient.Instance.Service.GetData("GetRTPath").ToString(), "Recipes", ModuleName)).ToList();
|
|
CurrentModuleRecipes = GetFilesNames(Path.Combine(QueryDataClient.Instance.Service.GetData("GetRTPath").ToString(), "Recipes", ModuleName)).ToList();
|
|
|
|
|
|
DispatcherTimer timer = new DispatcherTimer();
|
|
DispatcherTimer timer = new DispatcherTimer();
|
|
@@ -1060,8 +1063,8 @@ namespace Venus_MainPages.ViewModels
|
|
{
|
|
{
|
|
CommonValveControl commonValveControl = (CommonValveControl)obj;
|
|
CommonValveControl commonValveControl = (CommonValveControl)obj;
|
|
if (commonValveControl.IsCanEdit == true)
|
|
if (commonValveControl.IsCanEdit == true)
|
|
- {
|
|
|
|
- InvokeClient.Instance.Service.DoOperation($"{ModuleName}.ControlValve",Convert.ToInt32( commonValveControl.Tag.ToString()), !commonValveControl.Status);
|
|
|
|
|
|
+ {
|
|
|
|
+ InvokeClient.Instance.Service.DoOperation($"{ModuleName}.ControlValve", Convert.ToInt32(commonValveControl.Tag.ToString()), !commonValveControl.Status);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
private void OnPMInit()
|
|
private void OnPMInit()
|
|
@@ -1070,43 +1073,43 @@ namespace Venus_MainPages.ViewModels
|
|
}
|
|
}
|
|
private async void OnGas()
|
|
private async void OnGas()
|
|
{
|
|
{
|
|
- await Task.Run(async () =>
|
|
|
|
|
|
+ await Task.Run(async () =>
|
|
{
|
|
{
|
|
- InvokeClient.Instance.Service.DoOperation($"{ModuleName}.MfcGas1.SetPoint", MFC1SetPoint);
|
|
|
|
- InvokeClient.Instance.Service.DoOperation($"{ModuleName}.MfcGas2.SetPoint", MFC2SetPoint);
|
|
|
|
- InvokeClient.Instance.Service.DoOperation($"{ModuleName}.MfcGas3.SetPoint", MFC3SetPoint);
|
|
|
|
- InvokeClient.Instance.Service.DoOperation($"{ModuleName}.MfcGas4.SetPoint", MFC4SetPoint);
|
|
|
|
- InvokeClient.Instance.Service.DoOperation($"{ModuleName}.MfcGas5.SetPoint", MFC5SetPoint);
|
|
|
|
- InvokeClient.Instance.Service.DoOperation($"{ModuleName}.MfcGas6.SetPoint", MFC6SetPoint);
|
|
|
|
- InvokeClient.Instance.Service.DoOperation($"{ModuleName}.MfcGas7.SetPoint", MFC7SetPoint);
|
|
|
|
- InvokeClient.Instance.Service.DoOperation($"{ModuleName}.MfcGas8.SetPoint", MFC8SetPoint);
|
|
|
|
-
|
|
|
|
- await Task.Delay(1000);
|
|
|
|
- object[] mfc = new object[8];
|
|
|
|
- string[] mfcSetPoint = new string[8];
|
|
|
|
-
|
|
|
|
- mfc[0] = MFC1Data.SetPoint;
|
|
|
|
- mfc[1] = MFC2Data.SetPoint;
|
|
|
|
- mfc[2] = MFC3Data.SetPoint;
|
|
|
|
- mfc[3] = MFC4Data.SetPoint;
|
|
|
|
- mfc[4] = MFC5Data.SetPoint;
|
|
|
|
- mfc[5] = MFC6Data.SetPoint;
|
|
|
|
- mfc[6] = MFC7Data.SetPoint;
|
|
|
|
- mfc[7] = MFC8Data.SetPoint;
|
|
|
|
-
|
|
|
|
- InvokeClient.Instance.Service.DoOperation($"{ModuleName}.{RtOperation.GasFlow}", mfc);
|
|
|
|
-
|
|
|
|
|
|
+ InvokeClient.Instance.Service.DoOperation($"{ModuleName}.MfcGas1.SetPoint", MFC1SetPoint);
|
|
|
|
+ InvokeClient.Instance.Service.DoOperation($"{ModuleName}.MfcGas2.SetPoint", MFC2SetPoint);
|
|
|
|
+ InvokeClient.Instance.Service.DoOperation($"{ModuleName}.MfcGas3.SetPoint", MFC3SetPoint);
|
|
|
|
+ InvokeClient.Instance.Service.DoOperation($"{ModuleName}.MfcGas4.SetPoint", MFC4SetPoint);
|
|
|
|
+ InvokeClient.Instance.Service.DoOperation($"{ModuleName}.MfcGas5.SetPoint", MFC5SetPoint);
|
|
|
|
+ InvokeClient.Instance.Service.DoOperation($"{ModuleName}.MfcGas6.SetPoint", MFC6SetPoint);
|
|
|
|
+ InvokeClient.Instance.Service.DoOperation($"{ModuleName}.MfcGas7.SetPoint", MFC7SetPoint);
|
|
|
|
+ InvokeClient.Instance.Service.DoOperation($"{ModuleName}.MfcGas8.SetPoint", MFC8SetPoint);
|
|
|
|
+
|
|
|
|
+ await Task.Delay(1000);
|
|
|
|
+ object[] mfc = new object[8];
|
|
|
|
+ string[] mfcSetPoint = new string[8];
|
|
|
|
+
|
|
|
|
+ mfc[0] = MFC1Data.SetPoint;
|
|
|
|
+ mfc[1] = MFC2Data.SetPoint;
|
|
|
|
+ mfc[2] = MFC3Data.SetPoint;
|
|
|
|
+ mfc[3] = MFC4Data.SetPoint;
|
|
|
|
+ mfc[4] = MFC5Data.SetPoint;
|
|
|
|
+ mfc[5] = MFC6Data.SetPoint;
|
|
|
|
+ mfc[6] = MFC7Data.SetPoint;
|
|
|
|
+ mfc[7] = MFC8Data.SetPoint;
|
|
|
|
+
|
|
|
|
+ InvokeClient.Instance.Service.DoOperation($"{ModuleName}.{RtOperation.GasFlow}", mfc);
|
|
|
|
+
|
|
});
|
|
});
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|
|
- private void OnHe()
|
|
|
|
|
|
+ private void OnHe()
|
|
{
|
|
{
|
|
if (PVHe1ValveIsOpen == true)
|
|
if (PVHe1ValveIsOpen == true)
|
|
{
|
|
{
|
|
InvokeClient.Instance.Service.DoOperation($"{ModuleName}.SetBacksideHeFlow", 0.0d);
|
|
InvokeClient.Instance.Service.DoOperation($"{ModuleName}.SetBacksideHeFlow", 0.0d);
|
|
InvokeClient.Instance.Service.DoOperation($"{ModuleName}.SetBacksideHePressure", 0);
|
|
InvokeClient.Instance.Service.DoOperation($"{ModuleName}.SetBacksideHePressure", 0);
|
|
-
|
|
|
|
|
|
+
|
|
InvokeClient.Instance.Service.DoOperation($"{ModuleName}.ControlValve", (int)ValveType.PVHe3, false);
|
|
InvokeClient.Instance.Service.DoOperation($"{ModuleName}.ControlValve", (int)ValveType.PVHe3, false);
|
|
InvokeClient.Instance.Service.DoOperation($"{ModuleName}.ControlValve", (int)ValveType.HeISO, false);
|
|
InvokeClient.Instance.Service.DoOperation($"{ModuleName}.ControlValve", (int)ValveType.HeISO, false);
|
|
}
|
|
}
|
|
@@ -1116,11 +1119,11 @@ namespace Venus_MainPages.ViewModels
|
|
|
|
|
|
if (HeIsPressureMode)
|
|
if (HeIsPressureMode)
|
|
{
|
|
{
|
|
- InvokeClient.Instance.Service.DoOperation($"{ModuleName}.SetBacksideHePressure", HeGasSetpoint);
|
|
|
|
|
|
+ InvokeClient.Instance.Service.DoOperation($"{ModuleName}.SetBacksideHePressure", HeGasSetpoint);
|
|
}
|
|
}
|
|
else
|
|
else
|
|
- {
|
|
|
|
- InvokeClient.Instance.Service.DoOperation($"{ModuleName}.SetBacksideHeFlow", HeGasSetpoint);
|
|
|
|
|
|
+ {
|
|
|
|
+ InvokeClient.Instance.Service.DoOperation($"{ModuleName}.SetBacksideHeFlow", HeGasSetpoint);
|
|
}
|
|
}
|
|
InvokeClient.Instance.Service.DoOperation($"{ModuleName}.ControlValve", (int)ValveType.PVHe3, true);
|
|
InvokeClient.Instance.Service.DoOperation($"{ModuleName}.ControlValve", (int)ValveType.PVHe3, true);
|
|
InvokeClient.Instance.Service.DoOperation($"{ModuleName}.ControlValve", (int)ValveType.HeISO, true);
|
|
InvokeClient.Instance.Service.DoOperation($"{ModuleName}.ControlValve", (int)ValveType.HeISO, true);
|
|
@@ -1190,7 +1193,7 @@ namespace Venus_MainPages.ViewModels
|
|
private void OnPump()
|
|
private void OnPump()
|
|
{
|
|
{
|
|
//if (RtDataValues[$"{ModuleName}.FsmState"].ToString() == PMState.Pumping.ToString())
|
|
//if (RtDataValues[$"{ModuleName}.FsmState"].ToString() == PMState.Pumping.ToString())
|
|
- if (PMCurrentState==PMState.Pumping)
|
|
|
|
|
|
+ if (PMCurrentState == PMState.Pumping)
|
|
{
|
|
{
|
|
InvokeClient.Instance.Service.DoOperation($"{ModuleName}.{RtOperation.Abort}");
|
|
InvokeClient.Instance.Service.DoOperation($"{ModuleName}.{RtOperation.Abort}");
|
|
return;
|
|
return;
|
|
@@ -1213,7 +1216,7 @@ namespace Venus_MainPages.ViewModels
|
|
|
|
|
|
string BasePressureSetPoint = QueryDataClient.Instance.Service.GetConfig($"{ModuleName}.Pump.PumpBasePressure").ToString();
|
|
string BasePressureSetPoint = QueryDataClient.Instance.Service.GetConfig($"{ModuleName}.Pump.PumpBasePressure").ToString();
|
|
|
|
|
|
- string PumpLimitSetPoint= QueryDataClient.Instance.Service.GetConfig($"{ModuleName}.Pump.PumpTimeLimit").ToString();
|
|
|
|
|
|
+ string PumpLimitSetPoint = QueryDataClient.Instance.Service.GetConfig($"{ModuleName}.Pump.PumpTimeLimit").ToString();
|
|
// 设置底压
|
|
// 设置底压
|
|
double basePressure = string.IsNullOrEmpty(BasePressureSetPoint) ? 0 : Convert.ToDouble(BasePressureSetPoint);
|
|
double basePressure = string.IsNullOrEmpty(BasePressureSetPoint) ? 0 : Convert.ToDouble(BasePressureSetPoint);
|
|
|
|
|
|
@@ -1242,7 +1245,7 @@ namespace Venus_MainPages.ViewModels
|
|
{
|
|
{
|
|
|
|
|
|
//if (RtDataValues[$"{ModuleName}.FsmState"].ToString() == "LaunchingPump")
|
|
//if (RtDataValues[$"{ModuleName}.FsmState"].ToString() == "LaunchingPump")
|
|
- if (PMCurrentState==PMState.LaunchingPump)
|
|
|
|
|
|
+ if (PMCurrentState == PMState.LaunchingPump)
|
|
{
|
|
{
|
|
InvokeClient.Instance.Service.DoOperation($"{ModuleName}.{RtOperation.Abort}");
|
|
InvokeClient.Instance.Service.DoOperation($"{ModuleName}.{RtOperation.Abort}");
|
|
return;
|
|
return;
|
|
@@ -1278,11 +1281,11 @@ namespace Venus_MainPages.ViewModels
|
|
|
|
|
|
private void OnOpenPendulumValve()
|
|
private void OnOpenPendulumValve()
|
|
{
|
|
{
|
|
- InvokeClient.Instance.Service.DoOperation($"{ModuleName}.TurnPendulumValve",true);
|
|
|
|
|
|
+ InvokeClient.Instance.Service.DoOperation($"{ModuleName}.TurnPendulumValve", true);
|
|
}
|
|
}
|
|
private void OnClosePendulumValve()
|
|
private void OnClosePendulumValve()
|
|
{
|
|
{
|
|
- InvokeClient.Instance.Service.DoOperation($"{ModuleName}.TurnPendulumValve",false);
|
|
|
|
|
|
+ InvokeClient.Instance.Service.DoOperation($"{ModuleName}.TurnPendulumValve", false);
|
|
}
|
|
}
|
|
private void OnPinUpDown(object upDown)
|
|
private void OnPinUpDown(object upDown)
|
|
{
|
|
{
|
|
@@ -1290,7 +1293,7 @@ namespace Venus_MainPages.ViewModels
|
|
}
|
|
}
|
|
|
|
|
|
private async void OnSetSRf()
|
|
private async void OnSetSRf()
|
|
- {
|
|
|
|
|
|
+ {
|
|
|
|
|
|
if (SRFData.IsRfOn == true)
|
|
if (SRFData.IsRfOn == true)
|
|
{
|
|
{
|
|
@@ -1303,7 +1306,7 @@ namespace Venus_MainPages.ViewModels
|
|
InvokeClient.Instance.Service.DoOperation($"{ModuleName}.{VenusDevice.Match}.{AITRfOperation.SetMatchPosition}", SRFMatchC1, SRFMatchC2);
|
|
InvokeClient.Instance.Service.DoOperation($"{ModuleName}.{VenusDevice.Match}.{AITRfOperation.SetMatchPosition}", SRFMatchC1, SRFMatchC2);
|
|
await Task.Delay(100);
|
|
await Task.Delay(100);
|
|
InvokeClient.Instance.Service.DoOperation($"{ModuleName}.SetSRf", SRFFwdPowerSetpoint, true);
|
|
InvokeClient.Instance.Service.DoOperation($"{ModuleName}.SetSRf", SRFFwdPowerSetpoint, true);
|
|
- }
|
|
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
private async void OnSetBRf()
|
|
private async void OnSetBRf()
|
|
@@ -1320,8 +1323,8 @@ namespace Venus_MainPages.ViewModels
|
|
InvokeClient.Instance.Service.DoOperation($"{ModuleName}.{VenusDevice.BiasMatch}.{AITRfOperation.SetMatchPosition}", BRFMatchC1, BRFMatchC2);
|
|
InvokeClient.Instance.Service.DoOperation($"{ModuleName}.{VenusDevice.BiasMatch}.{AITRfOperation.SetMatchPosition}", BRFMatchC1, BRFMatchC2);
|
|
await Task.Delay(100);
|
|
await Task.Delay(100);
|
|
InvokeClient.Instance.Service.DoOperation($"{ModuleName}.SetBRf", BRFFwdPowerSetpoint, true);
|
|
InvokeClient.Instance.Service.DoOperation($"{ModuleName}.SetBRf", BRFFwdPowerSetpoint, true);
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
private void OnPMAbort()
|
|
private void OnPMAbort()
|
|
@@ -1333,22 +1336,22 @@ namespace Venus_MainPages.ViewModels
|
|
{
|
|
{
|
|
//if (butterflyValveMessageBox == null)
|
|
//if (butterflyValveMessageBox == null)
|
|
//{
|
|
//{
|
|
- var _mainWindow = Application.Current.Windows.Cast<Window>().FirstOrDefault(window => window is Window) as Window;
|
|
|
|
- butterflyValveMessageBox = new ButterflyValveView(ModuleName.ToString());
|
|
|
|
- butterflyValveMessageBox.WindowStartupLocation = WindowStartupLocation.Manual;
|
|
|
|
- butterflyValveMessageBox.Left = 700;
|
|
|
|
- butterflyValveMessageBox.Top = 600;
|
|
|
|
- butterflyValveMessageBox.Show();
|
|
|
|
- butterflyValveMessageBox.Owner = _mainWindow;
|
|
|
|
|
|
+ var _mainWindow = Application.Current.Windows.Cast<Window>().FirstOrDefault(window => window is Window) as Window;
|
|
|
|
+ butterflyValveMessageBox = new ButterflyValveView(ModuleName.ToString());
|
|
|
|
+ butterflyValveMessageBox.WindowStartupLocation = WindowStartupLocation.Manual;
|
|
|
|
+ butterflyValveMessageBox.Left = 700;
|
|
|
|
+ butterflyValveMessageBox.Top = 600;
|
|
|
|
+ butterflyValveMessageBox.Show();
|
|
|
|
+ butterflyValveMessageBox.Owner = _mainWindow;
|
|
//}
|
|
//}
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
private void OnLoadRecipe()
|
|
private void OnLoadRecipe()
|
|
{
|
|
{
|
|
CurrentModuleRecipes = GetFilesNames(Path.Combine(QueryDataClient.Instance.Service.GetData("GetRTPath").ToString(), "Recipes", ModuleName)).ToList();
|
|
CurrentModuleRecipes = GetFilesNames(Path.Combine(QueryDataClient.Instance.Service.GetData("GetRTPath").ToString(), "Recipes", ModuleName)).ToList();
|
|
}
|
|
}
|
|
|
|
|
|
- private void OnHV()
|
|
|
|
|
|
+ private void OnHV()
|
|
{
|
|
{
|
|
if (ESCHVData.IsOn == true)
|
|
if (ESCHVData.IsOn == true)
|
|
{
|
|
{
|
|
@@ -1366,11 +1369,11 @@ namespace Venus_MainPages.ViewModels
|
|
|
|
|
|
//});
|
|
//});
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|
|
private void OnHVSet()
|
|
private void OnHVSet()
|
|
- {
|
|
|
|
|
|
+ {
|
|
InvokeClient.Instance.Service.DoOperation($"{ModuleName}.SetESCHV", ESCVoltage);
|
|
InvokeClient.Instance.Service.DoOperation($"{ModuleName}.SetESCHV", ESCVoltage);
|
|
|
|
|
|
}
|
|
}
|
|
@@ -1386,7 +1389,7 @@ namespace Venus_MainPages.ViewModels
|
|
ClearData();
|
|
ClearData();
|
|
var recipePath = Path.Combine(QueryDataClient.Instance.Service.GetData("GetRTPath").ToString(), "Recipes", ModuleName, recipeName + ".rcp");
|
|
var recipePath = Path.Combine(QueryDataClient.Instance.Service.GetData("GetRTPath").ToString(), "Recipes", ModuleName, recipeName + ".rcp");
|
|
CurrentRecipe = Recipe.Load(File.ReadAllText(recipePath));
|
|
CurrentRecipe = Recipe.Load(File.ReadAllText(recipePath));
|
|
- InvokeClient.Instance.Service.DoOperation($"{ModuleName}.{RtOperation.RunRecipe}",recipeName);
|
|
|
|
|
|
+ InvokeClient.Instance.Service.DoOperation($"{ModuleName}.{RtOperation.RunRecipe}", recipeName);
|
|
}
|
|
}
|
|
|
|
|
|
private void OnSetChillerTemp()
|
|
private void OnSetChillerTemp()
|
|
@@ -1394,12 +1397,12 @@ namespace Venus_MainPages.ViewModels
|
|
var value = (QueryDataClient.Instance.Service.GetConfig($"{ModuleName}.Chiller.ChillerTemperatureOffset").ToString());
|
|
var value = (QueryDataClient.Instance.Service.GetConfig($"{ModuleName}.Chiller.ChillerTemperatureOffset").ToString());
|
|
float x;
|
|
float x;
|
|
float.TryParse(value, out x);
|
|
float.TryParse(value, out x);
|
|
- InvokeClient.Instance.Service.DoOperation($"{ModuleName}.HeatChiller", ChillerType.Chiller.ToString(),ChillerTempSetpoint, x);
|
|
|
|
|
|
+ InvokeClient.Instance.Service.DoOperation($"{ModuleName}.HeatChiller", ChillerType.Chiller.ToString(), ChillerTempSetpoint, x);
|
|
}
|
|
}
|
|
|
|
|
|
private void OnOffChiller()
|
|
private void OnOffChiller()
|
|
{
|
|
{
|
|
- InvokeClient.Instance.Service.DoOperation($"{ModuleName}.OnOffChiller", ChillerType.Chiller.ToString(),!ChillerIsOn);
|
|
|
|
|
|
+ InvokeClient.Instance.Service.DoOperation($"{ModuleName}.OnOffChiller", ChillerType.Chiller.ToString(), !ChillerIsOn);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -1428,6 +1431,30 @@ namespace Venus_MainPages.ViewModels
|
|
InvokeClient.Instance.Service.DoOperation($"{ModuleName}.Abort");
|
|
InvokeClient.Instance.Service.DoOperation($"{ModuleName}.Abort");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ private async void OnAbortRecipe(object obj)
|
|
|
|
+ {
|
|
|
|
+ if (PMCurrentState != PMState.Processing)
|
|
|
|
+ {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ switch (obj.ToString())
|
|
|
|
+ {
|
|
|
|
+ case "0":
|
|
|
|
+ InvokeClient.Instance.Service.DoOperation($"{ModuleName}.Abort");
|
|
|
|
+ break;
|
|
|
|
+ case "1":
|
|
|
|
+ InvokeClient.Instance.Service.DoOperation($"{ModuleName}.Abort");
|
|
|
|
+ if (ESCHVData.IsOn == true)
|
|
|
|
+ {
|
|
|
|
+ await Task.Delay(3000);
|
|
|
|
+ InvokeClient.Instance.Service.DoOperation($"{ModuleName}.SetESCHVIsOn", false);
|
|
|
|
+ }
|
|
|
|
+ break;
|
|
|
|
+ case "2":
|
|
|
|
+ InvokeClient.Instance.Service.DoOperation($"{ModuleName}.Abort");
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
#endregion
|
|
#endregion
|
|
|
|
|
|
#region 私有方法
|
|
#region 私有方法
|
|
@@ -1451,7 +1478,7 @@ namespace Venus_MainPages.ViewModels
|
|
MFC8SetPoint = 0;
|
|
MFC8SetPoint = 0;
|
|
|
|
|
|
}
|
|
}
|
|
- private IEnumerable<string> GetFilesNames(string path)
|
|
|
|
|
|
+ private IEnumerable<string> GetFilesNames(string path)
|
|
{
|
|
{
|
|
return Directory.GetFiles(path, "*.rcp")?
|
|
return Directory.GetFiles(path, "*.rcp")?
|
|
.Select(Path.GetFileNameWithoutExtension);
|
|
.Select(Path.GetFileNameWithoutExtension);
|
|
@@ -1585,7 +1612,7 @@ namespace Venus_MainPages.ViewModels
|
|
|
|
|
|
|
|
|
|
CurrentRecipeResult = CommonFunction.GetValue<RecipeResult>(RtDataValues, $"{ModuleName}.CurrentRecipeResult");
|
|
CurrentRecipeResult = CommonFunction.GetValue<RecipeResult>(RtDataValues, $"{ModuleName}.CurrentRecipeResult");
|
|
- if (CurrentRecipeResult.RecipeStepNumber != null && CurrentRecipeResult.RecipeStepNumber!= currentRecipeNumber)
|
|
|
|
|
|
+ if (CurrentRecipeResult.RecipeStepNumber != null && CurrentRecipeResult.RecipeStepNumber != currentRecipeNumber)
|
|
{
|
|
{
|
|
var recipePath = Path.Combine(QueryDataClient.Instance.Service.GetData("GetRTPath").ToString(), "Recipes", ModuleName, CurrentRecipeResult.RecipeName + ".rcp");
|
|
var recipePath = Path.Combine(QueryDataClient.Instance.Service.GetData("GetRTPath").ToString(), "Recipes", ModuleName, CurrentRecipeResult.RecipeName + ".rcp");
|
|
CurrentRecipe = Recipe.Load(File.ReadAllText(recipePath));
|
|
CurrentRecipe = Recipe.Load(File.ReadAllText(recipePath));
|
|
@@ -1613,7 +1640,7 @@ namespace Venus_MainPages.ViewModels
|
|
{
|
|
{
|
|
LOG.WriteExeption(ex.Message, ex);
|
|
LOG.WriteExeption(ex.Message, ex);
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ }
|
|
public void addDataKeys()
|
|
public void addDataKeys()
|
|
{
|
|
{
|
|
m_RtDataKeys.Clear();
|
|
m_RtDataKeys.Clear();
|
|
@@ -1627,7 +1654,7 @@ namespace Venus_MainPages.ViewModels
|
|
m_RtDataKeys.Add($"{ModuleName}.MfcGas8");
|
|
m_RtDataKeys.Add($"{ModuleName}.MfcGas8");
|
|
m_RtDataKeys.Add($"{ModuleName}.MfcHe");
|
|
m_RtDataKeys.Add($"{ModuleName}.MfcHe");
|
|
m_RtDataKeys.Add($"{ModuleName}.MfcN2");
|
|
m_RtDataKeys.Add($"{ModuleName}.MfcN2");
|
|
-
|
|
|
|
|
|
+
|
|
|
|
|
|
m_RtDataKeys.Add($"{ModuleName}.ForelinePressure");
|
|
m_RtDataKeys.Add($"{ModuleName}.ForelinePressure");
|
|
m_RtDataKeys.Add($"{ModuleName}.ProcessHighPressure");
|
|
m_RtDataKeys.Add($"{ModuleName}.ProcessHighPressure");
|
|
@@ -1687,7 +1714,7 @@ namespace Venus_MainPages.ViewModels
|
|
|
|
|
|
m_RtDataKeys.Add($"{ModuleName}.{VenusDevice.Match}.C1");
|
|
m_RtDataKeys.Add($"{ModuleName}.{VenusDevice.Match}.C1");
|
|
m_RtDataKeys.Add($"{ModuleName}.{VenusDevice.Match}.C2");
|
|
m_RtDataKeys.Add($"{ModuleName}.{VenusDevice.Match}.C2");
|
|
- // m_RtDataKeys.Add($"{ModuleName}.{VenusDevice.Match}.WorkMode");
|
|
|
|
|
|
+ // m_RtDataKeys.Add($"{ModuleName}.{VenusDevice.Match}.WorkMode");
|
|
|
|
|
|
m_RtDataKeys.Add($"{ModuleName}.{VenusDevice.BiasMatch}.C1");
|
|
m_RtDataKeys.Add($"{ModuleName}.{VenusDevice.BiasMatch}.C1");
|
|
m_RtDataKeys.Add($"{ModuleName}.{VenusDevice.BiasMatch}.C2");
|
|
m_RtDataKeys.Add($"{ModuleName}.{VenusDevice.BiasMatch}.C2");
|
|
@@ -1706,7 +1733,7 @@ namespace Venus_MainPages.ViewModels
|
|
//m_RtDataKeys.Add($"{ModuleName}.ESCHV.IsOn");
|
|
//m_RtDataKeys.Add($"{ModuleName}.ESCHV.IsOn");
|
|
|
|
|
|
|
|
|
|
- m_RtDataKeys.Add($"{ModuleName}.IsWaterFlowOk");
|
|
|
|
|
|
+ m_RtDataKeys.Add($"{ModuleName}.IsWaterFlowOk");
|
|
m_RtDataKeys.Add($"{ModuleName}.IsWLK");
|
|
m_RtDataKeys.Add($"{ModuleName}.IsWLK");
|
|
m_RtDataKeys.Add($"{ModuleName}.IsCDA_OK");
|
|
m_RtDataKeys.Add($"{ModuleName}.IsCDA_OK");
|
|
m_RtDataKeys.Add($"{ModuleName}.SourceRFFanInterlock");
|
|
m_RtDataKeys.Add($"{ModuleName}.SourceRFFanInterlock");
|