|
@@ -156,6 +156,7 @@ namespace Venus_RT.Devices
|
|
|
|
|
|
private readonly string EOF = "\r\n";
|
|
|
private readonly int _readInterval = 1000;
|
|
|
+ private readonly int _position_unit = 100;
|
|
|
private int _queryFlag = 0;
|
|
|
private readonly AsyncSerialPort _serial;
|
|
|
private Stopwatch _queryWatch = new Stopwatch();
|
|
@@ -234,7 +235,7 @@ namespace Venus_RT.Devices
|
|
|
{
|
|
|
int position;
|
|
|
if (int.TryParse(data[1], out position))
|
|
|
- Position = position / 1000;
|
|
|
+ Position = position / _position_unit;
|
|
|
}
|
|
|
break;
|
|
|
case "i":
|
|
@@ -363,7 +364,7 @@ namespace Venus_RT.Devices
|
|
|
if(_CheckStatus())
|
|
|
{
|
|
|
IsOpen = postion > 0;
|
|
|
- return SendCommand(Operation.SetPosition, postion * 1000);
|
|
|
+ return SendCommand(Operation.SetPosition, postion * _position_unit);
|
|
|
}
|
|
|
|
|
|
return false;
|
|
@@ -413,8 +414,8 @@ namespace Venus_RT.Devices
|
|
|
|
|
|
if (_chamber.ForelinePressure > 500)
|
|
|
{
|
|
|
- if(IsOpen)
|
|
|
- LOG.Write(eEvent.WARN_DEVICE_INFO, Module, $"Foreline Pressure:{_chamber.ForelinePressure} is too high, can not turn on pendulum valve.");
|
|
|
+
|
|
|
+ LOG.Write(eEvent.WARN_DEVICE_INFO, Module, $"Foreline Pressure:{_chamber.ForelinePressure} is too high, can not turn on pendulum valve.");
|
|
|
//_noRepeatAlarm($"Foreline Pressure:{_chamber.ForelinePressure} is too high, can not turn on pendulum valve.");
|
|
|
return false;
|
|
|
}
|