From 810f2337d015efbece4b481eaa328d386bfb2a9d Mon Sep 17 00:00:00 2001
From: lhiven <236881222@qq.com>
Date: Sat, 30 Dec 2023 16:29:21 +0900
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=9C=9F=E7=A9=BA=E5=90=B8?=
=?UTF-8?q?=E6=89=93=E5=BC=80=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98=20?=
=?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=8A=A5=E8=AD=A6=E4=BF=A1=E6=81=AF=E4=BB=8E?=
=?UTF-8?q?excel=E4=B8=AD=E8=AF=BB=E5=8F=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Rs.SkyLine/Commom/VacManager.cs | 4 +-
Rs.SkyLine/Entitys/AlarmEntity.cs | 18 ++-
Rs.SkyLine/Flow/AlarmConstID.cs | 107 ++++++++++++------
Rs.SkyLine/Flow/NormalFlow/DischargeFlow.cs | 45 ++++++--
Rs.SkyLine/Flow/NormalFlow/TurnoverFlow.cs | 58 ++++++----
.../Flow/SubFlow/WarningSuckerNgFlow.cs | 2 +-
Rs.SkyLine/SysConfig/StartPosConfig.cs | 28 ++---
7 files changed, 180 insertions(+), 82 deletions(-)
diff --git a/Rs.SkyLine/Commom/VacManager.cs b/Rs.SkyLine/Commom/VacManager.cs
index 4120453..98351de 100644
--- a/Rs.SkyLine/Commom/VacManager.cs
+++ b/Rs.SkyLine/Commom/VacManager.cs
@@ -125,13 +125,13 @@ namespace Rs.MotionPlat.Commom
if (eOperator == EVacOperator.Open)
{
if(NeedSleep)
- Thread.Sleep(GlobalVar.TurnoverNozzleOpenVacBreakDelaytime);
+ Thread.Sleep(GlobalVar.TurnoverTrayOpenVacSuctionDelaytime);
MessageQueue.Instance.Insert($"打开周转盘{string.Join(",", indexes)}号穴位真空吸");
}
else
{
if(NeedSleep)
- Thread.Sleep(GlobalVar.TurnoverNozzleCloseVacBreakDelaytime);
+ Thread.Sleep(GlobalVar.TurnoverTrayCloseVacSuctionDelaytime);
MessageQueue.Instance.Insert($"关闭周转盘{string.Join(",", indexes)}号穴位真空吸");
}
}
diff --git a/Rs.SkyLine/Entitys/AlarmEntity.cs b/Rs.SkyLine/Entitys/AlarmEntity.cs
index 1558a21..62b3889 100644
--- a/Rs.SkyLine/Entitys/AlarmEntity.cs
+++ b/Rs.SkyLine/Entitys/AlarmEntity.cs
@@ -1,5 +1,6 @@
using NPOI.SS.UserModel;
using NPOI.XSSF.UserModel;
+using Rs.Framework;
using System;
using System.Collections.Generic;
using System.IO;
@@ -15,7 +16,7 @@ namespace Rs.MotionPlat.Entitys
static AlarmCollection()
{
-
+ Load();
}
public static void Load()
@@ -67,10 +68,23 @@ namespace Rs.MotionPlat.Entitys
public static string GetAlarm(int _alarmID)
{
+ StringBuilder content = new StringBuilder();
AlarmEntity alarm = Get(_alarmID);
if(alarm!=null)
{
- return alarm.CN + "\r\n\r\n" + alarm.EN + "\r\n\r\n" + alarm.KO;
+ if(GlobalVar.MsgShowCn)
+ {
+ content.Append(alarm.CN).Append("\r\n\r\n");
+ }
+ if (GlobalVar.MsgShowEn)
+ {
+ content.Append(alarm.EN).Append("\r\n\r\n");
+ }
+ if (GlobalVar.MsgShowKo)
+ {
+ content.Append(alarm.KO);
+ }
+ return content.ToString();
}
return "";
}
diff --git a/Rs.SkyLine/Flow/AlarmConstID.cs b/Rs.SkyLine/Flow/AlarmConstID.cs
index a62c6e7..0db9807 100644
--- a/Rs.SkyLine/Flow/AlarmConstID.cs
+++ b/Rs.SkyLine/Flow/AlarmConstID.cs
@@ -18,30 +18,93 @@ namespace Rs.MotionPlat.Flow
public const int NotFoundAxisAlarmID = 99999;
///
- /// Tray盘取料失败报警
+ /// 料仓tray盘取料报警
///
- public const int TrayTakeFailAlarm = 1;
+ public const int 料仓tray盘取料报警 = 1001;
///
- /// 周转盘取料失败报警
+ /// 料仓tray盘放料时丢料报警
///
- public const int TurnoverTakeFailAlarm = 2;
+ public const int 料仓tray盘放料时丢料报警 = 1002;
///
- /// 测试盘取料失败报警
+ /// 排料头在周转盘取料失败报警
///
- public const int TestTakeFailAlarm = 3;
+ public const int 排料头在周转盘取料失败报警 = 1003;
+ ///
+ /// 排料投在周转盘放料时丢料报警
+ ///
+ public const int 排料投在周转盘放料时丢料报警 = 1004;
+ ///
+ /// 排料头放料到周转盘后周转盘真空吸报警
+ ///
+ public const int 排料头放料到周转盘后周转盘真空吸报警 = 1005;
+ ///
+ /// 周转吸头在周转盘取料失败报警
+ ///
+ public const int 周转吸头在周转盘取料失败报警 = 1006;
+ ///
+ /// 周转吸头在周转盘放料时丢料报警
+ ///
+ public const int 周转吸头在周转盘放料时丢料报警 = 1007;
+ ///
+ /// 周转吸头放料到周转盘后周转盘真空吸报警
+ ///
+ public const int 周转吸头放料到周转盘后周转盘真空吸报警 = 1008;
+ ///
+ /// 周转吸头在测试治具取料失败报警
+ ///
+ public const int 周转吸头在测试治具取料失败报警 = 1009;
+ ///
+ /// 周转吸头在测试治具放料时丢料报警
+ ///
+ public const int 周转吸头在测试治具放料时丢料报警 = 1010;
+
+ ///
+ /// 周转吸头放料到测试治具后测试治具光纤报警
+ ///
+ public const int 周转吸头放料到测试治具后测试治具光纤报警 = 1011;
+
+ ///
+ /// 周转吸头放料到测试治具后测试治具真空吸报警
+ ///
+ public const int 周转吸头放料到测试治具后测试治具真空吸报警 = 1012;
+ ///
+ /// 料仓满料报警
+ ///
+ public const int 料仓满料报警 = 1013;
///
- /// 周转盘放料失败报警
+ /// 料仓缺料报警
///
- public const int TurnoverDumpFailAlarm = 4;
+ public const int 料仓缺料报警 = 1014;
///
- /// 测试盘放料失败报警
+ /// 取料盘夹爪动位报警
///
- public const int TestDumpFailAlarm = 5;
+ public const int 取料盘夹爪动位报警 = 1016;
+
+ ///
+ /// 取料盘夹爪原位报警
+ ///
+ public const int 取料盘夹爪原位报警 = 1017;
+
+ ///
+ /// 排料头粘料报警
+ ///
+ public const int 排料头粘料报警 = 1018;
+
+ ///
+ /// 周转头粘料报警
+ ///
+ public const int 周转头粘料报警 = 1019;
+
+
+
+
+
+
///
/// Empty1满料报警
@@ -90,20 +153,7 @@ namespace Rs.MotionPlat.Flow
///
public const int StockLoadAlarm = 15;
- ///
- ///吸嘴粘料报警
- ///
- public const int NozzleTackinessAlarm = 16;
-
- ///
- /// 吸嘴丢料报警
- ///
- public const int NozzlesLoseMaterialAlarm = 17;
-
- ///
- /// 周转吸头取料失败报警
- ///
- public const int TransitNozzlelTakeProductFailAlarm = 18;
+
///
/// 上下气缸异常报警
@@ -129,10 +179,7 @@ namespace Rs.MotionPlat.Flow
///
public const int NgProductFiberCheckAlarm = 23;
- ///
- /// 排料吸嘴丢料报警
- ///
- public const int DischargeNozzleLostProductAlarm = 24;
+
///
/// 排料轴X运动异常
@@ -278,10 +325,6 @@ namespace Rs.MotionPlat.Flow
///
public const int AxisNotAtHomeAlarm = 56;
- ///
- /// 测试治具光前异常报警
- ///
- public const int TextFixtureFiberAlarm = 57;
///
/// 扫码失败报警
diff --git a/Rs.SkyLine/Flow/NormalFlow/DischargeFlow.cs b/Rs.SkyLine/Flow/NormalFlow/DischargeFlow.cs
index aca97bf..4cba146 100644
--- a/Rs.SkyLine/Flow/NormalFlow/DischargeFlow.cs
+++ b/Rs.SkyLine/Flow/NormalFlow/DischargeFlow.cs
@@ -5,6 +5,7 @@ using Rs.Controls;
using Rs.Framework;
using Rs.Motion;
using Rs.MotionPlat.Commom;
+using Rs.MotionPlat.Entitys;
using Rs.MotionPlat.Entitys.Trays;
using Rs.MotionPlat.Flow.Camera;
using Rs.MotionPlat.Flow.NgFlow;
@@ -426,7 +427,15 @@ namespace Rs.MotionPlat.Flow
if (reFetchNum == 6)
{
DischargeDumpFlow.Instance.Start(curTask.FromType, curNozzle.NozzleIndex, curNozzle.FromIndex);
- alarmInfo = $"排料{curNozzle.NozzleIndex}号吸嘴取{curNozzle.FromIndex+1}号穴位产品{reFetchNum}次失败";
+ //alarmInfo = $"排料{curNozzle.NozzleIndex}号吸嘴取{curNozzle.FromIndex+1}号穴位产品{reFetchNum}次失败";
+ if(curTask.FromType== TurnoverType.ToBeTested)
+ {
+ alarmInfo = string.Format(AlarmCollection.GetAlarm(AlarmConstID.料仓tray盘取料报警), curNozzle.NozzleIndex, curNozzle.FromIndex + 1);
+ }
+ else if(curTask.FromType== TurnoverType.Turnover)
+ {
+ alarmInfo = string.Format(AlarmCollection.GetAlarm(AlarmConstID.排料头在周转盘取料失败报警), curNozzle.NozzleIndex, curNozzle.FromIndex + 1);
+ }
flowStep = EDischargeFlowStep.取料失败报警;
}
else
@@ -447,7 +456,12 @@ namespace Rs.MotionPlat.Flow
btnText |= ETipButton.No;
}
//TestCenterMessageBox.Show(AlarmConstID.TrayTakeFailAlarm, alarmInfo, btnText, buttonText);
- SchedulingMessageBox box = MsgBox.ShowDialog(AlarmConstID.TrayTakeFailAlarm, alarmInfo, btnText, buttonText);// TestCenterMessageBox.WaitResult(AlarmConstID.TrayTakeFailAlarm);
+ int alarmid = AlarmConstID.排料头在周转盘取料失败报警;
+ if (curTask.FromType == TurnoverType.ToBeTested)
+ {
+ alarmid = AlarmConstID.料仓tray盘取料报警;
+ }
+ SchedulingMessageBox box = MsgBox.ShowDialog(alarmid, alarmInfo, btnText, buttonText);// TestCenterMessageBox.WaitResult(AlarmConstID.TrayTakeFailAlarm);
switch (box.Button)
{
case ETipButton.Retry:
@@ -1065,9 +1079,22 @@ namespace Rs.MotionPlat.Flow
while (!exit)
{
//弹框报警
- alarmInfo = $"{curNozzle.NozzleIndex}吸嘴真空吸异常,可能丢料,请检查吸嘴的状态";
+ //alarmInfo = $"{curNozzle.NozzleIndex}吸嘴真空吸异常,可能丢料,请检查吸嘴的状态";
+ if(curNozzle.ToType== TurnoverType.Turnover)
+ {
+ alarmInfo = string.Format(AlarmCollection.GetAlarm(AlarmConstID.排料投在周转盘放料时丢料报警), curNozzle.NozzleIndex);
+ }
+ else
+ {
+ alarmInfo = string.Format(AlarmCollection.GetAlarm(AlarmConstID.料仓tray盘放料时丢料报警), curNozzle.NozzleIndex,curNozzle.ToType.ToString());
+ }
+ alarmid = AlarmConstID.料仓tray盘放料时丢料报警;
+ if (curNozzle.ToType == TurnoverType.Turnover)
+ {
+ alarmid = AlarmConstID.排料投在周转盘放料时丢料报警;
+ }
//TestCenterMessageBox.Show(AlarmConstID.DischargeNozzleLostProductAlarm, alarmInfo, MessageButtonManager.GetSkip_MoveToSafe_Button(), MessageButtonManager.GetSkip_MoveToSafe_ButtonText());
- msgBox = MsgBox.ShowDialog(AlarmConstID.DischargeNozzleLostProductAlarm, alarmInfo, MessageButtonManager.GetSkip_MoveToSafe_Button(), MessageButtonManager.GetSkip_MoveToSafe_ButtonText());// TestCenterMessageBox.WaitResult(AlarmConstID.DischargeNozzleLostProductAlarm);
+ msgBox = MsgBox.ShowDialog(alarmid, alarmInfo, MessageButtonManager.GetSkip_MoveToSafe_Button(), MessageButtonManager.GetSkip_MoveToSafe_ButtonText());// TestCenterMessageBox.WaitResult(AlarmConstID.DischargeNozzleLostProductAlarm);
switch (msgBox.Button)
{
case ETipButton.Skip:
@@ -1296,10 +1323,11 @@ namespace Rs.MotionPlat.Flow
while(!skip)
{
//粘料报警,提示用户粘料,移动到安全位,或者点击跳过
- alarmInfo = $"排料{curNozzle.NozzleIndex}号吸嘴可能粘料,请查看吸嘴状态后处理";
+ //alarmInfo = $"排料{curNozzle.NozzleIndex}号吸嘴可能粘料,请查看吸嘴状态后处理";
+ alarmInfo = string.Format(AlarmCollection.GetAlarm(AlarmConstID.排料头粘料报警), curNozzle.NozzleIndex);
MessageQueue.Instance.Warn(GetClassName()+ alarmInfo);
//TestCenterMessageBox.Show(AlarmConstID.NozzleTackinessAlarm, alarmInfo, MessageButtonManager.GetSkip_MoveToSafe_Button(), MessageButtonManager.GetSkip_MoveToSafe_ButtonText());
- msgBox = MsgBox.ShowDialog(AlarmConstID.NozzleTackinessAlarm, alarmInfo, MessageButtonManager.GetSkip_MoveToSafe_Button(), MessageButtonManager.GetSkip_MoveToSafe_ButtonText());// TestCenterMessageBox.WaitResult(AlarmConstID.NozzleTackinessAlarm);
+ msgBox = MsgBox.ShowDialog(AlarmConstID.排料头粘料报警, alarmInfo, MessageButtonManager.GetSkip_MoveToSafe_Button(), MessageButtonManager.GetSkip_MoveToSafe_ButtonText());// TestCenterMessageBox.WaitResult(AlarmConstID.NozzleTackinessAlarm);
switch (msgBox.Button)
{
case ETipButton.Skip:
@@ -1359,10 +1387,11 @@ namespace Rs.MotionPlat.Flow
};
while (!exit)
{
- alarmInfo = $"周转盘{curNozzle.ToIndex + 1}号穴位真空吸异常";
+ //alarmInfo = $"周转盘{curNozzle.ToIndex + 1}号穴位真空吸异常";
+ alarmInfo = string.Format(AlarmCollection.GetAlarm(AlarmConstID.排料头放料到周转盘后周转盘真空吸报警), curNozzle.NozzleIndex, curNozzle.ToIndex + 1);
MessageQueue.Instance.Warn(GetClassName() + alarmInfo);
//TestCenterMessageBox.Show(AlarmConstID.TurnoverDumpFailAlarm, alarmInfo, ETipButton.Retry | ETipButton.Skip | ETipButton.Yes, buttons);
- msgBox = MsgBox.ShowDialog(AlarmConstID.TurnoverDumpFailAlarm, alarmInfo, ETipButton.Retry | ETipButton.Skip | ETipButton.Yes, buttons);// TestCenterMessageBox.WaitResult(AlarmConstID.TurnoverDumpFailAlarm);
+ msgBox = MsgBox.ShowDialog(AlarmConstID.排料头放料到周转盘后周转盘真空吸报警, alarmInfo, ETipButton.Retry | ETipButton.Skip | ETipButton.Yes, buttons);// TestCenterMessageBox.WaitResult(AlarmConstID.TurnoverDumpFailAlarm);
if (msgBox != null)
{
switch (msgBox.Button)
diff --git a/Rs.SkyLine/Flow/NormalFlow/TurnoverFlow.cs b/Rs.SkyLine/Flow/NormalFlow/TurnoverFlow.cs
index 64beb90..e69a829 100644
--- a/Rs.SkyLine/Flow/NormalFlow/TurnoverFlow.cs
+++ b/Rs.SkyLine/Flow/NormalFlow/TurnoverFlow.cs
@@ -2,6 +2,7 @@
using Rs.Controls;
using Rs.Framework;
using Rs.MotionPlat.Commom;
+using Rs.MotionPlat.Entitys;
using Rs.MotionPlat.Entitys.Trays;
using Rs.MotionPlat.Flow.Camera;
using Rs.MotionPlat.Flow.NgFlow;
@@ -240,10 +241,11 @@ namespace Rs.MotionPlat.Flow
bool exit = false;
while (!exit)
{
- alarmInfo = GetClassName() + $"周转盘{string.Join(",", untestSlots.Select(s => s.Index))}号穴位产品未取出,请处理";
+ //alarmInfo = GetClassName() + $"周转盘{string.Join(",", untestSlots.Select(s => s.Index))}号穴位产品未取出,请处理";
+ alarmInfo = string.Format(AlarmCollection.GetAlarm(AlarmConstID.周转吸头在周转盘取料失败报警), untestSlots.Select(s => s.Index).ToJoinString(), untestSlots.Select(s => s.Index).ToJoinString());
//TestCenterMessageBox.Show(AlarmConstID.TurnoverTakeFailAlarm, alarmInfo, MessageButtonManager.GetRetry_Skip_MoveToSafe_Button(),
//MessageButtonManager.GetRetry_Skip_MoveToSafe_ButtonText());
- msgBox = MsgBox.ShowDialog(AlarmConstID.TurnoverTakeFailAlarm, alarmInfo, MessageButtonManager.GetRetry_Skip_MoveToSafe_Button(),MessageButtonManager.GetRetry_Skip_MoveToSafe_ButtonText());// TestCenterMessageBox.WaitResult(AlarmConstID.TurnoverTakeFailAlarm);
+ msgBox = MsgBox.ShowDialog(AlarmConstID.周转吸头在周转盘取料失败报警, alarmInfo, MessageButtonManager.GetRetry_Skip_MoveToSafe_Button(),MessageButtonManager.GetRetry_Skip_MoveToSafe_ButtonText());// TestCenterMessageBox.WaitResult(AlarmConstID.TurnoverTakeFailAlarm);
switch (msgBox.Button)
{
case ETipButton.Retry:
@@ -539,9 +541,10 @@ namespace Rs.MotionPlat.Flow
bool exit = false;
while (!exit)
{
- alarmInfo = $"周转{loseSlots.ToJoinString()}号吸嘴真空异常丢料,请处理";
+ //alarmInfo = $"周转{loseSlots.ToJoinString()}号吸嘴真空异常丢料,请处理";
+ alarmInfo = string.Format(AlarmCollection.GetAlarm(AlarmConstID.周转吸头在测试治具放料时丢料报警), loseSlots.ToJoinString());
//TestCenterMessageBox.Show(AlarmConstID.NozzlesLoseMaterialAlarm, alarmInfo, MessageButtonManager.GetSkip_MoveToSafe_Button(), MessageButtonManager.GetSkip_MoveToSafe_ButtonText());
- msgBox = MsgBox.ShowDialog(AlarmConstID.NozzlesLoseMaterialAlarm, alarmInfo, MessageButtonManager.GetSkip_MoveToSafe_Button(), MessageButtonManager.GetSkip_MoveToSafe_ButtonText());// TestCenterMessageBox.WaitResult(AlarmConstID.NozzlesLoseMaterialAlarm);
+ msgBox = MsgBox.ShowDialog(AlarmConstID.周转吸头在测试治具放料时丢料报警, alarmInfo, MessageButtonManager.GetSkip_MoveToSafe_Button(), MessageButtonManager.GetSkip_MoveToSafe_ButtonText());// TestCenterMessageBox.WaitResult(AlarmConstID.NozzlesLoseMaterialAlarm);
switch (msgBox.Button)
{
case ETipButton.Skip:
@@ -774,9 +777,10 @@ namespace Rs.MotionPlat.Flow
if(masticSlots.Count > 0)
{
//粘料报警
- alarmInfo = $"周转吸头{masticSlots.ToJoinString()}号吸嘴真空异常粘料,请手工处理";
+ //alarmInfo = $"周转吸头{masticSlots.ToJoinString()}号吸嘴真空异常粘料,请手工处理";
+ alarmInfo = string.Format(AlarmCollection.GetAlarm(AlarmConstID.周转头粘料报警), masticSlots.ToJoinString());
//TestCenterMessageBox.Show(AlarmConstID.NozzleTackinessAlarm, alarmInfo, MessageButtonManager.GetSkip_MoveToSafe_Button(), MessageButtonManager.GetSkip_MoveToSafe_ButtonText());
- msgBox = MsgBox.ShowDialog(AlarmConstID.NozzleTackinessAlarm, alarmInfo, MessageButtonManager.GetSkip_MoveToSafe_Button(), MessageButtonManager.GetSkip_MoveToSafe_ButtonText());// TestCenterMessageBox.WaitResult(AlarmConstID.NozzleTackinessAlarm);
+ msgBox = MsgBox.ShowDialog(AlarmConstID.周转头粘料报警, alarmInfo, MessageButtonManager.GetSkip_MoveToSafe_Button(), MessageButtonManager.GetSkip_MoveToSafe_ButtonText());// TestCenterMessageBox.WaitResult(AlarmConstID.NozzleTackinessAlarm);
switch (msgBox.Button)
{
case ETipButton.Skip:
@@ -827,10 +831,11 @@ namespace Rs.MotionPlat.Flow
bool exit = false;
while (!exit)
{
- alarmInfo = $"测试治具{nozzle.NozzleIndex}号穴位光纤异常,有可能叠料,请处理";
+ // alarmInfo = $"测试治具{nozzle.NozzleIndex}号穴位光纤异常,有可能叠料,请处理";
+ alarmInfo = string.Format(AlarmCollection.GetAlarm(AlarmConstID.周转吸头放料到测试治具后测试治具光纤报警), nozzle.NozzleIndex) ;
MessageQueue.Instance.Warn(GetClassName() + alarmInfo);
//TestCenterMessageBox.Show(AlarmConstID.TextFixtureFiberAlarm, alarmInfo, MessageButtonManager.GetRetry_Skip_MoveToSafe_Button(), MessageButtonManager.GetRetry_Skip_MoveToSafe_ButtonText());
- msgBox = MsgBox.ShowDialog(AlarmConstID.TextFixtureFiberAlarm, alarmInfo, MessageButtonManager.GetRetry_Skip_MoveToSafe_Button(), MessageButtonManager.GetRetry_Skip_MoveToSafe_ButtonText());// TestCenterMessageBox.WaitResult(AlarmConstID.TextFixtureFiberAlarm);
+ msgBox = MsgBox.ShowDialog(AlarmConstID.周转吸头放料到测试治具后测试治具光纤报警, alarmInfo, MessageButtonManager.GetRetry_Skip_MoveToSafe_Button(), MessageButtonManager.GetRetry_Skip_MoveToSafe_ButtonText());// TestCenterMessageBox.WaitResult(AlarmConstID.TextFixtureFiberAlarm);
switch (msgBox.Button)
{
case ETipButton.Retry:
@@ -872,10 +877,11 @@ namespace Rs.MotionPlat.Flow
bool exit = false;
while (!exit)
{
- alarmInfo = $"测试治具{nozzle.NozzleIndex}号真空吸异常";
+ // alarmInfo = $"测试治具{nozzle.NozzleIndex}号真空吸异常";
+ alarmInfo = string.Format(AlarmCollection.GetAlarm(AlarmConstID.周转吸头放料到测试治具后测试治具真空吸报警), nozzle.NozzleIndex);
MessageQueue.Instance.Warn(GetClassName() + alarmInfo);
- TestCenterMessageBox.Show(AlarmConstID.NozzlesLoseMaterialAlarm, alarmInfo, MessageButtonManager.GetRetry_Skip_MoveToSafe_Button(), MessageButtonManager.GetRetry_Skip_MoveToSafe_ButtonText());
- msgBox = TestCenterMessageBox.WaitResult(AlarmConstID.NozzlesLoseMaterialAlarm);
+ TestCenterMessageBox.Show(AlarmConstID.周转吸头放料到测试治具后测试治具真空吸报警, alarmInfo, MessageButtonManager.GetRetry_Skip_MoveToSafe_Button(), MessageButtonManager.GetRetry_Skip_MoveToSafe_ButtonText());
+ msgBox = TestCenterMessageBox.WaitResult(AlarmConstID.周转吸头放料到测试治具后测试治具真空吸报警);
switch (msgBox.Button)
{
case ETipButton.Retry:
@@ -1217,9 +1223,10 @@ namespace Rs.MotionPlat.Flow
bool exit = false;
while (!exit)
{
- alarmInfo = GetClassName() + $"测试治具{testedSlots.Select(s => s.Index).ToJoinString()}号穴位取料失败";
- TestCenterMessageBox.Show(AlarmConstID.TransitNozzlelTakeProductFailAlarm, alarmInfo, MessageButtonManager.GetRetry_Skip_MoveToSafe_Button(), MessageButtonManager.GetRetry_Skip_MoveToSafe_ButtonText());
- msgBox = TestCenterMessageBox.WaitResult(AlarmConstID.TransitNozzlelTakeProductFailAlarm);
+ //alarmInfo = GetClassName() + $"测试治具{testedSlots.Select(s => s.Index).ToJoinString()}号穴位取料失败";
+ alarmInfo = string.Format(AlarmCollection.GetAlarm(AlarmConstID.周转吸头在测试治具取料失败报警), testedSlots.Select(s => s.Index).ToJoinString());
+ TestCenterMessageBox.Show(AlarmConstID.周转吸头在测试治具取料失败报警, alarmInfo, MessageButtonManager.GetRetry_Skip_MoveToSafe_Button(), MessageButtonManager.GetRetry_Skip_MoveToSafe_ButtonText());
+ msgBox = TestCenterMessageBox.WaitResult(AlarmConstID.周转吸头在测试治具取料失败报警);
switch (msgBox.Button)
{
case ETipButton.Retry:
@@ -1343,12 +1350,14 @@ namespace Rs.MotionPlat.Flow
if(GlobalVar.EnableTwoSpeed)
{
targetPos = SysConfigParam.GetValue("PressTakeZ") + GlobalVar.PressLowSpeedOffset;
+ errCode = AxisControl.TurnoverZ.MovePos(targetPos, GlobalVar.PressLowSpeed);
}
else
{
targetPos = SysConfigParam.GetValue("PressSafeZ");
+ errCode = AxisControl.TurnoverZ.MovePos(targetPos, GlobalVar.WholeSpeed);
}
- errCode = AxisControl.TurnoverZ.MovePos(targetPos, GlobalVar.PressLowSpeed);
+
if (errCode == Motion.ErrorCode.Ok || GlobalVar.VirtualAxis)
{
logInfo = GetClassName()+ $"到测试破关真空位";
@@ -1523,9 +1532,10 @@ namespace Rs.MotionPlat.Flow
bool exit = false;
while (!exit)
{
- alarmInfo = $"周转{loseSlots.ToJoinString()}号吸嘴真空异常丢料,请处理";
- TestCenterMessageBox.Show(AlarmConstID.NozzlesLoseMaterialAlarm, alarmInfo, MessageButtonManager.GetSkip_MoveToSafe_Button(), MessageButtonManager.GetSkip_MoveToSafe_ButtonText());
- msgBox = TestCenterMessageBox.WaitResult(AlarmConstID.NozzlesLoseMaterialAlarm);
+ //alarmInfo = $"周转{loseSlots.ToJoinString()}号吸嘴真空异常丢料,请处理";
+ alarmInfo = string.Format(AlarmCollection.GetAlarm(AlarmConstID.周转吸头在周转盘放料时丢料报警), loseSlots.ToJoinString()) ;
+ TestCenterMessageBox.Show(AlarmConstID.周转吸头在周转盘放料时丢料报警, alarmInfo, MessageButtonManager.GetSkip_MoveToSafe_Button(), MessageButtonManager.GetSkip_MoveToSafe_ButtonText());
+ msgBox = TestCenterMessageBox.WaitResult(AlarmConstID.周转吸头在周转盘放料时丢料报警);
switch (msgBox.Button)
{
case ETipButton.Skip:
@@ -1746,10 +1756,11 @@ namespace Rs.MotionPlat.Flow
bool exit = false;
while (!exit)
{
- alarmInfo = $"周转{masticSlots.ToJoinString()}号吸嘴真空异常粘料,请手工处理";
+ //alarmInfo = $"周转{masticSlots.ToJoinString()}号吸嘴真空异常粘料,请手工处理";
+ alarmInfo = string.Format(AlarmCollection.GetAlarm(AlarmConstID.周转头粘料报警), masticSlots.ToJoinString());
MessageQueue.Instance.Warn(GetClassName()+ alarmInfo);
- TestCenterMessageBox.Show(AlarmConstID.NozzlesLoseMaterialAlarm, alarmInfo, MessageButtonManager.GetSkip_MoveToSafe_Button(), MessageButtonManager.GetSkip_MoveToSafe_ButtonText());
- msgBox = TestCenterMessageBox.WaitResult(AlarmConstID.NozzlesLoseMaterialAlarm);
+ TestCenterMessageBox.Show(AlarmConstID.周转头粘料报警, alarmInfo, MessageButtonManager.GetSkip_MoveToSafe_Button(), MessageButtonManager.GetSkip_MoveToSafe_ButtonText());
+ msgBox = TestCenterMessageBox.WaitResult(AlarmConstID.周转头粘料报警);
switch (msgBox.Button)
{
case ETipButton.Skip:
@@ -1817,8 +1828,9 @@ namespace Rs.MotionPlat.Flow
bool exit = false;
while (!exit)
{
- alarmInfo = $"周转盘{slot.Index}号穴位真空吸异常,请选择处理";
- msgBox = MsgBox.ShowDialog(AlarmConstID.TurnoverDumpFailAlarm, alarmInfo, MessageButtonManager.GetRetry_Skip_MoveToSafe_Button(), MessageButtonManager.GetRetry_Skip_MoveToSafe_ButtonText());
+ //alarmInfo = $"周转盘{slot.Index}号穴位真空吸异常,请选择处理";
+ alarmInfo = string.Format(AlarmCollection.GetAlarm(AlarmConstID.周转吸头放料到周转盘后周转盘真空吸报警), slot.Index);
+ msgBox = MsgBox.ShowDialog(AlarmConstID.周转吸头放料到周转盘后周转盘真空吸报警, alarmInfo, MessageButtonManager.GetRetry_Skip_MoveToSafe_Button(), MessageButtonManager.GetRetry_Skip_MoveToSafe_ButtonText());
switch (msgBox.Button)
{
case ETipButton.Retry:
diff --git a/Rs.SkyLine/Flow/SubFlow/WarningSuckerNgFlow.cs b/Rs.SkyLine/Flow/SubFlow/WarningSuckerNgFlow.cs
index fec3753..95c268b 100644
--- a/Rs.SkyLine/Flow/SubFlow/WarningSuckerNgFlow.cs
+++ b/Rs.SkyLine/Flow/SubFlow/WarningSuckerNgFlow.cs
@@ -245,7 +245,7 @@ namespace Rs.MotionPlat.Flow.NgFlow
{
TransitModuleSafePosFlow.Instance.GoSafePostion( EExceptionSafePos.Socket);
alarmInfo = $"{exceptionTray}盘{exceptionSlotIndex}穴位取料失败{retakeNum}次,请人工处理";
- msgBox = MsgBox.ShowDialog(AlarmConstID.TurnoverTakeFailAlarm, alarmInfo, ETipButton.Ok);
+ msgBox = MsgBox.ShowDialog(66666, alarmInfo, ETipButton.Ok);
step = EWarningSuckerNgFlowStep.手动处理后镭射头检测;
}
}
diff --git a/Rs.SkyLine/SysConfig/StartPosConfig.cs b/Rs.SkyLine/SysConfig/StartPosConfig.cs
index 482c364..23b4b6b 100644
--- a/Rs.SkyLine/SysConfig/StartPosConfig.cs
+++ b/Rs.SkyLine/SysConfig/StartPosConfig.cs
@@ -75,23 +75,23 @@ namespace Rs.MotionPlat.SysConfig
private void button9_Click_1(object sender, EventArgs e)
{
- Dictionary buttonText = new Dictionary();
- buttonText.Add(ETipButton.Yes, "继续|Continue");
- buttonText.Add(ETipButton.Cancel, "跳过|Skip");
- buttonText.Add(ETipButton.Retry, "重试|Retry");
- buttonText.Add(ETipButton.No, "结束上料|EndInput");
+ //Dictionary buttonText = new Dictionary();
+ //buttonText.Add(ETipButton.Yes, "继续|Continue");
+ //buttonText.Add(ETipButton.Cancel, "跳过|Skip");
+ //buttonText.Add(ETipButton.Retry, "重试|Retry");
+ //buttonText.Add(ETipButton.No, "结束上料|EndInput");
// TestCenterMessageBox.Show(111,"fasdf", (ETipButton.Yes| ETipButton.No| ETipButton.Retry|ETipButton.Cancel),buttonText);
- TestCenterMessageBox.Show(AlarmConstID.TrayTakeFailAlarm, $"吸嘴次失败报警,请处理后点击确定", (ETipButton.Retry | ETipButton.Skip | ETipButton.Yes | ETipButton.No), buttonText);
+ //TestCenterMessageBox.Show(AlarmConstID.TrayTakeFailAlarm, $"吸嘴次失败报警,请处理后点击确定", (ETipButton.Retry | ETipButton.Skip | ETipButton.Yes | ETipButton.No), buttonText);
//TestCenterMessageBox.Show(AlarmConstID.TurnoverTakeFailAlarm, $"请处理后点击确定", (ETipButton.Retry | ETipButton.Skip | ETipButton.Yes | ETipButton.No), buttonText);
- Task.Run(() => {
- while (true)
- {
- SchedulingMessageBox box1 = TestCenterMessageBox.WaitResult(AlarmConstID.TrayTakeFailAlarm);
- Msg.ShowInfo(box1.Button.ToString());
- break;
- }
- });
+ //Task.Run(() => {
+ // while (true)
+ // {
+ // SchedulingMessageBox box1 = TestCenterMessageBox.WaitResult(AlarmConstID.TrayTakeFailAlarm);
+ // Msg.ShowInfo(box1.Button.ToString());
+ // break;
+ // }
+ //});
//Task.Run(() => {
// while (true)
// {