1.Robot的状态提示Warning改为Info

This commit is contained in:
HCL 2024-01-25 08:42:48 +08:00
parent f8e84c7e8c
commit 0532bbdeb7
1 changed files with 6 additions and 2 deletions

View File

@ -1954,7 +1954,9 @@ namespace MECF.Framework.RT.EquipmentLibrary.HardwareUnits.Robots.RobotBase
if (!fsm.FindTransition(fsm.State, msg))
{
if (msg != 7)
EV.PostWarningLog(Name, $"{Name} is in { (RobotStateEnum)fsm.State} statecan not do {(RobotMsg)msg}");
{
EV.PostInfoLog(Name, $"{Name} is in {(RobotStateEnum)fsm.State} statecan not do {(RobotMsg)msg}");
}
return false;
}
if ((RobotMsg)msg == RobotMsg.GoToPosition || (RobotMsg)msg == RobotMsg.ExtendForPick
@ -1992,7 +1994,9 @@ namespace MECF.Framework.RT.EquipmentLibrary.HardwareUnits.Robots.RobotBase
if (!fsm.FindTransition(fsm.State, (int)msg))
{
if ((int)msg != 7)
EV.PostWarningLog(Name, $"{Name} is in { (RobotStateEnum)fsm.State} statecan not do {(RobotMsg)msg}");
{
EV.PostInfoLog(Name, $"{Name} is in {(RobotStateEnum)fsm.State} statecan not do {(RobotMsg)msg}");
}
return false;
}
if (msg == RobotMsg.GoToPosition || msg == RobotMsg.ExtendForPick