Commit 71344179 张东亮

只有出库取完料才检查料叉情况

1 个父辈 3d5d7ae7
...@@ -116,13 +116,13 @@ namespace DeviceLibrary ...@@ -116,13 +116,13 @@ namespace DeviceLibrary
case MoveStep.Wait: case MoveStep.Wait:
break; break;
case MoveStep.StoreTS01: case MoveStep.StoreTS01:
if (IOManager.IOValue(IO_Type.TrayCheck_Fixture).Equals(IO_VALUE.HIGH)) //if (IOManager.IOValue(IO_Type.TrayCheck_Fixture).Equals(IO_VALUE.HIGH))
{ //{
if (!IgnoreX09 && IOMonitor.IODebound(IO_Type.TrayCheck_Fixture, Config, IO_VALUE.HIGH, 5000)) // // if (!IgnoreX09 && IOMonitor.IODebound(IO_Type.TrayCheck_Fixture, Config, IO_VALUE.HIGH, 5000))
Msg.add(crc.GetString(L.out_store_detect_material, "取料前料叉X30检测到有物料无法继续,请检查."), MsgLevel.alarm, ErrInfo.X09_BoxNotDetect); // //Msg.add(crc.GetString(L.out_store_detect_material, "取料前料叉X30检测到有物料无法继续,请检查."), MsgLevel.alarm, ErrInfo.X09_BoxNotDetect);
//RobotManage.UserPause("出库时料叉X30检测到有物料无法继续,请检查"); // //RobotManage.UserPause("出库时料叉X30检测到有物料无法继续,请检查");
} //}
else //else
{ {
Msg.add("", MsgLevel.info, ErrInfo.X09_Clear); Msg.add("", MsgLevel.info, ErrInfo.X09_Clear);
IgnoreX09 = false; IgnoreX09 = false;
...@@ -179,7 +179,7 @@ namespace DeviceLibrary ...@@ -179,7 +179,7 @@ namespace DeviceLibrary
RobotManage.CameraA.CameraGrabOne(RobotManage.CameraA.GetFixtureStateFilename(From.posid, WareCode, storeMoveType, FixtureState.FromOut)); RobotManage.CameraA.CameraGrabOne(RobotManage.CameraA.GetFixtureStateFilename(From.posid, WareCode, storeMoveType, FixtureState.FromOut));
if (!IgnoreX09 && IOManager.IOValue(IO_Type.TrayCheck_Fixture).Equals(IO_VALUE.LOW)) if (!IgnoreX09 && IOManager.IOValue(IO_Type.TrayCheck_Fixture).Equals(IO_VALUE.LOW))
{ {
Msg.add(crc.GetString(L.out_store_not_detect_material, "取料料叉X30没有检测到有物料无法继续,请检查."), MsgLevel.alarm, ErrInfo.X09_BoxNotDetect); Msg.add(crc.GetString(L.out_store_not_detect_material, "取料料叉X30没有检测到有物料无法继续,请检查."), MsgLevel.alarm, ErrInfo.X09_BoxNotDetect);
//RobotManage.UserPause(crc.GetString(L.out_store_not_detect_material, "取料前料叉X30没有检测到有物料无法继续,请检查.")); //RobotManage.UserPause(crc.GetString(L.out_store_not_detect_material, "取料前料叉X30没有检测到有物料无法继续,请检查."));
} }
else else
...@@ -237,13 +237,13 @@ namespace DeviceLibrary ...@@ -237,13 +237,13 @@ namespace DeviceLibrary
var fixpos = "fix#" + To.Reel.PlateW.ToString(); var fixpos = "fix#" + To.Reel.PlateW.ToString();
int camPos = ConfigHelper.Config.Get($"CamPos_{fixpos}", Fix.UpDown_PL); int camPos = ConfigHelper.Config.Get($"CamPos_{fixpos}", Fix.UpDown_PL);
Comp_Axis.AbsMove(MoveInfo, 0, Config.Comp_P1_speed); Comp_Axis.AbsMove(MoveInfo, 0, Config.Comp_P1_speed);
UpDown_Axis.AbsMove(MoveInfo, camPos, Config.UpDown_P3_speed/2); UpDown_Axis.AbsMove(MoveInfo, camPos, Config.UpDown_P3_speed / 2);
MoveInfo.log($"{storeMoveType}:压紧轴回到待机点"); MoveInfo.log($"{storeMoveType}:压紧轴回到待机点");
MoveInfo.log($"{storeMoveType}:升降轴到拍照点"); MoveInfo.log($"{storeMoveType}:升降轴到拍照点");
break; break;
case MoveStep.StoreFIX04_02_UpToCamLoc: case MoveStep.StoreFIX04_02_UpToCamLoc:
MoveInfo.NextMoveStep(MoveStep.StoreFIX04_03_CheckLocation); MoveInfo.NextMoveStep(MoveStep.StoreFIX04_03_CheckLocation);
fixpos = "fix#" + To.Reel.PlateW.ToString(); fixpos = "fix#" + To.Reel.PlateW.ToString();
reelStatusInFix = VisionHelper.ReelStatusCheck(fixpos); reelStatusInFix = VisionHelper.ReelStatusCheck(fixpos);
break; break;
case MoveStep.StoreFIX04_03_CheckLocation: case MoveStep.StoreFIX04_03_CheckLocation:
...@@ -298,7 +298,7 @@ namespace DeviceLibrary ...@@ -298,7 +298,7 @@ namespace DeviceLibrary
case MoveStep.StoreFIX07: case MoveStep.StoreFIX07:
if (!IgnoreX09 && IOManager.IOValue(IO_Type.TrayCheck_Fixture).Equals(IO_VALUE.LOW)) if (!IgnoreX09 && IOManager.IOValue(IO_Type.TrayCheck_Fixture).Equals(IO_VALUE.LOW))
{ {
Msg.add(crc.GetString(L.out_store_not_detect_material, "取料料叉X30没有检测到有物料无法继续,请检查."), MsgLevel.alarm, ErrInfo.X09_BoxNotDetect); Msg.add(crc.GetString(L.out_store_not_detect_material, "取料料叉X30没有检测到有物料无法继续,请检查."), MsgLevel.alarm, ErrInfo.X09_BoxNotDetect);
//RobotManage.UserPause(crc.GetString(L.out_store_not_detect_material, "取料前料叉X30没有检测到有物料无法继续,请检查.")); //RobotManage.UserPause(crc.GetString(L.out_store_not_detect_material, "取料前料叉X30没有检测到有物料无法继续,请检查."));
} }
else else
...@@ -328,7 +328,7 @@ namespace DeviceLibrary ...@@ -328,7 +328,7 @@ namespace DeviceLibrary
MoveInfo.log($"等待料串准备好放料"); MoveInfo.log($"等待料串准备好放料");
return false; return false;
} }
else if(MoveInfo.IsTimeOut(10)) else if (MoveInfo.IsTimeOut(10))
{ {
mainMachine.TurnToOut(); mainMachine.TurnToOut();
} }
...@@ -366,12 +366,12 @@ namespace DeviceLibrary ...@@ -366,12 +366,12 @@ namespace DeviceLibrary
break; break;
case MoveStep.StoreTS15: case MoveStep.StoreTS15:
RobotManage.CameraA.CameraGrabOne(RobotManage.CameraA.GetFixtureStateFilename(To.posid, WareCode, storeMoveType, FixtureState.ToOut)); RobotManage.CameraA.CameraGrabOne(RobotManage.CameraA.GetFixtureStateFilename(To.posid, WareCode, storeMoveType, FixtureState.ToOut));
if (!IgnoreX09 && IOManager.IOValue(IO_Type.TrayCheck_Fixture).Equals(IO_VALUE.HIGH)) //if (!IgnoreX09 && IOManager.IOValue(IO_Type.TrayCheck_Fixture).Equals(IO_VALUE.HIGH))
{ //{
Msg.add(crc.GetString(L.in_store_detect_material, "放料后料叉X30上任然检测到物料,请检查."), MsgLevel.alarm, ErrInfo.X09_BoxNotDetect); // Msg.add(crc.GetString(L.in_store_detect_material, "放料后料叉X30上任然检测到物料,请检查."), MsgLevel.alarm, ErrInfo.X09_BoxNotDetect);
//RobotManage.UserPause("入库后料叉X30上任然检测到物料,请检查"); // //RobotManage.UserPause("入库后料叉X30上任然检测到物料,请检查");
} //}
else //else
{ {
Msg.add("", MsgLevel.info, ErrInfo.X09_Clear); Msg.add("", MsgLevel.info, ErrInfo.X09_Clear);
......
...@@ -63,13 +63,14 @@ namespace DeviceLibrary ...@@ -63,13 +63,14 @@ namespace DeviceLibrary
if (!boxTransport.IgnoreX09 && IOValue(IO_Type.TrayCheck_Fixture).Equals(IO_VALUE.HIGH)) if (!boxTransport.IgnoreX09 && IOValue(IO_Type.TrayCheck_Fixture).Equals(IO_VALUE.HIGH))
{ {
if (!boxTransport.IgnoreX09 && IOMonitor.IODebound(IO_Type.TrayCheck_Fixture, Config, IO_VALUE.HIGH, 1000)) //if (!boxTransport.IgnoreX09 && IOMonitor.IODebound(IO_Type.TrayCheck_Fixture, Config, IO_VALUE.HIGH, 1000))
{ //{
Msg.add(crc.GetString("Res0004", "收到出库任务,但料叉上有料,无法启动,请检查"), MsgLevel.alarm, ErrInfo.X09_BoxNotDetect); // Msg.add(crc.GetString("Res0004", "收到出库任务,但料叉上有料,无法启动,请检查"), MsgLevel.alarm, ErrInfo.X09_BoxNotDetect);
//RobotManage.UserPause("收到出库任务,但料叉上有料,无法启动,请检查"); // //RobotManage.UserPause(crc.GetString("Res0004", "收到出库任务,但料叉上有料,无法启动,请检查"));
} //}
else //else
Msg.add(crc.GetString("Res0004", "收到出库任务,但料叉上有料,无法启动,请检查"), MsgLevel.warning); Msg.add(crc.GetString("Res0004", "收到出库任务,但料叉上有料,无法启动,请检查"), MsgLevel.warning);
RobotManage.UserPause(crc.GetString("Res0004", "收到出库任务,但料叉上有料,无法启动,请检查"));
return; return;
} }
else else
...@@ -94,13 +95,14 @@ namespace DeviceLibrary ...@@ -94,13 +95,14 @@ namespace DeviceLibrary
if (!boxTransport.IgnoreX09 && IOValue(IO_Type.TrayCheck_Fixture).Equals(IO_VALUE.HIGH)) if (!boxTransport.IgnoreX09 && IOValue(IO_Type.TrayCheck_Fixture).Equals(IO_VALUE.HIGH))
{ {
if (!boxTransport.IgnoreX09 && IOMonitor.IODebound(IO_Type.TrayCheck_Fixture, Config, IO_VALUE.HIGH, 1000)) //if (!boxTransport.IgnoreX09 && IOMonitor.IODebound(IO_Type.TrayCheck_Fixture, Config, IO_VALUE.HIGH, 1000))
{ //{
Msg.add(crc.GetString("Res0004", "收到出库任务,但料叉上有料,无法启动,请检查"), MsgLevel.alarm, ErrInfo.X09_BoxNotDetect); // Msg.add(crc.GetString("Res0004", "收到出库任务,但料叉上有料,无法启动,请检查"), MsgLevel.alarm, ErrInfo.X09_BoxNotDetect);
//RobotManage.UserPause("收到出库任务,但料叉上有料,无法启动,请检查"); // //RobotManage.UserPause("收到出库任务,但料叉上有料,无法启动,请检查");
} //}
else //else
Msg.add(crc.GetString("Res0004", "收到出库任务,但料叉上有料,无法启动,请检查"), MsgLevel.warning); Msg.add(crc.GetString("Res0004", "收到出库任务,但料叉上有料,无法启动,请检查"), MsgLevel.warning);
RobotManage.UserPause(crc.GetString("Res0004", "收到出库任务,但料叉上有料,无法启动,请检查"));
return; return;
} }
else else
......
...@@ -45,6 +45,7 @@ namespace TheMachine ...@@ -45,6 +45,7 @@ namespace TheMachine
this.tabc = new System.Windows.Forms.TabControl(); this.tabc = new System.Windows.Forms.TabControl();
this.tabP1 = new System.Windows.Forms.TabPage(); this.tabP1 = new System.Windows.Forms.TabPage();
this.pnl = new System.Windows.Forms.Panel(); this.pnl = new System.Windows.Forms.Panel();
this.panelVideo = new System.Windows.Forms.Panel();
this.groupBox1 = new System.Windows.Forms.GroupBox(); this.groupBox1 = new System.Windows.Forms.GroupBox();
this.stateView = new System.Windows.Forms.ListView(); this.stateView = new System.Windows.Forms.ListView();
this.btn_releasestring = new System.Windows.Forms.Button(); this.btn_releasestring = new System.Windows.Forms.Button();
...@@ -57,7 +58,6 @@ namespace TheMachine ...@@ -57,7 +58,6 @@ namespace TheMachine
this.listView1 = new System.Windows.Forms.ListView(); this.listView1 = new System.Windows.Forms.ListView();
this.btn_stop = new System.Windows.Forms.Button(); this.btn_stop = new System.Windows.Forms.Button();
this.btn_run = new System.Windows.Forms.Button(); this.btn_run = new System.Windows.Forms.Button();
this.panelVideo = new System.Windows.Forms.Panel();
this.menuStrip1.SuspendLayout(); this.menuStrip1.SuspendLayout();
this.tabc.SuspendLayout(); this.tabc.SuspendLayout();
this.tabP1.SuspendLayout(); this.tabP1.SuspendLayout();
...@@ -210,6 +210,13 @@ namespace TheMachine ...@@ -210,6 +210,13 @@ namespace TheMachine
this.pnl.Size = new System.Drawing.Size(1000, 560); this.pnl.Size = new System.Drawing.Size(1000, 560);
this.pnl.TabIndex = 273; this.pnl.TabIndex = 273;
// //
// panelVideo
//
this.panelVideo.Location = new System.Drawing.Point(21, 258);
this.panelVideo.Name = "panelVideo";
this.panelVideo.Size = new System.Drawing.Size(436, 271);
this.panelVideo.TabIndex = 273;
//
// groupBox1 // groupBox1
// //
this.groupBox1.Controls.Add(this.stateView); this.groupBox1.Controls.Add(this.stateView);
...@@ -301,7 +308,6 @@ namespace TheMachine ...@@ -301,7 +308,6 @@ namespace TheMachine
this.btn_IgnoreX09.TabIndex = 6; this.btn_IgnoreX09.TabIndex = 6;
this.btn_IgnoreX09.Text = "忽略X30错误,并继续运行"; this.btn_IgnoreX09.Text = "忽略X30错误,并继续运行";
this.btn_IgnoreX09.UseVisualStyleBackColor = false; this.btn_IgnoreX09.UseVisualStyleBackColor = false;
this.btn_IgnoreX09.Visible = false;
this.btn_IgnoreX09.Click += new System.EventHandler(this.btn_IgnoreX09_Click); this.btn_IgnoreX09.Click += new System.EventHandler(this.btn_IgnoreX09_Click);
// //
// btn_PauseBuzzer // btn_PauseBuzzer
...@@ -355,13 +361,6 @@ namespace TheMachine ...@@ -355,13 +361,6 @@ namespace TheMachine
this.btn_run.UseVisualStyleBackColor = true; this.btn_run.UseVisualStyleBackColor = true;
this.btn_run.Click += new System.EventHandler(this.btn_run_Click); this.btn_run.Click += new System.EventHandler(this.btn_run_Click);
// //
// panelVideo
//
this.panelVideo.Location = new System.Drawing.Point(21, 258);
this.panelVideo.Name = "panelVideo";
this.panelVideo.Size = new System.Drawing.Size(436, 271);
this.panelVideo.TabIndex = 273;
//
// Form1 // Form1
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 17F); this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 17F);
......
...@@ -548,8 +548,13 @@ namespace TheMachine ...@@ -548,8 +548,13 @@ namespace TheMachine
private void btn_IgnoreX09_Click(object sender, EventArgs e) private void btn_IgnoreX09_Click(object sender, EventArgs e)
{ {
RobotManage.mainMachine.IgnoreX09(); DialogResult rtn = MessageBox.Show(crc.GetString("confirm_no_reel_in_com", "请确保料盘已从库位中取出")+"!", crc.GetString("title","Warning"), MessageBoxButtons.YesNo);
btn_IgnoreX09.Visible = false; if (rtn.Equals(DialogResult.Yes))
{
RobotManage.mainMachine.IgnoreX09();
btn_IgnoreX09.Visible = false;
}
} }
private void btn_releasestring_Click(object sender, EventArgs e) private void btn_releasestring_Click(object sender, EventArgs e)
......
...@@ -398,4 +398,5 @@ Res0017 无法操作 Unable to operate. ...@@ -398,4 +398,5 @@ Res0017 无法操作 Unable to operate.
Res0020 升降轴位置调试: Updown-Axis Debug Location Res0020 升降轴位置调试: Updown-Axis Debug Location
l_flipDoor_no_work 左侧翻板水平信号未亮 The left flap horizontal signal is not lit l_flipDoor_no_work 左侧翻板水平信号未亮 The left flap horizontal signal is not lit
r_flipDoor_no_work 右侧翻板水平信号未亮 The right flap horizontal signal is not lit r_flipDoor_no_work 右侧翻板水平信号未亮 The right flap horizontal signal is not lit
reel_not_in_right_status 料盘放置异常 The reel is placed abnormally
\ No newline at end of file \ No newline at end of file
reel_not_in_right_status 料盘放置异常 The reel is placed abnormally
confirm_no_reel_in_com 请确保料盘已从库位中取出 Make sure that the reel has been removed from the location
\ No newline at end of file \ No newline at end of file
...@@ -400,4 +400,5 @@ Res0020 升降轴位置调试: 昇降軸位置デバック  昇降軸位 ...@@ -400,4 +400,5 @@ Res0020 升降轴位置调试: 昇降軸位置デバック  昇降軸位
Res0021 请输入正确的速度 正しい速度を入力してください正しい速度を入力してください Res0021 请输入正确的速度 正しい速度を入力してください正しい速度を入力してください
l_flipDoor_no_work 左侧翻板水平信号未亮 左フラップ水平信号が点灯していない l_flipDoor_no_work 左侧翻板水平信号未亮 左フラップ水平信号が点灯していない
r_flipDoor_no_work 右侧翻板水平信号未亮 右フラップ水平信号が点灯しない r_flipDoor_no_work 右侧翻板水平信号未亮 右フラップ水平信号が点灯しない
reel_not_in_right_status 料盘放置异常 リールが異常に配置されている
\ No newline at end of file \ No newline at end of file
reel_not_in_right_status 料盘放置异常 リールが異常に配置されている
confirm_no_reel_in_com 请确保料盘已从库位中取出 リールがその場所から取り外されていることを確認してください
\ No newline at end of file \ No newline at end of file
...@@ -389,3 +389,4 @@ sureDelete 确定删除文件: 确定删除文件: ...@@ -389,3 +389,4 @@ sureDelete 确定删除文件: 确定删除文件:
l_flipDoor_no_work 左侧翻板水平信号未亮 左侧翻板水平信号未亮 l_flipDoor_no_work 左侧翻板水平信号未亮 左侧翻板水平信号未亮
r_flipDoor_no_work 右侧翻板水平信号未亮 右侧翻板水平信号未亮 r_flipDoor_no_work 右侧翻板水平信号未亮 右侧翻板水平信号未亮
reel_not_in_right_status 料盘放置异常 料盘放置异常 reel_not_in_right_status 料盘放置异常 料盘放置异常
confirm_no_reel_in_com 请确保料盘已从库位中取出 请确保料盘已从库位中取出
\ No newline at end of file \ No newline at end of file
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!