修改TM仿真和界面

This commit is contained in:
hanqiangqiang 2026-08-04 17:08:54 +08:00
parent e3c8d1e0ba
commit d44543a758
3 changed files with 68 additions and 57 deletions

View File

@ -11,7 +11,6 @@
DisableFbSpErrMonWhenValveClosed="true" DisableFbSpErrMonWhenValveClosed="true"
aioType="float" /> aioType="float" />
</IoMfcs> </IoMfcs>
<TcAdses classType="Aitex.Core.RT.Device.Devices.SicAds" assembly="MECF.Framework.RT.EquipmentLibrary"> <TcAdses classType="Aitex.Core.RT.Device.Devices.SicAds" assembly="MECF.Framework.RT.EquipmentLibrary">

View File

@ -21,7 +21,7 @@ namespace SicSimulator.Instances
{ {
SetDefaultValue("PM1"); SetDefaultValue("PM1");
//SetDefaultValue("PM2"); //SetDefaultValue("PM2");
//SetTMDefaultValue("TM"); SetTMDefaultValue("TM");
//Singleton<DataManager>.Instance.Initialize(false); //Singleton<DataManager>.Instance.Initialize(false);
@ -90,10 +90,6 @@ namespace SicSimulator.Instances
IO.DI["DI_LdRotationBusy"].Value = false; IO.DI["DI_LdRotationBusy"].Value = false;
IO.DO["DO_LdRotationServoOn"].Value = true; 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) private void SetDefaultValue(string mod)
@ -332,7 +328,7 @@ namespace SicSimulator.Instances
//MonitorPressureLoad(); //MonitorPressureLoad();
//MonitorPressureUnLoad(); //MonitorPressureUnLoad();
//MonitorSlitValveFlow(); //MonitorSlitValveFlow();
//MonitorTMValve(); MonitorTMValve();
//MonitorPm("PM1"); //MonitorPm("PM1");
//MonitorPm("PM2"); //MonitorPm("PM2");
@ -801,56 +797,58 @@ namespace SicSimulator.Instances
IO.DI["DI_VacRobotExtendBufferEnableFB"].Value = IO.DO["DO_VacRobotExtendBufferEnable"].Value; IO.DI["DI_VacRobotExtendBufferEnableFB"].Value = IO.DO["DO_VacRobotExtendBufferEnable"].Value;
IO.DI["DI_VacRobotExtendPMAEnableFB"].Value = IO.DO["DO_VacRobotExtendPMAEnable"].Value; IO.DI["DI_VacRobotExtendPMAEnableFB"].Value = IO.DO["DO_VacRobotExtendPMAEnable"].Value;
if (IO.DO["DO_LoadLidLock"].Value != IO.DO["DO_LoadLidUnlock"].Value) IO.AI["AI_M60FlowRead"].Value = IO.AO[$"AO_M60FlowSetpoint"].Value;
{
time1++; //if (IO.DO["DO_LoadLidLock"].Value != IO.DO["DO_LoadLidUnlock"].Value)
if (time1 > 10) //{
{ // time1++;
time1 = 0; // if (time1 > 10)
IO.DI["DI_LoadLidLocked"].Value = IO.DO["DO_LoadLidLock"].Value; // {
IO.DI["DI_LoadLidUnlocked"].Value = IO.DO["DO_LoadLidUnlock"].Value; // 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 (IO.DO["DO_LoadWaferCYClamp"].Value != IO.DO["DO_LoadWaferCYOpen"].Value)
if (time2 > 10) //{
{ // time2++;
time2 = 0; // if (time2 > 10)
IO.DI["DI_LoadWaferCYClamped"].Value = IO.DO["DO_LoadWaferCYClamp"].Value; // {
IO.DI["DI_LoadWafeCYOpened"].Value = IO.DO["DO_LoadWaferCYOpen"].Value; // 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 (IO.DO["DO_LoadTrayCYClamp"].Value != IO.DO["DO_LoadTrayCYOpen"].Value)
if (time3 > 10) //{
{ // time3++;
time3 = 0; // if (time3 > 10)
IO.DI["DI_LoadTrayCYClamped"].Value = IO.DO["DO_LoadTrayCYClamp"].Value; // {
IO.DI["DI_LoadTrayCYOpend"].Value = IO.DO["DO_LoadTrayCYOpen"].Value; // 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 (IO.DO["DO_UnloadStationWaferCYClamp"].Value != IO.DO["DO_UnloadStationWaferCYOpen"].Value)
if (time4 > 10) //{
{ // time4++;
time4 = 0; // if (time4 > 10)
IO.DI["DI_UnloadStationWaferCYClamped"].Value = IO.DO["DO_UnloadStationWaferCYClamp"].Value; // {
IO.DI["DI_UnloadStationWaferCYOpened"].Value = IO.DO["DO_UnloadStationWaferCYOpen"].Value; // 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 (IO.DO["DO_UnloadStationLifterCYUp"].Value != IO.DO["DO_UnloadStationLifterCYDown"].Value)
if (time5 > 10) //{
{ // time5++;
time5 = 0; // if (time5 > 10)
IO.DI["DI_UnloadStationLifterCYUp"].Value = IO.DO["DO_UnloadStationLifterCYUp"].Value; // {
IO.DI["DI_UnloadStationLifterCYDown"].Value = IO.DO["DO_UnloadStationLifterCYDown"].Value; // 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; //IO.DI["DI_LdRotationServoOn"].Value = IO.DO["DO_LdRotationServoOn"].Value;
} }

View File

@ -132,6 +132,20 @@
Height="8" Height="8"
IsDoorOpen="{Binding IsLLDoorOpen}" IsDoorOpen="{Binding IsLLDoorOpen}"
RenderTransformOrigin="0.5,0.5" /> RenderTransformOrigin="0.5,0.5" />
<unitControls:Door
Canvas.Left="287"
Canvas.Top="503"
Width="83"
Height="8"
IsDoorOpen="{Binding IsLLDoorOpen}"
RenderTransformOrigin="0.5,0.5">
<unitControls:Door.RenderTransform>
<TransformGroup>
<RotateTransform Angle="90" />
</TransformGroup>
</unitControls:Door.RenderTransform>
</unitControls:Door>
<Image <Image
Canvas.Left="327" Canvas.Left="327"
Canvas.Top="458" Canvas.Top="458"