Beispiel #1
0
        public bool IsVacumnSensor10PartsActive()
        {
            All10PartsPicked = _diOutputEndEffectorPnpPresent1.Get() == DigitalIOState.On &&
                               _diOutputEndEffectorPnpPresent2.Get() == DigitalIOState.On;

            return(All10PartsPicked);
        }
Beispiel #2
0
 public bool IsInputStationHoldCarrier()
 {
     if (HSTMachine.Workcell.HSTSettings.Install.OperationMode == OperationMode.Simulation ||
         (HSTMachine.Workcell.HSTSettings.Install.OperationMode == OperationMode.Bypass && HSTMachine.Workcell.HSTSettings.Install.BypassInputAndOutputEEsPickAndPlace == true))
     {
         Thread.Sleep(CommonFunctions.SIMULATION_DELAY);
         return(false);
     }
     return(_diInputStationInPosition.Get() == DigitalIOState.On ? true : false);
 }
Beispiel #3
0
 public bool IsBufferStationHoldCarrier()
 {
     if (HSTMachine.Workcell.HSTSettings.Install.OperationMode == OperationMode.Simulation ||
         (HSTMachine.Workcell.HSTSettings.Install.OperationMode == OperationMode.DryRun && HSTMachine.Workcell.HSTSettings.Install.DryRunWithoutBoat))
     {
         Thread.Sleep(CommonFunctions.SIMULATION_DELAY);
         if (_workcell.IsCarrierInBufferZone)
         {
             return(true);
         }
         else
         {
             return(false);
         }
     }
     return(_diBufferStationInPosition.Get() == DigitalIOState.On ? true : false);
 }
Beispiel #4
0
        // Internal methods ----------------------------------------------------
        private void CheckDigitalInputState(DigitalIOState workingState)
        {
            lock (ServiceManager.ErrorHandler)
            {
                if (HSTMachine.Workcell.HSTSettings.Install.OperationMode != OperationMode.Simulation)
                {
                    if (this.TriggerError)
                    {
                        PostErrorMessage();
                    }
                    else
                    {
                        if (_isAutoClearError)
                        {
                            ClearErrorMessage();
                        }
                    }
                    return;
                }

                if (_digitalInput == null)
                {
                    return;
                }

                _workingState = workingState;

                if (_digitalInput.Get() != workingState /*&& !isBypassedOn*/)
                {
                    PostErrorMessage();
                }
                else
                {
                    if (_isAutoClearError)
                    {
                        ClearErrorMessage();
                    }
                }
            }
        }
 public bool isGroundMasterWorking()
 {
     return(_diGroundMasterOk.Get() == DigitalIOState.On);
 }
Beispiel #6
0
 public bool IsInputStationCarrierClampOpen()
 {
     return(_diInputCarrierClampOpen.Get() == DigitalIOState.On ? true : false);
 }
Beispiel #7
0
 public bool IsInputStationClampRotateCwOpen()
 {
     return(_diInputStationClampRotateCwOpen.Get() == DigitalIOState.On ? true : false);
 }
Beispiel #8
0
 public bool IsInputStationClampForward()
 {
     return(_diInputStationClampForward.Get() == DigitalIOState.On ? true : false);
 }
Beispiel #9
0
 public bool IsOutputClampOpenDetect()
 {
     return(_diOutputStationClampOpenDetect.Get() == DigitalIOState.On ? true : false);
 }