Ejemplo n.º 1
0
        private short AddCrd2Space()
        {
            short rtn = 0;

            this.card.Executor.GetCrdSpace(this.card.CardId, this.TrcPrm.CsId, out space);
            int count = (space < MAX_ONCE) ? space : MAX_ONCE;

            for (int i = 0; i < count; i++)
            {
                if (this.crdQueue.Count > 0)
                {
                    ICrdable crd = this.crdQueue.Dequeue();
                    switch (crd.Type)
                    {
                    case CrdType.ArcXYC:
                        CrdArcXYC crdArcXYC = crd as CrdArcXYC;
                        rtn = this.AddCrdArcXYC(crdArcXYC);
                        break;

                    case CrdType.ArcXYR:
                        CrdArcXYR crdArcXYR = crd as CrdArcXYR;
                        rtn = this.AddCrdArcXYR(crdArcXYR);
                        break;

                    case CrdType.BufIO:
                        rtn = this.AddCrdBufIO(crd as CrdBufIO);
                        break;

                    case CrdType.Delay:
                        rtn = this.AddCrdDelay(crd as CrdDelay);
                        break;

                    case CrdType.LnXY:
                        CrdLnXY crdLnXY = crd as CrdLnXY;
                        rtn = this.AddCrdLnXY(crdLnXY);
                        break;

                    case CrdType.XYGear:
                        CrdXYGear crdXYGear = crd as CrdXYGear;
                        rtn = this.AddXYGear(crdXYGear);
                        break;

                    case CrdType.BufMove:
                        rtn = this.AddBufMove(crd as CrdBufMove);
                        break;
                    }
                }
                else
                {
                    break;
                }
            }
            return(rtn);
        }
Ejemplo n.º 2
0
        private void AddCrd2Space()
        {
            this.card.Executor.GetCrdSpace(this.card.CardId, this.TrcPrm.CsId, out space);
            int count = (space < MAX_ONCE) ? space : MAX_ONCE;

            for (int i = 0; i < count; i++)
            {
                if (this.crdQueue.Count > 0)
                {
                    ICrdable crd = this.crdQueue.Dequeue();
                    switch (crd.Type)
                    {
                    case CrdType.ArcXYC:
                        CrdArcXYC crdArcXYC = crd as CrdArcXYC;
                        this.AddCrdArcXYC(crdArcXYC);
                        break;

                    case CrdType.ArcXYR:
                        CrdArcXYR crdArcXYR = crd as CrdArcXYR;
                        this.AddCrdArcXYR(crdArcXYR);
                        break;

                    case CrdType.BufIO:
                        this.AddCrdBufIO(crd as CrdBufIO);
                        break;

                    case CrdType.Delay:
                        this.AddCrdDelay(crd as CrdDelay);
                        break;

                    case CrdType.LnXY:
                        CrdLnXY crdLnXY = crd as CrdLnXY;
                        this.AddCrdLnXY(crdLnXY);
                        break;

                    case CrdType.LnXYR:
                        CrdLnXYR crdLnXYA = crd as CrdLnXYR;
                        this.AddCrdLnXYA(crdLnXYA);
                        break;
                    }
                }
                else
                {
                    break;
                }
            }
        }
Ejemplo n.º 3
0
        private void AddCrd2Space()
        {
            this.card.Executor.GetCrdSpace(this.card.CardId, this.TrcPrm.CsId, out space);
            int count = (space < MAX_ONCE) ? space : MAX_ONCE;

            for (int i = 0; i < count; i++)
            {
                if (this.crdQueue.Count > 0)
                {
                    ICrdable crd = this.crdQueue.Dequeue();
                    switch (crd.Type)
                    {
                    case CrdType.ArcXYC:
                        CrdArcXYC crdArcXYC = crd as CrdArcXYC;
                        this.AddCrdArcXYC(crdArcXYC);
                        break;

                    case CrdType.ArcXYR:
                        CrdArcXYR crdArcXYR = crd as CrdArcXYR;
                        this.AddCrdArcXYR(crdArcXYR);
                        break;

                    case CrdType.BufIO:
                        this.AddCrdBufIO(crd as CrdBufIO);
                        break;

                    case CrdType.Delay:
                        this.AddCrdDelay(crd as CrdDelay);
                        break;

                    case CrdType.LnXY:
                        CrdLnXY crdLnXY = crd as CrdLnXY;
                        this.AddCrdLnXY(crdLnXY);
                        break;
                    }
                }
                else
                {
                    //没有插补数据了一次性将前瞻缓存区数据塞到插补缓存区
                    this.card.Executor.GT_CrdData(this.card.CardId, this.InitLoodPrm.crd, System.IntPtr.Zero, this.InitLoodPrm.fifo);
                    break;
                }
            }
        }
Ejemplo n.º 4
0
        private short addCrd(ICrdable crd)
        {
            short rtn = 0;

            switch (crd.Type)
            {
            case CrdType.ArcXYC:
                CrdArcXYC crdArcXYC = crd as CrdArcXYC;
                rtn = this.addCrdArcXYC(crdArcXYC);
                break;

            case CrdType.ArcXYR:
                CrdArcXYR crdArcXYR = crd as CrdArcXYR;
                rtn = this.addCrdArcXYR(crdArcXYR);
                break;

            case CrdType.BufIO:
                rtn = this.addCrdBufIO(crd as CrdBufIO);
                break;

            case CrdType.Delay:
                rtn = this.addCrdDelay(crd as CrdDelay);
                break;

            case CrdType.LnXY:
                CrdLnXY crdLnXY = crd as CrdLnXY;
                rtn = this.addCrdLnXY(crdLnXY);
                break;

            case CrdType.XYGear:
                CrdXYGear crdXYGear = crd as CrdXYGear;
                rtn = this.addXYGear(crdXYGear);
                break;

            case CrdType.BufMove:
                rtn = this.addBufMove(crd as CrdBufMove);
                break;
            }
            return(rtn);
        }
Ejemplo n.º 5
0
 public CommandMoveTrcXYZ(Axis axisX, Axis axisY, Axis axisR, MoveTrcPrm3Axis trcPrm, ICrdable crd, int cardType)
     : this(axisX, axisY, axisR, trcPrm, new List <ICrdable>() { crd }, cardType)
 {
 }
Ejemplo n.º 6
0
 public CommandMoveTrcCmp2d(Axis axisX, Axis axisY, MoveTrcPrm trcPrm, ICrdable crd, short chn, IList <PointD> cmp2dPoints)
     : this(axisX, axisY, trcPrm, new List <ICrdable>() { crd }, chn, cmp2dPoints)
 {
 }
Ejemplo n.º 7
0
 public CommandMoveTrc(Axis axisX, Axis axisY, MoveTrcPrm trcPrm, ICrdable crd, Action starting)
     : this(axisX, axisY, trcPrm, crd)
 {
     this.Starting = starting;
 }
Ejemplo n.º 8
0
 public CommandMoveTrc(Axis axisX, Axis axisY, MoveTrcPrm trcPrm, ICrdable crd)
     : this(axisX, axisY, trcPrm, new List <ICrdable>() { crd })
 {
 }
Ejemplo n.º 9
0
 public CommandMoveTrc4Axis(Axis axisX, Axis axisY, Axis axisA, Axis axisB, MoveTrcPrm4Axis trcPrm, ICrdable crd, Action starting, int cardType)
     : this(axisX, axisY, axisA, axisB, trcPrm, crd, cardType)
 {
     this.Starting = starting;
 }
Ejemplo n.º 10
0
 public CommandMoveTrc4Axis(Axis axisX, Axis axisY, Axis axisA, Axis axisB, MoveTrcPrm4Axis trcPrm, ICrdable crd, int cardType)
     : this(axisX, axisY, axisA, axisB, trcPrm, new List <ICrdable>() { crd }, cardType)
 {
 }
Ejemplo n.º 11
0
 public BufFluidItem(ICrdable crd) : this(crd, null)
 {
 }
Ejemplo n.º 12
0
 public BufFluidItem(ICrdable crd, List <PointD> points)
 {
     this.Crd    = crd;
     this.Points = points;
 }