public PolishPlatformPara()
 {
     machinePolish        = new PointF2();
     machinePolishcarmera = new PointF2();
     ResetPos             = new PointF4();
     EndPos = new PointF4();
 }
 public SolderPlatformPara()
 {
     machineSolder       = new PointF2();
     machineSoldercamera = new PointF2();
     ResetPos            = new PointF4();
     EndPos          = new PointF4();
     teachingMechine = new TeachingMechinePra();
     UseR            = false;
     PerTimesClean   = 1;
 }
        }                                                   // 在初始机械结构中,焊头在旋转中前状态时候的初始角度,
                                                            // 为了计算焊头的点转换成相机点的一种转换方式

        public TeachingMechinePra()
        {
            ZeroPostion             = new PointF2();
            ReversePostion          = new PointF2();
            RotatePostion           = new PointF2();
            RotatePstionCameraSize  = new PointF2();
            CameraRotatePostion     = new PointF2();
            HXT_OrgPostion          = new PointF4();
            RotatePstionHXT_Size    = new PointF2();
            RotatePostionStartAngle = 0;
            Radius = 0;
        }
예제 #4
0
        private void SaveProductData(ProductDef product)
        {
            Mark1  = product.MarkPoint[0];
            Mark2  = product.MarkPoint[1];
            Code   = product.CodePoint2;
            BackCT = product.BackCT;

            Mark1.X  = (float)Convert.ToDouble(Mark1X.Text);
            Mark1.Y  = (float)Convert.ToDouble(Mark1Y.Text);
            Mark2.X  = (float)Convert.ToDouble(Mark2X.Text);
            Mark2.Y  = (float)Convert.ToDouble(Mark2Y.Text);
            BackCT.X = (float)Convert.ToDouble(BackCTX.Text);
            BackCT.Y = (float)Convert.ToDouble(BackCTY.Text);
            Code.X   = (float)Convert.ToDouble(CodeX.Text);
            Code.Y   = (float)Convert.ToDouble(CodeY.Text);
        }
예제 #5
0
        public StickSysDataDef()
        {
            LiftCCDPos            = new PointF3();
            LiftNuzzlePos         = new PointF3();
            RightCCDPos           = new PointF3();
            RightNuzzlePos        = new PointF3();
            LiftNuzzleRotaCenter  = new PointF2();
            RightNuzzleRotaCenter = new PointF2();

            Liftcirclepoint  = new PointF3();
            Rightcirclepoint = new PointF3();
            LiftDownCCDPos   = new PointF3();
            RightDownCCDPos  = new PointF3();
            Lift000CCDPos    = new PointF3();
            Lift180CCDPos    = new PointF3();
            Right000CCDPos   = new PointF3();
            Right180CCDPos   = new PointF3();
        }
예제 #6
0
        private void RefreshTableList()
        {
            var Product = Database.Product.Inst.Stickdata.TrayData.ProductList[product_num];

            Mark1  = Product.MarkPoint[0];
            Mark2  = Product.MarkPoint[1];
            Code   = Product.CodePoint2;
            BackCT = Product.BackCT;


            Mark1X.Text  = Mark1.X.ToString();
            Mark1Y.Text  = Mark1.Y.ToString();
            Mark2X.Text  = Mark2.X.ToString();
            Mark2Y.Text  = Mark2.Y.ToString();
            BackCTX.Text = BackCT.X.ToString();
            BackCTY.Text = BackCT.Y.ToString();
            CodeX.Text   = Code.X.ToString();
            CodeY.Text   = Code.Y.ToString();

            dataGridView1.AutoGenerateColumns = false;
            BindingSource source = new BindingSource();

            source.DataSource        = Product.SiteList;
            dataGridView1.DataSource = source;
            dataGridView1.Columns[0].DataPropertyName           = "SitePoint_num";
            dataGridView1.Columns[0].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
            dataGridView1.Columns[0].DefaultCellStyle.Format    = "0";
            dataGridView1.Columns[1].DataPropertyName           = "X";
            dataGridView1.Columns[1].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
            dataGridView1.Columns[1].DefaultCellStyle.Format    = "00.000";
            dataGridView1.Columns[2].DataPropertyName           = "Y";
            dataGridView1.Columns[2].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
            dataGridView1.Columns[2].DefaultCellStyle.Format    = "00.000";
            dataGridView1.Columns[3].DataPropertyName           = "R";
            dataGridView1.Columns[3].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
            dataGridView1.Columns[3].DefaultCellStyle.Format    = "00.000";
            dataGridView1.Columns[4].DataPropertyName           = "Z";
            dataGridView1.Columns[4].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
            dataGridView1.Columns[4].DefaultCellStyle.Format    = "00.000";
        }
예제 #7
0
        private void button10_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("是否将当前位置设置为基准点?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Information) == DialogResult.Cancel)
            {
                return;
            }

            int     index = comboBox1.SelectedIndex;
            PointF2 f2    = new PointF2();
            PointF  point = new PointF();

            switch (_id)
            {
            case LEFT_SOLDER:
                //point = VisionProject.Instance.GetSolderLeftShapeDeviation(index);
                _SolderPos[index].Vpos.X = FormMain.RunProcess.movedriverZm.CurrentPos.FloatValue[(int)AxisDef.AxX1];
                _SolderPos[index].Vpos.Y = FormMain.RunProcess.movedriverZm.CurrentPos.FloatValue[(int)AxisDef.AxY1];
                break;

            case RIGHT_SOLSER:
                //point = VisionProject.Instance.GetSolderRightShapeDeviation(index);
                _SolderPos[index].Vpos.X = FormMain.RunProcess.movedriverZm.CurrentPos.FloatValue[(int)AxisDef.AxX2];
                _SolderPos[index].Vpos.Y = FormMain.RunProcess.movedriverZm.CurrentPos.FloatValue[(int)AxisDef.AxY2];
                break;

            case LEFT_POLISH:
                //point = VisionProject.Instance.GetPolishLeftShapeDeviation(index);
                _polishPos[index].Vpos.X = FormMain.RunProcess.movedriverZm.CurrentPos.FloatValue[(int)AxisDef.AxX3];
                _polishPos[index].Vpos.Y = FormMain.RunProcess.movedriverZm.CurrentPos.FloatValue[(int)AxisDef.AxY1];

                break;

            case RIGHT_POLISH:
                //point = VisionProject.Instance.PolishRightShapeDeviation(index);
                _polishPos[index].Vpos.X = FormMain.RunProcess.movedriverZm.CurrentPos.FloatValue[(int)AxisDef.AxX3];
                _polishPos[index].Vpos.Y = FormMain.RunProcess.movedriverZm.CurrentPos.FloatValue[(int)AxisDef.AxY2];
                break;
            }
        }
 public SolderPos()
 {
     Vpos      = new PointF2();
     solderDef = new SolderDef();
     pos       = new List <SolderPosdata>();
 }
 public PolishPos()
 {
     Vpos      = new PointF2();
     polishDef = new PolishDef();
     pos       = new List <PolishPosdata>();
 }
예제 #10
0
 public GiveUpParaDef()
 {
     LiftGiveUpPos  = new PointF2();
     RightGiveUpPos = new PointF2();
 }