/// <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; }
/// <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; }
/// <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; }