Пример #1
0
        private List <PCKInfo> ConvertToPckList(List <PCKStandardInfo> standardList)
        {
            List <PCKInfo> list = new List <PCKInfo>();

            foreach (var item in standardList)
            {
                PCKInfo pckInfo = new PCKInfo();
                pckInfo.AxisType      = item.AxisType;
                pckInfo.X             = item.X;
                pckInfo.Y             = item.Y;
                pckInfo.W             = item.W;
                pckInfo.B             = item.B;
                pckInfo.C             = item.C;
                pckInfo.StandardValue = item.StandardValue;
                pckInfo.RealValue     = null;
                list.Add(pckInfo);
            }
            return(list);
        }
Пример #2
0
 private void MoveLNSCheck(PCKInfo current, Action action)
 {
     if (lnsCheckCount == 0 && isLnsMoved == false)
     {
         inputInfo = new SingleMoveInfo()
         {
             X = current.X,
             Y = current.Y,
             W = CurrInfo.LNSCheckSafeWHeight + CurrInfo.GetActPosW(current.AxisType) - CurrInfo.LogPosW,
             B = current.B,
             C = current.C,
             AxisType = current.AxisType
         };
         card.moveState = 0;
         isLnsMove = true;
         isInput = true;
     }
     else if (isLnsMoved)
     {
         if (lnsCheckCount == 0 && !IOHelper.IsLockCheck() && !card.IsMove(AxisSet.AxisW))
         {
             if (card.IsLockStatus()) //第一遍的时候检测是否已锁存
             {
                 card.ClearLockPosition();
             }
             card.isOperate = false;
             card.Operate(AxisSet.AxisW, -100000, OtherSet.LNSDownSpeed1 * 1000 / 60);
             lnsCheckCount = 1;
         }
         else if (lnsCheckCount == 1 && IOHelper.IsLockCheck() && card.IsMove(AxisSet.AxisW))
         {
             card.OperateStopRun();
             while (card.IsMove(AxisSet.AxisW))
                 Thread.Sleep(1);
             card.isOperate = false;
             card.ClearLockPosition();
             card.Operate(AxisSet.AxisW, OtherSet.LNSBackHeight * 1000, OtherSet.LNSBackSpeed * 1000 / 60);
             lnsCheckCount = 2;
         }
         else if (lnsCheckCount == 2 && !IOHelper.IsLockCheck() && !card.IsMove(AxisSet.AxisW))
         {
             card.isOperate = false;
             card.Operate(AxisSet.AxisW, -100000, OtherSet.LNSDownSpeed2 * 1000 / 60);
             lnsCheckCount = 3;
         }
         else if (lnsCheckCount == 3 && IOHelper.IsLockCheck() && card.IsMove(AxisSet.AxisW))
         {
             card.OperateStopRun();
             while (card.IsMove(AxisSet.AxisW))
                 Thread.Sleep(1);
             action();
             card.isOperate = false;
             card.Operate(AxisSet.AxisW, (int)((CurrInfo.LNSCheckSafeWHeight - CurrInfo.LogPosW) * 1000), OtherSet.LNSBackSpeed * 1000 / 60);
             lnsCheckCount = 0;
             isLnsMoved = false;
         }
     }
 }
Пример #3
0
 private List<PCKInfo> ConvertToPckList(List<PCKStandardInfo> standardList)
 {
     List<PCKInfo> list = new List<PCKInfo>();
     foreach (var item in standardList)
     {
         PCKInfo pckInfo = new PCKInfo();
         pckInfo.AxisType = item.AxisType;
         pckInfo.X = item.X;
         pckInfo.Y = item.Y;
         pckInfo.W = item.W;
         pckInfo.B = item.B;
         pckInfo.C = item.C;
         pckInfo.StandardValue = item.StandardValue;
         pckInfo.RealValue = null;
         list.Add(pckInfo);
     }
     return list;
 }