|
@@ -6,6 +6,7 @@ using System.Threading.Tasks;
|
|
|
using Aitex.Core.RT.Fsm;
|
|
|
using Aitex.Core.RT.Log;
|
|
|
using Aitex.Core.Util;
|
|
|
+using Aitex.Core.RT.SCCore;
|
|
|
using Aitex.Sorter.Common;
|
|
|
using MECF.Framework.Common.Schedulers;
|
|
|
using MECF.Framework.Common.Equipment;
|
|
@@ -57,6 +58,8 @@ namespace Venus_RT.Scheduler
|
|
|
|
|
|
private SchedulerItem _currentScheduler = null;
|
|
|
private int _entityTaskToken = (int)FSM_MSG.NONE;
|
|
|
+ private int _alignAngle = 0;
|
|
|
+ private int _increasingAngle = 0;
|
|
|
|
|
|
|
|
|
public ModuleName PreviousTarget { get; set; }
|
|
@@ -65,6 +68,9 @@ namespace Venus_RT.Scheduler
|
|
|
{
|
|
|
_entity = Singleton<RouteManager>.Instance.EFEM;
|
|
|
PreviousTarget = ModuleName.System;
|
|
|
+
|
|
|
+ _alignAngle = SC.GetValue<int>($"EFEM.Aligner.AlignAngle");
|
|
|
+ _increasingAngle = SC.GetValue<int>($"EFEM.Aligner.IncreasingAngle");
|
|
|
}
|
|
|
|
|
|
public bool Goto(ModuleName target, int slot )
|
|
@@ -224,7 +230,8 @@ namespace Venus_RT.Scheduler
|
|
|
|
|
|
LogTaskStart(_task, $"Aligning");
|
|
|
|
|
|
- _entityTaskToken = _entity.InvokeAlign(ModuleName.Aligner1.ToString(),0, angle);
|
|
|
+ _alignAngle = _alignAngle + _increasingAngle;
|
|
|
+ _entityTaskToken = _entity.InvokeAlign(ModuleName.Aligner1.ToString(),0, _alignAngle);
|
|
|
|
|
|
return _entityTaskToken == (int)EfemEntity.MSG.Align;
|
|
|
}
|