|
@@ -66,7 +66,7 @@ namespace CyberX8_RT.Modules.Prewet
|
|
|
public void Abort()
|
|
|
{
|
|
|
_linMotAxis.StopOperation("", null);
|
|
|
- _prewetDevice.PumpDisableOperation("pump disable", null);
|
|
|
+ _prewetDevice.PumpValveClose();
|
|
|
Runner.Stop("Manual Abort");
|
|
|
}
|
|
|
/// <summary>
|
|
@@ -97,22 +97,22 @@ namespace CyberX8_RT.Modules.Prewet
|
|
|
LOG.WriteLog(eEvent.ERR_PREWET, Module, "reset linmot error");
|
|
|
return false;
|
|
|
}
|
|
|
- _prewetDevice.PrewetPumpData.PumpSpeedAuto = true;
|
|
|
+ //_prewetDevice.PrewetPumpData.PumpSpeedAuto = true;
|
|
|
//更新Pump status状态
|
|
|
- string statusContent = _prewetDevice.PrewetPumpData.PumpStatus ? "On" : "Off";
|
|
|
- _prewetDevice.PrewetPumpData.PumpModel = "Auto";
|
|
|
- _prewetDevice.PrewetPumpData.PumpStatusContent = $"{_prewetDevice.PrewetPumpData.PumpModel}: {statusContent}";
|
|
|
+ //string statusContent = _prewetDevice.PrewetPumpData.PumpStatus ? "On" : "Off";
|
|
|
+ //_prewetDevice.PrewetPumpData.PumpModel = "Auto";
|
|
|
+ //_prewetDevice.PrewetPumpData.PumpStatusContent = $"{_prewetDevice.PrewetPumpData.PumpModel}: {statusContent}";
|
|
|
|
|
|
- result = _prewetDevice.PumpSpeed();
|
|
|
- if (!result)
|
|
|
- {
|
|
|
- LOG.WriteLog(eEvent.ERR_PREWET, Module, "pump speed error");
|
|
|
- return false;
|
|
|
- }
|
|
|
- bool pumpEnableResult = _prewetDevice.PumpEnableOperation("", null);
|
|
|
+ //result = _prewetDevice.PumpSpeed();
|
|
|
+ //if (!result)
|
|
|
+ //{
|
|
|
+ // LOG.WriteLog(eEvent.ERR_PREWET, Module, "pump speed error");
|
|
|
+ // return false;
|
|
|
+ //}
|
|
|
+ bool pumpEnableResult = _prewetDevice.PumpValveOpen();
|
|
|
if (!pumpEnableResult)
|
|
|
{
|
|
|
- LOG.WriteLog(eEvent.ERR_PREWET, Module, "pump enable error");
|
|
|
+ LOG.WriteLog(eEvent.ERR_PREWET, Module, "pump valve open error");
|
|
|
return false;
|
|
|
}
|
|
|
return true;
|
|
@@ -123,7 +123,7 @@ namespace CyberX8_RT.Modules.Prewet
|
|
|
/// <returns></returns>
|
|
|
private bool WaitProcessEndStatus()
|
|
|
{
|
|
|
- if (_prewetDevice.Status == RState.End && _linMotAxis.Status == RState.End)
|
|
|
+ if (_linMotAxis.Status == RState.End)
|
|
|
{
|
|
|
return true;
|
|
|
}
|
|
@@ -135,11 +135,11 @@ namespace CyberX8_RT.Modules.Prewet
|
|
|
/// <returns></returns>
|
|
|
private bool CheckProcessFailedStatus()
|
|
|
{
|
|
|
- if (_prewetDevice.Status == RState.Failed)
|
|
|
- {
|
|
|
- LOG.WriteLog(eEvent.ERR_PREWET, Module, "prewet device status is error");
|
|
|
- return true;
|
|
|
- }
|
|
|
+ //if (_prewetDevice.Status == RState.Failed)
|
|
|
+ //{
|
|
|
+ // LOG.WriteLog(eEvent.ERR_PREWET, Module, "prewet device status is error");
|
|
|
+ // return true;
|
|
|
+ //}
|
|
|
if (_linMotAxis.Status == RState.Failed)
|
|
|
{
|
|
|
LOG.WriteLog(eEvent.ERR_PREWET, Module, "linmot status is error");
|
|
@@ -152,7 +152,7 @@ namespace CyberX8_RT.Modules.Prewet
|
|
|
/// </summary>
|
|
|
private bool StartAdjustSpeed()
|
|
|
{
|
|
|
- _prewetDevice.IsStartAutoSpeed = true;
|
|
|
+ //_prewetDevice.IsStartAutoSpeed = true;
|
|
|
return true;
|
|
|
}
|
|
|
/// <summary>
|
|
@@ -169,15 +169,15 @@ namespace CyberX8_RT.Modules.Prewet
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- if (!_prewetDevice.PrewetPumpData.PumpStatus)
|
|
|
- {
|
|
|
- LOG.WriteLog(eEvent.ERR_PREWET, Module, "pump status if off");
|
|
|
- return false;
|
|
|
- }
|
|
|
+ //if (!_prewetDevice.PrewetPumpData.PumpStatus)
|
|
|
+ //{
|
|
|
+ // LOG.WriteLog(eEvent.ERR_PREWET, Module, "pump status if off");
|
|
|
+ // return false;
|
|
|
+ //}
|
|
|
bool result = _linMotAxis.StartPosition("", new object[] { _recipe.NumberOfScans });
|
|
|
if (!result)
|
|
|
{
|
|
|
- _prewetDevice.PumpDisableOperation("pump disable", null);
|
|
|
+ _prewetDevice.PumpValveClose();
|
|
|
LOG.WriteLog(eEvent.ERR_PREWET, Module, "linmot start scan error");
|
|
|
return false;
|
|
|
}
|
|
@@ -207,14 +207,14 @@ namespace CyberX8_RT.Modules.Prewet
|
|
|
{
|
|
|
if (_linMotAxis.Status == RState.Failed||_linMotAxis.Status==RState.Timeout)
|
|
|
{
|
|
|
- _prewetDevice.PumpDisable();
|
|
|
+ _prewetDevice.PumpValveClose();
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
if (_prewetDevice.PrewetPumpData.PumpPressureData.IsError)
|
|
|
{
|
|
|
_linMotAxis.StopOperation("",null);
|
|
|
- _prewetDevice.PumpDisableOperation("pump disable", null);
|
|
|
+ _prewetDevice.PumpValveClose();
|
|
|
LOG.WriteLog(eEvent.ERR_PREWET, Module, $"pump pressure status {_prewetDevice.PrewetPumpData.PumpPressureData.Value} is in error");
|
|
|
return true;
|
|
|
}
|
|
@@ -231,7 +231,7 @@ namespace CyberX8_RT.Modules.Prewet
|
|
|
{
|
|
|
LOG.WriteLog(eEvent.ERR_PREWET, Module, $"pump flow status {_prewetDevice.PrewetPumpData.PumpFlowData.Value} is in error");
|
|
|
_linMotAxis.StopOperation("", null);
|
|
|
- _prewetDevice.PumpDisableOperation("pump disable", null);
|
|
|
+ _prewetDevice.PumpValveClose();
|
|
|
return true;
|
|
|
}
|
|
|
if (_prewetDevice.PrewetPumpData.PumpPressureData.IsWarning)
|
|
@@ -252,12 +252,12 @@ namespace CyberX8_RT.Modules.Prewet
|
|
|
/// <returns></returns>
|
|
|
private bool ProcessComplete()
|
|
|
{
|
|
|
- //bool result = _prewetDevice.PumpValveClose();
|
|
|
- //if (!result)
|
|
|
- //{
|
|
|
- // LOG.WriteLog(eEvent.ERR_PREWET, Module, "pump valve close");
|
|
|
- // return false;
|
|
|
- //}
|
|
|
+ bool result = _prewetDevice.PumpValveClose();
|
|
|
+ if (!result)
|
|
|
+ {
|
|
|
+ LOG.WriteLog(eEvent.ERR_PREWET, Module, "pump valve close error");
|
|
|
+ return false;
|
|
|
+ }
|
|
|
|
|
|
//result = _prewetDevice.PumpDisable();
|
|
|
//if (!result)
|
|
@@ -265,8 +265,8 @@ namespace CyberX8_RT.Modules.Prewet
|
|
|
// LOG.WriteLog(eEvent.ERR_PREWET, Module, "pump enable close");
|
|
|
// return false;
|
|
|
//}
|
|
|
- bool result = _prewetDevice.PumpDisableOperation("pump disable",null);
|
|
|
- return result;
|
|
|
+ //bool result = _prewetDevice.PumpDisableOperation("pump disable",null);
|
|
|
+ return true;
|
|
|
}
|
|
|
private bool CheckPumpValveClose()
|
|
|
{
|