public FAPartTrayLifterServo(FASequenceManager aSequenceManager)
     : base(aSequenceManager)
 {
     MoveStandbyPos = CreateAction(aSequenceManager);
     MoveMiddlePos = CreateAction(aSequenceManager);
     MoveUpPos = CreateAction(aSequenceManager);
 }
 public FAPartFoamPadCoveringServo(FASequenceManager aSequenceManager)
     : base(aSequenceManager)
 {
     MoveFoamPadReceptionPos = CreateAction(aSequenceManager);
     MoveFoamPadCoveringPos = CreateAction(aSequenceManager);
     MoveFoamPadGuidePos = CreateAction(aSequenceManager);
 }
 public FAFoamPadTransferServo(FASequenceManager aSequenceManager)
     : base(aSequenceManager)
 {
     MoveStandbyPos = CreateAction(aSequenceManager);
     MovePickPos = CreateAction(aSequenceManager);
     MovePlacePos = CreateAction(aSequenceManager);
 }
        public FAAPlusMMCPart(FASequenceManager aSequenceManager)
        {
            CreatePositionDefine();

            MoveHome.SetActionMethod(DoHome);
            MoveToPos.SetActionMethod(DoMoveToPos);
            MoveVelocity.SetActionMethod(DoMoveVelocity);
            Stop.SetActionMethod(DoStop);

            MoveHome.CreateSequence(aSequenceManager);
            MoveToPos.CreateSequence(aSequenceManager);
            MoveVelocity.CreateSequence(aSequenceManager);
            Stop.CreateSequence(aSequenceManager);

            MoveHome.Sequence.Steps.Add("StartMove", new StepInfo());

            MoveHome.Sequence.Steps["StartMove"].StepIndex = MoveHome.Sequence.AddItem(MoveHome.ExecuteForSequence);
            MoveHome.Sequence.AddItem(ConfirmFirstMoveHomeDone);
            MoveHome.Sequence.AddItem(new FATime(FATimeType.second, 2));
            MoveHome.Sequence.AddItem(ConfirmMoveHomeDone);
            MoveHome.Sequence.AddItem(SetHomeMarking);
            MoveHome.Sequence.AddItem(SetInitializeOk);

            MoveToPos.Sequence.Steps.Add("StartMove", new StepInfo());
            MoveToPos.Sequence.Steps["StartMove"].StepIndex = MoveToPos.Sequence.AddItem(MoveToPos.ExecuteForSequence);
            MoveToPos.Sequence.AddItem(ConfirmMoveDone);

            MoveVelocity.Sequence.AddItem(MoveVelocity.ExecuteForSequence);

            Stop.Sequence.Steps.Add("Stop", new StepInfo());
            Stop.Sequence.AddItem(Stop.ExecuteForSequence);
            Stop.Sequence.Steps["Stop"].StepIndex = Stop.Sequence.AddItem(ConfirmStopOk);
        }
 public FAUnloaderUpDownServo(FASequenceManager aSequenceManager)
     : base(aSequenceManager)
 {
     MoveUpPos = CreateAction(aSequenceManager);
     MoveUnloadingPos = CreateAction(aSequenceManager);
     MoveDownPos = CreateAction(aSequenceManager);
 }
        public FAPartBoxElevatorServo(FASequenceManager aSequenceManager)
            : base(aSequenceManager)
        {
            MoveToStandbyPos = new FAPartAction();
            MoveToLargeBoxInPos = new FAPartAction();
            MoveToBoxOutPos = new FAPartAction();
            MoveToBypassPos = new FAPartAction();
            MoveLabelAttachPosition = new FAPartAction();
            MoveToScanPosition = new FAPartAction();

            MoveToStandbyPos.CreateSequence(aSequenceManager);
            MoveToLargeBoxInPos.CreateSequence(aSequenceManager);
            MoveToBoxOutPos.CreateSequence(aSequenceManager);
            MoveToBypassPos.CreateSequence(aSequenceManager);
            MoveLabelAttachPosition.CreateSequence(aSequenceManager);
            MoveToScanPosition.CreateSequence(aSequenceManager);

            MoveToBypassPos.SetActionMethod(DoMoveToBypassPos);
            MoveToLargeBoxInPos.SetActionMethod(DoMoveToLargeBoxInPos);
            MoveToBoxOutPos.SetActionMethod(DoMoveToBoxOutPos);
            MoveToStandbyPos.SetActionMethod(DoMoveToStandbyPos);
            MoveLabelAttachPosition.SetActionMethod(DoMoveLabelAttachPos);
            MoveToScanPosition.SetActionMethod(DoMoveToScanPos);

            MakeMoveToStandbyPosSequence();
            MakeMoveToLargeBoxInPosSequence();
            MakeMoveToBoxOutPosSequence();
            MakeMoveToBypassPosSequence();
            MakeLabelAttachPosSequence();
            MakeMoveToScanPosSequence();
        }
        public FATrayPickerUpDownServo(FASequenceManager aSequenceManager)
            : base(aSequenceManager)
        {
            PickPos = new FAMMCPosition();
            MoveStandbyPos = new FAPartAction();
            MoveGripPos = new FAPartAction();
            MovePickPos = new FAPartAction();
            MovePlacePos = new FAPartAction();
            MoveTrayPushPos = new FAPartAction();

            MoveStandbyPos.SetActionMethod(DoMoveStandbyPos);
            MoveGripPos.SetActionMethod(DoMoveGripPos);
            MovePickPos.SetActionMethod(DoMovePickPos);
            MovePlacePos.SetActionMethod(DoMovePlacePos);
            MoveTrayPushPos.SetActionMethod(DoMoveTrayPushPos);

            MoveStandbyPos.CreateSequence(aSequenceManager);
            MoveGripPos.CreateSequence(aSequenceManager);
            MovePickPos.CreateSequence(aSequenceManager);
            MovePlacePos.CreateSequence(aSequenceManager);
            MoveTrayPushPos.CreateSequence(aSequenceManager);

            MakeMoveStandbyPos();
            MakeMoveGripPos();
            MakeMovePickPos();
            MakeMovePlacePos();
            MakeMoveTrayPushPos();
        }
 public FAPartRFScannerUpDownServo(FASequenceManager aSequenceManager)
     : base(aSequenceManager)
 {
     MoveStandbyPos = CreateAction(aSequenceManager);
     MoveBottomPos = CreateAction(aSequenceManager);
     MoveScanPos = CreateAction(aSequenceManager);
 }
        public FAReelPickerUpDownServo(FASequenceManager aSequenceManager)
            : base(aSequenceManager)
        {
            PickPos = new FAAPlusMMCPosition();
            MoveStandbyPos = new FAPartAction();
            MoveGripPos = new FAPartAction();
            MovePickPos = new FAPartAction();
            MovePlacePos = new FAPartAction();
            MoveTopPushingPos = new FAPartAction();
            MoveAlignPos = new FAPartAction();

            MoveStandbyPos.SetActionMethod(DoMoveStandbyPos);
            MoveGripPos.SetActionMethod(DoMoveGripPos);
            MovePickPos.SetActionMethod(DoMovePickPos);
            MovePlacePos.SetActionMethod(DoMovePlacePos);
            MoveTopPushingPos.SetActionMethod(DoMoveTopPushingPos);
            MoveAlignPos.SetActionMethod(DoMoveAlignPos);

            MoveStandbyPos.CreateSequence(aSequenceManager);
            MoveGripPos.CreateSequence(aSequenceManager);
            MovePickPos.CreateSequence(aSequenceManager);
            MovePlacePos.CreateSequence(aSequenceManager);
            MoveTopPushingPos.CreateSequence(aSequenceManager);
            MoveAlignPos.CreateSequence(aSequenceManager);

            MakeMoveStandbyPos();
            MakeMoveGripPos();
            MakeMovePickPos();
            MakeMovePlacePos();
            MakeMoveTopPushingPos();
            MakeMoveAlignPos();
        }
        public FAPamtekBarcodeScannerPart(FASequenceManager aSequenceManager)
        {
            CheckReadyStatus = new FASequence(aSequenceManager);

            CheckReadyStatus.AddItem(delegate(object sender) { ReadReadyStatus(); });
            CheckReadyStatus.AddItem(ConfirmReadyStatus);
        }
 public FAPartSmallBoxTiltServo(FASequenceManager aSequenceManager)
     : base(aSequenceManager)
 {
     MoveLoadingPos = CreateAction(aSequenceManager);
     MoveUnloadingPos = CreateAction(aSequenceManager);
     MoveInsertingPos = CreateAction(aSequenceManager);
 }
        public FATrayOutTransforServo(FASequenceManager aSequenceManager)
            : base(aSequenceManager)
        {
            MoveStandbyPosition = new FAPartAction();
            MoveTrayOut1Position = new FAPartAction();
            MoveTrayOut2Position = new FAPartAction();
            MoveTrayOut3Position = new FAPartAction();
            MoveTrayOut4Position = new FAPartAction();

            MoveStandbyPosition.SetActionMethod(DoMoveStandbyPositioin);
            MoveTrayOut1Position.SetActionMethod(DoMoveTrayOut1Position);
            MoveTrayOut2Position.SetActionMethod(DoMoveTrayOut2Position);
            MoveTrayOut3Position.SetActionMethod(DoMoveTrayOut3Position);
            MoveTrayOut4Position.SetActionMethod(DoMoveTrayOut4Position);

            MoveStandbyPosition.CreateSequence(aSequenceManager);
            MoveTrayOut1Position.CreateSequence(aSequenceManager);
            MoveTrayOut2Position.CreateSequence(aSequenceManager);
            MoveTrayOut3Position.CreateSequence(aSequenceManager);
            MoveTrayOut4Position.CreateSequence(aSequenceManager);

            MakeMoveStandbyPos();
            MakeMoveTrayOut1Position();
            MakeMoveTrayOut2Position();
            MakeMoveTrayOut3Position();
            MakeMoveTrayOut4Position();
        }
        public FADesiccantTransferServo(FASequenceManager aSequenceManager)
            : base(aSequenceManager)
        {
            MoveStandbyPos = new FAPartAction();
            MoveFrontPickPos = new FAPartAction();
            MoveRearPickPos = new FAPartAction();
            MovePlacePos = new FAPartAction();
            MoveDumpPos = new FAPartAction();
            MoveWastePickPos = new FAPartAction();

            MoveStandbyPos.SetActionMethod(DoMoveStandbyPos);
            MoveFrontPickPos.SetActionMethod(DoMoveFrontPickPos);
            MoveRearPickPos.SetActionMethod(DoMoveRearPickPos);
            MovePlacePos.SetActionMethod(DoMovePlacePos);
            MoveDumpPos.SetActionMethod(DoMoveDumpPos);
            MoveWastePickPos.SetActionMethod(DoMoveWastePickPos);

            MoveStandbyPos.CreateSequence(aSequenceManager);
            MoveFrontPickPos.CreateSequence(aSequenceManager);
            MoveRearPickPos.CreateSequence(aSequenceManager);
            MovePlacePos.CreateSequence(aSequenceManager);
            MoveDumpPos.CreateSequence(aSequenceManager);
            MoveWastePickPos.CreateSequence(aSequenceManager);

            MakeMoveStandbyPos();
            MakeMoveFrontPickPos();
            MakeMoveRearPos();
            MakeMovePlacePos();
        }
        public TrayTransferServo(FASequenceManager aSequenceManager)
            : base(aSequenceManager)
        {
            MoveStandbyPos = new FAPartAction();
            MovePickPos = new FAPartAction();
            MoveEmptyPickPos = new FAPartAction();
            MovePlacePos = new FAPartAction();
            MoveEmptyPlacePos = new FAPartAction();
            MoveStacker1Pos = new FAPartAction();
            MoveStacker2Pos = new FAPartAction();

            MoveStandbyPos.SetActionMethod(DoMoveStandbyPos);
            MovePickPos.SetActionMethod(DoMovePickPos);
            MoveEmptyPickPos.SetActionMethod(DoMoveEmptyPickPos);
            MovePlacePos.SetActionMethod(DoMovePlacePos);
            MoveEmptyPlacePos.SetActionMethod(DoMoveEmptyPlacePos);
            MoveStacker1Pos.SetActionMethod(DoMoveStacker1Pos);
            MoveStacker2Pos.SetActionMethod(DoMoveStacker1Pos);

            MoveStandbyPos.CreateSequence(aSequenceManager);
            MovePickPos.CreateSequence(aSequenceManager);
            MoveEmptyPickPos.CreateSequence(aSequenceManager);
            MovePlacePos.CreateSequence(aSequenceManager);
            MoveEmptyPlacePos.CreateSequence(aSequenceManager);
            MoveStacker1Pos.CreateSequence(aSequenceManager);
            MoveStacker2Pos.CreateSequence(aSequenceManager);

            MakeMoveStandbyPos();
            MakeMovePickPos();
            MakeMoveEmptyPickPos();
            MakeMovePlacePos();
            MakeMoveEmptyPlacePos();
            MakeStacker1Pos();
            MakeStacker2Pos();
        }
        public FABandingTrayServo(FASequenceManager aSequenceManager)
            : base(aSequenceManager)
        {
            MoveStandbyPosition = new FAPartAction();
            MoveTrayPush1StepPosition = new FAPartAction();
            MoveTrayPush2StepPosition = new FAPartAction();
            MoveTrayPush3StepPosition = new FAPartAction();
            MoveTrayPushOutPosition = new FAPartAction();

            MoveStandbyPosition.SetActionMethod(DoMoveToStandbyPosition);
            MoveTrayPush1StepPosition.SetActionMethod(DoMoveToTrayPush1StepPosition);
            MoveTrayPush2StepPosition.SetActionMethod(DoMoveToTrayPush2StepPosition);
            MoveTrayPush3StepPosition.SetActionMethod(DoMoveToTrayPush3StepPosition);
            MoveTrayPushOutPosition.SetActionMethod(DoMoveToTrayPushOutPosition);

            MoveStandbyPosition.CreateSequence(aSequenceManager);
            MoveTrayPush1StepPosition.CreateSequence(aSequenceManager);
            MoveTrayPush2StepPosition.CreateSequence(aSequenceManager);
            MoveTrayPush3StepPosition.CreateSequence(aSequenceManager);
            MoveTrayPushOutPosition.CreateSequence(aSequenceManager);

            MakeMoveStandbyPos();
            MakeTrayPush1StepPos();
            MakeTrayPush2StepPos();
            MakeTrayPush3StepPos();
            MakeTrayPushOutPos();
        }
        public FAIndicatorPickerServo(FASequenceManager aSequenceManager)
            : base(aSequenceManager)
        {
            MoveStandbyPos = new FAPartAction();
            MovePick1Pos = new FAPartAction();
            MovePick2Pos = new FAPartAction();
            MovePlacePos = new FAPartAction();
            MoveDumpPos = new FAPartAction();
            MoveReelInsertPos = new FAPartAction();

            MoveStandbyPos.SetActionMethod(DoMoveStandbyPos);
            MovePick1Pos.SetActionMethod(DoMovePick1Pos);
            MovePick2Pos.SetActionMethod(DoMovePick2Pos);
            MovePlacePos.SetActionMethod(DoMovePlacePos);
            MoveDumpPos.SetActionMethod(DoMoveDumpPos);
            MoveReelInsertPos.SetActionMethod(DoMoveReelInsertPos);

            MoveStandbyPos.CreateSequence(aSequenceManager);
            MovePick1Pos.CreateSequence(aSequenceManager);
            MovePick2Pos.CreateSequence(aSequenceManager);
            MovePlacePos.CreateSequence(aSequenceManager);
            MoveDumpPos.CreateSequence(aSequenceManager);
            MoveReelInsertPos.CreateSequence(aSequenceManager);

            MakeMoveStandbyPos();
            MakeMovePick1Pos();
            MakeMovePick2Pos();
            MakeMovePlacePos();
            MakeMoveDumpPos();
            MakeMoveReelInsertPos();
        }
        public FALabelPickerServo(FASequenceManager aSequenceManager)
            : base(aSequenceManager)
        {
            MoveStandbyPos = new FAPartAction();
            MoveLabelPickPos = new FAPartAction();
            MoveUpDownPos = new FAPartAction();
            MoveAttachPos = new FAPartAction();
            MoveSpecialLabelAttachPos = new FAPartAction();

            MoveStandbyPos.SetActionMethod(DoMoveStandbyPos);
            MoveLabelPickPos.SetActionMethod(DoMoveLabelPickPos);
            MoveUpDownPos.SetActionMethod(DoMoveUpDownPos);
            MoveAttachPos.SetActionMethod(DoMoveAttachPos);
            MoveSpecialLabelAttachPos.SetActionMethod(DoMoveSpecialLabelAttachPos);

            MoveStandbyPos.CreateSequence(aSequenceManager);
            MoveLabelPickPos.CreateSequence(aSequenceManager);
            MoveUpDownPos.CreateSequence(aSequenceManager);
            MoveAttachPos.CreateSequence(aSequenceManager);
            MoveSpecialLabelAttachPos.CreateSequence(aSequenceManager);

            MakeMoveStandbyPos();
            MakeMoveLabelPickPoss();
            MakeMoveUpDownPos();
            MakeAttachPos();
            MakeSpecialLabelAttachPos();
        }
 public FALabelPickerServo(FASequenceManager aSequenceManager)
     : base(aSequenceManager)
 {
     MoveStandbyPos = new FAPartAction();
     MoveLabelPickPos = new FAPartAction();
     MoveSamsungLabelUpPos = new FAPartAction();
     MoveSpecialLabelUpPos = new FAPartAction();
 }
 public FALabelBlockUpDownServo(FASequenceManager aSequenceManager)
     : base(aSequenceManager)
 {
     MoveLabelPickPos = CreateAction(aSequenceManager);
     MoveUpPos = CreateAction(aSequenceManager);
     MoveDownPos = CreateAction(aSequenceManager);
     MoveLabelScanPos = CreateAction(aSequenceManager);
 }
 public FALabelTransferServo(FASequenceManager aSequenceManager)
     : base(aSequenceManager)
 {
     MoveStandbyPos = CreateAction(aSequenceManager);
     MoveLabelPickPos = CreateAction(aSequenceManager);
     MoveLabelAttachToBoxPos = CreateAction(aSequenceManager);
     MoveLabelAttachToRemoverPos = CreateAction(aSequenceManager);
 }
 public FAPartSmallBoxInsertingUnitTransferServo(FASequenceManager aSequenceManager)
     : base(aSequenceManager)
 {
     MoveStandbyPos = CreateAction(aSequenceManager);
     MoveReceptionPos = CreateAction(aSequenceManager);
     MoveInsertingPos = CreateAction(aSequenceManager);
     MoveUnloadingPos = CreateAction(aSequenceManager);
 }
 public FAPartExtendRetract(FASequenceManager aSequenceManager)
     : base(aSequenceManager)
 {
     Extend.ActionName = "Extend";
     Retract.ActionName = "Retract";
     OnStatusDisplayName = StatusList.Extend.DisplayName;
     OffStatusDisplayName = StatusList.Retract.DisplayName;
 }
 public FAPartTrayElevatorServo(FASequenceManager aSequenceManager)
     : base(aSequenceManager)
 {
     MoveLoadingPos = CreateAction(aSequenceManager);
     MoveUnloadingPos = CreateAction(aSequenceManager);
     MoveScanFailTurnPos = CreateAction(aSequenceManager);
     MoveScanFailUnloadingPos = CreateAction(aSequenceManager);
 }
        public SubEquipment()
        {
            MaterialManagerInstance = new MaterialManager();
            PackingLogManager = new Manager.PackingLogManager();
            BackgroundSequenceManager = new FASequenceManager();
            BandingMachineSequenceManager = new FASequenceManager();

            VT8792MaterialManager.OnUpdate +=
                delegate(object sender, FAGenericEventArgs<string[]> e)
                {
                    PackingLogManager.WriteMaterialLog(e.Value);
                };

            OnChangedUser +=
                delegate(object sender, FAGenericEventArgs<Equipment.UserInfo> e)
                {
                    if (e.Value.Permission == Equipment.UserPermissionTypes.OPERATOR)
                        LastLoginOperator = e.Value;
                };

            _backgroundThread = new System.Threading.Thread(
                delegate(object obj)
                {
                    while (_backgroundThreadStopRequest == false)
                    {
                        try
                        {
                            if (VT8792MaterialManager != null)
                            {
                                var trayCount = System.IO.File.ReadAllText(System.IO.Path.Combine(ConfigClasses.GlobalConst.MATERIAL_PATH, "trayCount.txt"));
                                var trayCountArray = trayCount.Split(',');

                                if (trayCountArray.Length == 5)
                                {
                                    SetTrayCount(VT8792MaterialManager.Materials.TrayInTheTrayStacker1, trayCountArray[0]);
                                    SetTrayCount(VT8792MaterialManager.Materials.TrayInTheTrayStacker2, trayCountArray[1]);
                                    SetTrayCount(VT8792MaterialManager.Materials.TrayInTheTrayStacker3, trayCountArray[2]);
                                    SetTrayCount(VT8792MaterialManager.Materials.TrayInTheTrayStacker4, trayCountArray[3]);
                                    SetTrayCount(VT8792MaterialManager.Materials.TrayInTheTrayStacker5, trayCountArray[4]);
                                }
                            }
                        }
                        catch
                        {
                        }

                        System.Threading.Thread.Sleep(5000);
                    }
                });

            _backgroundThread.Start();

            GEM.GEMDefine.AccessClass();
            Utility.GEM.GEMManager.Instance.Initialize(Utility.GEM.CEID.ObjectList,
                Utility.GEM.SVID.ObjectList);
            Utility.GEM.GEMManager.Instance.GEM.OnRemoteCommand += GemOnRemoteCommand;
            Utility.GEM.GEMManager.Instance.Start();
        }
        public MainEquipment()
        {
            FirstLineSubSequenceManager = new FASequenceManager();
            SecondLineSubSequenceManager = new FASequenceManager();

            SWInfo = Forms.Main.WindowVersionInfo.Version;

            OnStatusChanged += StatusChangedEventHandler;
        }
Exemple #26
0
 public FASSDScanner(FASequenceManager aSequenceManager)
     : base(aSequenceManager)
 {
     //OnTriggerOn +=
     //    delegate(object sender, EventArgs e)
     //    {
     //        ClearBarcodes();
     //    };
 }
 public FAPartSmallBoxFormingUnitTransferServo(FASequenceManager aSequenceManager)
     : base(aSequenceManager)
 {
     MoveLoadingPos = CreateAction(aSequenceManager);
     MoveTopCoverFoldingTransferPos = CreateAction(aSequenceManager);
     MoveTopCoverFoldingPos = CreateAction(aSequenceManager);
     MoveBoxClosingPos = CreateAction(aSequenceManager);
     MoveBoxClosingTransferPos = CreateAction(aSequenceManager);
 }
 public FAExtendedCognexDataMan(FASequenceManager aSequenceManager)
     : base(aSequenceManager)
 {
     OnTriggerOn +=
         delegate(object sender, EventArgs e)
         {
             ClearBarcodes();
         };
 }
        public FAPrintronix5000TRPart(FASequenceManager aSequenceManager)
        {
            CheckStatus = new FASequence(aSequenceManager);

            CheckStatus.Steps.Add("Start", new StepInfo());
            CheckStatus.OnStart += EventHandlerOnCheckStatus;

            CheckStatus.Steps["Start"].StepIndex = CheckStatus.AddItem(GetStatus);
            CheckStatus.AddItem(ConfirmStatus);
        }
 public FASequence(FASequenceManager aSequenceManager)
 {
     FAConditionalSequenceItem startItem = new FAConditionalSequenceItem(this, StartSequence);
     FAConditionalSequenceItem terminateItem = new FAConditionalSequenceItem(this, TerminateSequence);
     _sequenceList.Add(startItem);
     _sequenceList.Add(terminateItem);
     CurrentItem = _sequenceList[0];
     aSequenceManager.Add(this);
     SequenceManager = aSequenceManager;
 }