From d44543a758cac55f95d82f858a4b8f28afe99a13 Mon Sep 17 00:00:00 2001 From: hanqiangqiang <1364346467@qq.com> Date: Tue, 4 Aug 2026 17:08:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9TM=E4=BB=BF=E7=9C=9F=E5=92=8C?= =?UTF-8?q?=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Config/TM/DeviceModelSystem.xml | 1 - App/SicSimulator/Instances/SimulatorSystem.cs | 110 +++++++++--------- .../Controls/Mainframe/M2C4EFEMView2.xaml | 14 +++ 3 files changed, 68 insertions(+), 57 deletions(-) diff --git a/App/Modules/SicModules/Config/TM/DeviceModelSystem.xml b/App/Modules/SicModules/Config/TM/DeviceModelSystem.xml index 7cc92e4..ecd7a56 100644 --- a/App/Modules/SicModules/Config/TM/DeviceModelSystem.xml +++ b/App/Modules/SicModules/Config/TM/DeviceModelSystem.xml @@ -11,7 +11,6 @@ DisableFbSpErrMonWhenValveClosed="true" aioType="float" /> - diff --git a/App/SicSimulator/Instances/SimulatorSystem.cs b/App/SicSimulator/Instances/SimulatorSystem.cs index b25d040..5dca0d3 100644 --- a/App/SicSimulator/Instances/SimulatorSystem.cs +++ b/App/SicSimulator/Instances/SimulatorSystem.cs @@ -21,7 +21,7 @@ namespace SicSimulator.Instances { SetDefaultValue("PM1"); //SetDefaultValue("PM2"); - //SetTMDefaultValue("TM"); + SetTMDefaultValue("TM"); //Singleton.Instance.Initialize(false); @@ -90,10 +90,6 @@ namespace SicSimulator.Instances IO.DI["DI_LdRotationBusy"].Value = false; IO.DO["DO_LdRotationServoOn"].Value = true; - IO.DI["DI_LdRotationServoOn"].Value = true; - - IO.DO["DO_LoadLidLock"].Value = true; - IO.DO["DO_LoadLidUnlock"].Value = true; } private void SetDefaultValue(string mod) @@ -332,7 +328,7 @@ namespace SicSimulator.Instances //MonitorPressureLoad(); //MonitorPressureUnLoad(); //MonitorSlitValveFlow(); - //MonitorTMValve(); + MonitorTMValve(); //MonitorPm("PM1"); //MonitorPm("PM2"); @@ -801,56 +797,58 @@ namespace SicSimulator.Instances IO.DI["DI_VacRobotExtendBufferEnableFB"].Value = IO.DO["DO_VacRobotExtendBufferEnable"].Value; IO.DI["DI_VacRobotExtendPMAEnableFB"].Value = IO.DO["DO_VacRobotExtendPMAEnable"].Value; - if (IO.DO["DO_LoadLidLock"].Value != IO.DO["DO_LoadLidUnlock"].Value) - { - time1++; - if (time1 > 10) - { - time1 = 0; - IO.DI["DI_LoadLidLocked"].Value = IO.DO["DO_LoadLidLock"].Value; - IO.DI["DI_LoadLidUnlocked"].Value = IO.DO["DO_LoadLidUnlock"].Value; - } - } - if (IO.DO["DO_LoadWaferCYClamp"].Value != IO.DO["DO_LoadWaferCYOpen"].Value) - { - time2++; - if (time2 > 10) - { - time2 = 0; - IO.DI["DI_LoadWaferCYClamped"].Value = IO.DO["DO_LoadWaferCYClamp"].Value; - IO.DI["DI_LoadWafeCYOpened"].Value = IO.DO["DO_LoadWaferCYOpen"].Value; - } - } - if (IO.DO["DO_LoadTrayCYClamp"].Value != IO.DO["DO_LoadTrayCYOpen"].Value) - { - time3++; - if (time3 > 10) - { - time3 = 0; - IO.DI["DI_LoadTrayCYClamped"].Value = IO.DO["DO_LoadTrayCYClamp"].Value; - IO.DI["DI_LoadTrayCYOpend"].Value = IO.DO["DO_LoadTrayCYOpen"].Value; - } - } - if (IO.DO["DO_UnloadStationWaferCYClamp"].Value != IO.DO["DO_UnloadStationWaferCYOpen"].Value) - { - time4++; - if (time4 > 10) - { - time4 = 0; - IO.DI["DI_UnloadStationWaferCYClamped"].Value = IO.DO["DO_UnloadStationWaferCYClamp"].Value; - IO.DI["DI_UnloadStationWaferCYOpened"].Value = IO.DO["DO_UnloadStationWaferCYOpen"].Value; - } - } - if (IO.DO["DO_UnloadStationLifterCYUp"].Value != IO.DO["DO_UnloadStationLifterCYDown"].Value) - { - time5++; - if (time5 > 10) - { - time5 = 0; - IO.DI["DI_UnloadStationLifterCYUp"].Value = IO.DO["DO_UnloadStationLifterCYUp"].Value; - IO.DI["DI_UnloadStationLifterCYDown"].Value = IO.DO["DO_UnloadStationLifterCYDown"].Value; - } - } + IO.AI["AI_M60FlowRead"].Value = IO.AO[$"AO_M60FlowSetpoint"].Value; + + //if (IO.DO["DO_LoadLidLock"].Value != IO.DO["DO_LoadLidUnlock"].Value) + //{ + // time1++; + // if (time1 > 10) + // { + // time1 = 0; + // IO.DI["DI_LoadLidLocked"].Value = IO.DO["DO_LoadLidLock"].Value; + // IO.DI["DI_LoadLidUnlocked"].Value = IO.DO["DO_LoadLidUnlock"].Value; + // } + //} + //if (IO.DO["DO_LoadWaferCYClamp"].Value != IO.DO["DO_LoadWaferCYOpen"].Value) + //{ + // time2++; + // if (time2 > 10) + // { + // time2 = 0; + // IO.DI["DI_LoadWaferCYClamped"].Value = IO.DO["DO_LoadWaferCYClamp"].Value; + // IO.DI["DI_LoadWafeCYOpened"].Value = IO.DO["DO_LoadWaferCYOpen"].Value; + // } + //} + //if (IO.DO["DO_LoadTrayCYClamp"].Value != IO.DO["DO_LoadTrayCYOpen"].Value) + //{ + // time3++; + // if (time3 > 10) + // { + // time3 = 0; + // IO.DI["DI_LoadTrayCYClamped"].Value = IO.DO["DO_LoadTrayCYClamp"].Value; + // IO.DI["DI_LoadTrayCYOpend"].Value = IO.DO["DO_LoadTrayCYOpen"].Value; + // } + //} + //if (IO.DO["DO_UnloadStationWaferCYClamp"].Value != IO.DO["DO_UnloadStationWaferCYOpen"].Value) + //{ + // time4++; + // if (time4 > 10) + // { + // time4 = 0; + // IO.DI["DI_UnloadStationWaferCYClamped"].Value = IO.DO["DO_UnloadStationWaferCYClamp"].Value; + // IO.DI["DI_UnloadStationWaferCYOpened"].Value = IO.DO["DO_UnloadStationWaferCYOpen"].Value; + // } + //} + //if (IO.DO["DO_UnloadStationLifterCYUp"].Value != IO.DO["DO_UnloadStationLifterCYDown"].Value) + //{ + // time5++; + // if (time5 > 10) + // { + // time5 = 0; + // IO.DI["DI_UnloadStationLifterCYUp"].Value = IO.DO["DO_UnloadStationLifterCYUp"].Value; + // IO.DI["DI_UnloadStationLifterCYDown"].Value = IO.DO["DO_UnloadStationLifterCYDown"].Value; + // } + //} //IO.DI["DI_LdRotationServoOn"].Value = IO.DO["DO_LdRotationServoOn"].Value; } diff --git a/App/SicUI/Controls/Mainframe/M2C4EFEMView2.xaml b/App/SicUI/Controls/Mainframe/M2C4EFEMView2.xaml index 1e77805..6eadbdc 100644 --- a/App/SicUI/Controls/Mainframe/M2C4EFEMView2.xaml +++ b/App/SicUI/Controls/Mainframe/M2C4EFEMView2.xaml @@ -132,6 +132,20 @@ Height="8" IsDoorOpen="{Binding IsLLDoorOpen}" RenderTransformOrigin="0.5,0.5" /> + + + + + + + +