|
@@ -6,6 +6,7 @@ using Aitex.Core.Util;
|
|
|
using Aitex.Sorter.Common;
|
|
|
using Efem.Protocol;
|
|
|
using EFEM.RT.Devices.Aligner;
|
|
|
+using EFEM.RT.Devices.Flipper;
|
|
|
using EFEM.RT.Modules;
|
|
|
using MECF.Framework.Common.Equipment;
|
|
|
using MECF.Framework.RT.EquipmentLibrary.HardwareUnits.BufferStations;
|
|
@@ -693,6 +694,63 @@ namespace EFEM.RT.Tasks
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ public class FlipperStationServerModule : IServerModule
|
|
|
+ {
|
|
|
+ public bool IsLinkOk
|
|
|
+ {
|
|
|
+ get { return _flipper != null; }
|
|
|
+ }
|
|
|
+
|
|
|
+ public bool Busy
|
|
|
+ {
|
|
|
+ get { return false; }
|
|
|
+ }
|
|
|
+
|
|
|
+ public bool Error
|
|
|
+ {
|
|
|
+ get { return false; }
|
|
|
+ }
|
|
|
+
|
|
|
+ public bool Disabled { get; set; }
|
|
|
+ public bool Initialized { get; set; }
|
|
|
+ public bool OriginSearched { get; set; }
|
|
|
+ public bool InUsed { get; set; }
|
|
|
+ public string Name { get; set; }
|
|
|
+
|
|
|
+ public FlipperBase GetDevice()
|
|
|
+ {
|
|
|
+ return _flipper;
|
|
|
+ }
|
|
|
+
|
|
|
+ protected FlipperBase _flipper = null;
|
|
|
+
|
|
|
+ public FlipperStationServerModule(string name)
|
|
|
+ {
|
|
|
+ OriginSearched = true;
|
|
|
+ Initialized = true;
|
|
|
+ Name = name;
|
|
|
+ _flipper = DEVICE.GetDevice<JetFlipper>(name);
|
|
|
+ }
|
|
|
+
|
|
|
+ public bool Init(out string reason)
|
|
|
+ {
|
|
|
+ reason = string.Empty;
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
+ public bool Home(out string reason)
|
|
|
+ {
|
|
|
+ reason = string.Empty;
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
+ public bool Reset(out string reason)
|
|
|
+ {
|
|
|
+ reason = string.Empty;
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
public class EntityFactory
|
|
|
{
|
|
|
private SystemServerModule _system = null;
|
|
@@ -720,6 +778,8 @@ namespace EFEM.RT.Tasks
|
|
|
private BufferStationServerModule _bufferStation1 = null;
|
|
|
private BufferStationServerModule _bufferStation2 = null;
|
|
|
|
|
|
+ private FlipperStationServerModule _flipper = null;
|
|
|
+
|
|
|
public EntityFactory()
|
|
|
{
|
|
|
_system = new SystemServerModule(DeviceName.System);
|
|
@@ -746,6 +806,8 @@ namespace EFEM.RT.Tasks
|
|
|
_bufferStation = new BufferStationServerModule(DeviceName.Buffer);
|
|
|
_bufferStation1 = new BufferStationServerModule(DeviceName.Buffer1);
|
|
|
_bufferStation2 = new BufferStationServerModule(DeviceName.Buffer2);
|
|
|
+
|
|
|
+ _flipper = new FlipperStationServerModule(DeviceName.Flipper);
|
|
|
}
|
|
|
|
|
|
public IServerModule GetEntity(string name)
|
|
@@ -842,6 +904,9 @@ namespace EFEM.RT.Tasks
|
|
|
|
|
|
case DeviceName.Buffer:
|
|
|
return _bufferStation;
|
|
|
+
|
|
|
+ case DeviceName.Flipper:
|
|
|
+ return _flipper;
|
|
|
}
|
|
|
|
|
|
return null;
|