コード例 #1
0
 private void GetData()
 {
     try
     {
         HapondMotorParam_Auto data = new HapondMotorParam_Auto();
         if (EpsonLCD.GetMotionSetting(ref data))
         {
             comboBoxControlMode.SelectedIndex  = (int)data.sysMode;
             comboBoxMotorType.SelectedIndex    = (int)data.motorType;
             numericUpDownTorque.Value          = data.torValue;
             numericUpDownPrintHeadHeight.Value = data.headAdjustHei;
             numericUpDownLV.Value            = data.torSwitchStepVal;
             numericUpDownLT.Value            = data.torSwitchStepTime;
             numericUpDownTimeout.Value       = data.StepTimeOut;
             comboBoxSwitchType.SelectedIndex = (int)data.SwitchType;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }