|
@@ -10,6 +10,7 @@ using Venus_Simulator.Devices;
|
|
|
using System.Threading;
|
|
|
using Venus_Core;
|
|
|
using MECF.Framework.RT.EquipmentLibrary.HardwareUnits.PMs;
|
|
|
+using System.Diagnostics.Eventing.Reader;
|
|
|
|
|
|
namespace Venus_Simulator.Instances
|
|
|
{
|
|
@@ -34,7 +35,7 @@ namespace Venus_Simulator.Instances
|
|
|
|
|
|
private Dictionary<ModuleName, DeviceSimulator> _MockDevices = new Dictionary<ModuleName, DeviceSimulator>();
|
|
|
|
|
|
- private Dictionary<ModuleName,JetChamber> jetChambers = new Dictionary<ModuleName,JetChamber>();
|
|
|
+ private Dictionary<ModuleName, JetChamber> jetChambers = new Dictionary<ModuleName, JetChamber>();
|
|
|
public SimulatorSystem()
|
|
|
{
|
|
|
//_MockDevices.Add(ModuleName.PMB, new SkyPumpMock());
|
|
@@ -56,12 +57,12 @@ namespace Venus_Simulator.Instances
|
|
|
|
|
|
public void Initialize()
|
|
|
{
|
|
|
-
|
|
|
- SetDefaultValue(ModuleName.PMA, SimulatorJetChamber.CurrentPMAChamber);
|
|
|
- SetDefaultValue(ModuleName.PMB, SimulatorJetChamber.CurrentPMBChamber);
|
|
|
- SetDefaultValue(ModuleName.PMC, SimulatorJetChamber.CurrentPMCChamber);
|
|
|
- SetDefaultValue(ModuleName.PMD, SimulatorJetChamber.CurrentPMDChamber);
|
|
|
- SetTMDefaultValue();
|
|
|
+
|
|
|
+ SetDefaultValue(ModuleName.PMA, SimulatorJetChamber.CurrentPMAChamber);
|
|
|
+ SetDefaultValue(ModuleName.PMB, SimulatorJetChamber.CurrentPMBChamber);
|
|
|
+ SetDefaultValue(ModuleName.PMC, SimulatorJetChamber.CurrentPMCChamber);
|
|
|
+ SetDefaultValue(ModuleName.PMD, SimulatorJetChamber.CurrentPMDChamber);
|
|
|
+ SetTMDefaultValue();
|
|
|
|
|
|
|
|
|
|
|
@@ -70,7 +71,7 @@ namespace Venus_Simulator.Instances
|
|
|
_thread = new PeriodicJob(500, OnMonitor, nameof(SimulatorSystem), true);
|
|
|
}
|
|
|
|
|
|
- private void SetDefaultValue(ModuleName mod,JetChamber jetChamber)
|
|
|
+ private void SetDefaultValue(ModuleName mod, JetChamber jetChamber)
|
|
|
{
|
|
|
|
|
|
switch (jetChamber)
|
|
@@ -200,7 +201,7 @@ namespace Venus_Simulator.Instances
|
|
|
IO.DI[$"{mod}.DI_Coolant_Inlet_TC_Broken_Alarm"].Value = false;
|
|
|
|
|
|
IO.DI[$"{mod}.DI_Coolant_Outlet_TC_Broken_Alarm"].Value = false;
|
|
|
-
|
|
|
+
|
|
|
IO.DI[$"{mod}.DI_Chamber_Pressure_10t_Gauge_Alarm"].Value = false;
|
|
|
|
|
|
IO.DI[$"{mod}.DI_GASLINE_TC_Deviation_out_of_range"].Value = false;
|
|
@@ -244,7 +245,7 @@ namespace Venus_Simulator.Instances
|
|
|
IO.DI[$"{mod}.DI_TM_Slit_Door_Closed"].Value = true;
|
|
|
IO.DI[$"{mod}.DI_Source_Match_interlock_ok"].Value = true;
|
|
|
IO.DI[$"{mod}.DI_Bias_Match_interlock_ok"].Value = true;
|
|
|
-
|
|
|
+
|
|
|
|
|
|
//// pressure
|
|
|
//SetAiValue($"{mod}.AI_Chamber_Pressure_10t", 5000);
|
|
@@ -263,7 +264,7 @@ namespace Venus_Simulator.Instances
|
|
|
SetAiValue($"{mod}.AI_CHB_Wall_Control_TC_Temp", 28);
|
|
|
SetAiValue($"{mod}.AI_CHB_Wall_Monitor_TC_Temp", 27);
|
|
|
SetAiValue($"{mod}.AI_Coolant_Inlet_Temp", 28);
|
|
|
-
|
|
|
+
|
|
|
|
|
|
// Datetime
|
|
|
SetAiValue($"{mod}.AI_Year", DateTime.Today.Year);
|
|
@@ -329,7 +330,7 @@ namespace Venus_Simulator.Instances
|
|
|
IO.DI[$"{mod}.DI_Gas_Box_Pressure_Switch"].Value = true;
|
|
|
IO.DI[$"{mod}.DI_Source_RF_Water_Flow_Switch"].Value = true;
|
|
|
IO.DI[$"{mod}.DI_S_Valve_OT_Switch_Alarm"].Value = false;
|
|
|
- IO.DI[$"{mod}.DI_Foreline_OT_Switch_Alarm"].Value = false;
|
|
|
+ IO.DI[$"{mod}.DI_Foreline_OT_Switch_Alarm"].Value = false;
|
|
|
IO.DI[$"{mod}.DI_Arm_Not_Extend_to_PM"].Value = true;
|
|
|
IO.DI[$"{mod}.DI_EFEM_Door_Colse"].Value = true;
|
|
|
IO.DI[$"{mod}.DI_ESC_Inner_Coolant_Flow_SW"].Value = true;
|
|
@@ -383,12 +384,12 @@ namespace Venus_Simulator.Instances
|
|
|
IO.DI[$"{mod}.DI_Slit_Door_Open_POS"].Value = false;
|
|
|
IO.DI[$"{mod}.DI_Slit_Door_Close_POS"].Value = true;
|
|
|
IO.DI[$"{mod}.DI_CDA_Pressure_Switch"].Value = true;
|
|
|
-
|
|
|
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
IO.DI[$"{mod}.DI_CHB_H-HT_Control_TC_Broken_Alarm"].Value = false;
|
|
|
|
|
|
-
|
|
|
+
|
|
|
IO.DI[$"{mod}.DI_CHB_H-HT_Heater_On_FB"].Value = false;
|
|
|
IO.DI[$"{mod}.DI_CHB_H-HT_OT_Switch_Alarm"].Value = false;
|
|
|
IO.DI[$"{mod}.DI_PN2_Pressure_Switch"].Value = true;
|
|
@@ -411,7 +412,7 @@ namespace Venus_Simulator.Instances
|
|
|
IO.DI[$"{mod}.DI_Lid_Down_Limit_Pos_SW"].Value = true;
|
|
|
IO.DI[$"{mod}.DI_Gas_Box_Pressure_Switch"].Value = true;
|
|
|
IO.DI[$"{mod}.DI_TM_Safety_Door_Colse"].Value = true;
|
|
|
-
|
|
|
+
|
|
|
IO.DI[$"{mod}.DI_Arm_Not_Extend_to_PM"].Value = true;
|
|
|
IO.DI[$"{mod}.DI_Source_RF_Water_Flow_Switch"].Value = true;
|
|
|
//// pressure
|
|
@@ -424,7 +425,7 @@ namespace Venus_Simulator.Instances
|
|
|
|
|
|
SetAiValue($"{mod}.AI_S_Valve_Control_TC_Temp", 28);
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
SetAiValue($"{mod}.AI_CHB_H-HT_Control_TC_Temp", 28);
|
|
|
|
|
@@ -438,72 +439,72 @@ namespace Venus_Simulator.Instances
|
|
|
SetAiValue($"{mod}.AI_Second", DateTime.Now.Second);
|
|
|
break;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
private void SetTMDefaultValue()
|
|
|
{
|
|
|
ModuleName mod = ModuleName.TM;
|
|
|
if (SimulatorJetTM.CurrentTM == JetTMType.Venus)
|
|
|
- {
|
|
|
- IO.DI[$"{mod}.DI_TM_Power_On"].Value = true;
|
|
|
- IO.DI[$"{mod}.DI_TM_In_Safety"].Value = true;
|
|
|
- IO.DI[$"{mod}.DI_Water_Leak_Sensor"].Value = true;
|
|
|
- IO.DI[$"{mod}.DI_TM_RB_Not_Extend_PMA"].Value = true;
|
|
|
- IO.DI[$"{mod}.DI_TM_RB_Not_Extend_PMB"].Value = true;
|
|
|
- IO.DI[$"{mod}.DI_TM_RB_Not_Extend_PMC"].Value = true;
|
|
|
- IO.DI[$"{mod}.DI_TM_RB_Not_Extend_PMD"].Value = true;
|
|
|
- IO.DI[$"{mod}.DI_TM_RB_Not_Extend_LLA"].Value = true;
|
|
|
- IO.DI[$"{mod}.DI_TM_RB_Not_Extend_LLB"].Value = true;
|
|
|
- IO.DI[$"{mod}.DI_EFEM_RB_Not_Extend_LLA"].Value = true;
|
|
|
- IO.DI[$"{mod}.DI_EFEM_RB_Not_Extend_LLB"].Value = true;
|
|
|
- IO.DI[$"{mod}.DI_EFEM_Side_Door_Closed"].Value = true;
|
|
|
- IO.DI[$"{mod}.DI_TM_CHB_PCW_Flow_Switch"].Value = true;
|
|
|
- IO.DI[$"{mod}.DI_LLA_PCW_Flow_Switch"].Value = true;
|
|
|
- IO.DI[$"{mod}.DI_LLB_PCW_Flow_Switch"].Value = true;
|
|
|
- IO.DI[$"{mod}.DI_TM_CHB_Door_Closed"].Value = true;
|
|
|
-
|
|
|
- IO.DI[$"{mod}.DI_LLA_Lid_Door_Closed"].Value = true;
|
|
|
- IO.DI[$"{mod}.DI_LLB_Lid_Door_Closed"].Value = true;
|
|
|
-
|
|
|
- IO.DI[$"{mod}.DI_LLA_E_Slit_Door_open_Position"].Value = false;
|
|
|
- IO.DI[$"{mod}.DI_LLA_E_Slit_Door_close_Position"].Value = true;
|
|
|
- IO.DI[$"{mod}.DI_LLA_T_Slit_Door_open_Position"].Value = false;
|
|
|
- IO.DI[$"{mod}.DI_LLA_T_Slit_Door_close_Position"].Value = true;
|
|
|
- IO.DI[$"{mod}.DI_LLB_E_Slit_Door_open_Position"].Value = false;
|
|
|
- IO.DI[$"{mod}.DI_LLB_E_Slit_Door_close_Position"].Value = true;
|
|
|
- IO.DI[$"{mod}.DI_LLB_T_Slit_Door_open_Position"].Value = false;
|
|
|
- IO.DI[$"{mod}.DI_LLB_T_Slit_Door_close_Position"].Value = true;
|
|
|
-
|
|
|
- IO.DI[$"{mod}.DI_CDA_Pressure_Switch"].Value = true;
|
|
|
- IO.DI[$"{mod}.DI_Vaccum_Pressure_Switch"].Value = true;
|
|
|
- IO.DI[$"{mod}.DI_N2_Pressure_Switch"].Value = true;
|
|
|
-
|
|
|
- IO.DI[$"{mod}.DI_TM_Chamber_VAC_Gauge_Alarm"].Value = true;
|
|
|
- IO.DI[$"{mod}.DI_TM_Foreline_VAC_Gauge_Alarm"].Value = true;
|
|
|
- IO.DI[$"{mod}.DI_LLA_Chamber_VAC_Gauge_Alarm"].Value = true;
|
|
|
- IO.DI[$"{mod}.DI_LLA_Foreline_VAC_Gauge_Alarm"].Value = true;
|
|
|
- IO.DI[$"{mod}.DI_LLB_Chamber_VAC_Gauge_Alarm"].Value = true;
|
|
|
- IO.DI[$"{mod}.DI_LLB_Foreline_VAC_Gauge_Alarm"].Value = true;
|
|
|
-
|
|
|
- IO.DI[$"{mod}.DI_TM_ATM_Switch"].Value = true;
|
|
|
- IO.DI[$"{mod}.DI_LLA_ATM_Switch"].Value = true;
|
|
|
- IO.DI[$"{mod}.DI_LLB_ATM_Switch"].Value = true;
|
|
|
-
|
|
|
-
|
|
|
- // Datetime
|
|
|
- SetAiValue($"{mod}.AI_Year", DateTime.Today.Year);
|
|
|
- SetAiValue($"{mod}.AI_Month", DateTime.Today.Month);
|
|
|
- SetAiValue($"{mod}.AI_Day", DateTime.Today.Day);
|
|
|
- SetAiValue($"{mod}.AI_Time", DateTime.Now.Hour);
|
|
|
- SetAiValue($"{mod}.AI_Minute", DateTime.Now.Minute);
|
|
|
- SetAiValue($"{mod}.AI_Second", DateTime.Now.Second);
|
|
|
-
|
|
|
-
|
|
|
- SetAiValue($"{mod}.AI_TM_CHB_Pressure", 760000);
|
|
|
- SetAiValue($"{mod}.AI_TM_Foreline_Pressure", 5001);
|
|
|
- SetAiValue($"{mod}.AI_LLA_CHB_Pressure", 5002);
|
|
|
- SetAiValue($"{mod}.AI_LLA_LLB_Foreline_Pressure", 5003);
|
|
|
- SetAiValue($"{mod}.AI_LLB_CHB_Pressure", 5004);
|
|
|
+ {
|
|
|
+ IO.DI[$"{mod}.DI_TM_Power_On"].Value = true;
|
|
|
+ IO.DI[$"{mod}.DI_TM_In_Safety"].Value = true;
|
|
|
+ IO.DI[$"{mod}.DI_Water_Leak_Sensor"].Value = true;
|
|
|
+ IO.DI[$"{mod}.DI_TM_RB_Not_Extend_PMA"].Value = true;
|
|
|
+ IO.DI[$"{mod}.DI_TM_RB_Not_Extend_PMB"].Value = true;
|
|
|
+ IO.DI[$"{mod}.DI_TM_RB_Not_Extend_PMC"].Value = true;
|
|
|
+ IO.DI[$"{mod}.DI_TM_RB_Not_Extend_PMD"].Value = true;
|
|
|
+ IO.DI[$"{mod}.DI_TM_RB_Not_Extend_LLA"].Value = true;
|
|
|
+ IO.DI[$"{mod}.DI_TM_RB_Not_Extend_LLB"].Value = true;
|
|
|
+ IO.DI[$"{mod}.DI_EFEM_RB_Not_Extend_LLA"].Value = true;
|
|
|
+ IO.DI[$"{mod}.DI_EFEM_RB_Not_Extend_LLB"].Value = true;
|
|
|
+ IO.DI[$"{mod}.DI_EFEM_Side_Door_Closed"].Value = true;
|
|
|
+ IO.DI[$"{mod}.DI_TM_CHB_PCW_Flow_Switch"].Value = true;
|
|
|
+ IO.DI[$"{mod}.DI_LLA_PCW_Flow_Switch"].Value = true;
|
|
|
+ IO.DI[$"{mod}.DI_LLB_PCW_Flow_Switch"].Value = true;
|
|
|
+ IO.DI[$"{mod}.DI_TM_CHB_Door_Closed"].Value = true;
|
|
|
+
|
|
|
+ IO.DI[$"{mod}.DI_LLA_Lid_Door_Closed"].Value = true;
|
|
|
+ IO.DI[$"{mod}.DI_LLB_Lid_Door_Closed"].Value = true;
|
|
|
+
|
|
|
+ IO.DI[$"{mod}.DI_LLA_E_Slit_Door_open_Position"].Value = false;
|
|
|
+ IO.DI[$"{mod}.DI_LLA_E_Slit_Door_close_Position"].Value = true;
|
|
|
+ IO.DI[$"{mod}.DI_LLA_T_Slit_Door_open_Position"].Value = false;
|
|
|
+ IO.DI[$"{mod}.DI_LLA_T_Slit_Door_close_Position"].Value = true;
|
|
|
+ IO.DI[$"{mod}.DI_LLB_E_Slit_Door_open_Position"].Value = false;
|
|
|
+ IO.DI[$"{mod}.DI_LLB_E_Slit_Door_close_Position"].Value = true;
|
|
|
+ IO.DI[$"{mod}.DI_LLB_T_Slit_Door_open_Position"].Value = false;
|
|
|
+ IO.DI[$"{mod}.DI_LLB_T_Slit_Door_close_Position"].Value = true;
|
|
|
+
|
|
|
+ IO.DI[$"{mod}.DI_CDA_Pressure_Switch"].Value = true;
|
|
|
+ IO.DI[$"{mod}.DI_Vaccum_Pressure_Switch"].Value = true;
|
|
|
+ IO.DI[$"{mod}.DI_N2_Pressure_Switch"].Value = true;
|
|
|
+
|
|
|
+ IO.DI[$"{mod}.DI_TM_Chamber_VAC_Gauge_Alarm"].Value = true;
|
|
|
+ IO.DI[$"{mod}.DI_TM_Foreline_VAC_Gauge_Alarm"].Value = true;
|
|
|
+ IO.DI[$"{mod}.DI_LLA_Chamber_VAC_Gauge_Alarm"].Value = true;
|
|
|
+ IO.DI[$"{mod}.DI_LLA_Foreline_VAC_Gauge_Alarm"].Value = true;
|
|
|
+ IO.DI[$"{mod}.DI_LLB_Chamber_VAC_Gauge_Alarm"].Value = true;
|
|
|
+ IO.DI[$"{mod}.DI_LLB_Foreline_VAC_Gauge_Alarm"].Value = true;
|
|
|
+
|
|
|
+ IO.DI[$"{mod}.DI_TM_ATM_Switch"].Value = true;
|
|
|
+ IO.DI[$"{mod}.DI_LLA_ATM_Switch"].Value = true;
|
|
|
+ IO.DI[$"{mod}.DI_LLB_ATM_Switch"].Value = true;
|
|
|
+
|
|
|
+
|
|
|
+ // Datetime
|
|
|
+ SetAiValue($"{mod}.AI_Year", DateTime.Today.Year);
|
|
|
+ SetAiValue($"{mod}.AI_Month", DateTime.Today.Month);
|
|
|
+ SetAiValue($"{mod}.AI_Day", DateTime.Today.Day);
|
|
|
+ SetAiValue($"{mod}.AI_Time", DateTime.Now.Hour);
|
|
|
+ SetAiValue($"{mod}.AI_Minute", DateTime.Now.Minute);
|
|
|
+ SetAiValue($"{mod}.AI_Second", DateTime.Now.Second);
|
|
|
+
|
|
|
+
|
|
|
+ SetAiValue($"{mod}.AI_TM_CHB_Pressure", 760000);
|
|
|
+ SetAiValue($"{mod}.AI_TM_Foreline_Pressure", 5001);
|
|
|
+ SetAiValue($"{mod}.AI_LLA_CHB_Pressure", 5002);
|
|
|
+ SetAiValue($"{mod}.AI_LLA_LLB_Foreline_Pressure", 5003);
|
|
|
+ SetAiValue($"{mod}.AI_LLB_CHB_Pressure", 5004);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -516,10 +517,10 @@ namespace Venus_Simulator.Instances
|
|
|
IO.DI[$"{mod}.DI_TM_DI9"].Value = true;
|
|
|
IO.DI[$"{mod}.DI_TM_DI10"].Value = true;
|
|
|
IO.DI[$"{mod}.DI_SYS_C1"].Value = true;
|
|
|
- IO.DI[$"{mod}.DI_SYS_C2"].Value = true;
|
|
|
- IO.DI[$"{mod}.DI_SYS_C3"].Value = true;
|
|
|
- IO.DI[$"{mod}.DI_SYS_C4"].Value = true;
|
|
|
- IO.DI[$"{mod}.DI_TSYS_C5"].Value = true;
|
|
|
+ IO.DI[$"{mod}.DI_SYS_C2"].Value = false;
|
|
|
+ IO.DI[$"{mod}.DI_SYS_C3"].Value = false;
|
|
|
+ IO.DI[$"{mod}.DI_SYS_C4"].Value = false;
|
|
|
+ IO.DI[$"{mod}.DI_TSYS_C5"].Value = false;
|
|
|
IO.DI[$"{mod}.DI_TM_N2_1"].Value = true;
|
|
|
IO.DI[$"{mod}.DI_VCE_TM_OPS"].Value = true;
|
|
|
IO.DI[$"{mod}.DI_VCE_TM_CLS"].Value = true;
|
|
@@ -535,11 +536,11 @@ namespace Venus_Simulator.Instances
|
|
|
IO.DI[$"{mod}.DI_PMB_RB_RET"].Value = true;
|
|
|
IO.DI[$"{mod}.DI_PMC_RB_RET"].Value = true;
|
|
|
|
|
|
- SetAiValue($"{mod}.AI_MFC_Flow_Setpoint", 4000);
|
|
|
- SetAiValue($"{mod}.VCE_Vacuum_Gauge", 4000);
|
|
|
- SetAiValue($"{mod}.VCE_Pipeline_Vacuum_Gauge", 4000);
|
|
|
- SetAiValue($"{mod}.TM_Pipeline_Vacuum_Gauge", 4000);
|
|
|
- SetAiValue($"{mod}.TM_Vacuum_Gauge", 4000);
|
|
|
+ SetAiValue($"{mod}.AI_MFC_Flow_Setpoint", 3000);
|
|
|
+ SetAiValue($"{mod}.VCE_Vacuum_Gauge", 3000);
|
|
|
+ SetAiValue($"{mod}.VCE_Pipeline_Vacuum_Gauge", 3000);
|
|
|
+ SetAiValue($"{mod}.TM_Pipeline_Vacuum_Gauge", 3000);
|
|
|
+ SetAiValue($"{mod}.TM_Vacuum_Gauge", 3000);
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -600,6 +601,8 @@ namespace Venus_Simulator.Instances
|
|
|
MonitorMFPressure();
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
catch (Exception e)
|
|
|
{
|
|
@@ -610,17 +613,21 @@ namespace Venus_Simulator.Instances
|
|
|
|
|
|
private void ChangeTime(ModuleName mod)
|
|
|
{
|
|
|
- // Heartbeat with PLC
|
|
|
- SetAiValue($"{mod}.AI_Heartbeat_FB", GetAoValue($"{mod}.AO_Heartbeat"));
|
|
|
-
|
|
|
- SetAiValue($"{mod}.AI_Year", DateTime.Now.Year);
|
|
|
- SetAiValue($"{mod}.AI_Month", DateTime.Now.Month);
|
|
|
- SetAiValue($"{mod}.AI_Day", DateTime.Now.Day);
|
|
|
- SetAiValue($"{mod}.AI_Time", DateTime.Now.Hour);
|
|
|
- SetAiValue($"{mod}.AI_Minute", DateTime.Now.Minute);
|
|
|
- SetAiValue($"{mod}.AI_Second", DateTime.Now.Second);
|
|
|
+ if (SimulatorJetTM.CurrentTM == JetTMType.Venus)
|
|
|
+ {
|
|
|
+ // Heartbeat with PLC
|
|
|
+ SetAiValue($"{mod}.AI_Heartbeat_FB", GetAoValue($"{mod}.AO_Heartbeat"));
|
|
|
+
|
|
|
+ SetAiValue($"{mod}.AI_Year", DateTime.Now.Year);
|
|
|
+ SetAiValue($"{mod}.AI_Month", DateTime.Now.Month);
|
|
|
+ SetAiValue($"{mod}.AI_Day", DateTime.Now.Day);
|
|
|
+ SetAiValue($"{mod}.AI_Time", DateTime.Now.Hour);
|
|
|
+ SetAiValue($"{mod}.AI_Minute", DateTime.Now.Minute);
|
|
|
+ SetAiValue($"{mod}.AI_Second", DateTime.Now.Second);
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
void MonitorSlitDoor(ModuleName mod)
|
|
|
{
|
|
|
// slit door open
|
|
@@ -641,61 +648,86 @@ namespace Venus_Simulator.Instances
|
|
|
void MonitorMFSlitDoor()
|
|
|
{
|
|
|
ModuleName mod = ModuleName.TM;
|
|
|
-
|
|
|
- // LLA T door open
|
|
|
- if (IO.DO[$"{mod}.DO_LLA_Slit_Door_T_Open"].Value)
|
|
|
+ if (SimulatorJetTM.CurrentTM == JetTMType.Venus)
|
|
|
{
|
|
|
- IO.DI[$"{mod}.DI_LLA_T_Slit_Door_open_Position"].Value = true;
|
|
|
- IO.DI[$"{mod}.DI_LLA_T_Slit_Door_close_Position"].Value = false;
|
|
|
- }
|
|
|
+ // LLA T door open
|
|
|
+ if (IO.DO[$"{mod}.DO_LLA_Slit_Door_T_Open"].Value)
|
|
|
+ {
|
|
|
+ IO.DI[$"{mod}.DI_LLA_T_Slit_Door_open_Position"].Value = true;
|
|
|
+ IO.DI[$"{mod}.DI_LLA_T_Slit_Door_close_Position"].Value = false;
|
|
|
+ }
|
|
|
|
|
|
- // LLB T door open
|
|
|
- if (IO.DO[$"{mod}.DO_LLB_Slit_Door_T_Open"].Value)
|
|
|
- {
|
|
|
- IO.DI[$"{mod}.DI_LLB_T_Slit_Door_open_Position"].Value = true;
|
|
|
- IO.DI[$"{mod}.DI_LLB_T_Slit_Door_close_Position"].Value = false;
|
|
|
- }
|
|
|
+ // LLB T door open
|
|
|
+ if (IO.DO[$"{mod}.DO_LLB_Slit_Door_T_Open"].Value)
|
|
|
+ {
|
|
|
+ IO.DI[$"{mod}.DI_LLB_T_Slit_Door_open_Position"].Value = true;
|
|
|
+ IO.DI[$"{mod}.DI_LLB_T_Slit_Door_close_Position"].Value = false;
|
|
|
+ }
|
|
|
|
|
|
- // LLA E door open
|
|
|
- if (IO.DO[$"{mod}.DO_LLA_Slit_Door_E_Open"].Value)
|
|
|
- {
|
|
|
- IO.DI[$"{mod}.DI_LLA_E_Slit_Door_open_Position"].Value = true;
|
|
|
- IO.DI[$"{mod}.DI_LLA_E_Slit_Door_close_Position"].Value = false;
|
|
|
- }
|
|
|
+ // LLA E door open
|
|
|
+ if (IO.DO[$"{mod}.DO_LLA_Slit_Door_E_Open"].Value)
|
|
|
+ {
|
|
|
+ IO.DI[$"{mod}.DI_LLA_E_Slit_Door_open_Position"].Value = true;
|
|
|
+ IO.DI[$"{mod}.DI_LLA_E_Slit_Door_close_Position"].Value = false;
|
|
|
+ }
|
|
|
|
|
|
- // LLB E door open
|
|
|
- if (IO.DO[$"{mod}.DO_LLB_Slit_Door_E_Open"].Value)
|
|
|
- {
|
|
|
- IO.DI[$"{mod}.DI_LLB_E_Slit_Door_open_Position"].Value = true;
|
|
|
- IO.DI[$"{mod}.DI_LLB_E_Slit_Door_close_Position"].Value = false;
|
|
|
- }
|
|
|
+ // LLB E door open
|
|
|
+ if (IO.DO[$"{mod}.DO_LLB_Slit_Door_E_Open"].Value)
|
|
|
+ {
|
|
|
+ IO.DI[$"{mod}.DI_LLB_E_Slit_Door_open_Position"].Value = true;
|
|
|
+ IO.DI[$"{mod}.DI_LLB_E_Slit_Door_close_Position"].Value = false;
|
|
|
+ }
|
|
|
|
|
|
- // LLA T door close
|
|
|
- if (IO.DO[$"{mod}.DO_LLA_Slit_Door_T_Close"].Value)
|
|
|
- {
|
|
|
- IO.DI[$"{mod}.DI_LLA_T_Slit_Door_open_Position"].Value = false;
|
|
|
- IO.DI[$"{mod}.DI_LLA_T_Slit_Door_close_Position"].Value = true;
|
|
|
- }
|
|
|
+ // LLA T door close
|
|
|
+ if (IO.DO[$"{mod}.DO_LLA_Slit_Door_T_Close"].Value)
|
|
|
+ {
|
|
|
+ IO.DI[$"{mod}.DI_LLA_T_Slit_Door_open_Position"].Value = false;
|
|
|
+ IO.DI[$"{mod}.DI_LLA_T_Slit_Door_close_Position"].Value = true;
|
|
|
+ }
|
|
|
|
|
|
- // LLB T door close
|
|
|
- if (IO.DO[$"{mod}.DO_LLB_Slit_Door_T_Close"].Value)
|
|
|
- {
|
|
|
- IO.DI[$"{mod}.DI_LLB_T_Slit_Door_open_Position"].Value = false;
|
|
|
- IO.DI[$"{mod}.DI_LLB_T_Slit_Door_close_Position"].Value = true;
|
|
|
- }
|
|
|
+ // LLB T door close
|
|
|
+ if (IO.DO[$"{mod}.DO_LLB_Slit_Door_T_Close"].Value)
|
|
|
+ {
|
|
|
+ IO.DI[$"{mod}.DI_LLB_T_Slit_Door_open_Position"].Value = false;
|
|
|
+ IO.DI[$"{mod}.DI_LLB_T_Slit_Door_close_Position"].Value = true;
|
|
|
+ }
|
|
|
|
|
|
- // LLA E door close
|
|
|
- if (IO.DO[$"{mod}.DO_LLA_Slit_Door_E_Close"].Value)
|
|
|
- {
|
|
|
- IO.DI[$"{mod}.DI_LLA_E_Slit_Door_open_Position"].Value = false;
|
|
|
- IO.DI[$"{mod}.DI_LLA_E_Slit_Door_close_Position"].Value = true;
|
|
|
- }
|
|
|
+ // LLA E door close
|
|
|
+ if (IO.DO[$"{mod}.DO_LLA_Slit_Door_E_Close"].Value)
|
|
|
+ {
|
|
|
+ IO.DI[$"{mod}.DI_LLA_E_Slit_Door_open_Position"].Value = false;
|
|
|
+ IO.DI[$"{mod}.DI_LLA_E_Slit_Door_close_Position"].Value = true;
|
|
|
+ }
|
|
|
|
|
|
- // LLB E door close
|
|
|
- if (IO.DO[$"{mod}.DO_LLB_Slit_Door_E_Close"].Value)
|
|
|
+ // LLB E door close
|
|
|
+ if (IO.DO[$"{mod}.DO_LLB_Slit_Door_E_Close"].Value)
|
|
|
+ {
|
|
|
+ IO.DI[$"{mod}.DI_LLB_E_Slit_Door_open_Position"].Value = false;
|
|
|
+ IO.DI[$"{mod}.DI_LLB_E_Slit_Door_close_Position"].Value = true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else if (SimulatorJetTM.CurrentTM == JetTMType.VenusSE)
|
|
|
{
|
|
|
- IO.DI[$"{mod}.DI_LLB_E_Slit_Door_open_Position"].Value = false;
|
|
|
- IO.DI[$"{mod}.DI_LLB_E_Slit_Door_close_Position"].Value = true;
|
|
|
+ // VCE T door open
|
|
|
+ if (IO.DO[$"{mod}.DO_VCE_TM_OP"].Value)
|
|
|
+ {
|
|
|
+ IO.DI[$"{mod}.DI_VCE_TM_OPS"].Value = true;
|
|
|
+ IO.DI[$"{mod}.DI_VCE_TM_CLS"].Value = false;
|
|
|
+ }
|
|
|
+
|
|
|
+ // VCE T door Close
|
|
|
+ if (IO.DO[$"{mod}.DO_VCE_TM_CL"].Value)
|
|
|
+ {
|
|
|
+ IO.DI[$"{mod}.DI_VCE_TM_OPS"].Value = false;
|
|
|
+ IO.DI[$"{mod}.DI_VCE_TM_CLS"].Value = true;
|
|
|
+ }
|
|
|
+
|
|
|
+ // VCE T door Close
|
|
|
+ if (IO.DO[$"{mod}.DO_VCE_TM_CL"].Value)
|
|
|
+ {
|
|
|
+ IO.DI[$"{mod}.DI_VCE_TM_OPS"].Value = false;
|
|
|
+ IO.DI[$"{mod}.DI_VCE_TM_CLS"].Value = true;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -710,7 +742,7 @@ namespace Venus_Simulator.Instances
|
|
|
}
|
|
|
void MonitorLid(ModuleName mod)
|
|
|
{
|
|
|
-
|
|
|
+
|
|
|
// lift pin up
|
|
|
if (IO.DO[$"{mod}.DO_Lid_Up"].Value != IO.DO[$"{mod}.DO_Lid_Down"].Value)
|
|
|
{
|
|
@@ -758,7 +790,7 @@ namespace Venus_Simulator.Instances
|
|
|
void MonitorPressure(ModuleName mod)
|
|
|
{
|
|
|
string sAI_Foreline = "AI_Foreline_Pressure_760t";
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
// Loadlock pressure
|
|
@@ -890,20 +922,20 @@ namespace Venus_Simulator.Instances
|
|
|
//
|
|
|
if (vent_vlv.Value)
|
|
|
{
|
|
|
- float getAiValue_ChamberPressure = GetAiValue($"{mod}.{sAI_ChamberPressure}");
|
|
|
- float getAiValue_ProcessPressure = GetAiValue($"{mod}.{sAI_ProcessPressure}");
|
|
|
- if (getAiValue_ProcessPressure <= 10000 && getAiValue_ChamberPressure > 10000)
|
|
|
- {
|
|
|
- SetAiValue($"{mod}.{sAI_ChamberPressure}", GetAiValue($"{mod}.{sAI_ChamberPressure}") + 25000);
|
|
|
- //SetAiValue($"{mod}.{sAI_ProcessPressure}", GetAiValue($"{mod}.{sAI_ProcessPressure}") - 150);
|
|
|
- }
|
|
|
- else if (getAiValue_ProcessPressure <= 10000 && getAiValue_ChamberPressure <= 10000)
|
|
|
- {
|
|
|
- getAiValue_ProcessPressure = getAiValue_ChamberPressure;
|
|
|
- SetAiValue($"{mod}.{sAI_ChamberPressure}", GetAiValue($"{mod}.{sAI_ProcessPressure}") + 1300);
|
|
|
- SetAiValue($"{mod}.{sAI_ProcessPressure}", GetAiValue($"{mod}.{sAI_ProcessPressure}") + 1300);
|
|
|
- }
|
|
|
- else
|
|
|
+ float getAiValue_ChamberPressure = GetAiValue($"{mod}.{sAI_ChamberPressure}");
|
|
|
+ float getAiValue_ProcessPressure = GetAiValue($"{mod}.{sAI_ProcessPressure}");
|
|
|
+ if (getAiValue_ProcessPressure <= 10000 && getAiValue_ChamberPressure > 10000)
|
|
|
+ {
|
|
|
+ SetAiValue($"{mod}.{sAI_ChamberPressure}", GetAiValue($"{mod}.{sAI_ChamberPressure}") + 25000);
|
|
|
+ //SetAiValue($"{mod}.{sAI_ProcessPressure}", GetAiValue($"{mod}.{sAI_ProcessPressure}") - 150);
|
|
|
+ }
|
|
|
+ else if (getAiValue_ProcessPressure <= 10000 && getAiValue_ChamberPressure <= 10000)
|
|
|
+ {
|
|
|
+ getAiValue_ProcessPressure = getAiValue_ChamberPressure;
|
|
|
+ SetAiValue($"{mod}.{sAI_ChamberPressure}", GetAiValue($"{mod}.{sAI_ProcessPressure}") + 1300);
|
|
|
+ SetAiValue($"{mod}.{sAI_ProcessPressure}", GetAiValue($"{mod}.{sAI_ProcessPressure}") + 1300);
|
|
|
+ }
|
|
|
+ else
|
|
|
{
|
|
|
SetAiValue($"{mod}.{sAI_ChamberPressure}", GetAiValue($"{mod}.{sAI_ChamberPressure}") + 25000);
|
|
|
}
|
|
@@ -1038,7 +1070,7 @@ namespace Venus_Simulator.Instances
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
if (SkyPumpMockPMA._simPumpStatus == SkyPumpMockPMA.SimPumpStatus.Open || EdwardsPumpMockPMA._simPumpStatus == EdwardsPumpMockPMA.SimEdwardsPumpStatus.Open)
|
|
|
{
|
|
@@ -1159,7 +1191,7 @@ namespace Venus_Simulator.Instances
|
|
|
|
|
|
|
|
|
// Loadlock Pumping Valve
|
|
|
-
|
|
|
+
|
|
|
|
|
|
// 压力值越界,复位
|
|
|
float chamber_pressure1 = GetAiValue($"{mod}.{sAI_ChamberPressure}");
|
|
@@ -1366,162 +1398,172 @@ namespace Venus_Simulator.Instances
|
|
|
}
|
|
|
void MonitorMFPressure()
|
|
|
{
|
|
|
+ if (SimulatorJetTM.CurrentTM == JetTMType.Venus)
|
|
|
+ {
|
|
|
+ string LLA_AI_ChamberPressure = "AI_LLA_CHB_Pressure";
|
|
|
+ string LLB_AI_ChamberPressure = "AI_LLB_CHB_Pressure";
|
|
|
+ string TM_AI_ChamberPressure = "AI_TM_CHB_Pressure";
|
|
|
|
|
|
- string LLA_AI_ChamberPressure = "AI_LLA_CHB_Pressure";
|
|
|
- string LLB_AI_ChamberPressure = "AI_LLB_CHB_Pressure";
|
|
|
- string TM_AI_ChamberPressure = "AI_TM_CHB_Pressure";
|
|
|
|
|
|
+ ModuleName mod = ModuleName.TM;
|
|
|
|
|
|
- ModuleName mod = ModuleName.TM;
|
|
|
+ DOAccessor LLA_fast_pump_vlv = IO.DO[$"{mod}.DO_Fast_Pumping_Valve_LLA"];
|
|
|
+ DOAccessor LLA_soft_pump_vlv = IO.DO[$"{mod}.DO_Soft_Pumping_Valve_LLA"];
|
|
|
|
|
|
- DOAccessor LLA_fast_pump_vlv = IO.DO[$"{mod}.DO_Fast_Pumping_Valve_LLA"];
|
|
|
- DOAccessor LLA_soft_pump_vlv = IO.DO[$"{mod}.DO_Soft_Pumping_Valve_LLA"];
|
|
|
+ DOAccessor LLB_fast_pump_vlv = IO.DO[$"{mod}.DO_Fast_Pumping_Valve_LLB"];
|
|
|
+ DOAccessor LLB_soft_pump_vlv = IO.DO[$"{mod}.DO_Soft_Pumping_Valve_LLB"];
|
|
|
|
|
|
- DOAccessor LLB_fast_pump_vlv = IO.DO[$"{mod}.DO_Fast_Pumping_Valve_LLB"];
|
|
|
- DOAccessor LLB_soft_pump_vlv = IO.DO[$"{mod}.DO_Soft_Pumping_Valve_LLB"];
|
|
|
+ DOAccessor TM_fast_pump_vlv = IO.DO[$"{mod}.DO_Fast_Pumping_Valve_TM"];
|
|
|
+ DOAccessor TM_soft_pump_vlv = IO.DO[$"{mod}.DO_Soft_Pumping_Valve_TM"];
|
|
|
|
|
|
- DOAccessor TM_fast_pump_vlv = IO.DO[$"{mod}.DO_Fast_Pumping_Valve_TM"];
|
|
|
- DOAccessor TM_soft_pump_vlv = IO.DO[$"{mod}.DO_Soft_Pumping_Valve_TM"];
|
|
|
+ DOAccessor LLA_fast_Vent_vlv = IO.DO[$"{mod}.DO_Vent_Valve_LLA"];
|
|
|
+ DOAccessor LLA_soft_Vent_vlv = IO.DO[$"{mod}.DO_Purge_Valve_LLA"];
|
|
|
|
|
|
- DOAccessor LLA_fast_Vent_vlv = IO.DO[$"{mod}.DO_Vent_Valve_LLA"];
|
|
|
- DOAccessor LLA_soft_Vent_vlv = IO.DO[$"{mod}.DO_Purge_Valve_LLA"];
|
|
|
+ DOAccessor LLB_fast_Vent_vlv = IO.DO[$"{mod}.DO_Vent_Valve_LLB"];
|
|
|
+ DOAccessor LLB_soft_Vent_vlv = IO.DO[$"{mod}.DO_Purge_Valve_LLB"];
|
|
|
|
|
|
- DOAccessor LLB_fast_Vent_vlv = IO.DO[$"{mod}.DO_Vent_Valve_LLB"];
|
|
|
- DOAccessor LLB_soft_Vent_vlv = IO.DO[$"{mod}.DO_Purge_Valve_LLB"];
|
|
|
+ DOAccessor TM_fast_Vent_vlv = IO.DO[$"{mod}.DO_Vent_Valve_TM"];
|
|
|
+ DOAccessor TM_soft_Vent_vlv = IO.DO[$"{mod}.DO_Purge_Valve_TM"];
|
|
|
|
|
|
- DOAccessor TM_fast_Vent_vlv = IO.DO[$"{mod}.DO_Vent_Valve_TM"];
|
|
|
- DOAccessor TM_soft_Vent_vlv = IO.DO[$"{mod}.DO_Purge_Valve_TM"];
|
|
|
+ float getAiValue_LLA_ChamberPressure = GetAiValue($"{mod}.{LLA_AI_ChamberPressure}");
|
|
|
+ float getAiValue_LLB_ChamberPressure = GetAiValue($"{mod}.{LLB_AI_ChamberPressure}");
|
|
|
+ float getAiValue_TM_ChamberPressure = GetAiValue($"{mod}.{TM_AI_ChamberPressure}");
|
|
|
|
|
|
- float getAiValue_LLA_ChamberPressure = GetAiValue($"{mod}.{LLA_AI_ChamberPressure}");
|
|
|
- float getAiValue_LLB_ChamberPressure = GetAiValue($"{mod}.{LLB_AI_ChamberPressure}");
|
|
|
- float getAiValue_TM_ChamberPressure = GetAiValue($"{mod}.{TM_AI_ChamberPressure}");
|
|
|
|
|
|
|
|
|
+ if (LLA_fast_pump_vlv.Value || LLA_soft_pump_vlv.Value)
|
|
|
+ {
|
|
|
+ if (getAiValue_LLA_ChamberPressure > 10000)
|
|
|
+ {
|
|
|
+ SetAiValue($"{mod}.{LLA_AI_ChamberPressure}", GetAiValue($"{mod}.{LLA_AI_ChamberPressure}") - 30000);
|
|
|
+ }
|
|
|
+ else if (getAiValue_LLA_ChamberPressure <= 10000)
|
|
|
+ {
|
|
|
+ SetAiValue($"{mod}.{LLA_AI_ChamberPressure}", GetAiValue($"{mod}.{LLA_AI_ChamberPressure}") - 1500);
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
- if (LLA_fast_pump_vlv.Value || LLA_soft_pump_vlv.Value)
|
|
|
- {
|
|
|
- if ( getAiValue_LLA_ChamberPressure > 10000)
|
|
|
+ if (LLB_fast_pump_vlv.Value || LLB_soft_pump_vlv.Value)
|
|
|
{
|
|
|
- SetAiValue($"{mod}.{LLA_AI_ChamberPressure}", GetAiValue($"{mod}.{LLA_AI_ChamberPressure}") - 30000);
|
|
|
+ if (getAiValue_LLB_ChamberPressure > 10000)
|
|
|
+ {
|
|
|
+ SetAiValue($"{mod}.{LLB_AI_ChamberPressure}", GetAiValue($"{mod}.{LLB_AI_ChamberPressure}") - 30000);
|
|
|
+ }
|
|
|
+ else if (getAiValue_LLB_ChamberPressure <= 10000)
|
|
|
+ {
|
|
|
+ SetAiValue($"{mod}.{LLB_AI_ChamberPressure}", GetAiValue($"{mod}.{LLB_AI_ChamberPressure}") - 1500);
|
|
|
+ }
|
|
|
}
|
|
|
- else if (getAiValue_LLA_ChamberPressure <= 10000)
|
|
|
- {
|
|
|
- SetAiValue($"{mod}.{LLA_AI_ChamberPressure}", GetAiValue($"{mod}.{LLA_AI_ChamberPressure}") - 1500);
|
|
|
- }
|
|
|
- }
|
|
|
|
|
|
- if (LLB_fast_pump_vlv.Value || LLB_soft_pump_vlv.Value)
|
|
|
- {
|
|
|
- if (getAiValue_LLB_ChamberPressure > 10000)
|
|
|
+ if (TM_fast_pump_vlv.Value || TM_soft_pump_vlv.Value)
|
|
|
{
|
|
|
- SetAiValue($"{mod}.{LLB_AI_ChamberPressure}", GetAiValue($"{mod}.{LLB_AI_ChamberPressure}") - 30000);
|
|
|
+ if (getAiValue_TM_ChamberPressure > 10000)
|
|
|
+ {
|
|
|
+ SetAiValue($"{mod}.{TM_AI_ChamberPressure}", GetAiValue($"{mod}.{TM_AI_ChamberPressure}") - 30000);
|
|
|
+ }
|
|
|
+ else if (getAiValue_TM_ChamberPressure <= 10000)
|
|
|
+ {
|
|
|
+ SetAiValue($"{mod}.{TM_AI_ChamberPressure}", GetAiValue($"{mod}.{TM_AI_ChamberPressure}") - 1500);
|
|
|
+ }
|
|
|
}
|
|
|
- else if (getAiValue_LLB_ChamberPressure <= 10000)
|
|
|
+
|
|
|
+
|
|
|
+ if (LLA_fast_Vent_vlv.Value || LLA_soft_Vent_vlv.Value)
|
|
|
{
|
|
|
- SetAiValue($"{mod}.{LLB_AI_ChamberPressure}", GetAiValue($"{mod}.{LLB_AI_ChamberPressure}") - 1500);
|
|
|
+ if (getAiValue_LLA_ChamberPressure > 10000)
|
|
|
+ {
|
|
|
+ SetAiValue($"{mod}.{LLA_AI_ChamberPressure}", GetAiValue($"{mod}.{LLA_AI_ChamberPressure}") + 30000);
|
|
|
+ }
|
|
|
+ else if (getAiValue_LLA_ChamberPressure <= 10000)
|
|
|
+ {
|
|
|
+ SetAiValue($"{mod}.{LLA_AI_ChamberPressure}", GetAiValue($"{mod}.{LLA_AI_ChamberPressure}") + 1500);
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
- if (TM_fast_pump_vlv.Value || TM_soft_pump_vlv.Value)
|
|
|
- {
|
|
|
- if (getAiValue_TM_ChamberPressure > 10000)
|
|
|
+ if (LLB_fast_Vent_vlv.Value || LLB_soft_Vent_vlv.Value)
|
|
|
{
|
|
|
- SetAiValue($"{mod}.{TM_AI_ChamberPressure}", GetAiValue($"{mod}.{TM_AI_ChamberPressure}") - 30000);
|
|
|
+ if (getAiValue_LLB_ChamberPressure > 10000)
|
|
|
+ {
|
|
|
+ SetAiValue($"{mod}.{LLB_AI_ChamberPressure}", GetAiValue($"{mod}.{LLB_AI_ChamberPressure}") + 30000);
|
|
|
+ }
|
|
|
+ else if (getAiValue_LLB_ChamberPressure <= 10000)
|
|
|
+ {
|
|
|
+ SetAiValue($"{mod}.{LLB_AI_ChamberPressure}", GetAiValue($"{mod}.{LLB_AI_ChamberPressure}") + 1500);
|
|
|
+ }
|
|
|
}
|
|
|
- else if (getAiValue_TM_ChamberPressure <= 10000)
|
|
|
+
|
|
|
+
|
|
|
+ if (TM_fast_Vent_vlv.Value || TM_soft_Vent_vlv.Value)
|
|
|
{
|
|
|
- SetAiValue($"{mod}.{TM_AI_ChamberPressure}", GetAiValue($"{mod}.{TM_AI_ChamberPressure}") - 1500);
|
|
|
+ if (getAiValue_TM_ChamberPressure > 10000)
|
|
|
+ {
|
|
|
+ SetAiValue($"{mod}.{TM_AI_ChamberPressure}", GetAiValue($"{mod}.{TM_AI_ChamberPressure}") + 30000);
|
|
|
+ }
|
|
|
+ else if (getAiValue_TM_ChamberPressure <= 10000)
|
|
|
+ {
|
|
|
+ SetAiValue($"{mod}.{TM_AI_ChamberPressure}", GetAiValue($"{mod}.{TM_AI_ChamberPressure}") + 1500);
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
+ getAiValue_LLA_ChamberPressure = GetAiValue($"{mod}.{LLA_AI_ChamberPressure}");
|
|
|
|
|
|
- if (LLA_fast_Vent_vlv.Value || LLA_soft_Vent_vlv.Value)
|
|
|
- {
|
|
|
- if (getAiValue_LLA_ChamberPressure > 10000)
|
|
|
+ if (getAiValue_LLA_ChamberPressure > ATM_PRESSURE)
|
|
|
{
|
|
|
- SetAiValue($"{mod}.{LLA_AI_ChamberPressure}", GetAiValue($"{mod}.{LLA_AI_ChamberPressure}") + 30000);
|
|
|
+ SetAiValue($"{mod}.{LLA_AI_ChamberPressure}", ATM_PRESSURE);
|
|
|
}
|
|
|
- else if (getAiValue_LLA_ChamberPressure <= 10000)
|
|
|
+ else if (getAiValue_LLA_ChamberPressure < 20)
|
|
|
{
|
|
|
- SetAiValue($"{mod}.{LLA_AI_ChamberPressure}", GetAiValue($"{mod}.{LLA_AI_ChamberPressure}") + 1500);
|
|
|
+ SetAiValue($"{mod}.{LLA_AI_ChamberPressure}", 20);
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
- if (LLB_fast_Vent_vlv.Value || LLB_soft_Vent_vlv.Value)
|
|
|
- {
|
|
|
- if (getAiValue_LLB_ChamberPressure > 10000)
|
|
|
+ getAiValue_LLB_ChamberPressure = GetAiValue($"{mod}.{LLB_AI_ChamberPressure}");
|
|
|
+
|
|
|
+ if (getAiValue_LLB_ChamberPressure > ATM_PRESSURE)
|
|
|
{
|
|
|
- SetAiValue($"{mod}.{LLB_AI_ChamberPressure}", GetAiValue($"{mod}.{LLB_AI_ChamberPressure}") + 30000);
|
|
|
+ SetAiValue($"{mod}.{LLB_AI_ChamberPressure}", ATM_PRESSURE);
|
|
|
}
|
|
|
- else if (getAiValue_LLB_ChamberPressure <= 10000)
|
|
|
+ else if (getAiValue_LLB_ChamberPressure < 20)
|
|
|
{
|
|
|
- SetAiValue($"{mod}.{LLB_AI_ChamberPressure}", GetAiValue($"{mod}.{LLB_AI_ChamberPressure}") + 1500);
|
|
|
+ SetAiValue($"{mod}.{LLB_AI_ChamberPressure}", 20);
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
+ getAiValue_TM_ChamberPressure = GetAiValue($"{mod}.{TM_AI_ChamberPressure}");
|
|
|
|
|
|
- if (TM_fast_Vent_vlv.Value || TM_soft_Vent_vlv.Value)
|
|
|
- {
|
|
|
- if (getAiValue_TM_ChamberPressure > 10000)
|
|
|
+ if (getAiValue_TM_ChamberPressure > ATM_PRESSURE)
|
|
|
{
|
|
|
- SetAiValue($"{mod}.{TM_AI_ChamberPressure}", GetAiValue($"{mod}.{TM_AI_ChamberPressure}") + 30000);
|
|
|
+ SetAiValue($"{mod}.{TM_AI_ChamberPressure}", ATM_PRESSURE);
|
|
|
}
|
|
|
- else if (getAiValue_TM_ChamberPressure <= 10000)
|
|
|
+ else if (getAiValue_TM_ChamberPressure < 20)
|
|
|
{
|
|
|
- SetAiValue($"{mod}.{TM_AI_ChamberPressure}", GetAiValue($"{mod}.{TM_AI_ChamberPressure}") + 1500);
|
|
|
+ SetAiValue($"{mod}.{TM_AI_ChamberPressure}", 20);
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
- getAiValue_LLA_ChamberPressure = GetAiValue($"{mod}.{LLA_AI_ChamberPressure}");
|
|
|
+ // ATM switch
|
|
|
+ IO.DI[$"{mod}.DI_TM_ATM_Switch"].Value = GetAiValue($"{mod}.{TM_AI_ChamberPressure}") > ATM_THRESHOLD;
|
|
|
|
|
|
- if (getAiValue_LLA_ChamberPressure > ATM_PRESSURE)
|
|
|
- {
|
|
|
- SetAiValue($"{mod}.{LLA_AI_ChamberPressure}", ATM_PRESSURE);
|
|
|
- }
|
|
|
- else if (getAiValue_LLA_ChamberPressure < 20)
|
|
|
- {
|
|
|
- SetAiValue($"{mod}.{LLA_AI_ChamberPressure}", 20);
|
|
|
- }
|
|
|
+ // VAC switch
|
|
|
+ IO.DI[$"{mod}.DI_TM_VAC_Switch"].Value = GetAiValue($"{mod}.{TM_AI_ChamberPressure}") < VAC_SW_PRESSURE;
|
|
|
|
|
|
- getAiValue_LLB_ChamberPressure = GetAiValue($"{mod}.{LLB_AI_ChamberPressure}");
|
|
|
+ // ATM switch
|
|
|
+ IO.DI[$"{mod}.DI_LLA_ATM_Switch"].Value = GetAiValue($"{mod}.{LLA_AI_ChamberPressure}") > ATM_THRESHOLD;
|
|
|
|
|
|
- if (getAiValue_LLB_ChamberPressure > ATM_PRESSURE)
|
|
|
- {
|
|
|
- SetAiValue($"{mod}.{LLB_AI_ChamberPressure}", ATM_PRESSURE);
|
|
|
- }
|
|
|
- else if (getAiValue_LLB_ChamberPressure < 20)
|
|
|
- {
|
|
|
- SetAiValue($"{mod}.{LLB_AI_ChamberPressure}", 20);
|
|
|
- }
|
|
|
+ // VAC switch
|
|
|
+ IO.DI[$"{mod}.DI_LLA_VAC_Switch"].Value = GetAiValue($"{mod}.{LLA_AI_ChamberPressure}") < VAC_SW_PRESSURE;
|
|
|
|
|
|
- getAiValue_TM_ChamberPressure = GetAiValue($"{mod}.{TM_AI_ChamberPressure}");
|
|
|
+ // ATM switch
|
|
|
+ IO.DI[$"{mod}.DI_LLB_ATM_Switch"].Value = GetAiValue($"{mod}.{LLB_AI_ChamberPressure}") > ATM_THRESHOLD;
|
|
|
|
|
|
- if (getAiValue_TM_ChamberPressure > ATM_PRESSURE)
|
|
|
- {
|
|
|
- SetAiValue($"{mod}.{TM_AI_ChamberPressure}", ATM_PRESSURE);
|
|
|
+ // VAC switch
|
|
|
+ IO.DI[$"{mod}.DI_LLB_VAC_Switch"].Value = GetAiValue($"{mod}.{LLB_AI_ChamberPressure}") < VAC_SW_PRESSURE;
|
|
|
}
|
|
|
- else if (getAiValue_TM_ChamberPressure < 20)
|
|
|
+ else if (SimulatorJetTM.CurrentTM == JetTMType.VenusSE)
|
|
|
{
|
|
|
- SetAiValue($"{mod}.{TM_AI_ChamberPressure}", 20);
|
|
|
- }
|
|
|
-
|
|
|
- // ATM switch
|
|
|
- IO.DI[$"{mod}.DI_TM_ATM_Switch"].Value = GetAiValue($"{mod}.{TM_AI_ChamberPressure}") > ATM_THRESHOLD;
|
|
|
-
|
|
|
- // VAC switch
|
|
|
- IO.DI[$"{mod}.DI_TM_VAC_Switch"].Value = GetAiValue($"{mod}.{TM_AI_ChamberPressure}") < VAC_SW_PRESSURE;
|
|
|
+ ModuleName mod = ModuleName.TM;
|
|
|
|
|
|
- // ATM switch
|
|
|
- IO.DI[$"{mod}.DI_LLA_ATM_Switch"].Value = GetAiValue($"{mod}.{LLA_AI_ChamberPressure}") > ATM_THRESHOLD;
|
|
|
-
|
|
|
- // VAC switch
|
|
|
- IO.DI[$"{mod}.DI_LLA_VAC_Switch"].Value = GetAiValue($"{mod}.{LLA_AI_ChamberPressure}") < VAC_SW_PRESSURE;
|
|
|
-
|
|
|
- // ATM switch
|
|
|
- IO.DI[$"{mod}.DI_LLB_ATM_Switch"].Value = GetAiValue($"{mod}.{LLB_AI_ChamberPressure}") > ATM_THRESHOLD;
|
|
|
-
|
|
|
- // VAC switch
|
|
|
- IO.DI[$"{mod}.DI_LLB_VAC_Switch"].Value = GetAiValue($"{mod}.{LLB_AI_ChamberPressure}") < VAC_SW_PRESSURE;
|
|
|
+ //float getAiValue_LLA_ChamberPressure = GetAiValue($"{mod}.{LLA_AI_ChamberPressure}");
|
|
|
+ //float getAiValue_LLB_ChamberPressure = GetAiValue($"{mod}.{LLB_AI_ChamberPressure}");
|
|
|
+ //float getAiValue_TM_ChamberPressure = GetAiValue($"{mod}.{TM_AI_ChamberPressure}");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
void SetAiValue(string name, float value)
|
|
@@ -1719,5 +1761,8 @@ namespace Venus_Simulator.Instances
|
|
|
|
|
|
//}
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
}
|