|
@@ -87,12 +87,12 @@ namespace CyberX8_RT.Devices.AXIS.GalilLipsel
|
|
|
{
|
|
|
return true;
|
|
|
}
|
|
|
+ _currentOperation = MotionOperation.StopPosition;
|
|
|
if (_profilePositionRoutine.Monitor() == RState.Running)
|
|
|
{
|
|
|
_profilePositionRoutine.Abort();
|
|
|
}
|
|
|
- _status = _stopPositionRoutine.Start();
|
|
|
- _currentOperation = MotionOperation.StopPosition;
|
|
|
+ _status = _stopPositionRoutine.Start();
|
|
|
return true;
|
|
|
}
|
|
|
|
|
@@ -183,10 +183,13 @@ namespace CyberX8_RT.Devices.AXIS.GalilLipsel
|
|
|
}
|
|
|
else if (state == RState.Failed || state == RState.Timeout)
|
|
|
{
|
|
|
- _inTargetPosition = false;
|
|
|
- EndOperation();
|
|
|
- _status = RState.Failed;
|
|
|
- LOG.WriteLog(eEvent.ERR_AXIS, $"{Module}.{Name}", $"Profile Position error {_profilePositionRoutine.ErrorMsg}");
|
|
|
+ if (_currentOperation == MotionOperation.Position)
|
|
|
+ {
|
|
|
+ _inTargetPosition = false;
|
|
|
+ EndOperation();
|
|
|
+ _status = RState.Failed;
|
|
|
+ LOG.WriteLog(eEvent.ERR_AXIS, $"{Module}.{Name}", $"Profile Position error {_profilePositionRoutine.ErrorMsg}");
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|