Beispiel #1
0
 private short AddCrdLnXYA(CrdLnXYR crd)
 {
     return(this.card.Executor.AddCrdLnXYA(
                this.card.CardId,
                this.TrcPrm.CsId,
                this.Axes[0].ConvertPos2Card(crd.EndPosX),
                this.Axes[1].ConvertPos2Card(crd.EndPosY),
                this.Axes[2].ConvertPos2Card(crd.EndPosR),
                this.Axes[0].ConvertVel2Card(crd.Vel),
                crd.Acc,
                this.Axes[0].ConvertVel2Card(crd.VelEnd)));
 }
Beispiel #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;
                }
            }
        }