Commit 4f262f65 LN

料仓内部逻辑

1 个父辈 140cc20a
......@@ -36,10 +36,9 @@ namespace OnlineStore.DUOStore
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage4 = new System.Windows.Forms.TabPage();
this.btnAxisP = new System.Windows.Forms.Button();
this.btnDoorDown = new System.Windows.Forms.Button();
this.btnDoorUp = new System.Windows.Forms.Button();
this.groupInout = new System.Windows.Forms.GroupBox();
this.btnNgPro = new System.Windows.Forms.Button();
this.btnAxisP = new System.Windows.Forms.Button();
this.btnSingleOut = new System.Windows.Forms.Button();
this.txtComP1 = new System.Windows.Forms.TextBox();
this.txtInOutP2 = new System.Windows.Forms.TextBox();
......@@ -100,6 +99,9 @@ namespace OnlineStore.DUOStore
this.btnTempInit = new System.Windows.Forms.Button();
this.btnAxisOff = new System.Windows.Forms.Button();
this.btnAxisOn = new System.Windows.Forms.Button();
this.axisMoveControl1 = new OnlineStore.DUOStore.AxisMoveControl();
this.btnDoorDown = new System.Windows.Forms.Button();
this.btnDoorUp = new System.Windows.Forms.Button();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.lblMoveEquipInfo = new System.Windows.Forms.Label();
this.btnSotreReset = new System.Windows.Forms.Button();
......@@ -107,7 +109,6 @@ namespace OnlineStore.DUOStore
this.btnStoreStart = new System.Windows.Forms.Button();
this.lblWarnMsg = new System.Windows.Forms.Label();
this.lblThisSta = new System.Windows.Forms.Label();
this.axisMoveControl1 = new OnlineStore.DUOStore.AxisMoveControl();
this.groupBox4.SuspendLayout();
this.groupBox1.SuspendLayout();
this.tabControl1.SuspendLayout();
......@@ -128,7 +129,7 @@ namespace OnlineStore.DUOStore
this.chbDebug.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.chbDebug.AutoSize = true;
this.chbDebug.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.chbDebug.Location = new System.Drawing.Point(14, 568);
this.chbDebug.Location = new System.Drawing.Point(153, 518);
this.chbDebug.Name = "chbDebug";
this.chbDebug.Size = new System.Drawing.Size(84, 24);
this.chbDebug.TabIndex = 271;
......@@ -234,45 +235,11 @@ namespace OnlineStore.DUOStore
this.tabPage4.Text = " 库位信息 ";
this.tabPage4.UseVisualStyleBackColor = true;
//
// btnAxisP
//
this.btnAxisP.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnAxisP.Location = new System.Drawing.Point(538, 321);
this.btnAxisP.Name = "btnAxisP";
this.btnAxisP.Size = new System.Drawing.Size(128, 39);
this.btnAxisP.TabIndex = 8;
this.btnAxisP.Text = "轴卡点动";
this.btnAxisP.UseVisualStyleBackColor = true;
this.btnAxisP.Click += new System.EventHandler(this.btnAxisP_Click);
//
// btnDoorDown
//
this.btnDoorDown.BackColor = System.Drawing.Color.White;
this.btnDoorDown.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnDoorDown.Location = new System.Drawing.Point(121, 510);
this.btnDoorDown.Name = "btnDoorDown";
this.btnDoorDown.Size = new System.Drawing.Size(107, 39);
this.btnDoorDown.TabIndex = 272;
this.btnDoorDown.Text = "出料口门下降";
this.btnDoorDown.UseVisualStyleBackColor = false;
this.btnDoorDown.Click += new System.EventHandler(this.btnDoorDown_Click);
//
// btnDoorUp
//
this.btnDoorUp.BackColor = System.Drawing.Color.White;
this.btnDoorUp.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnDoorUp.Location = new System.Drawing.Point(13, 510);
this.btnDoorUp.Name = "btnDoorUp";
this.btnDoorUp.Size = new System.Drawing.Size(107, 39);
this.btnDoorUp.TabIndex = 271;
this.btnDoorUp.Text = "出料口门上升";
this.btnDoorUp.UseVisualStyleBackColor = false;
this.btnDoorUp.Click += new System.EventHandler(this.btnDoorUp_Click);
//
// groupInout
//
this.groupInout.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.groupInout.Controls.Add(this.btnNgPro);
this.groupInout.Controls.Add(this.btnAxisP);
this.groupInout.Controls.Add(this.btnSingleOut);
this.groupInout.Controls.Add(this.txtComP1);
......@@ -328,17 +295,42 @@ namespace OnlineStore.DUOStore
this.groupInout.TabStop = false;
this.groupInout.Text = "料仓操作";
//
// btnNgPro
//
this.btnNgPro.BackColor = System.Drawing.Color.White;
this.btnNgPro.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnNgPro.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnNgPro.Location = new System.Drawing.Point(658, 21);
this.btnNgPro.Name = "btnNgPro";
this.btnNgPro.Size = new System.Drawing.Size(128, 39);
this.btnNgPro.TabIndex = 310;
this.btnNgPro.Text = "NG料到出口测试";
this.btnNgPro.UseVisualStyleBackColor = false;
this.btnNgPro.Click += new System.EventHandler(this.btnNgPro_Click);
//
// btnAxisP
//
this.btnAxisP.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnAxisP.Location = new System.Drawing.Point(538, 326);
this.btnAxisP.Name = "btnAxisP";
this.btnAxisP.Size = new System.Drawing.Size(128, 39);
this.btnAxisP.TabIndex = 8;
this.btnAxisP.Text = "轴卡点动";
this.btnAxisP.UseVisualStyleBackColor = true;
this.btnAxisP.Click += new System.EventHandler(this.btnAxisP_Click);
//
// btnSingleOut
//
this.btnSingleOut.BackColor = System.Drawing.Color.White;
this.btnSingleOut.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSingleOut.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSingleOut.Location = new System.Drawing.Point(538, 21);
this.btnSingleOut.Location = new System.Drawing.Point(522, 21);
this.btnSingleOut.Name = "btnSingleOut";
this.btnSingleOut.Size = new System.Drawing.Size(128, 39);
this.btnSingleOut.TabIndex = 309;
this.btnSingleOut.Text = "单盘出库测试";
this.btnSingleOut.UseVisualStyleBackColor = false;
this.btnSingleOut.Click += new System.EventHandler(this.btnSingleOut_Click);
//
// txtComP1
//
......@@ -347,7 +339,7 @@ namespace OnlineStore.DUOStore
this.txtComP1.Cursor = System.Windows.Forms.Cursors.IBeam;
this.txtComP1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtComP1.ForeColor = System.Drawing.SystemColors.WindowText;
this.txtComP1.Location = new System.Drawing.Point(398, 267);
this.txtComP1.Location = new System.Drawing.Point(398, 272);
this.txtComP1.MaxLength = 20;
this.txtComP1.Name = "txtComP1";
this.txtComP1.RightToLeft = System.Windows.Forms.RightToLeft.No;
......@@ -362,7 +354,7 @@ namespace OnlineStore.DUOStore
this.txtInOutP2.Cursor = System.Windows.Forms.Cursors.IBeam;
this.txtInOutP2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtInOutP2.ForeColor = System.Drawing.SystemColors.WindowText;
this.txtInOutP2.Location = new System.Drawing.Point(672, 223);
this.txtInOutP2.Location = new System.Drawing.Point(672, 228);
this.txtInOutP2.MaxLength = 20;
this.txtInOutP2.Name = "txtInOutP2";
this.txtInOutP2.RightToLeft = System.Windows.Forms.RightToLeft.No;
......@@ -377,7 +369,7 @@ namespace OnlineStore.DUOStore
this.txtInOutP1.Cursor = System.Windows.Forms.Cursors.IBeam;
this.txtInOutP1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtInOutP1.ForeColor = System.Drawing.SystemColors.WindowText;
this.txtInOutP1.Location = new System.Drawing.Point(672, 149);
this.txtInOutP1.Location = new System.Drawing.Point(672, 154);
this.txtInOutP1.MaxLength = 20;
this.txtInOutP1.Name = "txtInOutP1";
this.txtInOutP1.RightToLeft = System.Windows.Forms.RightToLeft.No;
......@@ -392,7 +384,7 @@ namespace OnlineStore.DUOStore
this.txtMiddleP1.Cursor = System.Windows.Forms.Cursors.IBeam;
this.txtMiddleP1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtMiddleP1.ForeColor = System.Drawing.SystemColors.WindowText;
this.txtMiddleP1.Location = new System.Drawing.Point(156, 267);
this.txtMiddleP1.Location = new System.Drawing.Point(156, 272);
this.txtMiddleP1.MaxLength = 20;
this.txtMiddleP1.Name = "txtMiddleP1";
this.txtMiddleP1.RightToLeft = System.Windows.Forms.RightToLeft.No;
......@@ -407,7 +399,7 @@ namespace OnlineStore.DUOStore
this.txtUpDownP1.Cursor = System.Windows.Forms.Cursors.IBeam;
this.txtUpDownP1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtUpDownP1.ForeColor = System.Drawing.SystemColors.WindowText;
this.txtUpDownP1.Location = new System.Drawing.Point(156, 112);
this.txtUpDownP1.Location = new System.Drawing.Point(156, 117);
this.txtUpDownP1.MaxLength = 20;
this.txtUpDownP1.Name = "txtUpDownP1";
this.txtUpDownP1.RightToLeft = System.Windows.Forms.RightToLeft.No;
......@@ -422,7 +414,7 @@ namespace OnlineStore.DUOStore
this.txtUpDownP2.Cursor = System.Windows.Forms.Cursors.IBeam;
this.txtUpDownP2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtUpDownP2.ForeColor = System.Drawing.SystemColors.WindowText;
this.txtUpDownP2.Location = new System.Drawing.Point(156, 149);
this.txtUpDownP2.Location = new System.Drawing.Point(156, 154);
this.txtUpDownP2.MaxLength = 20;
this.txtUpDownP2.Name = "txtUpDownP2";
this.txtUpDownP2.RightToLeft = System.Windows.Forms.RightToLeft.No;
......@@ -437,7 +429,7 @@ namespace OnlineStore.DUOStore
this.txtComP3.Cursor = System.Windows.Forms.Cursors.IBeam;
this.txtComP3.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtComP3.ForeColor = System.Drawing.SystemColors.WindowText;
this.txtComP3.Location = new System.Drawing.Point(397, 342);
this.txtComP3.Location = new System.Drawing.Point(397, 346);
this.txtComP3.MaxLength = 20;
this.txtComP3.Name = "txtComP3";
this.txtComP3.RightToLeft = System.Windows.Forms.RightToLeft.No;
......@@ -452,7 +444,7 @@ namespace OnlineStore.DUOStore
this.txtComP2.Cursor = System.Windows.Forms.Cursors.IBeam;
this.txtComP2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtComP2.ForeColor = System.Drawing.SystemColors.WindowText;
this.txtComP2.Location = new System.Drawing.Point(397, 305);
this.txtComP2.Location = new System.Drawing.Point(397, 309);
this.txtComP2.MaxLength = 20;
this.txtComP2.Name = "txtComP2";
this.txtComP2.RightToLeft = System.Windows.Forms.RightToLeft.No;
......@@ -467,7 +459,7 @@ namespace OnlineStore.DUOStore
this.txtInOutP3.Cursor = System.Windows.Forms.Cursors.IBeam;
this.txtInOutP3.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtInOutP3.ForeColor = System.Drawing.SystemColors.WindowText;
this.txtInOutP3.Location = new System.Drawing.Point(672, 186);
this.txtInOutP3.Location = new System.Drawing.Point(672, 191);
this.txtInOutP3.MaxLength = 20;
this.txtInOutP3.Name = "txtInOutP3";
this.txtInOutP3.RightToLeft = System.Windows.Forms.RightToLeft.No;
......@@ -482,7 +474,7 @@ namespace OnlineStore.DUOStore
this.txtMiddleP2.Cursor = System.Windows.Forms.Cursors.IBeam;
this.txtMiddleP2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtMiddleP2.ForeColor = System.Drawing.SystemColors.WindowText;
this.txtMiddleP2.Location = new System.Drawing.Point(155, 306);
this.txtMiddleP2.Location = new System.Drawing.Point(155, 309);
this.txtMiddleP2.MaxLength = 20;
this.txtMiddleP2.Name = "txtMiddleP2";
this.txtMiddleP2.RightToLeft = System.Windows.Forms.RightToLeft.No;
......@@ -497,7 +489,7 @@ namespace OnlineStore.DUOStore
this.txtUpDownP5.Cursor = System.Windows.Forms.Cursors.IBeam;
this.txtUpDownP5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtUpDownP5.ForeColor = System.Drawing.SystemColors.WindowText;
this.txtUpDownP5.Location = new System.Drawing.Point(397, 186);
this.txtUpDownP5.Location = new System.Drawing.Point(397, 191);
this.txtUpDownP5.MaxLength = 20;
this.txtUpDownP5.Name = "txtUpDownP5";
this.txtUpDownP5.RightToLeft = System.Windows.Forms.RightToLeft.No;
......@@ -512,7 +504,7 @@ namespace OnlineStore.DUOStore
this.txtUpDownP6.Cursor = System.Windows.Forms.Cursors.IBeam;
this.txtUpDownP6.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtUpDownP6.ForeColor = System.Drawing.SystemColors.WindowText;
this.txtUpDownP6.Location = new System.Drawing.Point(397, 223);
this.txtUpDownP6.Location = new System.Drawing.Point(397, 228);
this.txtUpDownP6.MaxLength = 20;
this.txtUpDownP6.Name = "txtUpDownP6";
this.txtUpDownP6.RightToLeft = System.Windows.Forms.RightToLeft.No;
......@@ -527,7 +519,7 @@ namespace OnlineStore.DUOStore
this.txtUpDownP3.Cursor = System.Windows.Forms.Cursors.IBeam;
this.txtUpDownP3.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtUpDownP3.ForeColor = System.Drawing.SystemColors.WindowText;
this.txtUpDownP3.Location = new System.Drawing.Point(397, 112);
this.txtUpDownP3.Location = new System.Drawing.Point(397, 117);
this.txtUpDownP3.MaxLength = 20;
this.txtUpDownP3.Name = "txtUpDownP3";
this.txtUpDownP3.RightToLeft = System.Windows.Forms.RightToLeft.No;
......@@ -542,7 +534,7 @@ namespace OnlineStore.DUOStore
this.txtUpDownP4.Cursor = System.Windows.Forms.Cursors.IBeam;
this.txtUpDownP4.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtUpDownP4.ForeColor = System.Drawing.SystemColors.WindowText;
this.txtUpDownP4.Location = new System.Drawing.Point(397, 149);
this.txtUpDownP4.Location = new System.Drawing.Point(397, 154);
this.txtUpDownP4.MaxLength = 20;
this.txtUpDownP4.Name = "txtUpDownP4";
this.txtUpDownP4.RightToLeft = System.Windows.Forms.RightToLeft.No;
......@@ -559,7 +551,7 @@ namespace OnlineStore.DUOStore
this.btnComP1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnComP1.ForeColor = System.Drawing.Color.Purple;
this.btnComP1.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btnComP1.Location = new System.Drawing.Point(254, 262);
this.btnComP1.Location = new System.Drawing.Point(254, 267);
this.btnComP1.Name = "btnComP1";
this.btnComP1.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnComP1.Size = new System.Drawing.Size(140, 33);
......@@ -578,7 +570,7 @@ namespace OnlineStore.DUOStore
this.btnInOutP2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnInOutP2.ForeColor = System.Drawing.Color.Green;
this.btnInOutP2.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btnInOutP2.Location = new System.Drawing.Point(502, 218);
this.btnInOutP2.Location = new System.Drawing.Point(502, 223);
this.btnInOutP2.Name = "btnInOutP2";
this.btnInOutP2.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnInOutP2.Size = new System.Drawing.Size(164, 33);
......@@ -597,7 +589,7 @@ namespace OnlineStore.DUOStore
this.btnInOutP1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnInOutP1.ForeColor = System.Drawing.Color.Green;
this.btnInOutP1.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btnInOutP1.Location = new System.Drawing.Point(502, 144);
this.btnInOutP1.Location = new System.Drawing.Point(502, 149);
this.btnInOutP1.Name = "btnInOutP1";
this.btnInOutP1.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnInOutP1.Size = new System.Drawing.Size(164, 33);
......@@ -616,7 +608,7 @@ namespace OnlineStore.DUOStore
this.btnMiddleP1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnMiddleP1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(192)))));
this.btnMiddleP1.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btnMiddleP1.Location = new System.Drawing.Point(12, 262);
this.btnMiddleP1.Location = new System.Drawing.Point(12, 267);
this.btnMiddleP1.Name = "btnMiddleP1";
this.btnMiddleP1.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnMiddleP1.Size = new System.Drawing.Size(140, 33);
......@@ -635,7 +627,7 @@ namespace OnlineStore.DUOStore
this.btnUpDownP1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnUpDownP1.ForeColor = System.Drawing.Color.Red;
this.btnUpDownP1.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btnUpDownP1.Location = new System.Drawing.Point(12, 107);
this.btnUpDownP1.Location = new System.Drawing.Point(12, 112);
this.btnUpDownP1.Name = "btnUpDownP1";
this.btnUpDownP1.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnUpDownP1.Size = new System.Drawing.Size(140, 33);
......@@ -654,7 +646,7 @@ namespace OnlineStore.DUOStore
this.btnUpDownP2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnUpDownP2.ForeColor = System.Drawing.Color.Red;
this.btnUpDownP2.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btnUpDownP2.Location = new System.Drawing.Point(12, 144);
this.btnUpDownP2.Location = new System.Drawing.Point(12, 149);
this.btnUpDownP2.Name = "btnUpDownP2";
this.btnUpDownP2.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnUpDownP2.Size = new System.Drawing.Size(140, 33);
......@@ -672,7 +664,7 @@ namespace OnlineStore.DUOStore
this.btnComP3.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnComP3.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnComP3.ForeColor = System.Drawing.Color.Purple;
this.btnComP3.Location = new System.Drawing.Point(254, 337);
this.btnComP3.Location = new System.Drawing.Point(254, 341);
this.btnComP3.Name = "btnComP3";
this.btnComP3.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnComP3.Size = new System.Drawing.Size(140, 33);
......@@ -690,7 +682,7 @@ namespace OnlineStore.DUOStore
this.btnComP2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnComP2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnComP2.ForeColor = System.Drawing.Color.Purple;
this.btnComP2.Location = new System.Drawing.Point(254, 300);
this.btnComP2.Location = new System.Drawing.Point(254, 304);
this.btnComP2.Name = "btnComP2";
this.btnComP2.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnComP2.Size = new System.Drawing.Size(140, 33);
......@@ -708,7 +700,7 @@ namespace OnlineStore.DUOStore
this.btnInOutP3.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnInOutP3.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnInOutP3.ForeColor = System.Drawing.Color.Green;
this.btnInOutP3.Location = new System.Drawing.Point(502, 181);
this.btnInOutP3.Location = new System.Drawing.Point(502, 186);
this.btnInOutP3.Name = "btnInOutP3";
this.btnInOutP3.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnInOutP3.Size = new System.Drawing.Size(164, 33);
......@@ -726,7 +718,7 @@ namespace OnlineStore.DUOStore
this.btnMiddleP2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnMiddleP2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnMiddleP2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(192)))));
this.btnMiddleP2.Location = new System.Drawing.Point(12, 301);
this.btnMiddleP2.Location = new System.Drawing.Point(12, 304);
this.btnMiddleP2.Name = "btnMiddleP2";
this.btnMiddleP2.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnMiddleP2.Size = new System.Drawing.Size(140, 33);
......@@ -744,7 +736,7 @@ namespace OnlineStore.DUOStore
this.btnUpDownP5.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnUpDownP5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnUpDownP5.ForeColor = System.Drawing.Color.Red;
this.btnUpDownP5.Location = new System.Drawing.Point(254, 181);
this.btnUpDownP5.Location = new System.Drawing.Point(254, 186);
this.btnUpDownP5.Name = "btnUpDownP5";
this.btnUpDownP5.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnUpDownP5.Size = new System.Drawing.Size(140, 33);
......@@ -762,7 +754,7 @@ namespace OnlineStore.DUOStore
this.btnUpDownP6.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnUpDownP6.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnUpDownP6.ForeColor = System.Drawing.Color.Red;
this.btnUpDownP6.Location = new System.Drawing.Point(254, 218);
this.btnUpDownP6.Location = new System.Drawing.Point(254, 223);
this.btnUpDownP6.Name = "btnUpDownP6";
this.btnUpDownP6.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnUpDownP6.Size = new System.Drawing.Size(140, 33);
......@@ -780,7 +772,7 @@ namespace OnlineStore.DUOStore
this.btnUpDownP3.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnUpDownP3.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnUpDownP3.ForeColor = System.Drawing.Color.Red;
this.btnUpDownP3.Location = new System.Drawing.Point(254, 107);
this.btnUpDownP3.Location = new System.Drawing.Point(254, 112);
this.btnUpDownP3.Name = "btnUpDownP3";
this.btnUpDownP3.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnUpDownP3.Size = new System.Drawing.Size(140, 33);
......@@ -798,7 +790,7 @@ namespace OnlineStore.DUOStore
this.btnUpDownP4.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnUpDownP4.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnUpDownP4.ForeColor = System.Drawing.Color.Red;
this.btnUpDownP4.Location = new System.Drawing.Point(254, 144);
this.btnUpDownP4.Location = new System.Drawing.Point(254, 149);
this.btnUpDownP4.Name = "btnUpDownP4";
this.btnUpDownP4.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnUpDownP4.Size = new System.Drawing.Size(140, 33);
......@@ -812,7 +804,7 @@ namespace OnlineStore.DUOStore
//
this.lblSize.AutoSize = true;
this.lblSize.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblSize.Location = new System.Drawing.Point(7, 72);
this.lblSize.Location = new System.Drawing.Point(7, 75);
this.lblSize.Name = "lblSize";
this.lblSize.Size = new System.Drawing.Size(63, 17);
this.lblSize.TabIndex = 275;
......@@ -825,7 +817,7 @@ namespace OnlineStore.DUOStore
this.txtUpdownP11.Cursor = System.Windows.Forms.Cursors.IBeam;
this.txtUpdownP11.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtUpdownP11.ForeColor = System.Drawing.SystemColors.WindowText;
this.txtUpdownP11.Location = new System.Drawing.Point(156, 186);
this.txtUpdownP11.Location = new System.Drawing.Point(156, 191);
this.txtUpdownP11.MaxLength = 0;
this.txtUpdownP11.Name = "txtUpdownP11";
this.txtUpdownP11.RightToLeft = System.Windows.Forms.RightToLeft.No;
......@@ -840,7 +832,7 @@ namespace OnlineStore.DUOStore
this.txtUpdownP12.Cursor = System.Windows.Forms.Cursors.IBeam;
this.txtUpdownP12.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtUpdownP12.ForeColor = System.Drawing.SystemColors.WindowText;
this.txtUpdownP12.Location = new System.Drawing.Point(156, 223);
this.txtUpdownP12.Location = new System.Drawing.Point(156, 228);
this.txtUpdownP12.MaxLength = 0;
this.txtUpdownP12.Name = "txtUpdownP12";
this.txtUpdownP12.RightToLeft = System.Windows.Forms.RightToLeft.No;
......@@ -855,7 +847,7 @@ namespace OnlineStore.DUOStore
this.txtInoutP11.Cursor = System.Windows.Forms.Cursors.IBeam;
this.txtInoutP11.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtInoutP11.ForeColor = System.Drawing.SystemColors.WindowText;
this.txtInoutP11.Location = new System.Drawing.Point(672, 260);
this.txtInoutP11.Location = new System.Drawing.Point(672, 265);
this.txtInoutP11.MaxLength = 0;
this.txtInoutP11.Name = "txtInoutP11";
this.txtInoutP11.RightToLeft = System.Windows.Forms.RightToLeft.No;
......@@ -872,7 +864,7 @@ namespace OnlineStore.DUOStore
this.btnInoutP11.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnInoutP11.ForeColor = System.Drawing.Color.Green;
this.btnInoutP11.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btnInoutP11.Location = new System.Drawing.Point(502, 255);
this.btnInoutP11.Location = new System.Drawing.Point(502, 260);
this.btnInoutP11.Name = "btnInoutP11";
this.btnInoutP11.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnInoutP11.Size = new System.Drawing.Size(164, 33);
......@@ -891,7 +883,7 @@ namespace OnlineStore.DUOStore
this.btnUpdownP12.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnUpdownP12.ForeColor = System.Drawing.Color.Red;
this.btnUpdownP12.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btnUpdownP12.Location = new System.Drawing.Point(12, 218);
this.btnUpdownP12.Location = new System.Drawing.Point(12, 223);
this.btnUpdownP12.Name = "btnUpdownP12";
this.btnUpdownP12.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnUpdownP12.Size = new System.Drawing.Size(140, 33);
......@@ -908,7 +900,7 @@ namespace OnlineStore.DUOStore
this.txtMiddleP11.Cursor = System.Windows.Forms.Cursors.IBeam;
this.txtMiddleP11.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtMiddleP11.ForeColor = System.Drawing.SystemColors.WindowText;
this.txtMiddleP11.Location = new System.Drawing.Point(155, 345);
this.txtMiddleP11.Location = new System.Drawing.Point(155, 346);
this.txtMiddleP11.MaxLength = 0;
this.txtMiddleP11.Name = "txtMiddleP11";
this.txtMiddleP11.RightToLeft = System.Windows.Forms.RightToLeft.No;
......@@ -925,7 +917,7 @@ namespace OnlineStore.DUOStore
this.btnUpdownP11.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnUpdownP11.ForeColor = System.Drawing.Color.Red;
this.btnUpdownP11.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btnUpdownP11.Location = new System.Drawing.Point(12, 181);
this.btnUpdownP11.Location = new System.Drawing.Point(12, 186);
this.btnUpdownP11.Name = "btnUpdownP11";
this.btnUpdownP11.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnUpdownP11.Size = new System.Drawing.Size(140, 33);
......@@ -944,7 +936,7 @@ namespace OnlineStore.DUOStore
this.btnMiddleP11.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnMiddleP11.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(192)))));
this.btnMiddleP11.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btnMiddleP11.Location = new System.Drawing.Point(12, 340);
this.btnMiddleP11.Location = new System.Drawing.Point(12, 341);
this.btnMiddleP11.Name = "btnMiddleP11";
this.btnMiddleP11.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.btnMiddleP11.Size = new System.Drawing.Size(140, 33);
......@@ -959,7 +951,7 @@ namespace OnlineStore.DUOStore
this.lblMsg.AutoSize = true;
this.lblMsg.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblMsg.ForeColor = System.Drawing.Color.Green;
this.lblMsg.Location = new System.Drawing.Point(248, 70);
this.lblMsg.Location = new System.Drawing.Point(248, 73);
this.lblMsg.Name = "lblMsg";
this.lblMsg.Size = new System.Drawing.Size(135, 20);
this.lblMsg.TabIndex = 223;
......@@ -970,7 +962,7 @@ namespace OnlineStore.DUOStore
this.btnSavePosition.BackColor = System.Drawing.Color.White;
this.btnSavePosition.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSavePosition.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSavePosition.Location = new System.Drawing.Point(538, 65);
this.btnSavePosition.Location = new System.Drawing.Point(658, 64);
this.btnSavePosition.Name = "btnSavePosition";
this.btnSavePosition.Size = new System.Drawing.Size(128, 39);
this.btnSavePosition.TabIndex = 217;
......@@ -983,7 +975,7 @@ namespace OnlineStore.DUOStore
this.btnStartAuTo.BackColor = System.Drawing.Color.White;
this.btnStartAuTo.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnStartAuTo.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnStartAuTo.Location = new System.Drawing.Point(391, 65);
this.btnStartAuTo.Location = new System.Drawing.Point(522, 64);
this.btnStartAuTo.Name = "btnStartAuTo";
this.btnStartAuTo.Size = new System.Drawing.Size(128, 39);
this.btnStartAuTo.TabIndex = 222;
......@@ -995,7 +987,7 @@ namespace OnlineStore.DUOStore
//
this.label9.AutoSize = true;
this.label9.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label9.Location = new System.Drawing.Point(101, 72);
this.label9.Location = new System.Drawing.Point(101, 75);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(83, 17);
this.label9.TabIndex = 220;
......@@ -1003,7 +995,7 @@ namespace OnlineStore.DUOStore
//
// txtJiange
//
this.txtJiange.Location = new System.Drawing.Point(190, 67);
this.txtJiange.Location = new System.Drawing.Point(190, 70);
this.txtJiange.Name = "txtJiange";
this.txtJiange.Size = new System.Drawing.Size(52, 26);
this.txtJiange.TabIndex = 221;
......@@ -1025,7 +1017,7 @@ namespace OnlineStore.DUOStore
this.btnInStore.BackColor = System.Drawing.Color.White;
this.btnInStore.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnInStore.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnInStore.Location = new System.Drawing.Point(248, 21);
this.btnInStore.Location = new System.Drawing.Point(250, 21);
this.btnInStore.Name = "btnInStore";
this.btnInStore.Size = new System.Drawing.Size(128, 39);
this.btnInStore.TabIndex = 102;
......@@ -1038,7 +1030,7 @@ namespace OnlineStore.DUOStore
this.btnOutStore.BackColor = System.Drawing.Color.White;
this.btnOutStore.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnOutStore.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnOutStore.Location = new System.Drawing.Point(391, 21);
this.btnOutStore.Location = new System.Drawing.Point(386, 21);
this.btnOutStore.Name = "btnOutStore";
this.btnOutStore.Size = new System.Drawing.Size(128, 39);
this.btnOutStore.TabIndex = 101;
......@@ -1208,6 +1200,38 @@ namespace OnlineStore.DUOStore
this.btnAxisOn.UseVisualStyleBackColor = true;
this.btnAxisOn.Click += new System.EventHandler(this.料仓运转ONToolStripMenuItem_Click);
//
// axisMoveControl1
//
this.axisMoveControl1.Enabled = false;
this.axisMoveControl1.Location = new System.Drawing.Point(7, 4);
this.axisMoveControl1.Name = "axisMoveControl1";
this.axisMoveControl1.Size = new System.Drawing.Size(735, 316);
this.axisMoveControl1.TabIndex = 0;
//
// btnDoorDown
//
this.btnDoorDown.BackColor = System.Drawing.Color.White;
this.btnDoorDown.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnDoorDown.Location = new System.Drawing.Point(10, 561);
this.btnDoorDown.Name = "btnDoorDown";
this.btnDoorDown.Size = new System.Drawing.Size(137, 39);
this.btnDoorDown.TabIndex = 272;
this.btnDoorDown.Text = "出料口门下降/关闭";
this.btnDoorDown.UseVisualStyleBackColor = false;
this.btnDoorDown.Click += new System.EventHandler(this.btnDoorDown_Click);
//
// btnDoorUp
//
this.btnDoorUp.BackColor = System.Drawing.Color.White;
this.btnDoorUp.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnDoorUp.Location = new System.Drawing.Point(11, 510);
this.btnDoorUp.Name = "btnDoorUp";
this.btnDoorUp.Size = new System.Drawing.Size(137, 39);
this.btnDoorUp.TabIndex = 271;
this.btnDoorUp.Text = "出料口门上升/打开";
this.btnDoorUp.UseVisualStyleBackColor = false;
this.btnDoorUp.Click += new System.EventHandler(this.btnDoorUp_Click);
//
// groupBox3
//
this.groupBox3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
......@@ -1292,14 +1316,6 @@ namespace OnlineStore.DUOStore
this.lblThisSta.TabIndex = 216;
this.lblThisSta.Text = "等待启动";
//
// axisMoveControl1
//
this.axisMoveControl1.Enabled = false;
this.axisMoveControl1.Location = new System.Drawing.Point(7, 4);
this.axisMoveControl1.Name = "axisMoveControl1";
this.axisMoveControl1.Size = new System.Drawing.Size(735, 316);
this.axisMoveControl1.TabIndex = 0;
//
// FrmBox
//
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
......@@ -1422,6 +1438,7 @@ namespace OnlineStore.DUOStore
public System.Windows.Forms.Button btnUpDownP3;
public System.Windows.Forms.Button btnUpDownP4;
private System.Windows.Forms.Button btnSingleOut;
private System.Windows.Forms.Button btnNgPro;
}
}
......@@ -211,11 +211,10 @@ namespace OnlineStore.DUOStore
{
if (BoxBean.storeRunStatus >= StoreRunStatus.HomeMoving)
{
//string selectPositionNum = cmbPosition.Text;
//string sleShelfNum = cmbShelfPosition.Text;
//LineMoveP ktk = LoadPostion();
//InOutParam param = new InOutParam("", selectPositionNum, sleShelfNum, ktk);
//BoxBean.StartOutStoreMove(param);
string selectPositionNum = cmbPosition.Text;
LineMoveP ktk = LoadPostion();
InOutParam param = new InOutParam("", selectPositionNum, ktk);
BoxBean.StartOutStoreMove(param);
}
else
{
......@@ -227,10 +226,9 @@ namespace OnlineStore.DUOStore
{
if (BoxBean.storeRunStatus >= StoreRunStatus.HomeMoving)
{
//string selectPositionNum = cmbPosition.Text;
//string sleShelfNum = cmbShelfPosition.Text;
//LineMoveP ktk = LoadPostion();
//BoxBean.StartInStoreMove(new InOutParam("", selectPositionNum, sleShelfNum, ktk));
string selectPositionNum = cmbPosition.Text;
LineMoveP ktk = LoadPostion();
BoxBean.StartInStoreMove(new InOutParam("", selectPositionNum, ktk));
}
else
{
......@@ -801,5 +799,34 @@ namespace OnlineStore.DUOStore
{
BoxBean.CylinderMove(null, IO_Type.OutDoor_Up, IO_Type.OutDoor_Down);
}
private void btnNgPro_Click(object sender, EventArgs e)
{
if (BoxBean.storeRunStatus >= StoreRunStatus.HomeMoving)
{
string selectPositionNum = cmbPosition.Text;
LineMoveP ktk = LoadPostion();
BoxBean.StartInStoreMove(new InOutParam("", selectPositionNum, ktk,1));
}
else
{
MessageBox.Show("请先启动料仓!");
}
}
private void btnSingleOut_Click(object sender, EventArgs e)
{
if (BoxBean.storeRunStatus >= StoreRunStatus.HomeMoving)
{
string selectPositionNum = cmbPosition.Text;
LineMoveP ktk = LoadPostion();
InOutParam param = new InOutParam("", selectPositionNum, ktk,1);
BoxBean.StartOutStoreMove(param);
}
else
{
MessageBox.Show("请先启动料仓!");
}
}
}
}
......@@ -51,14 +51,14 @@ DI,0,取料气缸放松端,ClampCylinder_Relax,2,PRO_AIO_IP_2,X23,,,,,,,,,,
DI,0,取料气缸夹紧端,ClampCylinder_Clamp,3,PRO_AIO_IP_2,X24,,,,,,,,,,
DI,1,左侧出料口安全光栅,OutDoor_SafeSignal,4,PRO_AIO_IP_2,X25,,,,,,,,,,
DI,1,左侧暂存区料盘检测,InDoor_Check,5,PRO_AIO_IP_2,X26,,,,,,,,,,
DI,1,左侧出料口门上升端,OutDoor_Up,6,PRO_AIO_IP_2,X27,,,,,,,,,,
DI,1,左侧出料口门下降端,OutDoor_Down,7,PRO_AIO_IP_2,X28,,,,,,,,,,
DI,1,左侧出料口门上升/打开端,OutDoor_Up,6,PRO_AIO_IP_2,X27,,,,,,,,,,
DI,1,左侧出料口门下降/关闭端,OutDoor_Down,7,PRO_AIO_IP_2,X28,,,,,,,,,,
DI,1,左侧出料口料盘检测,OutDoor_Check,8,PRO_AIO_IP_2,X29,,,,,,,,,,
DI,1,左侧料叉料盘检测,Fixture_Check,9,PRO_AIO_IP_2,X30,,,,,,,,,,
DI,2,右侧出料口安全光栅,OutDoor_SafeSignal,10,PRO_AIO_IP_2,X31,,,,,,,,,,
DI,2,右侧暂存区料盘检测,InDoor_Check,11,PRO_AIO_IP_2,X32,,,,,,,,,,
DI,2,右侧出料口门上升端,OutDoor_Up,12,PRO_AIO_IP_2,X33,,,,,,,,,,
DI,2,右侧出料口门下降端,OutDoor_Down,13,PRO_AIO_IP_2,X34,,,,,,,,,,
DI,2,右侧出料口门上升/打开端,OutDoor_Up,12,PRO_AIO_IP_2,X33,,,,,,,,,,
DI,2,右侧出料口门下降/关闭端,OutDoor_Down,13,PRO_AIO_IP_2,X34,,,,,,,,,,
DI,2,右侧料叉料盘检测,OutDoor_Check,14,PRO_AIO_IP_2,X35,,,,,,,,,,
DI,2,右侧出料口料盘检测,Fixture_Check,15,PRO_AIO_IP_2,X36,,,,,,,,,,
,,,,,,,,,,,,,,,,
......@@ -74,10 +74,10 @@ DO,0,线体顶升气缸上升SOL,TopCylinder_Up,8,PRO_AIO_IP_2,Y29,,,,,,,,,,
DO,0,线体顶升气缸下降SOL,TopCylinder_Down,9,PRO_AIO_IP_2,Y30,,,,,,,,,,
DO,0,取料气缸放松SOL,ClampCylinder_Relax,10,PRO_AIO_IP_2,Y31,,,,,,,,,,
DO,0,取料气缸夹紧SOL,ClampCylinder_Clamp,11,PRO_AIO_IP_2,Y32,,,,,,,,,,
DO,1,左侧出料口门上升SOL,OutDoor_Up,12,PRO_AIO_IP_2,Y33,,,,,,,,,,
DO,1,左侧出料口门下降SOL,OutDoor_Down,13,PRO_AIO_IP_2,Y34,,,,,,,,,,
DO,2,右侧出料口门上升SOL,OutDoor_Up,14,PRO_AIO_IP_2,Y35,,,,,,,,,,
DO,2,右侧出料口门下降SOL,OutDoor_Down,15,PRO_AIO_IP_2,Y36,,,,,,,,,,
DO,1,左侧出料口门上升/打开SOL,OutDoor_Up,12,PRO_AIO_IP_2,Y33,,,,,,,,,,
DO,1,左侧出料口门下降/关闭SOL,OutDoor_Down,13,PRO_AIO_IP_2,Y34,,,,,,,,,,
DO,2,右侧出料口门上升/打开SOL,OutDoor_Up,14,PRO_AIO_IP_2,Y35,,,,,,,,,,
DO,2,右侧出料口门下降/关闭SOL,OutDoor_Down,15,PRO_AIO_IP_2,Y36,,,,,,,,,,
,,,,,,,,,,,,,,,,
DI,0,取料气缸料盘检测,ClampCylinder_Check,0,PRO_AIO_IP_3,X41,,,,,,,,,,
DI,0,线体出口放行信号,LineOut_BTN,1,PRO_AIO_IP_3,X42,,,,,,,,,,
......
......@@ -30,30 +30,27 @@ namespace OnlineStore.DeviceLibrary
public List<string> PositionNumList = new List<string>();
public HumitureBean humBean = null;
private System.Timers.Timer serverConnectTimer = new System.Timers.Timer();
private System.Timers.Timer IoCheckTimer = new System.Timers.Timer();
private int logType = 1000;
public AxisBean UpdownAxis = null;
public AxisBean MiddleAxis = null;
public AxisBean ComAxis = null;
public AxisBean InoutAxis = null;
/// <summary>
/// 出料口最后一盘料信息,0=暂无,1=单盘出库料亮绿灯,2=入库NG料亮红灯
/// </summary>
public int OutDoorReelType = 0;
public BoxBean(BOX_Config config)
{
Init();
baseConfig = config;
CID = config.CID;
serverConnectTimer = new System.Timers.Timer();
serverConnectTimer.Interval = 1000;
serverConnectTimer.AutoReset = true;
serverConnectTimer.Enabled = false;
serverConnectTimer.Elapsed += server_connect_timer_Tick;
IoCheckTimer = new System.Timers.Timer();
IoCheckTimer.Interval = 200;
IoCheckTimer.AutoReset = true;
IoCheckTimer.Enabled = false;
IoCheckTimer.Elapsed += IoCheckTimer_Elapsed;
serverConnectTimer.Elapsed += server_connect_timer_Tick;
logType = 1000 * config.Id;
//添加调试
IsDebug = config.IsInDebug.Equals(1);
......@@ -111,7 +108,6 @@ namespace OnlineStore.DeviceLibrary
public void MoveAxisConfig()
{
Config.UpDown_Axis.BreakOnDO = IO_Type.UpdownAxis_Break;
moveAxisList = new List<ConfigMoveAxis>();
moveAxisList.Add(Config.Middle_Axis);
moveAxisList.Add(Config.UpDown_Axis);
......@@ -242,7 +238,7 @@ namespace OnlineStore.DeviceLibrary
case StoreMoveStep.BOX_H01_InOutBack:
MoveInfo.NextMoveStep(StoreMoveStep.BOX_H02_InoutToP1);
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000));
LogInfo(MoveInfo.MoveType + ": ,进出轴到待机点P1,关闭仓");
LogInfo(MoveInfo.MoveType + ": ,进出轴到待机点P1,关闭仓");
InoutAxis.AbsMove(MoveInfo, Config.InOutAxis_P1, Config.InOutAxis_P1_Speed);
CylinderMove(MoveInfo, IO_Type.OutDoor_Up, IO_Type.OutDoor_Down);
break;
......@@ -354,8 +350,7 @@ namespace OnlineStore.DeviceLibrary
storeStatus = StoreStatus.SuddenStop;
}
}
private bool InProcess = false;
//private DateTime preProcessTime = DateTime.Now;
private bool InProcess = false;
private bool IsChongfu = false;
private Stopwatch stopwatch = new Stopwatch();
protected override void timersTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
......
......@@ -167,25 +167,32 @@ namespace OnlineStore.DeviceLibrary
return;
}
if (!StoreManager.LoadInoutParam(param, true, this))
if (!StoreManager.LoadInoutParam(param, MoveType.InStore, true, this))
{
LogUtil.error(Name + " 启动入库【" + param.ToStr() + "】出错,找不到库位信息");
return;
}
LogInfo(" 启动入库【" + param.ToStr() + "】 ");
storeRunStatus = StoreRunStatus.Busy;
storeStatus = StoreStatus.InStoreExecute;
if (param.TargetPosition.Equals(0))
{
storeStatus = StoreStatus.InStoreExecute;
}
MoveInfo.NewMove(MoveType.InStore, param);
//新的料架库位
MoveInfo.NextMoveStep(StoreMoveStep.SI_01_InoutToP1);
MoveInfo.SingleInstore = true;
InOutStoreLog("料架取料:" + MoveInfo.SLog + " 进出轴返回P1");
InOutStoreLog("启动入料: 进出轴返回P1");
InoutAxis.AbsMove(MoveInfo, Config.InOutAxis_P1, Config.InOutAxis_P1_Speed);
}
protected override void InStoreProcess()
{
string outType = "入库:";
if (MoveInfo.MoveParam.TargetPosition.Equals(1))
{
outType = "NG料:";
}
LineMoveP moveP = MoveInfo.MoveParam.MoveP;
if (MoveInfo.IsInWait)
{
......@@ -198,7 +205,7 @@ namespace OnlineStore.DeviceLibrary
if (MoveInfo.IsStep(StoreMoveStep.SI_01_InoutToP1))
{
MoveInfo.NextMoveStep(StoreMoveStep.SI_02_AxisBack);
InOutStoreLog("入库: 升降轴,旋转轴到P1,压紧轴到P3");
InOutStoreLog(outType+" 升降轴到P1,旋转轴到P1,压紧轴到P3");
ComAxis.AbsMove(MoveInfo, moveP.ComPress_P3, Config.CompAxis_P3_Speed);
UpdownAxis.AbsMove(MoveInfo, moveP.UpDown_P1, Config.UpDownAxis_P1_Speed);
MiddleAxis.AbsMove(MoveInfo, moveP.Middle_P1, Config.MiddleAxis_P1_Speed);
......@@ -206,70 +213,76 @@ namespace OnlineStore.DeviceLibrary
else if (MoveInfo.IsStep(StoreMoveStep.SI_02_AxisBack))
{
MoveInfo.NextMoveStep(StoreMoveStep.SI_03_InoutToP2);
InOutStoreLog("入库:进出轴到P2( 进料口取料点) ");
InOutStoreLog(outType+"进出轴到P2( 进料口取料点) ");
InoutAxis.AbsMove(MoveInfo, moveP.InOut_P2, Config.InOutAxis_P2_Speed);
}
else if (MoveInfo.IsStep(StoreMoveStep.SI_03_InoutToP2))
{
MoveInfo.NextMoveStep(StoreMoveStep.SI_04_GetWare );
InOutStoreLog("入库:升降轴到P7( 进料口取料缓冲点)压紧轴到P2(压紧点) ");
MoveInfo.NextMoveStep(StoreMoveStep.SI_04_GetReel );
InOutStoreLog(outType+"升降轴到P7( 进料口取料缓冲点)压紧轴到P2(压紧点) ");
ComAxis.AbsMove(MoveInfo, moveP.ComPress_P2, Config.CompAxis_P2_Speed);
UpdownAxis.AbsMove(MoveInfo, moveP.UpDown_P7, Config.UpDownAxis_P7_Speed);
}
else if (MoveInfo.IsStep(StoreMoveStep.SI_04_GetWare))
else if (MoveInfo.IsStep(StoreMoveStep.SI_04_GetReel))
{
MoveInfo.NextMoveStep(StoreMoveStep.SI_05_InoutToP1 );
InOutStoreLog("入库:进出轴返回P1 ");
InOutStoreLog(outType+"进出轴返回P1 ");
InOutBackToP1(moveP.InOut_P1);
}
else if (MoveInfo.IsStep(StoreMoveStep.SI_05_InoutToP1))
{
MoveInfo.NextMoveStep(StoreMoveStep.SI_06_ToBag);
InOutStoreLog("入库:移动到库位点,旋转轴到P2( 库位点),升降轴到P3(库位入库前点) ");
MiddleAxis.AbsMove(MoveInfo, moveP.Middle_P2, Config.MiddleAxis_P2_Speed);
UpdownAxis.AbsMove(MoveInfo, moveP.UpDown_P3, Config.UpDownAxis_P3_Speed);
{
if (MoveInfo.MoveParam.TargetPosition.Equals(0))
{
MoveInfo.NextMoveStep(StoreMoveStep.SI_06_ToPos);
InOutStoreLog(outType+"移动到库位点,旋转轴到P2( 库位点),升降轴到P3(库位入库前点) ");
MiddleAxis.AbsMove(MoveInfo, moveP.Middle_P2, Config.MiddleAxis_P2_Speed);
UpdownAxis.AbsMove(MoveInfo, moveP.UpDown_P3, Config.UpDownAxis_P3_Speed);
}else
{
MoveInfo.NextMoveStep(StoreMoveStep.SI_21_ToOutDoor);
InOutStoreLog(outType+"移动到出料口,旋转轴到P11,升降轴到P12高点 ");
MiddleAxis.AbsMove(MoveInfo,Config.MiddleAxis_P11, Config.MiddleAxis_P11_Speed);
UpdownAxis.AbsMove(MoveInfo, Config.UpDownAxis_P12, Config.UpDownAxis_P12_Speed);
}
}
else if (MoveInfo.IsStep(StoreMoveStep.SI_06_ToBag))
#region 正常入库处理
else if (MoveInfo.IsStep(StoreMoveStep.SI_06_ToPos))
{
MoveInfo.NextMoveStep(StoreMoveStep.SI_07_InoutToP3 );
InOutStoreLog("入库:进出轴到P3(库位取放料点) ");
InoutAxis.AbsMove(MoveInfo, moveP.InOut_P3, Config.InOutAxis_P3_Speed);
//关闭舱门
MoveInfo.NextMoveStep(StoreMoveStep.SI_07_InoutToP3);
InOutStoreLog(outType+"进出轴到P3(库位取放料点) ");
InoutAxis.AbsMove(MoveInfo, moveP.InOut_P3, Config.InOutAxis_P3_Speed);
}
else if (MoveInfo.IsStep(StoreMoveStep.SI_07_InoutToP3))
{
MoveInfo.NextMoveStep(StoreMoveStep.SI_08_PutWare);
InOutStoreLog("入库:升降轴到P4( 库位入料缓冲点)压紧轴到P3( 压紧前点) ");
{
MoveInfo.NextMoveStep(StoreMoveStep.SI_08_PutReel);
InOutStoreLog(outType+"升降轴到P4( 库位入料缓冲点)压紧轴到P3( 压紧前点) ");
// 5= 入仓位完成(料仓Box把料盘放入对应的库位中,装置还未恢复原始状态)
string posId = MoveInfo.MoveParam.PosID;
lastPosId = posId;
lastPosIdStatus = StoreStatus.InStoreEnd;
storeStatus = StoreStatus.InStoreEnd;
//手动发给服务器状态,防止没有手动
//SendLineStatus(StoreID, posId, StoreStatus.InStoreEnd);
InoutAxis.AbsMove(MoveInfo, moveP.InOut_P3, Config.InOutAxis_P3_Speed);
storeStatus = StoreStatus.InStoreEnd;
ComAxis.AbsMove(MoveInfo, moveP.ComPress_P3, Config.CompAxis_P3_Speed);
UpdownAxis.AbsMove(MoveInfo, moveP.UpDown_P4, Config.UpDownAxis_P4_Speed);
UpdownAxis.AbsMove(MoveInfo, moveP.UpDown_P4, Config.UpDownAxis_P4_Speed);
}
else if (MoveInfo.IsStep(StoreMoveStep.SI_08_PutWare))
{
else if (MoveInfo.IsStep(StoreMoveStep.SI_08_PutReel))
{
MoveInfo.NextMoveStep(StoreMoveStep.SI_09_InoutToP1);
InOutStoreLog("入库:进出轴返回P1 ");
InOutBackToP1(moveP.InOut_P1);
InOutStoreLog(outType+"进出轴返回P1 ");
InOutBackToP1(moveP.InOut_P1);
OutDoorReelType = 2;
}
else if (MoveInfo.MoveStep == StoreMoveStep.SI_09_InoutToP1)
{
InOutStoreLog("入库:旋转轴,升降轴,压紧轴到待机点P1");
MoveInfo.NextMoveStep(StoreMoveStep.SI_10_GoBack);
InOutStoreLog(outType+"旋转轴,升降轴,压紧轴到待机点P1");
ComAxis.AbsMove(MoveInfo, moveP.ComPress_P1, Config.CompAxis_P1_Speed);
MiddleAxis.AbsMove(MoveInfo, moveP.Middle_P1, Config.MiddleAxis_P1_Speed);
UpdownAxis.AbsMove(MoveInfo, moveP.UpDown_P1, Config.UpDownAxis_P1_Speed);
UpdownAxis.AbsMove(MoveInfo, moveP.UpDown_P1, Config.UpDownAxis_P1_Speed);
}
else if (MoveInfo.IsStep(StoreMoveStep.SI_10_GoBack))
else if (MoveInfo.IsStep(StoreMoveStep.SI_10_GoBack))
{
TimeSpan span = DateTime.Now - startInStoreTime;
string posId = MoveInfo.MoveParam != null ? MoveInfo.MoveParam.PosID : "";
......@@ -280,12 +293,67 @@ namespace OnlineStore.DeviceLibrary
storeStatus = StoreStatus.StoreOnline;
AutoInout.InOutEndProcess(this, MoveType.InStore);
}
#endregion
#region NG料到出口
else if (MoveInfo.IsStep(StoreMoveStep.SI_21_ToOutDoor))
{
MoveInfo.NextMoveStep(StoreMoveStep.SI_22_OpenOutDoor);
InOutStoreLog(outType+"打开出料口门 ");
CylinderMove(MoveInfo, IO_Type.OutDoor_Down, IO_Type.OutDoor_Up);
}
else if (MoveInfo.IsStep(StoreMoveStep.SI_22_OpenOutDoor))
{
MoveInfo.NextMoveStep(StoreMoveStep.SI_23_InoutToP11 );
InOutStoreLog(outType+"进出轴到_P11-出料口取放料点 ");
InoutAxis.AbsMove(MoveInfo, Config.InOutAxis_P11, Config.InOutAxis_P11_Speed);
//关闭舱门
}
else if (MoveInfo.IsStep(StoreMoveStep.SI_23_InoutToP11))
{
MoveInfo.NextMoveStep(StoreMoveStep.SI_24_PurReel);
InOutStoreLog(outType+"升降轴到_P11-出料口-低点,压紧轴到压紧前点P3 ");
ComAxis.AbsMove(MoveInfo, moveP.ComPress_P3, Config.CompAxis_P3_Speed);
UpdownAxis.AbsMove(MoveInfo,Config.UpDownAxis_P11, Config.UpDownAxis_P11_Speed);
}
else if (MoveInfo.IsStep(StoreMoveStep.SI_24_PurReel))
{
MoveInfo.NextMoveStep(StoreMoveStep.SI_25_InoutToP1);
InOutStoreLog(outType+"进出轴返回待机点P1 ");
InOutBackToP1(moveP.InOut_P1);
OutDoorReelType = 1;
}
else if (MoveInfo.MoveStep == StoreMoveStep.SI_25_InoutToP1)
{
MoveInfo.NextMoveStep(StoreMoveStep.SI_26_GoBack);
InOutStoreLog(outType+"升降轴,旋转轴,压紧轴返回P1,关闭出料口门");
CylinderMove(MoveInfo, IO_Type.OutDoor_Up, IO_Type.OutDoor_Down);
ComAxis.AbsMove(MoveInfo, moveP.ComPress_P1, Config.CompAxis_P1_Speed);
MiddleAxis.AbsMove(MoveInfo, moveP.Middle_P1, Config.MiddleAxis_P1_Speed);
UpdownAxis.AbsMove(MoveInfo, moveP.UpDown_P1, Config.UpDownAxis_P1_Speed);
}
else if (MoveInfo.IsStep(StoreMoveStep.SI_26_GoBack))
{
TimeSpan span = DateTime.Now - startInStoreTime;
string posId = MoveInfo.MoveParam != null ? MoveInfo.MoveParam.PosID : "";
LogUtil.info(Name + " 【" + posId + "】NG料送料结束,耗时【" + FormUtil.GetSpanStr(span) + "】");
MoveInfo.EndMove();
storeRunStatus = StoreRunStatus.Runing;
storeStatus = StoreStatus.StoreOnline;
}
#endregion
else
{
LogUtil.error(Name + " 入库,MoveInfo.MoveStep=" + MoveInfo.MoveStep + ",没有对应的处理!");
}
}
#endregion
#region 出库
......@@ -314,7 +382,7 @@ namespace OnlineStore.DeviceLibrary
return false;
}
if (!StoreManager.LoadInoutParam(param, false, this))
if (!StoreManager.LoadInoutParam(param,MoveType.OutStore, false, this))
{
LogUtil.error(Name + " 启动出库【" + param.ToStr() + "】出错,找不到库位信息");
return false;
......@@ -333,6 +401,11 @@ namespace OnlineStore.DeviceLibrary
protected override void OutStoreProcess()
{
string outType = "出库:";
if (MoveInfo.MoveParam.TargetPosition.Equals(1))
{
outType = "单盘出库:";
}
LineMoveP moveP = MoveInfo.MoveParam.MoveP;
if (MoveInfo.IsInWait)
{
......@@ -341,11 +414,11 @@ namespace OnlineStore.DeviceLibrary
if (MoveInfo.IsInWait)
{
return;
}
}
if (MoveInfo.MoveStep == StoreMoveStep.SO_01_InoutBack)
{
MoveInfo.NextMoveStep(StoreMoveStep.SO_02_ToPosition);
InOutStoreLog("出库:压紧轴到压紧前点P3 ,旋转轴到库位点P2,轴2(上下) 至P5(库位出库前点) ");
InOutStoreLog(outType+"压紧轴到压紧前点P3 ,旋转轴到库位点P2,升降轴到P5(库位出库前点) ");
ComAxis.AbsMove(MoveInfo, moveP.ComPress_P3, Config.CompAxis_P3_Speed);
MiddleAxis.AbsMove(MoveInfo, MoveInfo.MoveParam.MoveP.Middle_P2, Config.MiddleAxis_P2_Speed);
UpdownAxis.AbsMove(MoveInfo, MoveInfo.MoveParam.MoveP.UpDown_P5, Config.UpDownAxis_P5_Speed);
......@@ -353,20 +426,20 @@ namespace OnlineStore.DeviceLibrary
else if (MoveInfo.MoveStep == StoreMoveStep.SO_02_ToPosition)
{
MoveInfo.NextMoveStep(StoreMoveStep.SO_03_InoutToP3);
InOutStoreLog("出库: 进出轴至P3(库位取放料点) [" + moveP.InOut_P3 + "] ");
InOutStoreLog(outType+" 进出轴至P3(库位取放料点) [" + moveP.InOut_P3 + "] ");
InoutAxis.AbsMove(MoveInfo, moveP.InOut_P3, Config.InOutAxis_P3_Speed);
}
else if (MoveInfo.MoveStep == StoreMoveStep.SO_03_InoutToP3)
{
MoveInfo.NextMoveStep(StoreMoveStep.SO_04_GetReel);
InOutStoreLog("出库:升降轴到P6,轴4( 压紧) 至P2(压紧点) ");
InOutStoreLog(outType+"升降轴到P6,压紧轴到P2(压紧点) ");
ComAxis.AbsMove(MoveInfo, moveP.ComPress_P2, Config.CompAxis_P2_Speed);
UpdownAxis.AbsMove(MoveInfo, moveP.UpDown_P6, Config.UpDownAxis_P6_Speed);
}
else if (MoveInfo.MoveStep == StoreMoveStep.SO_04_GetReel)
{
MoveInfo.NextMoveStep(StoreMoveStep.SO_05_InoutBack);
InOutStoreLog("出库:进出轴返回P1(待机点) ");
InOutStoreLog(outType+"进出轴返回P1(待机点) ");
InOutBackToP1(moveP.InOut_P1);
//把库位的物品放到取到叉子上之后是出仓完成
string posId = MoveInfo.MoveParam.PosID;
......@@ -377,37 +450,46 @@ namespace OnlineStore.DeviceLibrary
}
else if (MoveInfo.MoveStep == StoreMoveStep.SO_05_InoutBack)
{
MoveInfo.NextMoveStep(StoreMoveStep.SO_06_ToDoor);
InOutStoreLog("出库:旋转轴 至P2( 库位点)升降轴到P3(库位入库前点) ");
MiddleAxis.AbsMove(MoveInfo, moveP.Middle_P2, Config.MiddleAxis_P2_Speed);
UpdownAxis.AbsMove(MoveInfo, moveP.UpDown_P3, Config.UpDownAxis_P3_Speed);
if (MoveInfo.MoveParam.TargetPosition.Equals(0))
{
MoveInfo.NextMoveStep(StoreMoveStep.SO_06_ToDoor);
InOutStoreLog(outType+"旋转轴 至P2( 库位点)升降轴到P3(库位入库前点) ");
MiddleAxis.AbsMove(MoveInfo, moveP.Middle_P2, Config.MiddleAxis_P2_Speed);
UpdownAxis.AbsMove(MoveInfo, moveP.UpDown_P3, Config.UpDownAxis_P3_Speed);
}
else
{
MoveInfo.NextMoveStep(StoreMoveStep.SO_21_ToOutDoor);
InOutStoreLog(outType+"移动到出料口,旋转轴到P11,升降轴到P12高点 ");
MiddleAxis.AbsMove(MoveInfo, Config.MiddleAxis_P11, Config.MiddleAxis_P11_Speed);
UpdownAxis.AbsMove(MoveInfo, Config.UpDownAxis_P12, Config.UpDownAxis_P12_Speed);
}
}
#region 批量出料,到料串
else if (MoveInfo.MoveStep == StoreMoveStep.SO_06_ToDoor)
{
MoveInfo.NextMoveStep(StoreMoveStep.SO_07_InoutToP2);
InOutStoreLog("出库:进出轴到P2 ");
InOutStoreLog(outType+"进出轴到P2 ");
InoutAxis.AbsMove(MoveInfo, moveP.InOut_P2, Config.InOutAxis_P2_Speed);
}
else if (MoveInfo.MoveStep == StoreMoveStep.SO_07_InoutToP2)
{
MoveInfo.NextMoveStep(StoreMoveStep.SO_08_PutReel);
InOutStoreLog("出库:放下物品 升降轴至P1,压紧轴到P3 ");
InOutStoreLog(outType+"放下物品 升降轴至P1,压紧轴到P3 ");
ComAxis.AbsMove(MoveInfo, moveP.ComPress_P3, Config.CompAxis_P3_Speed);
UpdownAxis.AbsMove(MoveInfo, moveP.UpDown_P1, Config.UpDownAxis_P1_Speed);
}
else if (MoveInfo.MoveStep == StoreMoveStep.SO_08_PutReel)
{
MoveInfo.NextMoveStep(StoreMoveStep.SO_09_InoutBack);
InOutStoreLog("出库:进出轴返回P1");
InOutStoreLog(outType+"进出轴返回P1");
InOutBackToP1(moveP.InOut_P1);
}
else if (MoveInfo.MoveStep == StoreMoveStep.SO_09_InoutBack)
{
MoveInfo.NextMoveStep(StoreMoveStep.SO_10_GoBack);
InOutStoreLog("出库:升降轴,旋转轴到待机点P1 ");
InOutStoreLog(outType+"升降轴,旋转轴到待机点P1 ");
ComAxis.AbsMove(MoveInfo, moveP.ComPress_P1, Config.CompAxis_P1_Speed);
MiddleAxis.AbsMove(MoveInfo, moveP.Middle_P1, Config.MiddleAxis_P1_Speed);
UpdownAxis.AbsMove(MoveInfo, moveP.UpDown_P1, Config.UpDownAxis_P1_Speed);
......@@ -419,11 +501,64 @@ namespace OnlineStore.DeviceLibrary
string posId = MoveInfo.MoveParam.PosID;
storeStatus = StoreStatus.StoreOnline;
LogUtil.info(Name + " 【" + posId + "】 整个出库流程结束,耗时【" + FormUtil.GetSpanStr(span) + "】!");
LogUtil.info(Name + " 【" + posId + "】 出库结束,耗时【" + FormUtil.GetSpanStr(span) + "】!");
MoveInfo.EndMove();
storeRunStatus = StoreRunStatus.Runing;
AutoInout.InOutEndProcess(this, MoveType.OutStore);
}
#endregion
#region 单盘出料,到出料口
else if (MoveInfo.IsStep(StoreMoveStep.SO_21_ToOutDoor))
{
MoveInfo.NextMoveStep(StoreMoveStep.SO_22_OpenOutDoor);
InOutStoreLog(outType+"打开出料口门 ");
CylinderMove(MoveInfo, IO_Type.OutDoor_Down, IO_Type.OutDoor_Up);
}
else if (MoveInfo.IsStep(StoreMoveStep.SO_22_OpenOutDoor))
{
MoveInfo.NextMoveStep(StoreMoveStep.SO_23_InoutToP11);
InOutStoreLog(outType+"进出轴到_P11-出料口取放料点 ");
InoutAxis.AbsMove(MoveInfo, Config.InOutAxis_P11, Config.InOutAxis_P11_Speed);
//关闭舱门
}
else if (MoveInfo.IsStep(StoreMoveStep.SO_23_InoutToP11))
{
MoveInfo.NextMoveStep(StoreMoveStep.SO_24_PurReel);
InOutStoreLog(outType+"升降轴到_P11-出料口-低点,压紧轴到压紧前点P3 ");
ComAxis.AbsMove(MoveInfo, moveP.ComPress_P3, Config.CompAxis_P3_Speed);
UpdownAxis.AbsMove(MoveInfo, Config.UpDownAxis_P11, Config.UpDownAxis_P11_Speed);
}
else if (MoveInfo.IsStep(StoreMoveStep.SO_24_PurReel))
{
MoveInfo.NextMoveStep(StoreMoveStep.SO_25_InoutToP1);
InOutStoreLog(outType+"进出轴返回待机点P1 ");
InOutBackToP1(moveP.InOut_P1);
}
else if (MoveInfo.MoveStep == StoreMoveStep.SO_25_InoutToP1)
{
MoveInfo.NextMoveStep(StoreMoveStep.SO_26_GoBack);
InOutStoreLog(outType+"升降轴,旋转轴,压紧轴返回P1,关闭出料口门");
CylinderMove(MoveInfo, IO_Type.OutDoor_Up, IO_Type.OutDoor_Down);
ComAxis.AbsMove(MoveInfo, moveP.ComPress_P1, Config.CompAxis_P1_Speed);
MiddleAxis.AbsMove(MoveInfo, moveP.Middle_P1, Config.MiddleAxis_P1_Speed);
UpdownAxis.AbsMove(MoveInfo, moveP.UpDown_P1, Config.UpDownAxis_P1_Speed);
}
else if (MoveInfo.IsStep(StoreMoveStep.SO_26_GoBack))
{
TimeSpan span = DateTime.Now - startInStoreTime;
string posId = MoveInfo.MoveParam != null ? MoveInfo.MoveParam.PosID : "";
storeStatus = StoreStatus.StoreOnline;
LogUtil.info(Name + " 【" + posId + "】 单盘出库结束,耗时【" + FormUtil.GetSpanStr(span) + "】!");
MoveInfo.EndMove();
storeRunStatus = StoreRunStatus.Runing;
AutoInout.InOutEndProcess(this, MoveType.OutStore);
}
#endregion
else
{
LogUtil.error(Name + " 出库处理,moveStatus=" + MoveInfo.MoveStep + ",没有对应的处理!");
......
......@@ -42,6 +42,36 @@ namespace OnlineStore.DeviceLibrary
SendLineStatus();
}
if (OutDoorReelType.Equals(1))
{
IOMove(IO_Type.DoorLed_Red, IO_VALUE.LOW, true);
if (IOValue(IO_Type.DoorLed_Green).Equals(IO_VALUE.LOW))
{
IOMove(IO_Type.DoorLed_Green, IO_VALUE.HIGH);
}
else
{
IOMove(IO_Type.DoorLed_Green, IO_VALUE.LOW);
}
}
else if (OutDoorReelType.Equals(2))
{
IOMove(IO_Type.DoorLed_Green, IO_VALUE.LOW, true);
if (IOValue(IO_Type.DoorLed_Red).Equals(IO_VALUE.LOW))
{
IOMove(IO_Type.DoorLed_Red, IO_VALUE.HIGH);
}
else
{
IOMove(IO_Type.DoorLed_Red, IO_VALUE.LOW);
}
}
else
{
IOMove(IO_Type.DoorLed_Green, IO_VALUE.LOW, true);
IOMove(IO_Type.DoorLed_Red, IO_VALUE.LOW, true);
}
}
catch (Exception ex)
{
......
......@@ -178,7 +178,7 @@ namespace OnlineStore.DeviceLibrary
#region 位置加载
public static bool LoadInoutParam(InOutParam param, bool needCheckShelf, BoxBean box)
public static bool LoadInoutParam(InOutParam param, MoveType movetype, bool needCheckShelf, BoxBean box)
{
if (param == null)
{
......@@ -188,13 +188,27 @@ namespace OnlineStore.DeviceLibrary
if (param.MoveP == null)
{
LineMoveP p = new LineMoveP();
p.ComPress_P1 = box.Config.CompAxis_P1;
p.InOut_P1 = box.Config.InOutAxis_P1;
p.Middle_P1 = box.Config.MiddleAxis_P1;
p.InOut_P2 = box.Config.InOutAxis_P2;
p.UpDown_P1 = box.Config.UpDownAxis_P1;
// p.UpDown_P8 = box.Config.UpDownAxis_DoorIBPosition_P8;
p.UpDown_P2 = box.Config.UpDownAxis_P2;
// p.UpDown_P7 = box.Config.UpDownAxis_DoorOBPosition_P7;
ACBoxPosition position = CSVPositionReader<ACBoxPosition>.GetPositon(param.PosID);
if (position == null)
{
if (movetype.Equals(MoveType.InStore) && param.TargetPosition.Equals(1))
{
return true;
}
LogUtil.error(box.Name + "GetPositon[" + param.PosID + "]=null,没有库位不能执行出入库");
return false;
}
if (String.IsNullOrEmpty(param.PlateH))
{
param.PlateH = position.BagHigh.ToString();
......@@ -203,23 +217,6 @@ namespace OnlineStore.DeviceLibrary
{
param.PlateW = position.BagWidth.ToString();
}
p.ComPress_P1 = box.Config.CompAxis_P1;
p.InOut_P1 = box.Config.InOutAxis_P1;
p.Middle_P1 = box.Config.MiddleAxis_P1;
p.InOut_P2 = box.Config.InOutAxis_P2 ;
p.UpDown_P1 = box.Config.UpDownAxis_P1;
// p.UpDown_P8 = box.Config.UpDownAxis_DoorIBPosition_P8;
p.UpDown_P2 = box.Config.UpDownAxis_P2;
// p.UpDown_P7 = box.Config.UpDownAxis_DoorOBPosition_P7;
//p.InOut_P11 = box.Config.InOutAxis_P11 ;
//p.Middle_P11 = box.Config.MiddleAxis_P11;
//p.UpDown_P11 = box.Config.UpDownAxis_P11;
//p.UpDown_P12 = box.Config.UpDownAxis_P12;
p.ComPress_P2 = box.Config.GetComP2(position.BagHigh);
p.ComPress_P3 = box.Config.CompAxis_P3;
p.InOut_P3 = position.InoutAxis_P3;
......
......@@ -6,30 +6,32 @@ using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
namespace OnlineStore.DeviceLibrary
{
{
public class InOutParam
{
public InOutParam(string wareNo="", string posId="", string platew = "", string plateh = "")
{
public InOutParam(string wareNo = "", string posId = "", string platew = "", string plateh = "", int targetP = 0)
{
WareCode = wareNo;
PosID = posId;
MoveP = null;
this.PlateW = platew;
this.PlateH = plateh;
}
public InOutParam(string wareNo, string posId, string ShelfPosID,LineMoveP linePosition )
{
WareCode = wareNo;
this.PlateH = plateh;
this.TargetPosition = targetP;
}
public InOutParam(string wareNo, string posId, LineMoveP linePosition, int targetP = 0)
{
WareCode = wareNo;
PosID = posId;
MoveP = linePosition;
MoveP = linePosition;
this.TargetPosition = targetP;
}
}
public InOutParam NewParam()
{
InOutParam newp = new InOutParam(WareCode,PosID, PlateW, PlateH);
InOutParam newp = new InOutParam(WareCode, PosID, PlateW, PlateH);
return newp;
}
/// <summary>
......@@ -40,17 +42,23 @@ namespace OnlineStore.DeviceLibrary
/// 位置坐标名(对应配置表的位置)
/// </summary>
public string PosID { get; set; }
public LineMoveP MoveP { get; set; }
/// <summary>
/// 料盘高度
/// </summary>
public string PlateH { get; set; }
public string PlateH { get; set; }
/// <summary>
/// 料盘宽度
/// </summary>
public string PlateW { get; set; }
/// <summary>
/// 出入库目标位置,
/// 0=出库表示批量出料,入库表示目标库位
/// 1=紧急出料到NG口,入库NG送到NG口
/// </summary>
public int TargetPosition = 0;
/// <summary>
/// 根据PosId获取对应的料仓ID,若PosId=="",返回-1
/// </summary>
......@@ -68,7 +76,7 @@ namespace OnlineStore.DeviceLibrary
string[] arr = posId.Split('#');
if (arr.Length >= 2)
{
return int.Parse(arr[0]);
return int.Parse(arr[0]);
}
else
{
......@@ -85,54 +93,8 @@ namespace OnlineStore.DeviceLibrary
public string ToStr()
{
return " 库位 [" + PosID + "] [" + WareCode + "], [" + PlateW + "x" + PlateH + "] ";
}
internal void UpdatePosId(string message, string posId, string plateW, string plateH,int comP2,int comP3)
{
this.WareCode = message;
this.PosID = posId;
this.PlateH = plateH;
this.PlateW = plateW;
ACBoxPosition position = CSVPositionReader<ACBoxPosition>.GetPositon(posId);
if (position == null)
{
LogUtil.error( "GetPositon[" + posId + "] =null,没有库位不能执行出入库");
}
MoveP.ComPress_P2 = comP2;
MoveP.ComPress_P3 = comP3;
MoveP.InOut_P3 = position.InoutAxis_P3;
MoveP.Middle_P2 = position.MiddleAxis_P2;
MoveP.UpDown_P3 = position.UpdownAxis_IH_P3;
MoveP.UpDown_P4 = position.UpdownAxis_IL_P4;
MoveP.UpDown_P5 = position.UpdownAxis_OH_P5;
MoveP.UpDown_P6 = position.UpdownAxis_OL_P6;
}
internal void UpdatePosIdAndShelfId(string wareNo,string rfid,string posId )
{
WareCode = wareNo;
PosID = posId;
ACBoxPosition position = CSVPositionReader<ACBoxPosition>.GetPositon(posId);
if (position == null)
{
LogUtil.error("GetPositon[" + posId + "] =null,没有库位不能执行出入库");
}
//MoveP.ComPress_P2 = comP2;
//MoveP.ComPress_P3 = comP3;
MoveP.InOut_P3 = position.InoutAxis_P3;
MoveP.Middle_P2 = position.MiddleAxis_P2;
MoveP.UpDown_P3 = position.UpdownAxis_IH_P3;
MoveP.UpDown_P4 = position.UpdownAxis_IL_P4;
MoveP.UpDown_P5 = position.UpdownAxis_OH_P5;
MoveP.UpDown_P6 = position.UpdownAxis_OL_P6;
}
}
}
}
......@@ -39,11 +39,10 @@ namespace OnlineStore.DeviceLibrary
/// 料仓状态
/// </summary>
private StoreRunStatus storerunstatus = StoreRunStatus.Wait;
/// <summary>
/// 定时器
/// </summary>
protected System.Timers.Timer mainTimer;
protected System.Timers.Timer serverConnectTimer = new System.Timers.Timer();
protected System.Timers.Timer IoCheckTimer = new System.Timers.Timer();
private bool isInit = false;
public bool IsDebug = false;
......@@ -231,12 +230,22 @@ namespace OnlineStore.DeviceLibrary
{
if (!isInit)
{
mainTimer = new System.Timers.Timer();
mainTimer.Enabled = false;
mainTimer.Interval = 300;
mainTimer.Elapsed += timersTimer_Elapsed;
mainTimer.AutoReset = true;
serverConnectTimer = new System.Timers.Timer();
serverConnectTimer.Interval = 1000;
serverConnectTimer.AutoReset = true;
serverConnectTimer.Enabled = false;
IoCheckTimer = new System.Timers.Timer();
IoCheckTimer.Interval = 200;
IoCheckTimer.AutoReset = true;
IoCheckTimer.Enabled = false;
isInit = true;
}
}
......@@ -361,10 +370,14 @@ namespace OnlineStore.DeviceLibrary
moveInfo.WaitList.Add(WaitResultInfo.WaitIO(IoHighType, IO_VALUE.HIGH));
}
}
public void IOMove(string IoType, IO_VALUE value)
public void IOMove(string IoType, IO_VALUE value, bool isCheck = false)
{
if (isCheck && (IOValue(IoType).Equals(value)))
{
return;
}
IOManager.IOMove(IoType, value, baseConfig.Id);
}
}
public IO_VALUE IOValue(string IoType)
{
return IOManager.IOValue(IoType, baseConfig.Id);
......@@ -381,8 +394,18 @@ namespace OnlineStore.DeviceLibrary
}
protected void InOutStoreLog(string msg)
{
string type = "";
if (MoveInfo.MoveType.Equals(MoveType.OutStore))
{
type = "出库";
}
else if (MoveInfo.MoveType.Equals(MoveType.InStore))
{
type = "入库";
}
string posId = MoveInfo.MoveParam != null ? "["+MoveInfo.MoveParam.PosID+"]" : "";
LogInfo(" " + posId +" :" + msg);
LogInfo( posId +" "+ MoveInfo.SLog+":" + msg);
}
protected int GetAlarmCodeByAxis(ConfigMoveAxis axis)
{
......
......@@ -449,49 +449,74 @@ namespace OnlineStore.DeviceLibrary
#region 料仓内部入库步骤 200开始
/// <summary>
/// 入库,。进出轴返回P1
/// 入库进出轴返回P1
/// </summary>
SI_01_InoutToP1 = 201,
SI_01_InoutToP1 = 201,
/// <summary>
/// 入库 升降轴,旋转轴到P1,压紧轴到P3
/// 入库 升降轴,旋转轴到P1,压紧轴到P3
/// </summary>
SI_02_AxisBack,
/// <summary>
/// 入库进出轴到P2( 进料口取料点)
/// 入库进出轴到P2( 进料口取料点)
/// </summary>
SI_03_InoutToP2 ,
SI_03_InoutToP2,
/// <summary>
/// 入库升降轴到P7( 进料口取料缓冲点)压紧轴到P2(压紧点)
/// 入库升降轴到P7( 进料口取料缓冲点)压紧轴到P2(压紧点)
/// </summary>
SI_04_GetWare ,
SI_04_GetReel,
/// <summary>
/// 入库进出轴返回P1
/// 入库进出轴返回P1
/// </summary>
SI_05_InoutToP1 ,
SI_05_InoutToP1,
/// <summary>
/// 入库。。移动到库位点,旋转轴到P2( 库位点),升降轴到P3(库位入库前点)
/// 入库移动到库位点,旋转轴到P2( 库位点),升降轴到P3(库位入库前点)
/// </summary>
SI_06_ToBag ,
SI_06_ToPos,
/// <summary>
/// 入库。。进出轴到P3(库位取放料点)
/// 入库进出轴到P3(库位取放料点)
/// </summary>
SI_07_InoutToP3 ,
SI_07_InoutToP3,
/// <summary>
/// 入库升降轴到P4( 库位入料缓冲点)压紧轴到P3( 压紧前点)
/// 入库升降轴到P4( 库位入料缓冲点)压紧轴到P3( 压紧前点)
/// </summary>
SI_08_PutWare ,
SI_08_PutReel,
/// <summary>
/// 入库进出轴返回P1
/// 入库进出轴返回P1
/// </summary>
SI_09_InoutToP1 ,
SI_09_InoutToP1,
/// <summary>
/// 入库旋转轴,升降轴,压紧轴到待机点P1
/// 入库旋转轴,升降轴,压紧轴到待机点P1
/// </summary>
SI_10_GoBack ,
SI_10_GoBack,
/// <summary>
/// 入库NG料:移动到出料口,旋转轴到P11,升降轴到P12高点
/// </summary>
SI_21_ToOutDoor,
/// <summary>
/// 入库NG料:打开出料口门
/// </summary>
SI_22_OpenOutDoor,
/// <summary>
/// 入库NG料:进出轴到_P11-出料口取放料点
/// </summary>
SI_23_InoutToP11,
/// <summary>
/// 入库NG料:升降轴到_P11-出料口-低点,压紧轴到压紧前点P3
/// </summary>
SI_24_PurReel,
/// <summary>
/// 入库NG料:进出轴返回待机点P1
/// </summary>
SI_25_InoutToP1,
/// <summary>
/// 入库NG料:升降轴,旋转轴,压紧轴返回P1,关闭出料口门
/// </summary>
SI_26_GoBack,
#endregion
#region 料仓内部出库 500 开始
......@@ -543,7 +568,34 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 料仓出库:升降轴,旋转轴到待机点P1
/// </summary>
SO_10_GoBack,
SO_10_GoBack,
/// <summary>
/// 单盘出库:移动到出料口,旋转轴到P11,升降轴到P12高点
/// </summary>
SO_21_ToOutDoor,
/// <summary>
/// 单盘出库:打开出料口门
/// </summary>
SO_22_OpenOutDoor,
/// <summary>
/// 单盘出库:进出轴到_P11-出料口取放料点
/// </summary>
SO_23_InoutToP11,
/// <summary>
/// 单盘出库:升降轴到_P11-出料口-低点,压紧轴到压紧前点P3
/// </summary>
SO_24_PurReel,
/// <summary>
/// 单盘出库:进出轴返回待机点P1
/// </summary>
SO_25_InoutToP1,
/// <summary>
/// 单盘出库:升降轴,旋转轴,压紧轴返回P1,关闭出料口门
/// </summary>
SO_26_GoBack,
#endregion
}
......
......@@ -60,9 +60,7 @@ namespace OnlineStore.DeviceLibrary
}
public int ErrorLogType { get; internal set; }
public bool SingleInstore = false;
public void NextMoveStep(StoreMoveStep step)
{
// PreMoveStep = moveStep;
......@@ -92,7 +90,6 @@ namespace OnlineStore.DeviceLibrary
this.MoveParam = param;
LastSetpTime = DateTime.Now;
WaitList = new List<WaitResultInfo>();
SingleInstore = false;
}
public void EndMove()
{
......
......@@ -178,11 +178,11 @@ namespace OnlineStore.LoadCSVLibrary
/// </summary>
public static string InDoor_Check = "InDoor_Check";
/// <summary>
/// DI,1,左侧出料口门上升端,OutDoor_Up,6,PRO_AOI_IP_2,X27,
/// DI,1,左侧出料口门上升/打开端,OutDoor_Up,6,PRO_AOI_IP_2,X27,
/// </summary>
public static string OutDoor_Up = "OutDoor_Up";
/// <summary>
/// DI,1,左侧出料口门下降端,OutDoor_Down,7,PRO_AOI_IP_2,X28,
/// DI,1,左侧出料口门下降/关闭端,OutDoor_Down,7,PRO_AOI_IP_2,X28,
/// </summary>
public static string OutDoor_Down = "OutDoor_Down";
/// <summary>
......@@ -202,11 +202,11 @@ namespace OnlineStore.LoadCSVLibrary
///// </summary>
//public static string InDoor_Check = "InDoor_Check";
///// <summary>
///// DI,2,右侧出料口门上升端,OutDoor_Up,12,PRO_AOI_IP_2,X33,
///// DI,2,右侧出料口门上升/打开端,OutDoor_Up,12,PRO_AOI_IP_2,X33,
///// </summary>
//public static string OutDoor_Up = "OutDoor_Up";
///// <summary>
///// DI,2,右侧出料口门下降端,OutDoor_Down,13,PRO_AOI_IP_2,X34,
///// DI,2,右侧出料口门下降/关闭端,OutDoor_Down,13,PRO_AOI_IP_2,X34,
///// </summary>
//public static string OutDoor_Down = "OutDoor_Down";
///// <summary>
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!