예제 #1
0
        /// <summary>
        ///     停真空
        /// </summary>
        public void Stop()
        {
            //if (State == VacuoStates.None) return;

            if (_brokenIo == null)
            {
                _suckIo.Value = false;
            }
            else
            {
                _suckIo.Value   = false;
                _brokenIo.Value = false;
            }
            if (_keepIo != null)
            {
                _keepIo.Value = true;
            }
            State = VacuoStates.None;
        }
예제 #2
0
        /// <summary>
        ///     破真空
        /// </summary>
        public void Broken()
        {
            if (State == VacuoStates.Broken)
            {
                return;
            }

            if (_brokenIo == null)
            {
                _suckIo.Value = false;
            }
            else
            {
                _suckIo.Value   = false;
                _brokenIo.Value = true;
            }
            if (_keepIo != null)
            {
                _keepIo.Value = true;
            }
            State = VacuoStates.Broken;
        }
예제 #3
0
        /// <summary>
        ///     吸真空
        /// </summary>
        public void Suck()
        {
            if (State == VacuoStates.Sucked)
            {
                return;
            }

            if (_brokenIo == null)
            {
                _suckIo.Value = true;
            }
            else
            {
                _brokenIo.Value = false;
                _suckIo.Value   = true;
            }
            if (_keepIo != null)
            {
                _keepIo.Value = false;
            }

            State = VacuoStates.Sucked;
        }