用户没有登录时,硬件的启动、停止按钮不监控

Eight
lhiven 3 months ago
parent 14a91828ee
commit ad8f601d24

@ -99,6 +99,8 @@ namespace Rs.MotionPlat.Flow
step = EMonitorButtonStep.EStopButtonPressed;
break;
}
if(GlobalUser.UserName!="")
{
signalValue = IoManager.Instance.ReadIn("启动");
if (signalValue == 1 || (buttonValue == ESystemButton.StartPressed))
{
@ -117,6 +119,7 @@ namespace Rs.MotionPlat.Flow
step = EMonitorButtonStep.ResetButtonPressed;
break;
}
}
break;
case EMonitorButtonStep.EStopButtonPressed:
MessageQueue.Instance.Insert("急停按钮按下");

Loading…
Cancel
Save