去掉Nozzle9

master
lhiven 1 year ago
parent 23f7e9dabd
commit a4a43d0c9f

@ -58,13 +58,13 @@ namespace Rs.MotionPlat.Commom
{ {
if (needSleep) if (needSleep)
Thread.Sleep(GlobalVar.LoadNozzleOpenVacSuctionDelaytime); Thread.Sleep(GlobalVar.LoadNozzleOpenVacSuctionDelaytime);
MessageQueue.Instance.Insert(callerName+$"_打开排料{string.Join(",", indexes)}号吸嘴真空吸"); MessageQueue.Instance.Insert(callerName+$"-打开排料{string.Join(",", indexes)}号吸嘴真空吸");
} }
else else
{ {
if (needSleep) if (needSleep)
Thread.Sleep(GlobalVar.LoadNozzleCloseVacSuctionDelaytime); Thread.Sleep(GlobalVar.LoadNozzleCloseVacSuctionDelaytime);
MessageQueue.Instance.Insert(callerName + $"_关闭排料{string.Join(",", indexes)}号吸嘴真空吸"); MessageQueue.Instance.Insert(callerName + $"-关闭排料{string.Join(",", indexes)}号吸嘴真空吸");
} }
} }
} }
@ -97,13 +97,13 @@ namespace Rs.MotionPlat.Commom
{ {
if (needSleep) if (needSleep)
Thread.Sleep(GlobalVar.LoadNozzleOpenVacBreakDelaytime); Thread.Sleep(GlobalVar.LoadNozzleOpenVacBreakDelaytime);
MessageQueue.Instance.Insert(callerName + $"_打开排料{string.Join(",", indexes)}号吸嘴真空破"); MessageQueue.Instance.Insert(callerName + $"-打开排料{string.Join(",", indexes)}号吸嘴真空破");
} }
else else
{ {
if (needSleep) if (needSleep)
Thread.Sleep(GlobalVar.LoadNozzleCloseVacBreakDelaytime); Thread.Sleep(GlobalVar.LoadNozzleCloseVacBreakDelaytime);
MessageQueue.Instance.Insert(callerName + $"_关闭排料{string.Join(",", indexes)}号吸嘴真空破"); MessageQueue.Instance.Insert(callerName + $"-关闭排料{string.Join(",", indexes)}号吸嘴真空破");
} }
} }
} }
@ -136,13 +136,13 @@ namespace Rs.MotionPlat.Commom
{ {
if(NeedSleep) if(NeedSleep)
Thread.Sleep(GlobalVar.TurnoverTrayOpenVacSuctionDelaytime); Thread.Sleep(GlobalVar.TurnoverTrayOpenVacSuctionDelaytime);
MessageQueue.Instance.Insert(callerName + $"_打开周转盘{string.Join(",", indexes)}号穴位真空吸"); MessageQueue.Instance.Insert(callerName + $"-打开周转盘{string.Join(",", indexes)}号穴位真空吸");
} }
else else
{ {
if(NeedSleep) if(NeedSleep)
Thread.Sleep(GlobalVar.TurnoverTrayCloseVacSuctionDelaytime); Thread.Sleep(GlobalVar.TurnoverTrayCloseVacSuctionDelaytime);
MessageQueue.Instance.Insert(callerName + $"_关闭周转盘{string.Join(",", indexes)}号穴位真空吸"); MessageQueue.Instance.Insert(callerName + $"-关闭周转盘{string.Join(",", indexes)}号穴位真空吸");
} }
} }
} }
@ -175,13 +175,13 @@ namespace Rs.MotionPlat.Commom
{ {
if (bNeedSleep) if (bNeedSleep)
Thread.Sleep(GlobalVar.TurnoverTrayOpenVacBreakDelaytime); Thread.Sleep(GlobalVar.TurnoverTrayOpenVacBreakDelaytime);
MessageQueue.Instance.Insert(callerName+$"_打开周转盘{indexes.ToJoinString()}号穴位真空破"); MessageQueue.Instance.Insert(callerName+$"-打开周转盘{indexes.ToJoinString()}号穴位真空破");
} }
else else
{ {
if (bNeedSleep) if (bNeedSleep)
Thread.Sleep(GlobalVar.TurnoverTrayCloseVacBreakDelaytime); Thread.Sleep(GlobalVar.TurnoverTrayCloseVacBreakDelaytime);
MessageQueue.Instance.Insert(callerName+$"_关闭周转盘{indexes.ToJoinString()}号穴位真空破"); MessageQueue.Instance.Insert(callerName+$"-关闭周转盘{indexes.ToJoinString()}号穴位真空破");
} }
} }
} }
@ -216,13 +216,13 @@ namespace Rs.MotionPlat.Commom
{ {
if(bNeedSleep) if(bNeedSleep)
Thread.Sleep(GlobalVar.TurnoverNozzleOpenVacSuctionDelaytime); Thread.Sleep(GlobalVar.TurnoverNozzleOpenVacSuctionDelaytime);
MessageQueue.Instance.Insert(callerName + $"_打开周转吸嘴{string.Join(",", indexes)}号真空吸"); MessageQueue.Instance.Insert(callerName + $"-打开周转吸嘴{string.Join(",", indexes)}号真空吸");
} }
else else
{ {
if (bNeedSleep) if (bNeedSleep)
Thread.Sleep(GlobalVar.TurnoverNozzleCloseVacSuctionDelaytime); Thread.Sleep(GlobalVar.TurnoverNozzleCloseVacSuctionDelaytime);
MessageQueue.Instance.Insert(callerName + $"_关闭周转吸嘴{string.Join(",", indexes)}号真空吸"); MessageQueue.Instance.Insert(callerName + $"-关闭周转吸嘴{string.Join(",", indexes)}号真空吸");
} }
} }
} }
@ -255,13 +255,13 @@ namespace Rs.MotionPlat.Commom
{ {
if (bNeedSleep) if (bNeedSleep)
Thread.Sleep(GlobalVar.TurnoverNozzleOpenVacBreakDelaytime); Thread.Sleep(GlobalVar.TurnoverNozzleOpenVacBreakDelaytime);
MessageQueue.Instance.Insert(callerName+$"_打开周转吸嘴{string.Join(",", indexes)}号真空破"); MessageQueue.Instance.Insert(callerName+$"-打开周转吸嘴{string.Join(",", indexes)}号真空破");
} }
else else
{ {
if (bNeedSleep) if (bNeedSleep)
Thread.Sleep(GlobalVar.TurnoverNozzleCloseVacBreakDelaytime); Thread.Sleep(GlobalVar.TurnoverNozzleCloseVacBreakDelaytime);
MessageQueue.Instance.Insert(callerName + $"_关闭周转吸嘴{string.Join(",", indexes)}号真空破"); MessageQueue.Instance.Insert(callerName + $"-关闭周转吸嘴{string.Join(",", indexes)}号真空破");
} }
} }
} }
@ -294,13 +294,13 @@ namespace Rs.MotionPlat.Commom
{ {
if (bNeedSleep) if (bNeedSleep)
Thread.Sleep(GlobalVar.PressOpenVacSuctionDelaytime); Thread.Sleep(GlobalVar.PressOpenVacSuctionDelaytime);
MessageQueue.Instance.Insert(callerName + $"_打开测试{string.Join(",", indexes)}号穴位真空吸"); MessageQueue.Instance.Insert(callerName + $"-打开测试{string.Join(",", indexes)}号穴位真空吸");
} }
else else
{ {
if (bNeedSleep) if (bNeedSleep)
Thread.Sleep(GlobalVar.PresseCloseVacSuctionDelaytime); Thread.Sleep(GlobalVar.PresseCloseVacSuctionDelaytime);
MessageQueue.Instance.Insert(callerName + $"_关闭测试{string.Join(",", indexes)}号穴位真空吸"); MessageQueue.Instance.Insert(callerName + $"-关闭测试{string.Join(",", indexes)}号穴位真空吸");
} }
} }
} }
@ -333,13 +333,13 @@ namespace Rs.MotionPlat.Commom
{ {
if (bNeedSleep) if (bNeedSleep)
Thread.Sleep(GlobalVar.PresseOpenVacBreakDelaytime); Thread.Sleep(GlobalVar.PresseOpenVacBreakDelaytime);
MessageQueue.Instance.Insert(callerName+$"_打开测试{string.Join(",", indexes)}号穴位真空破"); MessageQueue.Instance.Insert(callerName+$"-打开测试{string.Join(",", indexes)}号穴位真空破");
} }
else else
{ {
if (bNeedSleep) if (bNeedSleep)
Thread.Sleep(GlobalVar.PressCloseVacBreakDelaytime); Thread.Sleep(GlobalVar.PressCloseVacBreakDelaytime);
MessageQueue.Instance.Insert(callerName+$"_关闭测试{string.Join(",", indexes)}号穴位真空破"); MessageQueue.Instance.Insert(callerName+$"-关闭测试{string.Join(",", indexes)}号穴位真空破");
} }
} }
} }

@ -56,7 +56,7 @@ namespace Rs.MotionPlat.Flow
MessageQueue.Instance.Warn("上下气缸原位 off"); MessageQueue.Instance.Warn("上下气缸原位 off");
return false; return false;
} }
for (int i = 1; i < 10; i++) for (int i = 1; i < 9; i++)
{ {
AxisControl.GetAxis($"NozzleZ{i}").GetOrgStatus(out bOnOrg); AxisControl.GetAxis($"NozzleZ{i}").GetOrgStatus(out bOnOrg);
if (!bOnOrg) if (!bOnOrg)
@ -80,7 +80,7 @@ namespace Rs.MotionPlat.Flow
MessageQueue.Instance.Warn("上下气缸原位 off"); MessageQueue.Instance.Warn("上下气缸原位 off");
return false; return false;
} }
for (int i = 1; i < 10; i ++) for (int i = 1; i < 9; i ++)
{ {
AxisControl.GetAxis($"NozzleZ{i}").GetOrgStatus(out bOnOrg); AxisControl.GetAxis($"NozzleZ{i}").GetOrgStatus(out bOnOrg);
if (!bOnOrg) if (!bOnOrg)

Loading…
Cancel
Save