Commit ffd8084d 张东亮

入料口机器人取完料顶升延时下降问题以及出料口延长3秒转动

1 个父辈 dd06af9a
......@@ -165,7 +165,7 @@ namespace OnlineStore.DeviceLibrary
{
NextMoveStep(StepEnum.Inlet_09_WaitRobotInSafe, "料盘离开入料口,等待机器人到安全位置");
AddWaitRobotInSafe();
AddWaitTime(10000);
AddWaitTime(5000);
MoveInfo.OneWaitCanEndStep = true;
}
else if (MoveInfo.IsStep(StepEnum.Inlet_09_WaitRobotInSafe))
......
......@@ -78,6 +78,7 @@ namespace OnlineStore.DeviceLibrary
AddWaitTrayCheck1(false);
AddWaitTrayCheck2(false);
AddWaitAllowFeedOut(false);
AddWaitTime(3000);
}
else if (MoveInfo.IsStep(StepEnum.Outlet_04_WaitTrayLeave))
{
......
......@@ -161,6 +161,7 @@ namespace OnlineStore.DeviceLibrary
}
private void InStore_06_CompressTray()
{
insafeAtInlet = false;
SendCmd(GetCmd_InletUp());
CompressAxis.AbsMove(MoveInfo, Config.CompressAxis_P4, Config.CompressAxis_P4_Speed);
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.RobotArm_ClampingSig, IO_VALUE.HIGH));
......
......@@ -127,6 +127,7 @@ namespace OnlineStore.DeviceLibrary
}
private void OutStore_11_ReleaseTray()
{
insafeAtOutlet = false;
SendCmd(GetCmd_OutletDown());
CompressAxis.AbsMove(MoveInfo,Config.CompressAxis_P2, Config.CompressAxis_P2_Speed);
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.RobotArm_ClampingSig, IO_VALUE.LOW));
......
......@@ -108,23 +108,26 @@ namespace OnlineStore.DeviceLibrary
if (!cmdResponse.Equals(bean.RobotData.RecvMsg) && !bean.RobotData.RecvMsg.Equals(""))
{
cmdResponse = bean.RobotData.RecvMsg;
if ((cmdResponse.Contains(GetCmd_InletUp()))
&& cmdResponse.Contains("done"))
if ((cmdResponse.Contains(GetCmd_InletUp())))
{
insafeAtInlet = true;
if (cmdResponse.Contains("done"))
insafeAtInlet = true;
else
{
insafeAtInlet = false;
}
}
else//if ((cmdResponse.Contains(GetCmd_Standby()) && cmdResponse.Contains("done")))
{
insafeAtInlet = false;
}
if ((cmdResponse.Contains(GetCmd_OutletDown())) && cmdResponse.Contains("done"))
{
insafeAtOutlet = true;
}
else
if ((cmdResponse.Contains(GetCmd_OutletDown())))
{
insafeAtOutlet = false;
if (cmdResponse.Contains("done"))
insafeAtOutlet = true;
else
{
insafeAtOutlet = false;
}
}
LogUtil.info($"RobotMove Cmd Response:【{cmdResponse}】");
}
string[] recv = bean.RobotData.RecvMsg.Split(',');
......@@ -318,13 +321,14 @@ namespace OnlineStore.DeviceLibrary
/// <param name="start"></param>
public void StartProg(bool start)
{
insafeAtOutlet = false;
insafeAtInlet = false;
if (GetRobotInfo(out JAKA.JAKABean bean))
{
if (start)
{
bean.Run();
}
else
bean.Abort();
}
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!