private void numericUpDownChangeWork_ValueChanged(object sender, EventArgs e) { int maxWorkNumber = 7; if (numericUpDownChangeWork.Value > maxWorkNumber) { numericUpDownChangeWork.Value = maxWorkNumber; } try { Robot.Change(string.Format("WORK{0}", numericUpDownChangeWork.Value)); // Change the Work Offset } catch (Exception ex) { ShowError("Change WORK", ex); } }
public void ChangeTool(int index) { robot.Change("Tool" + index); OnLogEvent("Robot: Change Tool" + index); }