using Aitex.Core.RT.DataCenter; using Aitex.Core.RT.Device; using Aitex.Core.RT.Device.Unit; using Aitex.Core.RT.Event; using Aitex.Core.RT.OperationCenter; using Aitex.Core.RT.SCCore; using Aitex.Core.Utilities; using Aitex.Sorter.Common; using FurnaceRT.Devices; using MECF.Framework.Common.Alarms; using MECF.Framework.Common.Equipment; using MECF.Framework.Common.Event; using MECF.Framework.Common.Schedulers; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FurnaceRT.Equipments.FIMSs { public partial class FIMSModule { public AlarmEventItem LoadTimeoutAlarm { get; set; } public AlarmEventItem LoadFailAlarm { get; set; } public AlarmEventItem UnloadTimeoutAlarm { get; set; } public AlarmEventItem UnloadFailAlarm { get; set; } public AlarmEventItem HomeTimeoutAlarm { get; set; } public AlarmEventItem HomeFailAlarm { get; set; } private void InitAlarmEvent() { LoadFailAlarm = SubscribeAlarm(new AlarmEventItem() { EventEnum = $"{Name}.LoadFailAlarm", Description = $"{Name} load fail reason ", Solution = "No information available. Press[Retry] to delete alarm message.", Explaination = "No information available.", AutoRecovery = false, Level = EventLevel.Alarm, Action = EventAction.ClearAndRetry, Category = "FMISAlarm", }, () => { return true; }); UnloadFailAlarm = SubscribeAlarm(new AlarmEventItem() { EventEnum = $"{Name}.UnloadFailAlarm", Description = $"{Name} unload fail reason ", Solution = "No information available. Press[Retry] to delete alarm message.", Explaination = "No information available.", AutoRecovery = false, Level = EventLevel.Alarm, Action = EventAction.ClearAndRetry, Category = "FMISAlarm", }, () => { return true; }); LoadTimeoutAlarm = SubscribeAlarm(new AlarmEventItem() { EventEnum = $"{Name}.LoadTimeoutAlarm", Description = $"{Name} load timeout ", Solution = "No information available. Press[Retry] to delete alarm message.", Explaination = "No information available.", AutoRecovery = false, Level = EventLevel.Alarm, Action = EventAction.ClearAndRetry, Category = "FMISAlarm", }, () => { return true; }); UnloadTimeoutAlarm = SubscribeAlarm(new AlarmEventItem() { EventEnum = $"{Name}.UnloadTimeoutAlarm", Description = $"{Name} unload timeout ", Solution = "No information available. Press[Retry] to delete alarm message.", Explaination = "No information available.", AutoRecovery = false, Level = EventLevel.Alarm, Action = EventAction.ClearAndRetry, Category = "FMISAlarm", }, () => { return true; }); HomeFailAlarm = SubscribeAlarm(new AlarmEventItem() { EventEnum = $"{Name}.HomeFailAlarm", Description = $"{Name} home fail reason ", Solution = "No information available. Press[Retry] to delete alarm message.", Explaination = "No information available.", AutoRecovery = false, Level = EventLevel.Alarm, Action = EventAction.ClearAndRetry, Category = "FMISAlarm", }, () => { return true; }); HomeTimeoutAlarm = SubscribeAlarm(new AlarmEventItem() { EventEnum = $"{Name}.HomeTimeoutAlarm", Description = $"{Name} home timeout ", Solution = "No information available. Press[Retry] to delete alarm message.", Explaination = "No information available.", AutoRecovery = false, Level = EventLevel.Alarm, Action = EventAction.ClearAndRetry, Category = "FMISAlarm", }, () => { return true; }); } } }