Commit 40ea048a 刘韬

折叠门光栅,整机暂停

1 个父辈 120b4e9c
......@@ -290,7 +290,7 @@ namespace DeviceLibrary
public int ResumeWaitTimeSec = 0;
public void Resume()
{
ResumeSingle();
}
public void ResumeSingle()
{
......
......@@ -638,17 +638,19 @@ namespace DeviceLibrary
if (IOValue(IO_Type.AGV_OnPosition).Equals(IO_VALUE.LOW))
{
Msg.add("料串门光栅被遮挡", MsgLevel.warning);
if (lastStringSafetyStatus)
{
lastStringSafetyStatus = false;
StringDoor.Pause();
}
}
else if (!lastStringSafetyStatus)
{
StringDoor.ResumeSingle();
lastStringSafetyStatus = true;
//if (lastStringSafetyStatus)
//{
// lastStringSafetyStatus = false;
// StringDoor.Pause();
//}
ok = false;
DeviceSuddenStop();
}
//else if (!lastStringSafetyStatus)
//{
// StringDoor.ResumeSingle();
// lastStringSafetyStatus = true;
//}
}
if (!ConfigHelper.Config.Get("Device_Disable_DoorSafeCheck", false))
{
......@@ -688,6 +690,7 @@ namespace DeviceLibrary
Msg.add(msg, MsgLevel.warning);
}
SafetyDevice.ResumeAll();
//StringDoor.ResumeSingle();
}
lastSafeCheckStatus = ok;
return ok;
......@@ -700,6 +703,8 @@ namespace DeviceLibrary
AxisBean.StopMultiAxis(AxisBean.List);
MoveInfo.List.ForEach((m) => { m.CanWhileCount = 5; });
SafetyDevice.PauseAll();
StringDoor.Pause();
if (runStatus == RunStatus.HomeReset)
{
ResetMoveInfo.NewMove(MoveStep.H01_HomeReset);
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!