Browse Source

仿真更新

jiangjy 1 week ago
parent
commit
7a76ac346f

+ 2 - 4
Furnace/FurnaceRT/Equipments/PMs/PMN2Purge.cs

@@ -768,10 +768,8 @@ namespace FurnaceRT.Equipments.PMs
                 var time = (float)SC.GetValue<double>("PM1.N2Purge.O2DetectorFOUPToFOUPTime");
                 var time = (float)SC.GetValue<double>("PM1.N2Purge.O2DetectorFOUPToFOUPTime");
                 TrigN2PurgeExchangeFOUPTOFOUPWaitTime.SetAOTrigger(time, out _);
                 TrigN2PurgeExchangeFOUPTOFOUPWaitTime.SetAOTrigger(time, out _);
             }
             }
-            if (SC.ContainsItem("PM1.N2PurgeModePhase"))
-            {
-                SC.SetItemValue("PM1.N2PurgeModePhase", n2PurgeModeEnum);
-            }
+            
+            SetN2PurgeModePhase(n2PurgeModeEnum);
             //这2个SV下发值应该根据什么阶段下发什么值
             //这2个SV下发值应该根据什么阶段下发什么值
             if (n2PurgeModeEnum == N2PurgeModeEnum.WaferCharge.ToString())
             if (n2PurgeModeEnum == N2PurgeModeEnum.WaferCharge.ToString())
             {
             {

+ 3 - 0
Furnace/FurnaceSimulator/Instances/SimulatorSystem.cs

@@ -11,6 +11,7 @@ using Aitex.Core.Util;
 using Aitex.Core.WCF;
 using Aitex.Core.WCF;
 using FurnaceSimulator.Views;
 using FurnaceSimulator.Views;
 using MECF.Framework.Simulator.Core.Commons;
 using MECF.Framework.Simulator.Core.Commons;
+using MECF.Framework.UI.Core.View.Common;
 
 
 namespace FurnaceSimulator.Instances
 namespace FurnaceSimulator.Instances
 {
 {
@@ -115,6 +116,7 @@ namespace FurnaceSimulator.Instances
         private SimpleSocketDeviceSimulator _SimpleSocketDeviceSimulator;
         private SimpleSocketDeviceSimulator _SimpleSocketDeviceSimulator;
         private void SetDefaultValue()
         private void SetDefaultValue()
         {
         {
+            IO.DI[$"PM1.DI_SL05001LAdoorsw1"].Value = true;
             IO.DI[$"PM1.DI_O2_Detect_Side_LA"].Value = true;
             IO.DI[$"PM1.DI_O2_Detect_Side_LA"].Value = true;
             IO.DI[$"PM1.DI_POD1WaferOnRobot"].Value = true;
             IO.DI[$"PM1.DI_POD1WaferOnRobot"].Value = true;
             IO.DI[$"PM1.DI_POD2WaferOnRobot"].Value = true;
             IO.DI[$"PM1.DI_POD2WaferOnRobot"].Value = true;
@@ -1072,6 +1074,7 @@ namespace FurnaceSimulator.Instances
 
 
         private void MonitorDoor()
         private void MonitorDoor()
         {
         {
+         
             if (IO.DI[$"PM1.DI_AGVDoorOpened"] != null && IO.DO[$"PM1.DO_AGVDoorSwitchOpen"] != null) IO.DI[$"PM1.DI_AGVDoorOpened"].Value = IO.DO[$"PM1.DO_AGVDoorSwitchOpen"].Value;
             if (IO.DI[$"PM1.DI_AGVDoorOpened"] != null && IO.DO[$"PM1.DO_AGVDoorSwitchOpen"] != null) IO.DI[$"PM1.DI_AGVDoorOpened"].Value = IO.DO[$"PM1.DO_AGVDoorSwitchOpen"].Value;
             if (IO.DI[$"PM1.DI_AGVDoorClosed"] != null && IO.DO[$"PM1.DO_AGVDoorSwitchClose"] != null) IO.DI[$"PM1.DI_AGVDoorClosed"].Value = IO.DO[$"PM1.DO_AGVDoorSwitchClose"].Value;
             if (IO.DI[$"PM1.DI_AGVDoorClosed"] != null && IO.DO[$"PM1.DO_AGVDoorSwitchClose"] != null) IO.DI[$"PM1.DI_AGVDoorClosed"].Value = IO.DO[$"PM1.DO_AGVDoorSwitchClose"].Value;
         }
         }