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


C# FASequence.Suspend方法代码示例

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


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

示例1: ConfirmArrivalBox

        private void ConfirmArrivalBox(FASequence actor, TimeSpan time)
        {
            string windowName = string.Empty;

            if (ManualMode)
            {
                if (LoadingUnit.StopSensor.IsOn)
                {
                    if (Unloading.IsStartable() || Unloading.State == SequenceState.Suspended)
                    {
                        LoadingUnit.ConveyorMotor.Stop.Execute(actor);
                    }

                    actor.NextStep();
                }
                else if (TimeLoadingTimeout.Time < time)
                {
                    if (RetryInfoLoading.IncreaseCount() == false)
                    {
                        string defaultName = "Fail Loading T/K Box From Front Machine.";
                        var alarm = Utility.AlarmUtility.GetAlarm(AlarmLoadingFail, "Fail Loading T/K Box From Front Machine.");
                        Manager.MessageWindowManager.Instance.Show(Equipment, defaultName, out windowName, alarm, string.Empty, true);
                        actor.Suspend();
                        Equipment.RequestStop();
                    }

                    actor.NextStep("ConfirmArrivalBox");
                }
                else
                    LoadingUnit.ConveyorMotor.Run.Execute(actor);
            }
            else
            {
                if (LoadingUnit.StopSensor.IsOn)
                    ArrivedBox = true;

                //if (ArrivedBox && Unloading.IsStartable())
                //    LoadingUnit.ConveyorMotor.Stop.Execute(actor);

                if (InterfaceUnit.AMTInterfaceTransferSignal.IsOff && ArrivedBox)
                {
                    var now = DateTime.Now;

                    if (LastLoadingTime != DateTime.MinValue)
                    {
                        Tact = now - LastLoadingTime;
                        string path = System.IO.Path.Combine(Manager.LogManager.LOG_ROOT_PATH,
                            Equipment.Name, "TactTime");
                        Manager.LogManager.Instance.WriteCSVLog(path, string.Empty,
                            Tact, "\t");
                    }

                    LastLoadingTime = now;

                    InterfaceUnit.AMTInterfaceRequstCheck.Off.Execute(this);
                    InterfaceUnit.AMTInterFaceTransferCheck.Off.Execute(this);
                    ManualMode = false;
                    RetryInfoArrivedBox.ClearCount();
                    actor.NextStep();
                }
                else if (TimeLoadingTimeout.Time < time)
                {
                    if (RetryInfoLoading.IncreaseCount() == false)
                    {
                        LoadingUnit.ConveyorMotor.Stop.Execute(actor);

                        if (ArrivedBox == false)
                        {
                            string defaultName = "Fail Loading T/K Box From Front Machine.";
                            var alarm = Utility.AlarmUtility.GetAlarm(AlarmLoadingFail, "Fail Loading T/K Box From Front Machine.");
                            Manager.MessageWindowManager.Instance.Show(Equipment, defaultName, out windowName, alarm, string.Empty, true);
                            actor.Suspend();
                            Equipment.RequestStop();
                        }
                        else if (InterfaceUnit.AMTInterfaceTransferSignal.IsOff == false)
                        {
                            RaiseAlarm(actor, AlarmFrontMachineTerminateSignalNotOff);
                        }
                        actor.NextStep("ConfirmArrivalBox");
                    }
                    else
                        actor.NextStep("ArrivalBoxCvDelay");
                }
                else if (ArrivedBox == false)
                    LoadingUnit.ConveyorMotor.Run.Execute(actor);
            }
        }
开发者ID:vesteksoftware,项目名称:VT5070-SSD,代码行数:87,代码来源:FASSDBoxLoadingModule.cs

示例2: ShowAlarmToMessageBox

 private void ShowAlarmToMessageBox(FASequence seq, string defaultName, int alarmNo, out string windowName, string moreMsg)
 {
     seq.Suspend();
     var alarm = Utility.AlarmUtility.GetAlarm(AlarmBoxLoadingFail, defaultName);
     Manager.MessageWindowManager.Instance.Show(Equipment, defaultName, out windowName, alarm, moreMsg, true);
     BandingUnit.VirtualDoorOpenSwitch.DoTurnOn(this);
 }
开发者ID:vesteksoftware,项目名称:VT5070-SSD,代码行数:7,代码来源:FABandingConveyorModule.cs


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