1.IoConfiementRing输出信息修改

This commit is contained in:
LAPTOP-9VQH4NI5\LCR 2023-04-26 13:17:19 +08:00
parent a7c415aa42
commit 59c443ac9b
3 changed files with 47 additions and 9 deletions

View File

@ -304,9 +304,16 @@ namespace Aitex.Core.RT.Device.Devices
public bool JogUp(float relativeDis,out string reason)
{
if (_diRingBusy.Value || _diRingServoError.Value)
if (_diRingBusy.Value)
{
reason = "ConfinementRing is Busy or Error";
reason = "Before JogUp , ConfinementRing is Busy";
EV.PostAlarmLog(Module, reason);
return false;
}
if (_diRingServoError.Value)
{
reason = "Before JogUp , ConfinementRing is Error";
EV.PostAlarmLog(Module, reason);
return false;
}
@ -325,9 +332,16 @@ namespace Aitex.Core.RT.Device.Devices
public bool JogDown(float relativeDis, out string reason)
{
if (_diRingBusy.Value || _diRingServoError.Value)
if (_diRingBusy.Value)
{
reason = "ConfinementRing is Busy or Error";
reason = "Before JogDown , ConfinementRing is Busy";
EV.PostAlarmLog(Module, reason);
return false;
}
if (_diRingServoError.Value)
{
reason = "Before JogDown , ConfinementRing is Error";
EV.PostAlarmLog(Module, reason);
return false;
}
@ -346,9 +360,16 @@ namespace Aitex.Core.RT.Device.Devices
public bool MoveUpPos(out string reason)
{
if (_diRingBusy.Value || _diRingServoError.Value)
if (_diRingBusy.Value)
{
reason = "ConfinementRing is Busy or Error";
reason = "Before MoveUpPos , ConfinementRing is Busy";
EV.PostAlarmLog(Module, reason);
return false;
}
if (_diRingServoError.Value)
{
reason = "Before MoveUpPos , ConfinementRing is Error";
EV.PostAlarmLog(Module, reason);
return false;
}
@ -375,9 +396,16 @@ namespace Aitex.Core.RT.Device.Devices
public bool MoveDownPos(out string reason)
{
if (_diRingBusy.Value || _diRingServoError.Value)
if (_diRingBusy.Value)
{
reason = "ConfinementRing is Busy or Error";
reason = "Before MoveDownPos , ConfinementRing is Busy";
EV.PostAlarmLog(Module, reason);
return false;
}
if (_diRingServoError.Value)
{
reason = "Before MoveDownPos , ConfinementRing is Error";
EV.PostAlarmLog(Module, reason);
return false;
}

View File

@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.0.3.3")]
[assembly: AssemblyVersion("2.0.3.4")]
//[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@ -1,6 +1,16 @@
# 各种电子元器件,接口定义 和具体 实现
## Version 2.0.3.4
***2023-04-26***
- Bug
- 无
- 新特性
- IoConfiementRing输出信息修改
## Version 2.0.2.2