Beispiel #1
0
 public void SetRobotPamram(int Speed, int JointDistance, int CartesianDistance)
 {
     if (m_UniqueRobot.IsConnected())
     {
         m_UniqueRobot.SetSpeed(Speed);
         m_UniqueRobot.SetJointDistance(JointDistance);
         m_UniqueRobot.SetCartesianDistance(CartesianDistance);
     }
 }
Beispiel #2
0
 private void CTextBoxRobotMoveSpeed_TextChanged(object sender, EventArgs e)
 {
     try
     {
         int speed = Convert.ToInt32(CTextBoxRobotMoveSpeed.Text);
         if (speed < RobotBase.MIN_SPEED)
         {
             speed = RobotBase.MIN_SPEED;
             CTextBoxRobotMoveSpeed.Text = speed.ToString();
         }
         else if (speed > RobotBase.MAX_SPEED)
         {
             speed = RobotBase.MAX_SPEED;
             CTextBoxRobotMoveSpeed.Text = speed.ToString();
         }
         m_ManualRobot.SetSpeed(speed);
         Profile.m_Config.RobotMoveSpeed = speed;
     }
     catch (System.Exception ex)
     {
         return;
     }
 }