|
|
@@ -4,11 +4,15 @@ using System.Collections.ObjectModel;
|
|
|
using System.Linq;
|
|
|
using System.Windows;
|
|
|
using Aitex.Core.RT.IOCore;
|
|
|
+using Aitex.Core.RT.SCCore;
|
|
|
using Caliburn.Micro;
|
|
|
using Caliburn.Micro.Core;
|
|
|
+using DocumentFormat.OpenXml.Wordprocessing;
|
|
|
using MECF.Framework.Common.DataCenter;
|
|
|
+using MECF.Framework.Common.Equipment;
|
|
|
using MECF.Framework.Common.IOCore;
|
|
|
using MECF.Framework.Common.OperationCenter;
|
|
|
+using MECF.Framework.RT.EquipmentLibrary.HardwareUnits.Robots.HRC100Robots.GM201LVPRobot;
|
|
|
using MECF.Framework.UI.Client.CenterViews.Dialogs;
|
|
|
using MECF.Framework.UI.Client.CenterViews.Editors.Recipe;
|
|
|
using MECF.Framework.UI.Client.CenterViews.Editors.Sequence;
|
|
|
@@ -543,6 +547,33 @@ namespace MECF.Framework.UI.Client.CenterViews.Configs.SystemConfig
|
|
|
(windowManager as WindowManager)?.ShowDialogWithTitle(shutDonwControlViewModel, null, "UI And RT Control");
|
|
|
|
|
|
}
|
|
|
+ private GM201LVPRobotConnection _connection;
|
|
|
+ public void RobotOnline()
|
|
|
+ {
|
|
|
+ var waferRobot = new GM201LVPRobot("", ModuleName.WaferRobot.ToString(), "Robot", GM201LVPRobot.MaterialType.Wafer, null, null);
|
|
|
+ var carrierRobot = new GM201LVPRobot("", ModuleName.CarrierRobot.ToString(), "Robot", GM201LVPRobot.MaterialType.Carrier, null, null);
|
|
|
+
|
|
|
+ List<GM201LVPRobot> gM201LVPRobots = new List<GM201LVPRobot>() { carrierRobot, waferRobot };
|
|
|
+ foreach (var item in gM201LVPRobots)
|
|
|
+ {
|
|
|
+ var adress = item.Address;
|
|
|
+ item.Connect();
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ public void RobotOffline()
|
|
|
+ {
|
|
|
+ var waferRobot = new GM201LVPRobot("", ModuleName.WaferRobot.ToString(), "Robot", GM201LVPRobot.MaterialType.Wafer, null, null);
|
|
|
+ var carrierRobot = new GM201LVPRobot("", ModuleName.CarrierRobot.ToString(), "Robot", GM201LVPRobot.MaterialType.Carrier, null, null);
|
|
|
+
|
|
|
+ List<GM201LVPRobot> gM201LVPRobots = new List<GM201LVPRobot>() { carrierRobot, waferRobot };
|
|
|
+ foreach (var item in gM201LVPRobots)
|
|
|
+ {
|
|
|
+ var adress = item.Address;
|
|
|
+ item.Disconnect();
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
public void ClearFilter()
|
|
|
{
|
|
|
CurrentCriteria = "";
|
|
|
@@ -569,7 +600,7 @@ namespace MECF.Framework.UI.Client.CenterViews.Configs.SystemConfig
|
|
|
{
|
|
|
base.InvokeAfterUpdateProperty(data);
|
|
|
string _aoKey = $"{SystemName}.PM1.AOList";
|
|
|
- if (data.ContainsKey(_aoKey)&&data[_aoKey] != null && _isReadPLC)
|
|
|
+ if (data.ContainsKey(_aoKey) && data[_aoKey] != null && _isReadPLC)
|
|
|
{
|
|
|
List<NotifiableIoItem> lstData = (List<NotifiableIoItem>)data[_aoKey];
|
|
|
for (int i = 0; i < lstData.Count; i++)
|