/**************** Axis Controller movement method **************/ public void OTCXMove(int step) { if (isPowerOn && (otcBtn.XYZRelBtn || otcBtn.XRelBtn)) { if (step >= 0) { for (int i = 0; i < step; i++) { otcxyz.XStepUp(); } } else { for (int i = 0; i < -step; i++) { otcxyz.XStepDown(); } } } }
private void button4_Click_1(object sender, EventArgs e) { otcxyz.XStepDown(); RefreshData(); }