Ejemplo n.º 1
0
        private void checkBoxB_CheckedChanged(object sender, EventArgs e)
        {
            USB.X_StepMotor_Driver_Enable = checkBoxX.Checked;
            USB.Y_StepMotor_Driver_Enable = checkBoxY.Checked;
            USB.TQA_Driver_Enable         = checkBoxT.Checked;
            USB.Cycle_Drill = checkBoxD.Checked;

            if (!CheckBoxInhibit)
            {
                USB.Transfer();
            }
        }
Ejemplo n.º 2
0
        private bool Initiate_Drill_From_Top(int numTries, int TriesPeriod)
        {
            var success = true;

            USB.Cycle_Drill = true;

            while (USB.TopSwitch && success)
            {
                USB.Transfer();
                success = USB.IsOpen && (numTries >= 0);
                numTries--;
                Thread.Sleep(TriesPeriod);
            }
            return(success);
        }