refactor: 将Framework库和RT、UI放在同一个解决方案中。
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,15 @@
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace SicUI.Client.Models.Platform.LeakCheck
|
||||
{
|
||||
/// <summary>
|
||||
/// TMView.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class TMLeakCheckView : UserControl
|
||||
{
|
||||
public TMLeakCheckView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,203 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Windows;
|
||||
using Aitex.Core.Common.DeviceData;
|
||||
using Aitex.Core.RT.Log;
|
||||
using Aitex.Core.Util;
|
||||
using Aitex.Sorter.Common;
|
||||
using Caliburn.Micro.Core;
|
||||
using SicUI.Models;
|
||||
using MECF.Framework.UI.Client.ClientBase;
|
||||
using OpenSEMI.ClientBase;
|
||||
using SciChart.Core.Extensions;
|
||||
using MECF.Framework.Common.Equipment;
|
||||
|
||||
namespace SicUI.Client.Models.Platform.LeakCheck
|
||||
{
|
||||
public class LeakCheckItem : NotifiableItem
|
||||
{
|
||||
public string Guid { get; set; }
|
||||
public string OperateTime { get; set; }
|
||||
public string Status { get; set; }
|
||||
public string LeakRate { get; set; }
|
||||
public string StartPressure { get; set; }
|
||||
public string StopPressure { get; set; }
|
||||
public string LeakCheckTime { get; set; }
|
||||
public string Mode { get; set; }
|
||||
public string ModuleName { get; set; }
|
||||
public string GaslineSelection { get; set; }
|
||||
}
|
||||
|
||||
|
||||
public class TMLeakCheckViewModel : SicUIViewModelBase
|
||||
{
|
||||
public ObservableCollection<LeakCheckItem> LeakCheckData { get; set; }
|
||||
public ObservableCollection<LeakCheckItem> LLLeakCheckData { get; set; }
|
||||
|
||||
public ObservableCollection<LeakCheckItem> UnloadLeakCheckData { get; set; }
|
||||
public ObservableCollection<LeakCheckItem> PM1LeakCheckData { get; set; }
|
||||
public ObservableCollection<LeakCheckItem> PM2LeakCheckData { get; set; }
|
||||
|
||||
|
||||
public TMLeakCheckViewModel()
|
||||
{
|
||||
this.DisplayName = "TM";
|
||||
|
||||
LeakCheckData = new ObservableCollection<LeakCheckItem>();
|
||||
LLLeakCheckData = new ObservableCollection<LeakCheckItem>();
|
||||
UnloadLeakCheckData = new ObservableCollection<LeakCheckItem>();
|
||||
PM1LeakCheckData = new ObservableCollection<LeakCheckItem>();
|
||||
PM2LeakCheckData = new ObservableCollection<LeakCheckItem>();
|
||||
}
|
||||
|
||||
protected override void OnInitialize()
|
||||
{
|
||||
base.OnInitialize();
|
||||
//QueryHistory();
|
||||
}
|
||||
|
||||
protected override void OnActivate()
|
||||
{
|
||||
base.OnActivate();
|
||||
|
||||
QueryHistory();
|
||||
}
|
||||
|
||||
private void QueryHistory()
|
||||
{
|
||||
try
|
||||
{
|
||||
LeakCheckData.Clear();
|
||||
LLLeakCheckData.Clear();
|
||||
PM1LeakCheckData.Clear();
|
||||
PM2LeakCheckData.Clear();
|
||||
UnloadLeakCheckData.Clear();
|
||||
|
||||
Application.Current.Dispatcher.BeginInvoke(new Action(() =>
|
||||
{
|
||||
string sql = $"SELECT * FROM \"leak_check_data\" order by \"operate_time\" ASC;";
|
||||
|
||||
DataTable dbData = QueryDataClient.Instance.Service.QueryData(sql);
|
||||
|
||||
if (dbData == null || dbData.Rows.Count == 0)
|
||||
return;
|
||||
|
||||
for (int i = 0; i < dbData.Rows.Count; i++)
|
||||
{
|
||||
LeakCheckItem item = new LeakCheckItem();
|
||||
|
||||
item.Guid = dbData.Rows[i]["guid"].ToString();
|
||||
|
||||
if (!dbData.Rows[i]["operate_time"].Equals(DBNull.Value))
|
||||
item.OperateTime = ((DateTime)dbData.Rows[i]["operate_time"]).ToString("yyyy-MM-dd HH:mm:ss.fff");
|
||||
|
||||
item.Status = dbData.Rows[i]["status"].ToString();
|
||||
|
||||
if (!dbData.Rows[i]["leak_rate"].Equals(DBNull.Value))
|
||||
item.LeakRate = Convert.ToDouble(dbData.Rows[i]["leak_rate"]).ToString("F3");
|
||||
|
||||
if (!dbData.Rows[i]["start_pressure"].Equals(DBNull.Value))
|
||||
item.StartPressure = Convert.ToDouble(dbData.Rows[i]["start_pressure"]).ToString("F3");
|
||||
|
||||
if (!dbData.Rows[i]["stop_pressure"].Equals(DBNull.Value))
|
||||
item.StopPressure = Convert.ToDouble(dbData.Rows[i]["stop_pressure"]).ToString("F3");
|
||||
|
||||
item.LeakCheckTime = dbData.Rows[i]["leak_check_time"].ToString();
|
||||
|
||||
item.ModuleName = dbData.Rows[i]["module_name"].ToString();
|
||||
|
||||
if (item.ModuleName == ModuleName.TM.ToString())
|
||||
{
|
||||
LeakCheckData.Add(item);
|
||||
}
|
||||
else if (item.ModuleName == ModuleName.LoadLock.ToString())
|
||||
{
|
||||
LLLeakCheckData.Add(item);
|
||||
}
|
||||
else if (item.ModuleName == ModuleName.PM1.ToString())
|
||||
{
|
||||
PM1LeakCheckData.Add(item);
|
||||
}
|
||||
else if (item.ModuleName == ModuleName.PM2.ToString())
|
||||
{
|
||||
PM2LeakCheckData.Add(item);
|
||||
}
|
||||
else if (item.ModuleName == ModuleName.UnLoad.ToString())
|
||||
{
|
||||
UnloadLeakCheckData.Add(item);
|
||||
}
|
||||
}
|
||||
|
||||
}));
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
LOG.Write(e);
|
||||
}
|
||||
}
|
||||
|
||||
public void DeleteLeakCheck(LeakCheckItem item)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"System.DBExecute", $"delete from \"leak_check_data\" where \"guid\"='{item.Guid}'");
|
||||
|
||||
if (item.ModuleName == ModuleName.TM.ToString())
|
||||
LeakCheckData.Remove(item);
|
||||
else if (item.ModuleName == ModuleName.LoadLock.ToString())
|
||||
LLLeakCheckData.Remove(item);
|
||||
else if (item.ModuleName == ModuleName.UnLoad.ToString())
|
||||
UnloadLeakCheckData.Remove(item);
|
||||
else if (item.ModuleName == ModuleName.PM1.ToString())
|
||||
PM1LeakCheckData.Remove(item);
|
||||
else if (item.ModuleName == ModuleName.PM2.ToString())
|
||||
PM2LeakCheckData.Remove(item);
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void LeakCheck(string module)
|
||||
{
|
||||
//InvokeClient.Instance.Service.DoOperation($"{module}.LeakCheck");
|
||||
|
||||
//if ((PumpTimeSetPoint <= 0) || (LeakCheckTimeSetPoint <= 0))
|
||||
//{
|
||||
// DialogBox.ShowWarning("Time not valid");
|
||||
// return;
|
||||
//}
|
||||
|
||||
//if (module == "TM")
|
||||
//{
|
||||
// InvokeClient.Instance.Service.DoOperation("System.SetConfig", $"TM.LeakCheck.PumpDelayTime", PumpTimeSetPoint);
|
||||
// InvokeClient.Instance.Service.DoOperation("System.SetConfig", $"TM.LeakCheck.LeakCheckDelayTime", LeakCheckTimeSetPoint);
|
||||
|
||||
// InvokeClient.Instance.Service.DoOperation($"{module}.LeakCheck", PumpTimeSetPoint, LeakCheckTimeSetPoint);
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// InvokeClient.Instance.Service.DoOperation("System.SetConfig", $"LoadLock.LeakCheck.PumpDelayTime", LLPumpTimeSetPoint);
|
||||
// InvokeClient.Instance.Service.DoOperation("System.SetConfig", $"LoadLock.LeakCheck.LeakCheckDelayTime", LLLeakCheckTimeSetPoint);
|
||||
|
||||
// InvokeClient.Instance.Service.DoOperation($"{module}.LeakCheck", LLPumpTimeSetPoint, LLLeakCheckTimeSetPoint);
|
||||
//}
|
||||
|
||||
|
||||
//PumpTimeTextSaved = true;
|
||||
//NotifyOfPropertyChange(nameof(PumpTimeTextSaved));
|
||||
|
||||
//LeakCheckTimeTextSaved = true;
|
||||
//NotifyOfPropertyChange(nameof(LeakCheckTimeTextSaved));
|
||||
}
|
||||
|
||||
public void Abort(string module)
|
||||
{
|
||||
//if (DialogBox.Confirm($"Are you sure you want to abort {module} leak check service?"))
|
||||
//{
|
||||
// InvokeClient.Instance.Service.DoOperation($"{module}.Abort");
|
||||
//}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,164 @@
|
||||
<UserControl x:Class="SicUI.Models.Maintenances.RuntimeView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:SicUI.Models.Maintenances"
|
||||
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
|
||||
xmlns:cal="http://www.caliburn.org"
|
||||
xmlns:ctrl="http://OpenSEMI.Ctrlib.com/presentation"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="900" d:DesignWidth="1800">
|
||||
<Grid>
|
||||
<TabControl>
|
||||
<TabItem Header="Runtime Info">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="120"/>
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
|
||||
<Grid HorizontalAlignment="Left" Margin="20">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="35"/>
|
||||
<RowDefinition Height="35"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="150"/>
|
||||
<ColumnDefinition Width="250"/>
|
||||
<ColumnDefinition Width="120"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,1,1,1" Background="{DynamicResource Table_BG_Title}" Padding="5,1">
|
||||
<TextBlock Text="DeviceName" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center"/>
|
||||
</Border>
|
||||
|
||||
<Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Column="1" Padding="5,1">
|
||||
<ctrl:TextBoxEx Text="{Binding Path=DeviceNameSet, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Width="205" Height="25"/>
|
||||
</Border>
|
||||
|
||||
<Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Column="2" Grid.RowSpan="2" Padding="5,1">
|
||||
<Button Content="AddNew" Width="80" Height="50" HorizontalAlignment="Center" >
|
||||
<i:Interaction.Triggers>
|
||||
<i:EventTrigger EventName="Click">
|
||||
<cal:ActionMessage MethodName="Add">
|
||||
</cal:ActionMessage>
|
||||
</i:EventTrigger>
|
||||
</i:Interaction.Triggers>
|
||||
</Button>
|
||||
</Border>
|
||||
|
||||
<Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,1,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="1" Padding="5,1">
|
||||
<TextBlock Text="Maintenance Cycle Time" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center"/>
|
||||
</Border>
|
||||
|
||||
<Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Grid.Column="1" Padding="5,1">
|
||||
<ctrl:TextBoxEx Text="{Binding Path=DeviceValueSet, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Width="205" Height="25"/>
|
||||
</Border>
|
||||
|
||||
</Grid>
|
||||
|
||||
<DataGrid Grid.Row="1" AlternationCount="2" HorizontalAlignment="Left" CanUserAddRows="False" AutoGenerateColumns="False" RowHeaderWidth="0"
|
||||
VirtualizingPanel.IsVirtualizing="True" VirtualizingPanel.VirtualizationMode="Recycling"
|
||||
ItemsSource="{Binding RuntimeData}" Margin="0,5,0,0" >
|
||||
<DataGrid.Columns>
|
||||
<DataGridTemplateColumn Header="Guid" Width="200" Visibility="Hidden">
|
||||
<DataGridTemplateColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock Text="{Binding Guid}" Margin="5,0" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Left" VerticalAlignment="Center" >
|
||||
</TextBlock>
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
</DataGridTemplateColumn>
|
||||
|
||||
<DataGridTemplateColumn Header="DeviceName" Width="300">
|
||||
<DataGridTemplateColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock Text="{Binding DeviceName}" Margin="5,0" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Left" VerticalAlignment="Center" ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Text}"/>
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
</DataGridTemplateColumn>
|
||||
|
||||
<DataGridTemplateColumn Header="Maintenance Cycle Time(hour)" Width="240">
|
||||
<DataGridTemplateColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<!--<TextBlock Text="{Binding SetValue}" Margin="5,0" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Left" VerticalAlignment="Center" ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Text}"/>-->
|
||||
<ctrl:TextBoxEx AllowBackgroundChange="False" Text="{Binding SetValue, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Width="80" Margin="5,0" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Left" VerticalAlignment="Center" />
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
</DataGridTemplateColumn>
|
||||
|
||||
<DataGridTemplateColumn Header="Run Time(hour)" Width="200">
|
||||
<DataGridTemplateColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock Text="{Binding ElapseValue}" Margin="5,0" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Left" VerticalAlignment="Center" ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Text}"/>
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
</DataGridTemplateColumn>
|
||||
|
||||
<DataGridTemplateColumn Header="IsPM" Width="200" Visibility="Hidden">
|
||||
<DataGridTemplateColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock Text="{Binding IsPM}" Margin="5,0" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Left" VerticalAlignment="Center" ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Text}"/>
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
</DataGridTemplateColumn>
|
||||
|
||||
|
||||
<DataGridTemplateColumn Width="120" >
|
||||
<DataGridTemplateColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<Button Content="Update" Width="100" Height="25" FontSize="12">
|
||||
<i:Interaction.Triggers>
|
||||
<i:EventTrigger EventName="Click">
|
||||
<cal:ActionMessage MethodName="Update">
|
||||
<cal:Parameter Value="{Binding }" />
|
||||
</cal:ActionMessage>
|
||||
</i:EventTrigger>
|
||||
</i:Interaction.Triggers>
|
||||
</Button>
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
</DataGridTemplateColumn>
|
||||
|
||||
<DataGridTemplateColumn Width="120" >
|
||||
<DataGridTemplateColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<Button Content="Reset" Width="100" Height="25" FontSize="12">
|
||||
<i:Interaction.Triggers>
|
||||
<i:EventTrigger EventName="Click">
|
||||
<cal:ActionMessage MethodName="Reset">
|
||||
<cal:Parameter Value="{Binding }" />
|
||||
</cal:ActionMessage>
|
||||
</i:EventTrigger>
|
||||
</i:Interaction.Triggers>
|
||||
</Button>
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
</DataGridTemplateColumn>
|
||||
|
||||
<DataGridTemplateColumn Width="120" >
|
||||
<DataGridTemplateColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<Button Content="Delete" Width="100" Height="25" FontSize="12">
|
||||
<i:Interaction.Triggers>
|
||||
<i:EventTrigger EventName="Click">
|
||||
<cal:ActionMessage MethodName="Delete">
|
||||
<cal:Parameter Value="{Binding }" />
|
||||
</cal:ActionMessage>
|
||||
</i:EventTrigger>
|
||||
</i:Interaction.Triggers>
|
||||
</Button>
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
</DataGridTemplateColumn>
|
||||
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
|
||||
</Grid>
|
||||
</TabItem>
|
||||
</TabControl>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace SicUI.Models.Maintenances
|
||||
{
|
||||
/// <summary>
|
||||
/// RuntimeView.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class RuntimeView : UserControl
|
||||
{
|
||||
public RuntimeView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,148 @@
|
||||
using MECF.Framework.Common.DBCore;
|
||||
using MECF.Framework.Common.Equipment;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SicUI.Models.Maintenances
|
||||
{
|
||||
public class RuntimeItem : NotifiableItem
|
||||
{
|
||||
public string Guid { get; set; }
|
||||
public string DeviceName { get; set; }
|
||||
public string SetValue { get; set; }
|
||||
public string ElapseValue { get; set; }
|
||||
public string IsPM { get; set; }
|
||||
}
|
||||
|
||||
|
||||
public class RuntimeViewModel : SicUIViewModelBase
|
||||
{
|
||||
public RuntimeViewModel()
|
||||
{
|
||||
RuntimeData = new ObservableCollection<RuntimeItem>();
|
||||
}
|
||||
|
||||
public ObservableCollection<RuntimeItem> RuntimeData { get; set; }
|
||||
public string DeviceNameSet { get; set; }
|
||||
public string DeviceValueSet { get; set; }
|
||||
|
||||
protected override void OnActivate()
|
||||
{
|
||||
base.OnActivate();
|
||||
AddNew("PM1 Process", 0, true);
|
||||
GetData();
|
||||
}
|
||||
|
||||
protected override void InvokeAfterUpdateProperty(Dictionary<string, object> data)
|
||||
{
|
||||
base.InvokeAfterUpdateProperty(data);
|
||||
}
|
||||
|
||||
public void GetData()
|
||||
{
|
||||
RuntimeData.Clear();
|
||||
|
||||
string sql = $"SELECT * FROM \"runtime_data\" order by \"ispm\" DESC,guid;";
|
||||
DataTable dbData = QueryDataClient.Instance.Service.QueryData(sql);
|
||||
|
||||
if (dbData != null && dbData.Rows.Count > 0)
|
||||
{
|
||||
for (int i = 0; i < dbData.Rows.Count; i++)
|
||||
{
|
||||
RuntimeItem item = new RuntimeItem();
|
||||
|
||||
item.Guid = dbData.Rows[i]["guid"].ToString();
|
||||
item.DeviceName = dbData.Rows[i]["device_name"].ToString();
|
||||
item.SetValue = Convert.ToDouble(dbData.Rows[i]["set_minutes"].ToString()).ToString("0.00");
|
||||
item.ElapseValue = (Convert.ToDouble(dbData.Rows[i]["elapse_minutes"].ToString())/60).ToString("0.00");
|
||||
item.IsPM = dbData.Rows[i]["ispm"].ToString();
|
||||
|
||||
RuntimeData.Add(item);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void Add()
|
||||
{
|
||||
double sValue = 0;
|
||||
if (!String.IsNullOrEmpty(DeviceNameSet) && Double.TryParse( DeviceValueSet,out sValue))
|
||||
{
|
||||
AddNew(DeviceNameSet, sValue, false);
|
||||
GetData();
|
||||
}
|
||||
}
|
||||
|
||||
public void Reset(RuntimeItem item)
|
||||
{
|
||||
if (item != null)
|
||||
{
|
||||
ResetByGuid(item.Guid);
|
||||
GetData();
|
||||
}
|
||||
}
|
||||
|
||||
public void Delete(RuntimeItem item)
|
||||
{
|
||||
if (item != null)
|
||||
{
|
||||
DeleteByGuid(item.Guid);
|
||||
GetData();
|
||||
}
|
||||
}
|
||||
|
||||
public void Update(RuntimeItem item)
|
||||
{
|
||||
if (item != null)
|
||||
{
|
||||
UpdateByGuid(item.Guid, item.SetValue);
|
||||
GetData();
|
||||
}
|
||||
}
|
||||
|
||||
public void AddNew(string devicename,double valueSet, bool ispm)
|
||||
{
|
||||
string sql0 = $"Update \"runtime_data\" set \"device_name\"='PM1 Process' where \"device_name\" ='PM1';";
|
||||
QueryDataClient.Instance.Service.QueryData(sql0);
|
||||
|
||||
|
||||
string sql = $"SELECT * FROM \"runtime_data\" where \"device_name\" ='{devicename}';";
|
||||
DataTable dbData = QueryDataClient.Instance.Service.QueryData(sql);
|
||||
if (dbData != null && dbData.Rows.Count > 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (devicename == ModuleName.PM1.ToString() || devicename == ModuleName.PM2.ToString() || devicename == ModuleName.PMA.ToString() || devicename == ModuleName.PMB.ToString())
|
||||
{
|
||||
ispm = true;
|
||||
}
|
||||
|
||||
sql = string.Format("INSERT INTO \"runtime_data\" (\"guid\", \"device_name\", \"set_minutes\" , \"elapse_minutes\", \"ispm\" )VALUES ('{0}', '{1}', {2}, {3}, {4});",
|
||||
Guid.NewGuid(),devicename, valueSet.ToString("0.00"), 0,ispm);
|
||||
QueryDataClient.Instance.Service.QueryData(sql);
|
||||
}
|
||||
|
||||
public void DeleteByGuid(string guid)
|
||||
{
|
||||
string sql = string.Format("Delete from \"runtime_data\" where \"guid\"='{0}' and ispm=false;", guid);
|
||||
QueryDataClient.Instance.Service.QueryData(sql);
|
||||
}
|
||||
|
||||
public void ResetByGuid(string guid)
|
||||
{
|
||||
string sql = string.Format("Update \"runtime_data\" set \"elapse_minutes\"='0' where \"guid\"='{0}';", guid);
|
||||
QueryDataClient.Instance.Service.QueryData(sql);
|
||||
}
|
||||
|
||||
public void UpdateByGuid(string guid,string valueSet)
|
||||
{
|
||||
string sql = string.Format("Update \"runtime_data\" set \"set_minutes\"='{0}' where \"guid\"='{1}';", (Convert.ToDouble(valueSet)).ToString("0.00"), guid);
|
||||
QueryDataClient.Instance.Service.QueryData(sql);
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace SicUI.Client.Models.Platform.TM
|
||||
{
|
||||
/// <summary>
|
||||
/// DeviceView.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class DeviceView : UserControl
|
||||
{
|
||||
public DeviceView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,417 @@
|
||||
using Aitex.Core.Util;
|
||||
using SicUI.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Aitex.Core.RT.Event;
|
||||
using Aitex.Core.Common.DeviceData;
|
||||
|
||||
namespace SicUI.Client.Models.Platform.TM
|
||||
{
|
||||
public class DeviceViewModel : SicUIViewModelBase
|
||||
{
|
||||
[Subscription("LoadLock.IsOnline")]
|
||||
public bool LoadLockIsOnline { get; set; }
|
||||
|
||||
[Subscription("PM1.IsOnline")]
|
||||
public bool PM1IsOnline { get; set; }
|
||||
|
||||
[Subscription("PM1.Status")]
|
||||
public string PM1Status{ get; set; }
|
||||
|
||||
[Subscription("Load.Rotation.IsServoBusy")]
|
||||
public bool LdRotationIsBusy { get; set; }
|
||||
|
||||
[Subscription("Load.Rotation.IsServoOn")]
|
||||
public bool LdRotationIsServoOn { get; set; }
|
||||
|
||||
[Subscription("Load.Rotation.IsMoveDone")]
|
||||
public bool LdRotationIsServoDone { get; set; }
|
||||
|
||||
[Subscription("Load.Rotation.IsServoError")]
|
||||
public bool LdRotationIsServoError { get; set; }
|
||||
|
||||
[Subscription("TM.LLTrayPresence.DeviceData")]
|
||||
public AITSensorData LoadTrayPresence { get; set; }
|
||||
|
||||
[Subscription("TM.LoadTrayHomeSensor.DeviceData")]
|
||||
public AITSensorData LoadTrayHomeSensor { get; set; }
|
||||
|
||||
[Subscription("TM.LLWaferPlaced.DeviceData")]
|
||||
public AITSensorData LoadWaferPlaced { get; set; }
|
||||
|
||||
[Subscription("Load.Rotation.CurPos")]
|
||||
public double LdRotationCurPos { get; set; }
|
||||
|
||||
[Subscription("Load.Rotation.CCD1Degree")]
|
||||
public double LdCCD1Degree { get; set; }
|
||||
|
||||
[Subscription("Load.Rotation.CCD2Degree")]
|
||||
public double LdCCD2Degree { get; set; }
|
||||
|
||||
public bool LdRotationBtnEnable => !LdRotationIsBusy && !LdRotationIsServoError && !LoadLockIsOnline;
|
||||
|
||||
public DeviceViewModel()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void LdRotationStop()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"Load.Rotation.Stop");
|
||||
}
|
||||
|
||||
public void LdRotationReset()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"Load.Rotation.ServoReset");
|
||||
}
|
||||
|
||||
public void LdRotationServoOn()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"Load.Rotation.ServoOn");
|
||||
}
|
||||
|
||||
public void LdRotationMoveOneCircle()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"Load.Rotation.MoveOneCircle");
|
||||
}
|
||||
|
||||
public void LdRotationRelativeHome()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"Load.Rotation.MoveRelativeHome");
|
||||
}
|
||||
|
||||
public void LdRotationRelativeHomeOffset()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"Load.Rotation.HomeOffset");
|
||||
}
|
||||
|
||||
public void LdRotationMoveCCD1Pos()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"Load.Rotation.MoveCCD1Pos");
|
||||
}
|
||||
|
||||
public void LdRotationMoveCCD2Pos()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"Load.Rotation.MoveCCD2Pos");
|
||||
}
|
||||
|
||||
public void LdRotationJogCW(float angle)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"Load.Rotation.JogCW", angle);
|
||||
}
|
||||
|
||||
public void LdRotationJogCCW(float angle)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"Load.Rotation.JogCCW", angle);
|
||||
}
|
||||
|
||||
#region CCD
|
||||
[Subscription("TM.KeyenceCVX300F.Result")]
|
||||
public string CCDResult { get; set; }
|
||||
|
||||
public void CCDTrig()
|
||||
{
|
||||
int iConditionId = CCDPosSelected == "Pos1" ? 1 : 2;
|
||||
|
||||
InvokeClient.Instance.Service.DoOperation("TM.KeyenceCVX300F.ClearResult");
|
||||
InvokeClient.Instance.Service.DoOperation("TM.KeyenceCVX300F.GetResult", iConditionId);
|
||||
}
|
||||
public void RunR0()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation("TM.KeyenceCVX300F.RunR0");
|
||||
}
|
||||
|
||||
private List<string> _CCDPos = new List<string>() { "Pos1", "Pos2" };
|
||||
public List<string> CCDPos
|
||||
{
|
||||
get { return _CCDPos; }
|
||||
set { _CCDPos = value; }
|
||||
}
|
||||
|
||||
private string _CCDPosSelect = "Pos1";
|
||||
|
||||
public string CCDPosSelected
|
||||
{
|
||||
get { return _CCDPosSelect; }
|
||||
set { _CCDPosSelect = value; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#region hw aligner
|
||||
//晶圆尺寸
|
||||
private List<string> _waferSizes = new List<string>() { "0(出厂值)", "4", "5", "6", "8" };
|
||||
public List<string> WaferSizes
|
||||
{
|
||||
get { return _waferSizes; }
|
||||
set { _waferSizes = value; NotifyOfPropertyChange("WaferSize"); }
|
||||
}
|
||||
private string _waferSizeSelected;
|
||||
public string WaferSizeSelected
|
||||
{
|
||||
get { return _waferSizeSelected; }
|
||||
set {
|
||||
if (value.CompareTo(_waferSizes[0]) == 0)
|
||||
{
|
||||
_waferSizeSelected = "0";
|
||||
}
|
||||
else
|
||||
{
|
||||
_waferSizeSelected = value;
|
||||
}
|
||||
NotifyOfPropertyChange("WaferSizeSelected");
|
||||
}
|
||||
}
|
||||
//晶圆类型
|
||||
private List<string> _waferTypes = new List<string>() {
|
||||
"0:无Notch或Flat的晶圆",
|
||||
"1:有NOtch的晶圆(出厂值)",
|
||||
"2:有一个或多个Flat的晶圆"
|
||||
};
|
||||
public List<string> WaferTypes
|
||||
{
|
||||
get { return _waferTypes; }
|
||||
set { _waferTypes = value; NotifyOfPropertyChange("WaferTypes"); }
|
||||
}
|
||||
private string _waferTypeSelected;
|
||||
public string WaferTypeSelected
|
||||
{
|
||||
get { return _waferTypeSelected; }
|
||||
set {
|
||||
if (value.CompareTo(_waferTypes[0]) == 0)
|
||||
{
|
||||
_waferTypeSelected = "0";
|
||||
}
|
||||
else if(value.CompareTo(_waferTypes[1]) == 0)
|
||||
{
|
||||
_waferTypeSelected = "1";
|
||||
}
|
||||
else
|
||||
{
|
||||
_waferTypeSelected = "2";
|
||||
}
|
||||
|
||||
|
||||
NotifyOfPropertyChange("WaferTypeSelected");
|
||||
}
|
||||
}
|
||||
//寻边材质
|
||||
private List<string> _waferMaterial = new List<string>() {
|
||||
"0:不透明(出厂值)",
|
||||
"1:透明、半透明"
|
||||
};
|
||||
public List<string> WaferMaterial
|
||||
{
|
||||
get { return _waferMaterial; }
|
||||
set { _waferMaterial = value; NotifyOfPropertyChange("WaferMaterial"); }
|
||||
}
|
||||
private string _waferMaterialSelected;
|
||||
public string WaferMaterialSelected
|
||||
{
|
||||
get { return _waferMaterialSelected; }
|
||||
set {
|
||||
if(value.CompareTo(_waferMaterial[0]) == 0)
|
||||
{
|
||||
_waferMaterialSelected = "0";
|
||||
}
|
||||
else
|
||||
{
|
||||
_waferMaterialSelected = "1";
|
||||
}
|
||||
|
||||
NotifyOfPropertyChange("WaferMaterialSelected");
|
||||
}
|
||||
}
|
||||
//qbh 20220701
|
||||
public void Aligner_WaferSize(string sValue)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TM.HiWinAligner.HwWaferSize", WaferSizeSelected);
|
||||
}
|
||||
public void Aligner_WaferType(string sValue)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TM.HiWinAligner.HwWaferType", WaferTypeSelected);
|
||||
}
|
||||
public void Aligner_WaferMaterial(string sValue)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TM.HiWinAligner.HwWaferMaterial", WaferMaterialSelected);
|
||||
}
|
||||
public void Aligner_WaferOrientation(string sValue)
|
||||
{
|
||||
string sDegree = sValue.Trim();
|
||||
if(sDegree.Length == 0)
|
||||
{
|
||||
EV.PostWarningLog("TM", "Aligner parameter error: Wafer Orientation is empty.");
|
||||
return;
|
||||
}
|
||||
int iDegree = -1;
|
||||
try
|
||||
{
|
||||
iDegree = Convert.ToInt32(sDegree);
|
||||
}
|
||||
catch(Exception ex)
|
||||
{
|
||||
EV.PostWarningLog("TM", "Aligner parameter error: Wafer Orientation degree should be in 0-3599.");
|
||||
return;
|
||||
}
|
||||
InvokeClient.Instance.Service.DoOperation($"TM.HiWinAligner.HwWaferOrientation", sDegree);
|
||||
}
|
||||
public void Aligner_SaveParameters()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TM.HiWinAligner.HwSaveParameters");
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region UPS
|
||||
|
||||
//PM1 EATONUPS
|
||||
[Subscription("PM1.EATONUPS.BatteryUnderResidue")]
|
||||
public float EATONUPSPM1_BatteryUnderResidue { get; set; }
|
||||
|
||||
[Subscription("PM1.EATONUPS.BatteryRemainsTime")]
|
||||
public float EATONUPSPM1_BatteryRemainsTime { get; set; }
|
||||
|
||||
[Subscription("PM1.EATONUPS.BatteryVoltage")]
|
||||
public float EATONUPSPM1_BatteryVoltage { get; set; }
|
||||
|
||||
[Subscription("PM1.EATONUPS.InputVoltage")]
|
||||
public float EATONUPSPM1_InputVoltage { get; set; }
|
||||
|
||||
//PM2 EATONUPS
|
||||
[Subscription("PM2.EATONUPS.BatteryUnderResidue")]
|
||||
public float EATONUPSPM2_BatteryUnderResidue { get; set; }
|
||||
|
||||
[Subscription("PM2.EATONUPS.BatteryRemainsTime")]
|
||||
public float EATONUPSPM2_BatteryRemainsTime { get; set; }
|
||||
|
||||
[Subscription("PM2.EATONUPS.BatteryVoltage")]
|
||||
public float EATONUPSPM2_BatteryVoltage { get; set; }
|
||||
|
||||
[Subscription("PM2.EATONUPS.InputVoltage")]
|
||||
public float EATONUPSPM2_InputVoltage { get; set; }
|
||||
|
||||
//PM1 UPSA
|
||||
[Subscription("PM1.ITAUPSA.BatteryUnderResidue")]
|
||||
public float UPSPM1A_BatteryUnderResidue { get; set; }
|
||||
|
||||
[Subscription("PM1.ITAUPSA.BatteryRemainsTime")]
|
||||
public float UPSPM1A_BatteryRemainsTime { get; set; }
|
||||
|
||||
[Subscription("PM1.ITAUPSA.BatteryVoltage")]
|
||||
public float UPSPM1A_BatteryVoltage { get; set; }
|
||||
|
||||
[Subscription("PM1.ITAUPSA.InputVoltage")]
|
||||
public float UPSPM1A_InputVoltage { get; set; }
|
||||
|
||||
|
||||
//PM1 UPSB
|
||||
[Subscription("PM1.ITAUPSB.BatteryUnderResidue")]
|
||||
public float UPSPM1B_BatteryUnderResidue { get; set; }
|
||||
|
||||
[Subscription("PM1.ITAUPSB.BatteryRemainsTime")]
|
||||
public float UPSPM1B_BatteryRemainsTime { get; set; }
|
||||
|
||||
[Subscription("PM1.ITAUPSB.BatteryVoltage")]
|
||||
public float UPSPM1B_BatteryVoltage { get; set; }
|
||||
|
||||
[Subscription("PM1.ITAUPSB.InputVoltage")]
|
||||
public float UPSPM1B_InputVoltage { get; set; }
|
||||
|
||||
//PM2 UPSA
|
||||
[Subscription("PM2.ITAUPSA.BatteryUnderResidue")]
|
||||
public float UPSPM2A_BatteryUnderResidue { get; set; }
|
||||
|
||||
[Subscription("PM2.ITAUPSA.BatteryRemainsTime")]
|
||||
public float UPSPM2A_BatteryRemainsTime { get; set; }
|
||||
|
||||
[Subscription("PM2.ITAUPSA.BatteryVoltage")]
|
||||
public float UPSPM2A_BatteryVoltage { get; set; }
|
||||
|
||||
[Subscription("PM2.ITAUPSA.InputVoltage")]
|
||||
public float UPSPM2A_InputVoltage { get; set; }
|
||||
|
||||
//PM2 UPSB
|
||||
[Subscription("PM2.ITAUPSB.BatteryUnderResidue")]
|
||||
public float UPSPM2B_BatteryUnderResidue { get; set; }
|
||||
|
||||
[Subscription("PM2.ITAUPSB.BatteryRemainsTime")]
|
||||
public float UPSPM2B_BatteryRemainsTime { get; set; }
|
||||
|
||||
[Subscription("PM2.ITAUPSB.BatteryVoltage")]
|
||||
public float UPSPM2B_BatteryVoltage { get; set; }
|
||||
|
||||
[Subscription("PM2.ITAUPSB.InputVoltage")]
|
||||
public float UPSPM2B_InputVoltage { get; set; }
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region Ring
|
||||
|
||||
[Subscription("PM1.ConfinementRing.RingCurPos")]
|
||||
public float RingCurPos { get; set; }
|
||||
|
||||
[Subscription("PM1.ConfinementRing.RingUpPos")]
|
||||
public float RingUpPos { get; set; }
|
||||
|
||||
[Subscription("PM1.ConfinementRing.RingDownPos")]
|
||||
public float RingDownPos { get; set; }
|
||||
|
||||
[Subscription("PM1.ConfinementRing.RingUpSensor")]
|
||||
public bool RingUpSensor { get; set; }
|
||||
|
||||
[Subscription("PM1.ConfinementRing.RingDownSensor")]
|
||||
public bool RingDownSensor { get; set; }
|
||||
|
||||
[Subscription("PM1.ConfinementRing.RingDone")]
|
||||
public bool RingDone { get; set; }
|
||||
|
||||
[Subscription("PM1.ConfinementRing.RingIsServoOn")]
|
||||
public bool RingIsServoOn { get; set; }
|
||||
|
||||
[Subscription("PM1.ConfinementRing.RingIsBusy")]
|
||||
public bool RingIsBusy { get; set; }
|
||||
|
||||
[Subscription("PM1.ConfinementRing.RingIsAlarm")]
|
||||
public bool RingIsAlarm { get; set; }
|
||||
|
||||
public bool ConfinementRingBtnEnable => !RingIsBusy && !RingIsAlarm && !PM1IsOnline && PM1Status != "Process";
|
||||
|
||||
public void RingServoStop()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation("PM1.ConfinementRing.ServoStop");
|
||||
}
|
||||
|
||||
public void RingServoOn()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation("PM1.ConfinementRing.ServoOn");
|
||||
}
|
||||
|
||||
public void RingServoReset()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation("PM1.ConfinementRing.ServoReset");
|
||||
}
|
||||
|
||||
public void RingMoveUpPos()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation("PM1.ConfinementRing.MoveUpPos");
|
||||
}
|
||||
|
||||
public void RingMoveDownPos()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation("PM1.ConfinementRing.MoveDownPos");
|
||||
}
|
||||
|
||||
public void RingJogUp(float distance)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation("PM1.ConfinementRing.JogUp",distance);
|
||||
}
|
||||
|
||||
public void RingJogDown(float distance)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation("PM1.ConfinementRing.JogDown",distance);
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace SicUI.Models.Maintenances.TM
|
||||
{
|
||||
/// <summary>
|
||||
/// EFEM2View.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class EFEM2View : UserControl
|
||||
{
|
||||
public EFEM2View()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,676 @@
|
||||
using Aitex.Core.Common.DeviceData;
|
||||
using Aitex.Core.Util;
|
||||
using Aitex.Sorter.Common;
|
||||
using SicUI.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SicUI.Models.Maintenances.TM
|
||||
{
|
||||
public class EFEM2ViewModel : SicUIViewModelBase
|
||||
{
|
||||
#region Properties Binding
|
||||
private List<string> _waferModules = new List<string>() { "LoadLock", "UnLoad", "Aligner", "CassAR", "CassAL" };
|
||||
public List<string> WaferModules
|
||||
{
|
||||
get { return _waferModules; }
|
||||
set { _waferModules = value; NotifyOfPropertyChange("WaferModules"); }
|
||||
}
|
||||
|
||||
private List<string> _trayModules = new List<string>() { "LoadLock", "CassBL" };
|
||||
public List<string> TrayModules
|
||||
{
|
||||
get { return _trayModules; }
|
||||
set { _trayModules = value; NotifyOfPropertyChange("TrayModules"); }
|
||||
}
|
||||
private string _waferSelectedModule;
|
||||
public string WaferSelectedModule
|
||||
{
|
||||
get { return _waferSelectedModule; }
|
||||
set { _waferSelectedModule = value; NotifyOfPropertyChange("WaferSelectedModule"); }
|
||||
}
|
||||
|
||||
private string _traySelectedModule;
|
||||
public string TraySelectedModule
|
||||
{
|
||||
get { return _traySelectedModule; }
|
||||
set { _traySelectedModule = value; NotifyOfPropertyChange("TraySelectedModule"); }
|
||||
}
|
||||
|
||||
private List<int> _waferSlots = new List<int>() { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 };
|
||||
public List<int> WaferSlots
|
||||
{
|
||||
get
|
||||
{
|
||||
if (WaferSelectedModule !=null && WaferSelectedModule.Contains("Cass"))
|
||||
{
|
||||
return _waferSlots;
|
||||
}
|
||||
else
|
||||
{
|
||||
return new List<int> { 1 };
|
||||
}
|
||||
}
|
||||
set { _waferSlots = value; NotifyOfPropertyChange("WaferSlots"); }
|
||||
}
|
||||
private int _waferSelectedSlot;
|
||||
public int WaferSelectedSlot
|
||||
{
|
||||
get { return _waferSelectedSlot; }
|
||||
set { _waferSelectedSlot = value; NotifyOfPropertyChange("WaferSelectedSlot"); }
|
||||
}
|
||||
|
||||
private List<int> _traySlots = new List<int>() { 1, 2, 3, 4, 5, 6, 7, 8 };
|
||||
public List<int> TraySlots
|
||||
{
|
||||
get {
|
||||
if (TraySelectedModule != null && TraySelectedModule.Contains("Cass"))
|
||||
{
|
||||
return _traySlots;
|
||||
}
|
||||
else
|
||||
{
|
||||
return new List<int> { 1 };
|
||||
}
|
||||
}
|
||||
}
|
||||
private int _traySelectedSlot;
|
||||
public int TraySelectedSlot
|
||||
{
|
||||
get { return _traySelectedSlot; }
|
||||
set { _traySelectedSlot = value; NotifyOfPropertyChange("TraySelectedSlot"); }
|
||||
}
|
||||
|
||||
|
||||
|
||||
public List<string> UnLoadDoors=> new List<string>() { "AtmDoor", "VaccumDoor" };
|
||||
public List<string> LoadDoors => new List<string>() { "LeftDoor", "RightDoor", "VaccumDoor" };
|
||||
|
||||
private string _selectedUnLoadDoor;
|
||||
public string SelectedUnLoadDoor
|
||||
{
|
||||
get { return _selectedUnLoadDoor; }
|
||||
set { _selectedUnLoadDoor = value; NotifyOfPropertyChange("SelectedUnLoadDoor"); }
|
||||
}
|
||||
private string _selectedLLDoor;
|
||||
public string SelectedLLDoor
|
||||
{
|
||||
get { return _selectedLLDoor; }
|
||||
set { _selectedLLDoor = value; NotifyOfPropertyChange("SelectedLLDoor"); }
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region EFEM,Aligner
|
||||
[Subscription("EFEM.Status")]
|
||||
public string EFEMStatus { get; set; }
|
||||
|
||||
|
||||
[Subscription("EFEM.IsOnline")]
|
||||
public bool EFEMIsOnline { get; set; }
|
||||
|
||||
public bool IsEFEMEnableManualOperation => !EFEMIsOnline && EFEMStatus == "Idle";
|
||||
|
||||
public bool IsWaferRobotEnableManualOperation => !EFEMIsOnline && WaferRobotState == "Idle";
|
||||
public bool IsTrayRobotEnableManualOperation => !EFEMIsOnline && TrayRobotState == "Idle";
|
||||
|
||||
[Subscription("TM.HiWinAligner.HaveWafer")]
|
||||
public string AlignerHaveWafer { get; set; }
|
||||
|
||||
|
||||
//设定马达激磁状态
|
||||
public void Aligner_SME()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TM.HiWinAligner.HwSME");
|
||||
}
|
||||
//原点复归
|
||||
public void Aligner_HOM()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TM.HiWinAligner.HwHOM");
|
||||
}
|
||||
|
||||
//移至测量中心点
|
||||
public void Aligner_MTM()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TM.HiWinAligner.HwMTM");
|
||||
}
|
||||
|
||||
//读取镭射侦测物件
|
||||
public void Aligner_DOC()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TM.HiWinAligner.HwDOC");
|
||||
}
|
||||
//开启真空
|
||||
public void Aligner_CVN()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TM.HiWinAligner.HwCVN");
|
||||
}
|
||||
//晶圆寻边与辅正
|
||||
public void Aligner_BAL()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TM.HiWinAligner.HwBAL");
|
||||
}
|
||||
//关闭真空
|
||||
public void Aligner_CVF()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TM.HiWinAligner.HwCVF");
|
||||
}
|
||||
//清除报警
|
||||
public void Aligner_ERS()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TM.HiWinAligner.HwERS");
|
||||
}
|
||||
|
||||
public void Aligner_Abort()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TM.HiWinAligner.HwAbort");
|
||||
}
|
||||
|
||||
public void AlignerAbortRoutine()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"Aligner.Abort");
|
||||
}
|
||||
|
||||
public void AlignerAlignerRoutine()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"Aligner.Aligner");
|
||||
}
|
||||
|
||||
[Subscription("Aligner.IsOnline")]
|
||||
public bool AlignerIsOnline { get; set; }
|
||||
|
||||
[Subscription("Aligner.Status")]
|
||||
public string AlignerStatus { get; set; }
|
||||
|
||||
public bool IsAlignerEnableManualOperation => AlignerStatus == "Idle";
|
||||
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region Robot
|
||||
[Subscription("WaferRobot.RobotMoveInfo")]
|
||||
public RobotMoveInfo WaferRobotMoveInfo
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[Subscription("TrayRobot.RobotMoveInfo")]
|
||||
public RobotMoveInfo TrayRobotMoveInfo
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[Subscription("WaferRobot.State")]
|
||||
public string WaferRobotState
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
|
||||
[Subscription("TrayRobot.State")]
|
||||
public string TrayRobotState
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public void RobotGetError(string robotName)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"{robotName}.ERR");
|
||||
}
|
||||
|
||||
public void WaferRobotHome()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"WaferRobot.RobotConnectHomeAll");
|
||||
}
|
||||
|
||||
public void WaferRobotPickRoutine()
|
||||
{
|
||||
if (string.IsNullOrEmpty(WaferSelectedModule))
|
||||
{
|
||||
return;
|
||||
}
|
||||
int cSlot = WaferSelectedSlot - 1;
|
||||
if (!WaferSelectedModule.Contains("Cass"))
|
||||
{
|
||||
cSlot = 0;
|
||||
}
|
||||
InvokeClient.Instance.Service.DoOperation($"EFEM.PickWafer", WaferSelectedModule, cSlot);
|
||||
}
|
||||
public void WaferRobotPlaceRoutine()
|
||||
{
|
||||
if (string.IsNullOrEmpty(WaferSelectedModule))
|
||||
{
|
||||
return;
|
||||
}
|
||||
int cSlot = WaferSelectedSlot - 1;
|
||||
if (!WaferSelectedModule.Contains("Cass"))
|
||||
{
|
||||
cSlot = 0;
|
||||
}
|
||||
InvokeClient.Instance.Service.DoOperation($"EFEM.PlaceWafer", WaferSelectedModule, cSlot);
|
||||
}
|
||||
public void WaferRobotMapRoutine()
|
||||
{
|
||||
if (string.IsNullOrEmpty(WaferSelectedModule))
|
||||
{
|
||||
return;
|
||||
}
|
||||
InvokeClient.Instance.Service.DoOperation($"EFEM.MapWafer", WaferSelectedModule);
|
||||
}
|
||||
|
||||
public void TrayRobotHome()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TrayRobot.RobotConnectHomeAll");
|
||||
}
|
||||
public void TrayRobotPickRoutine()
|
||||
{
|
||||
if (string.IsNullOrEmpty(TraySelectedModule))
|
||||
{
|
||||
return;
|
||||
}
|
||||
int cSlot = TraySelectedSlot - 1;
|
||||
if (!TraySelectedModule.Contains("Cass"))
|
||||
{
|
||||
cSlot = 0;
|
||||
}
|
||||
InvokeClient.Instance.Service.DoOperation($"EFEM.PickTray", TraySelectedModule, cSlot);
|
||||
}
|
||||
public void TrayRobotPlaceRoutine()
|
||||
{
|
||||
if (string.IsNullOrEmpty(TraySelectedModule))
|
||||
{
|
||||
return;
|
||||
}
|
||||
int cSlot = TraySelectedSlot - 1;
|
||||
if (!TraySelectedModule.Contains("Cass"))
|
||||
{
|
||||
cSlot = 0;
|
||||
}
|
||||
InvokeClient.Instance.Service.DoOperation($"EFEM.PlaceTray", TraySelectedModule, cSlot);
|
||||
}
|
||||
public void TrayRobotMapRoutine()
|
||||
{
|
||||
if (string.IsNullOrEmpty(TraySelectedModule))
|
||||
{
|
||||
return;
|
||||
}
|
||||
InvokeClient.Instance.Service.DoOperation($"EFEM.MapTray", TraySelectedModule);
|
||||
}
|
||||
#endregion OP
|
||||
|
||||
#region LoadLock
|
||||
[Subscription("LoadLock.IsOnline")]
|
||||
public bool LLIsOnline { get; set; }
|
||||
|
||||
[Subscription("LoadLock.Status")]
|
||||
public string LLStatus { get; set; }
|
||||
|
||||
[Subscription("TM.LLPressure.Value")]
|
||||
public double LoadPressure { get; set; }
|
||||
|
||||
public bool IsLLEnableManualOperation => !LLIsOnline;
|
||||
|
||||
[Subscription("LoadLock.LLLift.UpSensor")]
|
||||
public bool LoadLiftUpSensor { get; set; }
|
||||
|
||||
[Subscription("LoadLock.LLLift.DownSensor")]
|
||||
public bool LoadLiftDownSensor { get; set; }
|
||||
|
||||
[Subscription("PM1.IsService")]
|
||||
public bool IsPMService { get; set; }
|
||||
|
||||
public void LoadGroup()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"LoadLock.Group");
|
||||
}
|
||||
|
||||
public void LoadSeparate()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"LoadLock.Separate");
|
||||
}
|
||||
|
||||
public void LLLiftUp()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"LoadLock.LLLift.MoveUp");
|
||||
}
|
||||
|
||||
public void LLLiftDown()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"LoadLock.LLLift.MoveDown");
|
||||
}
|
||||
|
||||
public void LLWaferClamped()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"LoadLock.LLWaferClaw.Clamping");
|
||||
}
|
||||
|
||||
public void LLWaferOpen()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"LoadLock.LLWaferClaw.UnClamping");
|
||||
}
|
||||
|
||||
public void LLTrayClamped()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"LoadLock.LLTrayClaw.Clamping");
|
||||
}
|
||||
|
||||
public void LLTrayOpen()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"LoadLock.LLTrayClaw.UnClamping");
|
||||
}
|
||||
public void OpenSlitValve()
|
||||
{
|
||||
if (SelectedLLDoor == "LeftDoor")
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"EFEM.OpenSlitValve", "LoadLock", "WaferRobot");
|
||||
}
|
||||
else if (SelectedLLDoor == "RightDoor")
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"EFEM.OpenSlitValve", "LoadLock", "TrayRobot");
|
||||
}
|
||||
else if (SelectedLLDoor == "VaccumDoor")
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TM.OpenSlitValve", "LoadLock");
|
||||
}
|
||||
}
|
||||
public void CloseSlitValve()
|
||||
{
|
||||
if (SelectedLLDoor == "LeftDoor")
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"EFEM.CloseSlitValve", "LoadLock", "WaferRobot");
|
||||
}
|
||||
else if (SelectedLLDoor == "RightDoor")
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"EFEM.CloseSlitValve", "LoadLock", "TrayRobot");
|
||||
}
|
||||
else if (SelectedLLDoor == "VaccumDoor")
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TM.CloseSlitValve", "LoadLock");
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region UnLoad
|
||||
|
||||
[Subscription("UnLoad.IsOnline")]
|
||||
public bool UnLoadIsOnline { get; set; }
|
||||
|
||||
[Subscription("UnLoad.Status")]
|
||||
public string UnLoadStatus { get; set; }
|
||||
|
||||
|
||||
[Subscription("TM.UnLoadPressure.Value")]
|
||||
public double UnLoadPressure { get; set; }
|
||||
|
||||
[Subscription("LoadLock.LLLift.State")]
|
||||
public string LLPinState
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
[Subscription("LoadLock.LLWaferClaw.State")]
|
||||
public string LLWaferClawState
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
[Subscription("LoadLock.LLTrayClaw.State")]
|
||||
public string LLTrayClawState
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[Subscription("UnLoad.UnLoadLift.State")]
|
||||
public string UnLoadPinState
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[Subscription("UnLoad.UnLoadWaferClaw.State")]
|
||||
public string UnLoadWaferClawState
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[Subscription("UnLoad.UnLoadLift.UpSensor")]
|
||||
public bool UnLoadLiftUpSensor { get; set; }
|
||||
|
||||
[Subscription("UnLoad.UnLoadLift.DownSensor")]
|
||||
public bool UnLoadLiftDownSensor { get; set; }
|
||||
|
||||
|
||||
public bool IsUnLoadEnableManualOperation => !UnLoadIsOnline;
|
||||
|
||||
public void UnLoadSeparate()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"UnLoad.Separate");
|
||||
}
|
||||
public void UnLoadLiftUp()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"UnLoad.UnLoadLift.MoveUp");
|
||||
}
|
||||
|
||||
public void UnLoadLiftDown()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"UnLoad.UnLoadLift.MoveDown");
|
||||
}
|
||||
|
||||
public void UnLoadWaferClamped()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"UnLoad.UnLoadWaferClaw.Clamping");
|
||||
}
|
||||
|
||||
public void UnLoadWaferOpen()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"UnLoad.UnLoadWaferClaw.UnClamping");
|
||||
}
|
||||
|
||||
|
||||
public void OpenSlitValveUnLoad()
|
||||
{
|
||||
if (SelectedUnLoadDoor == "AtmDoor")
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"EFEM.OpenSlitValve", "UnLoad", "WaferRobot");
|
||||
}
|
||||
else if(SelectedUnLoadDoor == "VaccumDoor")
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TM.OpenSlitValve", "UnLoad");
|
||||
}
|
||||
}
|
||||
public void CloseSlitValveUnLoad()
|
||||
{
|
||||
if (SelectedUnLoadDoor == "AtmDoor")
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"EFEM.CloseSlitValve", "UnLoad", "WaferRobot");
|
||||
}
|
||||
else if (SelectedUnLoadDoor == "VaccumDoor")
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TM.CloseSlitValve", "UnLoad");
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Cassette
|
||||
public void CreateWafer(string cassName, string startSlotStr, string endSlotStr)
|
||||
{
|
||||
int startSlot = 0;
|
||||
int endSlot = 0;
|
||||
if (Int32.TryParse(startSlotStr, out startSlot) && Int32.TryParse(endSlotStr, out endSlot))
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"{cassName}.CreateAll", startSlot, endSlot);
|
||||
}
|
||||
}
|
||||
|
||||
public void DeleteWafer(string cassName, string startSlotStr, string endSlotStr)
|
||||
{
|
||||
int startSlot = 0;
|
||||
int endSlot = 0;
|
||||
if (Int32.TryParse(startSlotStr, out startSlot) && Int32.TryParse(endSlotStr, out endSlot))
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"{cassName}.DeleteAll", startSlot, endSlot);
|
||||
}
|
||||
}
|
||||
#endregion Cassette
|
||||
|
||||
#region SlitValve
|
||||
|
||||
[Subscription("EFEM.UnLoadSubDoor.OpenFeedback")]
|
||||
public bool UnLoadEfemDoorOpenFeedback { get; set; }
|
||||
|
||||
[Subscription("EFEM.UnLoadSubDoor.CloseFeedback")]
|
||||
public bool UnLoadEfemDoorCloseFeedback { get; set; }
|
||||
|
||||
[Subscription("EFEM.LoadLockLSideDoor.OpenFeedback")]
|
||||
public bool LLEfemLeftDoorOpenFeedback { get; set; }
|
||||
|
||||
[Subscription("EFEM.LoadLockLSideDoor.CloseFeedback")]
|
||||
public bool LLEfemLeftDoorCloseFeedback { get; set; }
|
||||
|
||||
[Subscription("EFEM.LoadLockRSideDoor.OpenFeedback")]
|
||||
public bool LLEfemRightDoorOpenFeedback { get; set; }
|
||||
|
||||
[Subscription("EFEM.LoadLockRSideDoor.CloseFeedback")]
|
||||
public bool LLEfemRightDoorCloseFeedback { get; set; }
|
||||
|
||||
[Subscription("TM.LoadLockDoor.OpenFeedback")]
|
||||
public bool LLDoorOpenFeedback { get; set; }
|
||||
|
||||
[Subscription("TM.LoadLockDoor.CloseFeedback")]
|
||||
public bool LLDoorCloseFeedback { get; set; }
|
||||
|
||||
[Subscription("TM.UnLoadDoor.OpenFeedback")]
|
||||
public bool UnLoadDoorOpenFeedback { get; set; }
|
||||
|
||||
[Subscription("TM.UnLoadDoor.CloseFeedback")]
|
||||
public bool UnLoadDoorCloseFeedback { get; set; }
|
||||
|
||||
|
||||
|
||||
public bool IsEfemLLLeftDoorOpen => EfemLLLeftDoorState == FoupDoorState.Open ? true : false;
|
||||
public bool IsEfemLLRightDoorOpen => EfemLLRightDoorState == FoupDoorState.Open ? true : false;
|
||||
public bool IsEfemUnLoadDoorOpen => EfemUnLoadDoorState == FoupDoorState.Open ? true : false;
|
||||
public bool IsLLDoorOpen => LLDoorState == FoupDoorState.Open ? true : false;
|
||||
|
||||
public bool IsUnLoadDoorOpen => UnLoadDoorState == FoupDoorState.Open ? true : false;
|
||||
|
||||
public bool IsEfemLLLeftDoorClose => EfemLLLeftDoorState == FoupDoorState.Close ? true : false;
|
||||
public bool IsEfemLLRightDoorClose => EfemLLRightDoorState == FoupDoorState.Close ? true : false;
|
||||
public bool IsEfemUnLoadDoorClose => EfemUnLoadDoorState == FoupDoorState.Close ? true : false;
|
||||
|
||||
public FoupDoorState UnLoadDoorState
|
||||
{
|
||||
get
|
||||
{
|
||||
{
|
||||
if (UnLoadDoorOpenFeedback && !UnLoadDoorCloseFeedback) return FoupDoorState.Open;
|
||||
if (!UnLoadDoorOpenFeedback && UnLoadDoorCloseFeedback) return FoupDoorState.Close;
|
||||
}
|
||||
|
||||
return FoupDoorState.Unknown;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public FoupDoorState EfemUnLoadDoorState
|
||||
{
|
||||
get
|
||||
{
|
||||
{
|
||||
if (UnLoadEfemDoorOpenFeedback && !UnLoadEfemDoorCloseFeedback) return FoupDoorState.Open;
|
||||
if (!UnLoadEfemDoorOpenFeedback && UnLoadEfemDoorCloseFeedback) return FoupDoorState.Close;
|
||||
}
|
||||
|
||||
return FoupDoorState.Unknown;
|
||||
}
|
||||
}
|
||||
|
||||
public FoupDoorState EfemLLLeftDoorState
|
||||
{
|
||||
get
|
||||
{
|
||||
|
||||
{
|
||||
if (LLEfemLeftDoorOpenFeedback && !LLEfemLeftDoorCloseFeedback) return FoupDoorState.Open;
|
||||
if (!LLEfemLeftDoorOpenFeedback && LLEfemLeftDoorCloseFeedback) return FoupDoorState.Close;
|
||||
}
|
||||
|
||||
return FoupDoorState.Unknown;
|
||||
}
|
||||
}
|
||||
|
||||
public FoupDoorState EfemLLRightDoorState
|
||||
{
|
||||
get
|
||||
{
|
||||
|
||||
{
|
||||
if (LLEfemRightDoorOpenFeedback && !LLEfemRightDoorCloseFeedback) return FoupDoorState.Open;
|
||||
if (!LLEfemRightDoorOpenFeedback && LLEfemRightDoorCloseFeedback) return FoupDoorState.Close;
|
||||
}
|
||||
|
||||
return FoupDoorState.Unknown;
|
||||
}
|
||||
}
|
||||
public FoupDoorState LLDoorState
|
||||
{
|
||||
get
|
||||
{
|
||||
|
||||
{
|
||||
if (LLDoorOpenFeedback && !LLDoorCloseFeedback) return FoupDoorState.Open;
|
||||
if (!LLDoorOpenFeedback && LLDoorCloseFeedback) return FoupDoorState.Close;
|
||||
}
|
||||
|
||||
return FoupDoorState.Unknown;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
public void Pump(string module)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"{module}.Pump");
|
||||
}
|
||||
|
||||
public void Vent(string module)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"{module}.Vent");
|
||||
}
|
||||
|
||||
public void Home(string module)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"{module}.Home");
|
||||
}
|
||||
|
||||
public void Reset(string module)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"{module}.Reset");
|
||||
}
|
||||
|
||||
public void Abort(string module)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"{module}.Abort");
|
||||
}
|
||||
|
||||
public void Online(string module)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"{module}.SetOnline");
|
||||
}
|
||||
|
||||
public void Offline(string module)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"{module}.SetOffline");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,15 @@
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace SicUI.Client.Models.Platform.TM
|
||||
{
|
||||
/// <summary>
|
||||
/// EFEMView.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class EFEMView : UserControl
|
||||
{
|
||||
public EFEMView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,655 @@
|
||||
using Aitex.Core.Util;
|
||||
using Aitex.Sorter.Common;
|
||||
using SicUI.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SicUI.Client.Models.Platform.TM
|
||||
{
|
||||
public class EFEMViewModel : SicUIViewModelBase
|
||||
{
|
||||
#region Properties Robot
|
||||
private List<string> _waferModules = new List<string>() { "LoadLock", "UnLoad", "Aligner", "CassAR", "CassAL" };
|
||||
public List<string> WaferModules
|
||||
{
|
||||
get { return _waferModules; }
|
||||
set { _waferModules = value; NotifyOfPropertyChange("WaferModules"); }
|
||||
}
|
||||
|
||||
private List<string> _trayModules = new List<string>() { "LoadLock", "CassBL" };
|
||||
public List<string> TrayModules
|
||||
{
|
||||
get { return _trayModules; }
|
||||
set { _trayModules = value; NotifyOfPropertyChange("TrayModules"); }
|
||||
}
|
||||
private string _waferSelectedModule;
|
||||
public string WaferSelectedModule
|
||||
{
|
||||
get { return _waferSelectedModule; }
|
||||
set { _waferSelectedModule = value; NotifyOfPropertyChange("WaferSelectedModule"); }
|
||||
}
|
||||
|
||||
private string _traySelectedModule;
|
||||
public string TraySelectedModule
|
||||
{
|
||||
get { return _traySelectedModule; }
|
||||
set { _traySelectedModule = value; NotifyOfPropertyChange("TraySelectedModule"); }
|
||||
}
|
||||
|
||||
private List<int> _waferSlots = new List<int>() { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 };
|
||||
public List<int> WaferSlots
|
||||
{
|
||||
get { return _waferSlots; }
|
||||
set { _waferSlots = value; NotifyOfPropertyChange("WaferSlots"); }
|
||||
}
|
||||
private int _waferSelectedSlot;
|
||||
public int WaferSelectedSlot
|
||||
{
|
||||
get { return _waferSelectedSlot; }
|
||||
set { _waferSelectedSlot = value; NotifyOfPropertyChange("WaferSelectedSlot"); }
|
||||
}
|
||||
|
||||
private List<int> _traySlots = new List<int>() { 1, 2, 3, 4, 5, 6, 7, 8 };
|
||||
public List<int> TraySlots
|
||||
{
|
||||
get { return _traySlots; }
|
||||
set { _traySlots = value; NotifyOfPropertyChange("TraySlots"); }
|
||||
}
|
||||
private int _traySelectedSlot;
|
||||
public int TraySelectedSlot
|
||||
{
|
||||
get { return _traySelectedSlot; }
|
||||
set { _traySelectedSlot = value; NotifyOfPropertyChange("TraySelectedSlot"); }
|
||||
}
|
||||
|
||||
private List<int> _getSetSPSteps = new List<int>() { 1, 2, 3, 4 };
|
||||
public List<int> GetSetSPSteps
|
||||
{
|
||||
get { return _getSetSPSteps; }
|
||||
set { _getSetSPSteps = value; NotifyOfPropertyChange("GetSetSPSteps"); }
|
||||
}
|
||||
private int _selectedGetSteps;
|
||||
public int SelectedGetSteps
|
||||
{
|
||||
get { return _selectedGetSteps; }
|
||||
set { _selectedGetSteps = value; NotifyOfPropertyChange("SelectedGetSteps"); }
|
||||
}
|
||||
|
||||
[Subscription("WaferRobot.RobotMoveInfo")]
|
||||
public RobotMoveInfo WaferRobotMoveInfo
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[Subscription("TrayRobot.RobotMoveInfo")]
|
||||
public RobotMoveInfo TrayRobotMoveInfo
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[Subscription("WaferRobot.State")]
|
||||
public string WaferRobotState
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[Subscription("WaferRobot.IsBobotReady")]
|
||||
public string WaferRobotEnable
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
|
||||
|
||||
[Subscription("TrayRobot.State")]
|
||||
public string TrayRobotState
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
#endregion Properties
|
||||
|
||||
|
||||
#region OP Robot
|
||||
public void WaferRobotExtend()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"WaferRobot.SetPosition", WaferSelectedModule);
|
||||
}
|
||||
|
||||
public void WaferRobotRESP()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"WaferRobot.RESP");
|
||||
}
|
||||
public void WaferRobotREMS()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"WaferRobot.REMS");
|
||||
}
|
||||
public void WaferRobotSVON()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"WaferRobot.SVON");
|
||||
}
|
||||
public void WaferRobotHome()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"WaferRobot.HOME");
|
||||
}
|
||||
public void WaferRobotSTAT()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"WaferRobot.STAT");
|
||||
}
|
||||
public void WaferRobotHomeAll()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"WaferRobot.RobotConnectHomeAll");
|
||||
}
|
||||
public void WaferRobotPick()
|
||||
{
|
||||
if (string.IsNullOrEmpty(WaferSelectedModule))
|
||||
{
|
||||
return;
|
||||
}
|
||||
int cSlot = WaferSelectedSlot - 1;
|
||||
if (!WaferSelectedModule.Contains("Cass"))
|
||||
{
|
||||
cSlot = 0;
|
||||
}
|
||||
InvokeClient.Instance.Service.DoOperation($"WaferRobot.GETA", WaferSelectedModule, cSlot);
|
||||
}
|
||||
public void WaferRobotPlace()
|
||||
{
|
||||
if (string.IsNullOrEmpty(WaferSelectedModule))
|
||||
{
|
||||
return;
|
||||
}
|
||||
int cSlot = WaferSelectedSlot - 1;
|
||||
if (!WaferSelectedModule.Contains("Cass"))
|
||||
{
|
||||
cSlot = 0;
|
||||
}
|
||||
InvokeClient.Instance.Service.DoOperation($"WaferRobot.PUTA", WaferSelectedModule, cSlot);
|
||||
}
|
||||
public void WaferRobotMap()
|
||||
{
|
||||
if (string.IsNullOrEmpty(WaferSelectedModule))
|
||||
{
|
||||
return;
|
||||
}
|
||||
InvokeClient.Instance.Service.DoOperation($"WaferRobot.MAP", WaferSelectedModule);
|
||||
}
|
||||
public void WaferRobotRSR()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"WaferRobot.RSR");
|
||||
}
|
||||
public void WaferRobotGetSP(int spIndex)
|
||||
{
|
||||
if (string.IsNullOrEmpty(WaferSelectedModule))
|
||||
{
|
||||
return;
|
||||
}
|
||||
int cSlot = WaferSelectedSlot - 1;
|
||||
if (!WaferSelectedModule.Contains("Cass"))
|
||||
{
|
||||
cSlot = 0;
|
||||
}
|
||||
InvokeClient.Instance.Service.DoOperation($"WaferRobot.GETSP", WaferSelectedModule, cSlot, spIndex);
|
||||
}
|
||||
public void WaferRobotPutSP(int spIndex)
|
||||
{
|
||||
if (string.IsNullOrEmpty(WaferSelectedModule))
|
||||
{
|
||||
return;
|
||||
}
|
||||
int cSlot = WaferSelectedSlot - 1;
|
||||
if (!WaferSelectedModule.Contains("Cass"))
|
||||
{
|
||||
cSlot = 0;
|
||||
}
|
||||
InvokeClient.Instance.Service.DoOperation($"WaferRobot.PUTSP", WaferSelectedModule, cSlot, spIndex);
|
||||
}
|
||||
public void WaferRobotAbort()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"WaferRobot.Abort");
|
||||
}
|
||||
public void WaferRobotInPutA()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"WaferRobot.InputA");
|
||||
}
|
||||
public void WaferRobotOutPA()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"WaferRobot.OutP");
|
||||
}
|
||||
public void WaferRobotERR()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"WaferRobot.ERR");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public void TrayRobotExtend()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TrayRobot.SetPosition", TraySelectedModule);
|
||||
}
|
||||
public void TrayRobotRESP()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TrayRobot.RESP");
|
||||
}
|
||||
public void TrayRobotREMS()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TrayRobot.REMS");
|
||||
}
|
||||
public void TrayRobotSVON()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TrayRobot.SVON");
|
||||
}
|
||||
public void TrayRobotHome()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TrayRobot.HOME");
|
||||
}
|
||||
public void TrayRobotSTAT()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TrayRobot.STAT");
|
||||
}
|
||||
|
||||
public void TrayRobotHomeAll()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TrayRobot.RobotConnectHomeAll");
|
||||
}
|
||||
public void TrayRobotERR()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TrayRobot.ERR");
|
||||
}
|
||||
|
||||
public void TrayRobotPick()
|
||||
{
|
||||
if (string.IsNullOrEmpty(TraySelectedModule))
|
||||
{
|
||||
return;
|
||||
}
|
||||
int cSlot = TraySelectedSlot - 1;
|
||||
if (!TraySelectedModule.Contains("Cass"))
|
||||
{
|
||||
cSlot = 0;
|
||||
}
|
||||
InvokeClient.Instance.Service.DoOperation($"TrayRobot.GETB", TraySelectedModule, cSlot);
|
||||
}
|
||||
public void TrayRobotPlace()
|
||||
{
|
||||
if (string.IsNullOrEmpty(TraySelectedModule))
|
||||
{
|
||||
return;
|
||||
}
|
||||
int cSlot = TraySelectedSlot - 1;
|
||||
if (!TraySelectedModule.Contains("Cass"))
|
||||
{
|
||||
cSlot = 0;
|
||||
}
|
||||
InvokeClient.Instance.Service.DoOperation($"TrayRobot.PUTB", TraySelectedModule, cSlot);
|
||||
}
|
||||
public void TrayRobotMAP()
|
||||
{
|
||||
if (string.IsNullOrEmpty(TraySelectedModule))
|
||||
{
|
||||
return;
|
||||
}
|
||||
InvokeClient.Instance.Service.DoOperation($"TrayRobot.MAP", TraySelectedModule);
|
||||
}
|
||||
public void TrayRobotRSR()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TrayRobot.RSR");
|
||||
}
|
||||
public void TrayRobotAbort()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TrayRobot.Abort");
|
||||
}
|
||||
public void TrayRobotInPutA()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TrayRobot.InputA");
|
||||
}
|
||||
|
||||
#endregion OP
|
||||
|
||||
|
||||
#region OP,Properties Shutter
|
||||
|
||||
public void LoadGroup()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"LoadLock.Group");
|
||||
}
|
||||
public void LLLiftUp()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"LoadLock.LLLift.MoveUp");
|
||||
}
|
||||
|
||||
public void LLLiftDown()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"LoadLock.LLLift.MoveDown");
|
||||
}
|
||||
|
||||
public void LLWaferClamped()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"LoadLock.LLWaferClaw.Clamping");
|
||||
}
|
||||
|
||||
public void LLWaferOpen()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"LoadLock.LLWaferClaw.UnClamping");
|
||||
}
|
||||
|
||||
public void LLTrayClamped()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"LoadLock.LLTrayClaw.Clamping");
|
||||
}
|
||||
|
||||
public void LLTrayOpen()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"LoadLock.LLTrayClaw.UnClamping");
|
||||
}
|
||||
|
||||
|
||||
public void UnLoadSeparate()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"UnLoad.Separate");
|
||||
}
|
||||
public void UnLoadLiftUp()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"UnLoad.UnLoadLift.MoveUp");
|
||||
}
|
||||
|
||||
public void UnLoadLiftDown()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"UnLoad.UnLoadLift.MoveDown");
|
||||
}
|
||||
|
||||
public void UnLoadWaferClamped()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"UnLoad.UnLoadWaferClaw.Clamping");
|
||||
}
|
||||
|
||||
public void UnLoadWaferOpen()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"UnLoad.UnLoadWaferClaw.UnClamping");
|
||||
}
|
||||
|
||||
[Subscription("LoadLock.LLLift.State")]
|
||||
public string LLPinState
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
[Subscription("LoadLock.LLWaferClaw.State")]
|
||||
public string LLWaferClawState
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
[Subscription("LoadLock.LLTrayClaw.State")]
|
||||
public string LLTrayClawState
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[Subscription("UnLoad.UnLoadLift.State")]
|
||||
public string UnLoadPinState
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[Subscription("UnLoad.UnLoadWaferClaw.State")]
|
||||
public string UnLoadWaferClawState
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public void CreateWafer(string cassName, string startSlotStr,string endSlotStr)
|
||||
{
|
||||
int startSlot = 0;
|
||||
int endSlot = 0;
|
||||
if (Int32.TryParse(startSlotStr, out startSlot) && Int32.TryParse(endSlotStr, out endSlot))
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"{cassName}.CreateAll", startSlot, endSlot);
|
||||
}
|
||||
}
|
||||
|
||||
public void DeleteWafer(string cassName, string startSlotStr, string endSlotStr)
|
||||
{
|
||||
int startSlot = 0;
|
||||
int endSlot = 0;
|
||||
if (Int32.TryParse(startSlotStr, out startSlot) && Int32.TryParse(endSlotStr, out endSlot))
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"{cassName}.DeleteAll", startSlot, endSlot);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region SlitValve
|
||||
|
||||
[Subscription("EFEM.UnLoadSubDoor.OpenFeedback")]
|
||||
public bool UnLoadEfemDoorOpenFeedback { get; set; }
|
||||
|
||||
[Subscription("EFEM.UnLoadSubDoor.CloseFeedback")]
|
||||
public bool UnLoadEfemDoorCloseFeedback { get; set; }
|
||||
|
||||
[Subscription("EFEM.LoadLockLSideDoor.OpenFeedback")]
|
||||
public bool LLEfemLeftDoorOpenFeedback { get; set; }
|
||||
|
||||
[Subscription("EFEM.LoadLockLSideDoor.CloseFeedback")]
|
||||
public bool LLEfemLeftDoorCloseFeedback { get; set; }
|
||||
|
||||
[Subscription("EFEM.LoadLockRSideDoor.OpenFeedback")]
|
||||
public bool LLEfemRightDoorOpenFeedback { get; set; }
|
||||
|
||||
[Subscription("EFEM.LoadLockRSideDoor.CloseFeedback")]
|
||||
public bool LLEfemRightDoorCloseFeedback { get; set; }
|
||||
|
||||
[Subscription("TM.LoadLockDoor.OpenFeedback")]
|
||||
public bool LLDoorOpenFeedback { get; set; }
|
||||
|
||||
[Subscription("TM.LoadLockDoor.CloseFeedback")]
|
||||
public bool LLDoorCloseFeedback { get; set; }
|
||||
|
||||
public bool IsEfemLLLeftDoorOpen => EfemLLLeftDoorState == FoupDoorState.Open ? true : false;
|
||||
public bool IsEfemLLRightDoorOpen => EfemLLRightDoorState == FoupDoorState.Open ? true : false;
|
||||
public bool IsEfemUnLoadDoorOpen => EfemUnLoadDoorState == FoupDoorState.Open ? true : false;
|
||||
public bool IsLLDoorOpen => LLDoorState == FoupDoorState.Open ? true : false;
|
||||
|
||||
public bool IsEfemLLLeftDoorClose => EfemLLLeftDoorState == FoupDoorState.Close ? true : false;
|
||||
public bool IsEfemLLRightDoorClose => EfemLLRightDoorState == FoupDoorState.Close ? true : false;
|
||||
public bool IsEfemUnLoadDoorClose => EfemUnLoadDoorState == FoupDoorState.Close ? true : false;
|
||||
|
||||
|
||||
public FoupDoorState EfemUnLoadDoorState
|
||||
{
|
||||
get
|
||||
{
|
||||
{
|
||||
if (UnLoadEfemDoorOpenFeedback && !UnLoadEfemDoorCloseFeedback) return FoupDoorState.Open;
|
||||
if (!UnLoadEfemDoorOpenFeedback && UnLoadEfemDoorCloseFeedback) return FoupDoorState.Close;
|
||||
}
|
||||
|
||||
return FoupDoorState.Unknown;
|
||||
}
|
||||
}
|
||||
|
||||
public FoupDoorState EfemLLLeftDoorState
|
||||
{
|
||||
get
|
||||
{
|
||||
|
||||
{
|
||||
if (LLEfemLeftDoorOpenFeedback && !LLEfemLeftDoorCloseFeedback) return FoupDoorState.Open;
|
||||
if (!LLEfemLeftDoorOpenFeedback && LLEfemLeftDoorCloseFeedback) return FoupDoorState.Close;
|
||||
}
|
||||
|
||||
return FoupDoorState.Unknown;
|
||||
}
|
||||
}
|
||||
|
||||
public FoupDoorState EfemLLRightDoorState
|
||||
{
|
||||
get
|
||||
{
|
||||
|
||||
{
|
||||
if (LLEfemRightDoorOpenFeedback && !LLEfemRightDoorCloseFeedback) return FoupDoorState.Open;
|
||||
if (!LLEfemRightDoorOpenFeedback && LLEfemRightDoorCloseFeedback) return FoupDoorState.Close;
|
||||
}
|
||||
|
||||
return FoupDoorState.Unknown;
|
||||
}
|
||||
}
|
||||
public FoupDoorState LLDoorState
|
||||
{
|
||||
get
|
||||
{
|
||||
|
||||
{
|
||||
if (LLDoorOpenFeedback && !LLDoorCloseFeedback) return FoupDoorState.Open;
|
||||
if (!LLDoorOpenFeedback && LLDoorCloseFeedback) return FoupDoorState.Close;
|
||||
}
|
||||
|
||||
return FoupDoorState.Unknown;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void OpenSlitValve(string module, string robot)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"EFEM.OpenSlitValve", module, robot);
|
||||
}
|
||||
public void CloseSlitValve(string module, string robot)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"EFEM.CloseSlitValve", module, robot);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Properties Load/UnLoad/Aligner
|
||||
|
||||
[Subscription("TM.LLPressure.FeedBack")]
|
||||
public double LoadPressure { get; set; }
|
||||
|
||||
[Subscription("TM.UnLoadPressure.FeedBack")]
|
||||
public double UnLoadPressure { get; set; }
|
||||
|
||||
[Subscription("LoadLock.LLLift.State")]
|
||||
public string LLLift { get; set; }
|
||||
|
||||
[Subscription("UnLoad.UnLoadLift.State")]
|
||||
public string UnLift { get; set; }
|
||||
|
||||
[Subscription("LoadLock.LLWaferClaw.State")]
|
||||
public string LLWaferClaw { get; set; }
|
||||
|
||||
[Subscription("LoadLock.LLTrayClaw.State")]
|
||||
public string LLTrayClaw { get; set; }
|
||||
|
||||
[Subscription("UnLoad.UnLoadWaferClaw.State")]
|
||||
public string UnLoadWaferClaw { get; set; }
|
||||
|
||||
public bool IsLLLiftUp => LLLift == "Up";
|
||||
public bool IsLLLiftDown => LLLift == "Down";
|
||||
public bool IsULLiftUp => UnLift == "Up";
|
||||
public bool IsULLiftDown => UnLift == "Down";
|
||||
public bool IsLLWaferClamp => LLWaferClaw == "Clamp";
|
||||
public bool IsLLWaferOpen => LLWaferClaw == "UnClamp";
|
||||
public bool IsLLTrayClamp => LLTrayClaw == "Clamp";
|
||||
public bool IsLLTrayOpen => LLTrayClaw == "UnClamp";
|
||||
public bool IsULWaferClamp => UnLoadWaferClaw == "Clamp";
|
||||
public bool IsULWaferOpen => UnLoadWaferClaw == "UnClamp";
|
||||
|
||||
|
||||
|
||||
|
||||
[Subscription("TM.HiWinAligner.HaveWafer")]
|
||||
public string AlignerHaveWafer { get; set; }
|
||||
|
||||
|
||||
//设定马达激磁状态
|
||||
public void Aligner_SME()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TM.HiWinAligner.HwSME");
|
||||
}
|
||||
//原点复归
|
||||
public void Aligner_HOM()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TM.HiWinAligner.HwHOM");
|
||||
}
|
||||
|
||||
//移至测量中心点
|
||||
public void Aligner_MTM()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TM.HiWinAligner.HwMTM");
|
||||
}
|
||||
|
||||
//读取镭射侦测物件
|
||||
public void Aligner_DOC()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TM.HiWinAligner.HwDOC");
|
||||
}
|
||||
//开启真空
|
||||
public void Aligner_CVN()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TM.HiWinAligner.HwCVN");
|
||||
}
|
||||
//晶圆寻边与辅正
|
||||
public void Aligner_BAL()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TM.HiWinAligner.HwBAL");
|
||||
}
|
||||
//关闭真空
|
||||
public void Aligner_CVF()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TM.HiWinAligner.HwCVF");
|
||||
}
|
||||
//清除报警
|
||||
public void Aligner_ERS()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TM.HiWinAligner.HwERS");
|
||||
}
|
||||
|
||||
public void Aligner_Abort()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TM.HiWinAligner.HwAbort");
|
||||
}
|
||||
|
||||
public void AlignerHomeRoutine()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"Aligner.Home");
|
||||
}
|
||||
|
||||
public void AlignerAbortRoutine()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"Aligner.Abort");
|
||||
}
|
||||
|
||||
public void AlignerAlignerRoutine()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"Aligner.Aligner");
|
||||
}
|
||||
|
||||
|
||||
[Subscription("EFEM.Status")]
|
||||
public string EFEMStatus { get; set; }
|
||||
|
||||
public void EFEMHomeRoutine()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"EFEM.Home");
|
||||
}
|
||||
public void EFEMAbortRoutine()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"EFEM.Abort");
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
<UserControl
|
||||
x:Class="SicUI.Client.Models.Platform.TM.PurgeDialogView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:cal="http://www.caliburn.org"
|
||||
xmlns:controls="http://OpenSEMI.Ctrlib.com/presentation"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
|
||||
xmlns:local="clr-namespace:SicUI.Client.Models.Platform.TM"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
Width="450"
|
||||
Height="200"
|
||||
mc:Ignorable="d">
|
||||
<Border
|
||||
Background="{DynamicResource Tab_BG}"
|
||||
BorderBrush="Gray"
|
||||
BorderThickness="0,1,0,0">
|
||||
<Grid Margin="5">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition />
|
||||
<RowDefinition Height="auto" />
|
||||
</Grid.RowDefinitions>
|
||||
<Border
|
||||
Background="{DynamicResource Table_BG_Content_Highlight}"
|
||||
BorderBrush="{DynamicResource Table_BD}"
|
||||
BorderThickness="1">
|
||||
<Canvas>
|
||||
<TextBlock
|
||||
Canvas.Left="103"
|
||||
Canvas.Top="22"
|
||||
FontFamily="Arial"
|
||||
FontSize="12"
|
||||
Foreground="{DynamicResource FG_Black}"
|
||||
Text="Cycle Purge Count:" />
|
||||
<controls:TextBoxEx
|
||||
Canvas.Left="215"
|
||||
Canvas.Top="16"
|
||||
Width="117"
|
||||
Height="28"
|
||||
AllowBackgroundChange="False"
|
||||
Text="{Binding CycleCount, UpdateSourceTrigger=PropertyChanged}" />
|
||||
|
||||
<TextBlock
|
||||
Canvas.Left="25"
|
||||
Canvas.Top="65"
|
||||
FontFamily="Arial"
|
||||
FontSize="12"
|
||||
Foreground="{DynamicResource FG_Black}"
|
||||
Text="Cycle Pump Base Pressure (mbar):" />
|
||||
<controls:TextBoxEx
|
||||
Canvas.Left="215"
|
||||
Canvas.Top="59"
|
||||
Width="117"
|
||||
Height="28"
|
||||
AllowBackgroundChange="False"
|
||||
Text="{Binding PumpPressure, UpdateSourceTrigger=PropertyChanged}" />
|
||||
|
||||
<TextBlock
|
||||
Canvas.Left="63"
|
||||
Canvas.Top="108"
|
||||
FontFamily="Arial"
|
||||
FontSize="12"
|
||||
Foreground="{DynamicResource FG_Black}"
|
||||
Text="Cycle Vent Pressure (mbar):" />
|
||||
<controls:TextBoxEx
|
||||
Canvas.Left="215"
|
||||
Canvas.Top="101"
|
||||
Width="117"
|
||||
Height="28"
|
||||
AllowBackgroundChange="False"
|
||||
Text="{Binding VentPressure, UpdateSourceTrigger=PropertyChanged}" />
|
||||
|
||||
</Canvas>
|
||||
</Border>
|
||||
<StackPanel
|
||||
Grid.Row="1"
|
||||
Margin="0,10,0,0"
|
||||
HorizontalAlignment="Center"
|
||||
Orientation="Horizontal">
|
||||
<Button
|
||||
Width="90"
|
||||
Height="30"
|
||||
Content="OK">
|
||||
<i:Interaction.Triggers>
|
||||
<i:EventTrigger EventName="Click">
|
||||
<cal:ActionMessage MethodName="OK" />
|
||||
</i:EventTrigger>
|
||||
</i:Interaction.Triggers>
|
||||
</Button>
|
||||
<Button
|
||||
Width="90"
|
||||
Height="30"
|
||||
Margin="10,0,0,0"
|
||||
Content="Cancel">
|
||||
<i:Interaction.Triggers>
|
||||
<i:EventTrigger EventName="Click">
|
||||
<cal:ActionMessage MethodName="Cancel" />
|
||||
</i:EventTrigger>
|
||||
</i:Interaction.Triggers>
|
||||
</Button>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Border>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,15 @@
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace SicUI.Client.Models.Platform.TM
|
||||
{
|
||||
/// <summary>
|
||||
/// PurgeDialogView.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class PurgeDialogView : UserControl
|
||||
{
|
||||
public PurgeDialogView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Windows.Forms.VisualStyles;
|
||||
using OpenSEMI.ClientBase;
|
||||
|
||||
|
||||
namespace SicUI.Client.Models.Platform.TM
|
||||
{
|
||||
public class PurgeDialogViewModel : DialogViewModel<string>
|
||||
{
|
||||
public int CycleCountValue { get; set; }
|
||||
public double PumpPressureValue { get; set; }
|
||||
public double VentPressureValue { get; set; }
|
||||
|
||||
public string CycleCount { get; set; }
|
||||
public string PumpPressure { get; set; }
|
||||
public string VentPressure { get; set; }
|
||||
|
||||
public void OK()
|
||||
{
|
||||
if (!int.TryParse(CycleCount, out int cycleCount) || cycleCount < 0)
|
||||
{
|
||||
DialogBox.ShowWarning($"{CycleCount} is not a valid cycle count value");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!double.TryParse(PumpPressure, out double pumpPressureValue) || pumpPressureValue < 0)
|
||||
{
|
||||
DialogBox.ShowWarning($"{PumpPressure} is not a valid pump base value");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!double.TryParse(VentPressure, out double ventPressureValue) || ventPressureValue < 0)
|
||||
{
|
||||
DialogBox.ShowWarning($"{VentPressure} is not a valid vent pressure value");
|
||||
return;
|
||||
}
|
||||
|
||||
if (pumpPressureValue >= ventPressureValue)
|
||||
{
|
||||
DialogBox.ShowWarning($"Pump pressure {pumpPressureValue} should be less than {ventPressureValue}");
|
||||
return;
|
||||
}
|
||||
|
||||
CycleCountValue = cycleCount;
|
||||
PumpPressureValue = pumpPressureValue;
|
||||
VentPressureValue = ventPressureValue;
|
||||
|
||||
IsCancel = false;
|
||||
TryClose(true);
|
||||
}
|
||||
|
||||
public void Cancel()
|
||||
{
|
||||
IsCancel = true;
|
||||
TryClose(false);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,136 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using OpenSEMI.ClientBase.ServiceProvider;
|
||||
|
||||
namespace SicUI.Client.Models.Platform.TM
|
||||
{
|
||||
public class TMProvider : IProvider
|
||||
{
|
||||
private static TMProvider _Instance = null;
|
||||
public static TMProvider Instance
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_Instance == null)
|
||||
_Instance = new TMProvider();
|
||||
|
||||
return _Instance;
|
||||
}
|
||||
}
|
||||
|
||||
public void Create()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void ServoToLL(string module)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"{module}.ServoPressure");
|
||||
}
|
||||
|
||||
public void Pump(string module)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"{module}.Pump");
|
||||
}
|
||||
|
||||
public void Vent(string module)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"{module}.Vent");
|
||||
}
|
||||
|
||||
public void Purge(string module)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"{module}.Purge");
|
||||
}
|
||||
|
||||
public void LiftUp(string module)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"{module}.MoveLift", 0);
|
||||
}
|
||||
|
||||
public void LiftDown(string module)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"{module}.MoveLift", 1);
|
||||
}
|
||||
|
||||
public void OpenDoor(string module)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"{module}.OpenDoor");
|
||||
}
|
||||
|
||||
public void CloseDoor(string module)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"{module}.CloseDoor");
|
||||
}
|
||||
|
||||
public void OpenSlitValve(string module)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TM.OpenSlitValve", module);
|
||||
}
|
||||
|
||||
public void CloseSlitValve(string module)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TM.CloseSlitValve", module);
|
||||
}
|
||||
public void Abort(string module)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"{module}.Abort");
|
||||
}
|
||||
|
||||
public void Home(string module)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"{module}.Home");
|
||||
}
|
||||
|
||||
public void Reset(string module)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"{module}.Reset");
|
||||
}
|
||||
#region TM Robot
|
||||
|
||||
public void TMRobot_Retract(string module, int slot, int blade)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TMRobot.Retract", module, slot, blade);
|
||||
}
|
||||
|
||||
public void TMRobot_Extend(string module, int slot, int blade)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TMRobot.Extend", module, slot, blade);
|
||||
}
|
||||
|
||||
|
||||
internal void TMRobot_Home()
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TMRobot.Home");
|
||||
}
|
||||
|
||||
internal void TMRobot_Pick(string pickSelectedModule, int slot, int blade)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TMRobot.Pick", pickSelectedModule, slot, blade);
|
||||
}
|
||||
|
||||
internal void TMRobot_Place(string placeSelectedModule, int slot, int blade)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TMRobot.Place", placeSelectedModule, slot, blade);
|
||||
}
|
||||
|
||||
internal void TMRobot_Goto(string placeSelectedModule, int slot, int blade,string R,string Z)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"TMRobot.Goto", placeSelectedModule, slot, blade, R,Z);
|
||||
}
|
||||
|
||||
internal void PrepareTransfer(string module, string type)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"{module}.PrepareTransfer", type);
|
||||
}
|
||||
|
||||
internal void TransferHandoff(string module, string type)
|
||||
{
|
||||
InvokeClient.Instance.Service.DoOperation($"{module}.TransferHandoff", type);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace SicUI.Client.Models.Platform.TM
|
||||
{
|
||||
/// <summary>
|
||||
/// TMView.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class TMView : UserControl
|
||||
{
|
||||
public TMView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user