/// <summary>
 /// 实时位置显示
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void timer1_Tick(object sender, EventArgs e)
 {
     checkstep.Temp = robot1.Step;
     if (board_num > 0)
     {
         double[] q1 = new double[6];
         q1 = robot1.GetPositionAngle();
         label_x_position.Text = (((double)((int)(q1[0] * 100))) / 100).ToString();
         label_y_position.Text = (((double)((int)(q1[1] * 100))) / 100).ToString();
         label_z_position.Text = (((double)((int)(q1[2] * 100))) / 100).ToString();
         label_a_position.Text = (((double)((int)(q1[3] * 100))) / 100).ToString();
         label_b_position.Text = (((double)((int)(q1[4] * 100))) / 100).ToString();
         label_c_position.Text = (((double)((int)(q1[5] * 100))) / 100).ToString();
     }
 }
 /// <summary>
 /// 实时位置显示
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void timer1_Tick(object sender, EventArgs e)
 {
     robot1.Out4_Value = LTDMC.dmc_read_outbit(robot1.Card_ID, 4);
     robot1.Out5_Value = LTDMC.dmc_read_outbit(robot1.Card_ID, 5);
     checkstep.Temp    = robot1.Step;
     if (board_num > 0)
     {
         double[] q1 = new double[6];
         q1 = robot1.GetPositionAngle();
         label_x_position.Text = (((double)((int)(q1[0] * 100))) / 100).ToString();
         label_y_position.Text = (((double)((int)(q1[1] * 100))) / 100).ToString();
         label_z_position.Text = (((double)((int)(q1[2] * 100))) / 100).ToString();
         label_a_position.Text = (((double)((int)(q1[3] * 100))) / 100).ToString();
         label_b_position.Text = (((double)((int)(q1[4] * 100))) / 100).ToString();
         label_c_position.Text = (((double)((int)(q1[5] * 100))) / 100).ToString();
     }
 }