|
|
@ -99,23 +99,26 @@ namespace Rs.MotionPlat.Flow
|
|
|
|
step = EMonitorButtonStep.EStopButtonPressed;
|
|
|
|
step = EMonitorButtonStep.EStopButtonPressed;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
signalValue = IoManager.Instance.ReadIn("启动");
|
|
|
|
if(GlobalUser.UserName!="")
|
|
|
|
if (signalValue == 1 || (buttonValue == ESystemButton.StartPressed))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
step = EMonitorButtonStep.StartButtonPressed;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
signalValue = IoManager.Instance.ReadIn("停止");
|
|
|
|
|
|
|
|
if (signalValue == 1 || (buttonValue == ESystemButton.StopPressed))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
step = EMonitorButtonStep.StopButtonPressed;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
signalValue = IoManager.Instance.ReadIn("复位");
|
|
|
|
|
|
|
|
if ((buttonValue == ESystemButton.ResetPressed))
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
step = EMonitorButtonStep.ResetButtonPressed;
|
|
|
|
signalValue = IoManager.Instance.ReadIn("启动");
|
|
|
|
break;
|
|
|
|
if (signalValue == 1 || (buttonValue == ESystemButton.StartPressed))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
step = EMonitorButtonStep.StartButtonPressed;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
signalValue = IoManager.Instance.ReadIn("停止");
|
|
|
|
|
|
|
|
if (signalValue == 1 || (buttonValue == ESystemButton.StopPressed))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
step = EMonitorButtonStep.StopButtonPressed;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
signalValue = IoManager.Instance.ReadIn("复位");
|
|
|
|
|
|
|
|
if ((buttonValue == ESystemButton.ResetPressed))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
step = EMonitorButtonStep.ResetButtonPressed;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case EMonitorButtonStep.EStopButtonPressed:
|
|
|
|
case EMonitorButtonStep.EStopButtonPressed:
|
|
|
|