コード例 #1
0
        /// <summary>
        /// Home the specified axis
        /// </summary>
        /// <param name="Axis"></param>
        public async void Home(IAxis Axis)
        {
            if (GetSystemState() == SystemState.IDLE)
            {
                SetSystemState(SystemState.BUSY);
                bool ret = await Task.Run <bool>(() => Axis.Home());

                SetSystemState(SystemState.IDLE);
            }
        }
コード例 #2
0
 public void HomeZAxis()
 {
     if (HSTMachine.Workcell.HSTSettings.Install.OperationMode == OperationMode.Simulation)
     {
         Thread.Sleep(CommonFunctions.SIMULATION_DELAY);
         return;
     }
     try
     {
         if (!_workcell.IsIgnoreHomeAxisForByPass)
         {
             _workcell._a3200HC.FaultAcknowlegde(_InputEndEffectorZAxis);
             _InputEndEffectorZAxis.Enable(true);
             Thread.Sleep(500);
             _InputEndEffectorZAxis.Home(_actuatorHomeTimeout);
             Thread.Sleep(1000);
         }
     }
     catch (Exception ex)
     {
         HSTException.Throw(HSTErrors.InputHandlerZAxisHomeError, ex);
     }
 }