Exemple #1
0
        public Frm_Machine(BoardCtrllerManager movedriverZm, TeachingMechinePra TeachingMechinePra, UsingPlatformSelect usingPlatform)
        {
            InitializeComponent();


            this.movedriverZm    = movedriverZm;
            this.TeachingMechine = TeachingMechinePra;
            if (usingPlatform == UsingPlatformSelect.Left)
            {
                this.xID = (int)AxisDef.AxX1;
                this.yID = (int)AxisDef.AxY1;
                this.zID = (int)AxisDef.AxZ1;
                this.rID = (int)AxisDef.AxR1;
                this.tID = (int)AxisDef.AxT1;
                _id      = 0;
                SafeZ    = FormMain.RunProcess.LogicData.slaverData.basics.Safe_ZL;
            }
            else
            {
                this.xID = (int)AxisDef.AxX2;
                this.yID = (int)AxisDef.AxY2;
                this.zID = (int)AxisDef.AxZ2;
                this.rID = (int)AxisDef.AxR2;
                this.tID = (int)AxisDef.AxT2;
                _id      = 1;
                SafeZ    = FormMain.RunProcess.LogicData.slaverData.basics.Safe_ZR;
            }
            Binding();
        }
        public List <Axis> _AxisList;                                         //轴参数

        public void SetAxisList(BoardCtrllerManager movedriverZm, List <Axis> AxisList)
        {
            this._movedriverZm = movedriverZm;
            this._AxisList     = AxisList;


            LoadtreeView1();
        }
        }                                 //打磨接口
        #endregion

        public LogicAPIDef(BoardCtrllerManager movedriverZm)
        {
            StopWatch_KeepAlive.Restart();
            this.movedriverZm = movedriverZm;

            solderTin[0] = new SolderTin(this.movedriverZm, 4400);
            solderTin[1] = new SolderTin(this.movedriverZm, 4800);

            PlatformMove[0] = new PlatformMove(this.movedriverZm, 1520);
            PlatformMove[1] = new PlatformMove(this.movedriverZm, 1560);

            rinse[0] = new Rinse(this.movedriverZm, 4500);
            rinse[1] = new Rinse(this.movedriverZm, 4900);

            reversals[0] = new Reversal(this.movedriverZm, 4612);
            reversals[1] = new Reversal(this.movedriverZm, 5012);

            polishcameras = new Polishcamera(this.movedriverZm, 1608);

            polish = new Polish(this.movedriverZm, 5200);
        }
 public MotionPlatform(BoardCtrllerManager board, int axX, int axY)
 {
     movedriverZm = board;
     AxisX        = axX;
     AxisY        = axY;
 }
Exemple #5
0
 public Stopwatch StatusOT = new Stopwatch(); //状态步骤定时器
 public BasicApiDef(BoardCtrllerManager movedriverZm, ushort Addr)
 {
     this.movedriverZm = movedriverZm;
     this.Addr         = Addr;
 }