Esempio n. 1
0
 private void buttonRead_Click(object sender, EventArgs e)
 {
     tbOutput.AppendText("Read Coordinates.\n");
     TPos position = new TPos();
     getPosition(ref position);
     numericUpDownX.Value =(decimal)position.X;
     numericUpDownY.Value = (decimal)position.Y;
     numericUpDownZ.Value = (decimal)position.Z;
     numericUpDownPhi.Value = (decimal)position.Phi;
     numericUpDownTheta.Value = (decimal)position.Theta;
     numericUpDownPsi.Value = (decimal)position.Psi;
 }
Esempio n. 2
0
        private void buttonRead_Click(object sender, EventArgs e)
        {
            tbOutput.AppendText("Read Coordinates.\n");
            TPos position = new TPos();

            getPosition(ref position);
            numericUpDownX.Value     = (decimal)position.X;
            numericUpDownY.Value     = (decimal)position.Y;
            numericUpDownZ.Value     = (decimal)position.Z;
            numericUpDownPhi.Value   = (decimal)position.Phi;
            numericUpDownTheta.Value = (decimal)position.Theta;
            numericUpDownPsi.Value   = (decimal)position.Psi;
        }
Esempio n. 3
0
 private void buttonGo_Click(object sender, EventArgs e)
 {
     TPos position = new TPos();
     position.X = (double)numericUpDownX.Value;
     position.Y = (double)numericUpDownY.Value;
     position.Z = (double)numericUpDownZ.Value;
     position.Phi = (double)numericUpDownPhi.Value;
     position.Theta = (double)numericUpDownTheta.Value;
     position.Psi = (double)numericUpDownPsi.Value;
     if (checkBoxLM.Checked == true)
     {
         tbOutput.AppendText("Move Linear.. ");
         moveToPosLin(ref position, (int)numericUpDownVel.Value, 1);
         tbOutput.AppendText("Done.\n");
     }
     else
     {
         tbOutput.AppendText("Move PTP.. ");
         moveToPos(ref position, (int)numericUpDownVel.Value, 1);
         tbOutput.AppendText("Done.\n");
     }
 }
Esempio n. 4
0
        private void buttonGo_Click(object sender, EventArgs e)
        {
            TPos position = new TPos();

            position.X     = (double)numericUpDownX.Value;
            position.Y     = (double)numericUpDownY.Value;
            position.Z     = (double)numericUpDownZ.Value;
            position.Phi   = (double)numericUpDownPhi.Value;
            position.Theta = (double)numericUpDownTheta.Value;
            position.Psi   = (double)numericUpDownPsi.Value;
            if (checkBoxLM.Checked == true)
            {
                tbOutput.AppendText("Move Linear.. ");
                moveToPosLin(ref position, (int)numericUpDownVel.Value, 1);
                tbOutput.AppendText("Done.\n");
            }
            else
            {
                tbOutput.AppendText("Move PTP.. ");
                moveToPos(ref position, (int)numericUpDownVel.Value, 1);
                tbOutput.AppendText("Done.\n");
            }
        }
Esempio n. 5
0
 public static extern short  GT_MachineTransformation(short crd, int posType, ref double pPrePos, ref double pPos, ref int pPosNum, ref TPos pReturnPos);
Esempio n. 6
0
 static extern int moveToPosLin(ref TPos position, int vel, int accel);
Esempio n. 7
0
 static extern int getPosition(ref TPos position);
Esempio n. 8
0
 static extern int moveToPosLin(ref TPos position, int vel, int accel);
Esempio n. 9
0
 static extern int getPosition(ref TPos position);