|
@@ -2,10 +2,12 @@
|
|
|
using Aitex.Core.RT.SCCore;
|
|
using Aitex.Core.RT.SCCore;
|
|
|
using Aitex.Core.Util;
|
|
using Aitex.Core.Util;
|
|
|
using DocumentFormat.OpenXml.Wordprocessing;
|
|
using DocumentFormat.OpenXml.Wordprocessing;
|
|
|
|
|
+using FurnaceRT.Devices;
|
|
|
using FurnaceRT.Equipments.PMs;
|
|
using FurnaceRT.Equipments.PMs;
|
|
|
using FurnaceRT.Equipments.Systems;
|
|
using FurnaceRT.Equipments.Systems;
|
|
|
using MECF.Framework.Common.Equipment;
|
|
using MECF.Framework.Common.Equipment;
|
|
|
using MECF.Framework.Common.Event;
|
|
using MECF.Framework.Common.Event;
|
|
|
|
|
+using MECF.Framework.Common.Extens;
|
|
|
using MECF.Framework.UI.Client.CenterViews.Editors.Recipe;
|
|
using MECF.Framework.UI.Client.CenterViews.Editors.Recipe;
|
|
|
using RTCommunicatorBase;
|
|
using RTCommunicatorBase;
|
|
|
using RTCommunicatorTLV;
|
|
using RTCommunicatorTLV;
|
|
@@ -39,8 +41,8 @@ namespace FurnaceRT.Extraction
|
|
|
}
|
|
}
|
|
|
communicator.Initialize(this);
|
|
communicator.Initialize(this);
|
|
|
SWJConnectedMinics(ip, port);
|
|
SWJConnectedMinics(ip, port);
|
|
|
-
|
|
|
|
|
- // AlarmIndefinx();
|
|
|
|
|
|
|
+ IninHeaterBand();
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public void SWJConnectedMinics(string ip, int port)
|
|
public void SWJConnectedMinics(string ip, int port)
|
|
@@ -84,15 +86,18 @@ namespace FurnaceRT.Extraction
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
public Dictionary<string, Tuple<AlarmEventItem, AlarmEventItem, AlarmEventItem>> MinicsAlarmDic { get; set; } = new Dictionary<string, Tuple<AlarmEventItem, AlarmEventItem, AlarmEventItem>>();
|
|
public Dictionary<string, Tuple<AlarmEventItem, AlarmEventItem, AlarmEventItem>> MinicsAlarmDic { get; set; } = new Dictionary<string, Tuple<AlarmEventItem, AlarmEventItem, AlarmEventItem>>();
|
|
|
-
|
|
|
|
|
- public void AlarmIndefinx()
|
|
|
|
|
|
|
+ public Dictionary<string, MincsHeaterBand> mincsHeaterBandsDict { get; set; } = new Dictionary<string, MincsHeaterBand>();
|
|
|
|
|
+ public void IninHeaterBand()
|
|
|
{
|
|
{
|
|
|
var pm = Singleton<EquipmentManager>.Instance.Modules[ModuleName.PM1] as PMModule;
|
|
var pm = Singleton<EquipmentManager>.Instance.Modules[ModuleName.PM1] as PMModule;
|
|
|
for (int i = 1; i < 9; i++)
|
|
for (int i = 1; i < 9; i++)
|
|
|
{
|
|
{
|
|
|
for (int j = 1; j < 17; j++)
|
|
for (int j = 1; j < 17; j++)
|
|
|
{
|
|
{
|
|
|
- MinicsAlarmDic.Add($"{i}_{j}", pm.AddMini8ChannelAlarm(i, j));
|
|
|
|
|
|
|
+ var item = new MincsHeaterBand() { Name = $"{i}_{j}" };
|
|
|
|
|
+ item.Initialize();
|
|
|
|
|
+ mincsHeaterBandsDict.TryAddValue(item.Name, item);
|
|
|
|
|
+ // MinicsAlarmDic.Add($"{i}_{j}", pm.AddMini8ChannelAlarm(i, j));
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -145,5 +150,19 @@ namespace FurnaceRT.Extraction
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ public void ChannelRealtimeNotify(ST_CHANNEL_Notify channel)
|
|
|
|
|
+ {
|
|
|
|
|
+ foreach (var item in mincsHeaterBandsDict)
|
|
|
|
|
+ {
|
|
|
|
|
+ var itemKey = $"{channel.Mini8Index}_{channel.ChannelIndex}";
|
|
|
|
|
+ if (itemKey != item.Key)
|
|
|
|
|
+ continue;
|
|
|
|
|
+
|
|
|
|
|
+ item.Value.TempFeedback = channel.PV;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|