当前位置: 首页>>代码示例>>C#>>正文


C# FALibrary.ClearState方法代码示例

本文整理汇总了C#中FALibrary.ClearState方法的典型用法代码示例。如果您正苦于以下问题:C# FALibrary.ClearState方法的具体用法?C# FALibrary.ClearState怎么用?C# FALibrary.ClearState使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FALibrary的用法示例。


在下文中一共展示了FALibrary.ClearState方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ConfirmDoorClosed

        protected override void ConfirmDoorClosed(FALibrary.Sequence.FASequence actor, TimeSpan time)
        {
            string windowName = string.Empty;
            int alarm = -1;

            if (BoxFormingMachineEquipment.DoorUnit.FrontLeftDoorCloseCheck.IsOff)
                alarm = AlarmFrontLeftDoorCloseCheck;
            else if (BoxFormingMachineEquipment.DoorUnit.FrontRightDoorCloseCheck.IsOff)
                alarm = AlarmFrontRightDoorCloseCheck;
            else if (BoxFormingMachineEquipment.DoorUnit.RearLowerDoorCloseCheck.IsOff)
                alarm = AlarmRearLowerDoorCloseCheck;

            if (alarm >= 0)
            {
                var alarmObj = Utility.AlarmUtility.GetAlarm(alarm, "");
                Manager.MessageWindowManager.Instance.Show(Equipment, "DOOR WARNING", out windowName, alarmObj, string.Empty, false);
                actor.ClearState();
                Equipment.RequestStop();
            }
            else
            actor.NextStep();
        }
开发者ID:vesteksoftware,项目名称:VT5050-SSD,代码行数:22,代码来源:ExtensionOperationModule.cs

示例2: ConfirmDoorLockOk

        protected override void ConfirmDoorLockOk(FALibrary.Sequence.FASequence actor, TimeSpan time)
        {
            int alarm = GetDoorLockAlarm();

            if (alarm >= 0 && TimeDoorLockTimeout.Time < time)
            {
                string windowName = string.Empty;
                var alarmObj = Utility.AlarmUtility.GetAlarm(alarm, "DOOR LOCK FAIL");
                Manager.MessageWindowManager.Instance.Show(Equipment, "DOOR WARNING", out windowName, alarmObj, string.Empty, false);
                actor.ClearState();
                Equipment.RequestStop();
            }
            else
                actor.NextStep();
        }
开发者ID:vesteksoftware,项目名称:VT5080-SSD,代码行数:15,代码来源:ExtensionOperationModule.cs

示例3: ConfirmDoorLockOk

        protected override void ConfirmDoorLockOk(FALibrary.Sequence.FASequence actor, TimeSpan time)
        {
            int alarm = -1;

            if (VT5070Equipment.DoorUnit.FrontMonitorDoorLockCheck.IsOff)
                alarm = AlarmFrontMonitorDoorLockFail;
            else if (VT5070Equipment.DoorUnit.FrontCenterUpperLeftDoorLockCheck.IsOff)
                alarm = AlarmFrontCenterUpperLeftDoorLockFail;
            else if (VT5070Equipment.DoorUnit.FrontCenterUpperRightDoorLockCheck.IsOff)
                alarm = AlarmFrontCenterUpperRightDoorLockFail;
            else if (VT5070Equipment.DoorUnit.FrontSSDBoxInletUpperDoorLockCheck.IsOff)
                alarm = AlarmFrontSSDInletUpperDoorLockFail;
            else if (VT5070Equipment.DoorUnit.FrontSSDBoxLoadingUpperLeftDoorLockCheck.IsOff)
                alarm = AlarmFrontLoadingUpperLeftDoorLockFail;
            else if (VT5070Equipment.DoorUnit.FrontSSDBoxLoadingUpperRightDoorLockCheck.IsOff)
                alarm = AlarmFrontLoadingUpperRightDoorLockFail;
            else if (VT5070Equipment.DoorUnit.LeftFoamPadInletDoorLockCheck.IsOff)
                alarm = AlarmLeftFoamPadInletDoorLockFail;
            else if (VT5070Equipment.DoorUnit.RearCenterDoorLockCheck.IsOff)
                alarm = AlarmRearCenterDoorLockFail;
            //else if (VT5070Equipment.DoorUnit.UpperPrinterFrontDoorLockCheck.IsOff)
            //    alarm = AlarmUpperPrinterDoorLockFail;
            //else if (VT5070Equipment.DoorUnit.LowerPrinterFrontDoorLockCheck.IsOff)
            //    alarm = AlarmLowerPrinterDoorLockFail;
            else if (VT5070Equipment.DoorUnit.PrinterRearDoorLockCheck.IsOff)
                alarm = AlarmPrinterRearDoorLockFail;
            else if (VT5070Equipment.DoorUnit.BandingMachineFrontDoorLockCheck.IsOff)
                alarm = AlarmBandingMachineFrontDoorLockFail;
            else if (VT5070Equipment.DoorUnit.BandingMachineRearDoorLockCheck.IsOff)
                alarm = AlarmBandingMachineRearDoorLockFail;

            if (alarm >= 0)
            {
                if (TimeDoorLockTimeout.Time < time)
                {
                    string windowName = string.Empty;
                    var alarmObj = Utility.AlarmUtility.GetAlarm(alarm, "DOOR WARNING");
                    Manager.MessageWindowManager.Instance.Show(Equipment, "DOOR WARNING", out windowName, alarmObj, string.Empty, true);
                    actor.ClearState();
                    Equipment.RequestStop();
                }
            }
            else
                actor.NextStep();
        }
开发者ID:vesteksoftware,项目名称:VT5070-SSD,代码行数:45,代码来源:ExtensionOperationModule.cs


注:本文中的FALibrary.ClearState方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。