Commit f3aee12c LN

界面调整

1 个父辈 b5264ed2
正在显示 64 个修改的文件 包含 4539 行增加4107 行删除
......@@ -100,16 +100,18 @@
<Compile Include="FrmIOMsg.Designer.cs">
<DependentUpon>FrmIOMsg.cs</DependentUpon>
</Compile>
<Compile Include="FrmIOStatus.cs" />
<Compile Include="FrmIOStatus.Designer.cs">
<DependentUpon>FrmIOStatus.cs</DependentUpon>
</Compile>
<Compile Include="FrmHYEquip.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmHYEquip.Designer.cs">
<DependentUpon>FrmHYEquip.cs</DependentUpon>
</Compile>
<Compile Include="FrmLineIO.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmLineIO.Designer.cs">
<DependentUpon>FrmLineIO.cs</DependentUpon>
</Compile>
<Compile Include="FrmRFIPEdit.cs">
<SubType>Form</SubType>
</Compile>
......@@ -185,12 +187,12 @@
<EmbeddedResource Include="FrmIOMsg.resx">
<DependentUpon>FrmIOMsg.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmIOStatus.resx">
<DependentUpon>FrmIOStatus.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmHYEquip.resx">
<DependentUpon>FrmHYEquip.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmLineIO.resx">
<DependentUpon>FrmLineIO.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmRFIPEdit.resx">
<DependentUpon>FrmRFIPEdit.cs</DependentUpon>
</EmbeddedResource>
......
......@@ -114,6 +114,7 @@ namespace OnlineStore.AssemblyLine
equipBase.StopRun();
FormStatus(false);
}
}
catch (Exception ex)
......
......@@ -30,37 +30,32 @@
this.btnWriteSingleDO = new System.Windows.Forms.Button();
this.txtWriteTime = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.btnCloseAll = new System.Windows.Forms.Button();
this.groupBox4 = new System.Windows.Forms.GroupBox();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.groupBox5 = new System.Windows.Forms.GroupBox();
this.btnRollerRun = new System.Windows.Forms.Button();
this.btnTopUp = new System.Windows.Forms.Button();
this.btnGuding = new System.Windows.Forms.Button();
this.btnOutStopDown = new System.Windows.Forms.Button();
this.btnSwStop = new System.Windows.Forms.Button();
this.btnFLStop1 = new System.Windows.Forms.Button();
this.btnFLStop2Down = new System.Windows.Forms.Button();
this.btnOLine = new System.Windows.Forms.Button();
this.btnBStopDown = new System.Windows.Forms.Button();
this.btnEStopDown = new System.Windows.Forms.Button();
this.btnOSWRun = new System.Windows.Forms.Button();
this.btnLSWRun = new System.Windows.Forms.Button();
this.btnLineRun = new System.Windows.Forms.Button();
this.btnFL_TopCylinder = new System.Windows.Forms.Button();
this.btnSwLocationCylinder = new System.Windows.Forms.Button();
this.btnSWTop = new System.Windows.Forms.Button();
this.btnCloseAll = new System.Windows.Forms.Button();
this.btnOutTopCylinder = new System.Windows.Forms.Button();
this.btnLocationCylinder = new System.Windows.Forms.Button();
this.btnTrayLocationCylinder = new System.Windows.Forms.Button();
this.btnFeedSideWayCylinder = new System.Windows.Forms.Button();
this.btnFeedCylinder = new System.Windows.Forms.Button();
this.btnFeedSideWay = new System.Windows.Forms.Button();
this.chbDebug = new System.Windows.Forms.CheckBox();
this.lblThisSta = new System.Windows.Forms.Label();
this.lblStoreStatus = new System.Windows.Forms.Label();
this.btnStart = new System.Windows.Forms.Button();
this.btnStop = new System.Windows.Forms.Button();
this.btnReset = new System.Windows.Forms.Button();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage3 = new System.Windows.Forms.TabPage();
this.groupBox6 = new System.Windows.Forms.GroupBox();
......@@ -146,10 +141,11 @@
this.groupBox1.Controls.Add(this.btnWriteSingleDO);
this.groupBox1.Controls.Add(this.txtWriteTime);
this.groupBox1.Controls.Add(this.label5);
this.groupBox1.Controls.Add(this.btnCloseAll);
this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox1.Location = new System.Drawing.Point(685, 447);
this.groupBox1.Location = new System.Drawing.Point(685, 396);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(604, 99);
this.groupBox1.Size = new System.Drawing.Size(571, 150);
this.groupBox1.TabIndex = 105;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "DO写入";
......@@ -158,7 +154,7 @@
//
this.txtDOIndex.Enabled = false;
this.txtDOIndex.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtDOIndex.Location = new System.Drawing.Point(237, 56);
this.txtDOIndex.Location = new System.Drawing.Point(178, 56);
this.txtDOIndex.MaxLength = 10;
this.txtDOIndex.Name = "txtDOIndex";
this.txtDOIndex.Size = new System.Drawing.Size(47, 23);
......@@ -169,10 +165,10 @@
//
this.txtDoName.Enabled = false;
this.txtDoName.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtDoName.Location = new System.Drawing.Point(69, 56);
this.txtDoName.Location = new System.Drawing.Point(72, 56);
this.txtDoName.MaxLength = 10;
this.txtDoName.Name = "txtDoName";
this.txtDoName.Size = new System.Drawing.Size(116, 23);
this.txtDoName.Size = new System.Drawing.Size(53, 23);
this.txtDoName.TabIndex = 259;
this.txtDoName.Text = "0";
//
......@@ -193,7 +189,7 @@
this.label14.AutoSize = true;
this.label14.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label14.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label14.Location = new System.Drawing.Point(201, 59);
this.label14.Location = new System.Drawing.Point(134, 59);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(35, 17);
this.label14.TabIndex = 257;
......@@ -205,7 +201,7 @@
this.btnOpenDo.BackColor = System.Drawing.Color.White;
this.btnOpenDo.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnOpenDo.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnOpenDo.Location = new System.Drawing.Point(297, 51);
this.btnOpenDo.Location = new System.Drawing.Point(167, 99);
this.btnOpenDo.Name = "btnOpenDo";
this.btnOpenDo.Size = new System.Drawing.Size(110, 34);
this.btnOpenDo.TabIndex = 256;
......@@ -216,7 +212,7 @@
// txtSlaveId
//
this.txtSlaveId.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtSlaveId.Location = new System.Drawing.Point(133, 110);
this.txtSlaveId.Location = new System.Drawing.Point(379, 18);
this.txtSlaveId.MaxLength = 10;
this.txtSlaveId.Name = "txtSlaveId";
this.txtSlaveId.Size = new System.Drawing.Size(12, 23);
......@@ -230,7 +226,7 @@
this.chbAutoRead.Checked = true;
this.chbAutoRead.CheckState = System.Windows.Forms.CheckState.Checked;
this.chbAutoRead.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.chbAutoRead.Location = new System.Drawing.Point(316, 57);
this.chbAutoRead.Location = new System.Drawing.Point(186, 105);
this.chbAutoRead.Name = "chbAutoRead";
this.chbAutoRead.Size = new System.Drawing.Size(75, 21);
this.chbAutoRead.TabIndex = 244;
......@@ -259,7 +255,7 @@
this.btnWriteSingleDO.BackColor = System.Drawing.Color.White;
this.btnWriteSingleDO.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnWriteSingleDO.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnWriteSingleDO.Location = new System.Drawing.Point(409, 51);
this.btnWriteSingleDO.Location = new System.Drawing.Point(279, 99);
this.btnWriteSingleDO.Name = "btnWriteSingleDO";
this.btnWriteSingleDO.Size = new System.Drawing.Size(110, 34);
this.btnWriteSingleDO.TabIndex = 232;
......@@ -270,7 +266,7 @@
// txtWriteTime
//
this.txtWriteTime.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtWriteTime.Location = new System.Drawing.Point(453, 23);
this.txtWriteTime.Location = new System.Drawing.Point(303, 56);
this.txtWriteTime.MaxLength = 10;
this.txtWriteTime.Name = "txtWriteTime";
this.txtWriteTime.Size = new System.Drawing.Size(66, 23);
......@@ -282,13 +278,26 @@
this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label5.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label5.Location = new System.Drawing.Point(390, 26);
this.label5.Location = new System.Drawing.Point(234, 59);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(60, 17);
this.label5.TabIndex = 237;
this.label5.Text = "定时(ms):";
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// btnCloseAll
//
this.btnCloseAll.BackColor = System.Drawing.Color.White;
this.btnCloseAll.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnCloseAll.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnCloseAll.Location = new System.Drawing.Point(8, 99);
this.btnCloseAll.Name = "btnCloseAll";
this.btnCloseAll.Size = new System.Drawing.Size(153, 34);
this.btnCloseAll.TabIndex = 259;
this.btnCloseAll.Text = "关闭所有DO";
this.btnCloseAll.UseVisualStyleBackColor = false;
this.btnCloseAll.Click += new System.EventHandler(this.btnCloseAll_Click);
//
// groupBox4
//
this.groupBox4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
......@@ -348,39 +357,73 @@
this.groupBox5.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.groupBox5.Controls.Add(this.btnRollerRun);
this.groupBox5.Controls.Add(this.btnTopUp);
this.groupBox5.Controls.Add(this.btnGuding);
this.groupBox5.Controls.Add(this.btnOutStopDown);
this.groupBox5.Controls.Add(this.btnSwStop);
this.groupBox5.Controls.Add(this.btnFLStop1);
this.groupBox5.Controls.Add(this.btnFLStop2Down);
this.groupBox5.Controls.Add(this.btnOLine);
this.groupBox5.Controls.Add(this.btnBStopDown);
this.groupBox5.Controls.Add(this.btnEStopDown);
this.groupBox5.Controls.Add(this.btnOSWRun);
this.groupBox5.Controls.Add(this.btnLSWRun);
this.groupBox5.Controls.Add(this.btnLineRun);
this.groupBox5.Controls.Add(this.btnFL_TopCylinder);
this.groupBox5.Controls.Add(this.btnSwLocationCylinder);
this.groupBox5.Controls.Add(this.btnSWTop);
this.groupBox5.Controls.Add(this.btnCloseAll);
this.groupBox5.Controls.Add(this.btnOutTopCylinder);
this.groupBox5.Controls.Add(this.btnLocationCylinder);
this.groupBox5.Controls.Add(this.btnTrayLocationCylinder);
this.groupBox5.Controls.Add(this.btnFeedSideWayCylinder);
this.groupBox5.Controls.Add(this.btnFeedCylinder);
this.groupBox5.Controls.Add(this.btnFeedSideWay);
this.groupBox5.Location = new System.Drawing.Point(931, 1);
this.groupBox5.Location = new System.Drawing.Point(685, 2);
this.groupBox5.Name = "groupBox5";
this.groupBox5.Size = new System.Drawing.Size(325, 446);
this.groupBox5.Size = new System.Drawing.Size(543, 388);
this.groupBox5.TabIndex = 255;
this.groupBox5.TabStop = false;
this.groupBox5.Text = "IO操作测试";
//
// btnRollerRun
//
this.btnRollerRun.BackColor = System.Drawing.Color.White;
this.btnRollerRun.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnRollerRun.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnRollerRun.Location = new System.Drawing.Point(8, 140);
this.btnRollerRun.Name = "btnRollerRun";
this.btnRollerRun.Size = new System.Drawing.Size(153, 34);
this.btnRollerRun.TabIndex = 275;
this.btnRollerRun.Text = "SL过渡滚筒运转";
this.btnRollerRun.UseVisualStyleBackColor = false;
this.btnRollerRun.Click += new System.EventHandler(this.btnRollerRun_Click);
//
// btnTopUp
//
this.btnTopUp.BackColor = System.Drawing.Color.White;
this.btnTopUp.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnTopUp.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnTopUp.Location = new System.Drawing.Point(8, 218);
this.btnTopUp.Name = "btnTopUp";
this.btnTopUp.Size = new System.Drawing.Size(153, 34);
this.btnTopUp.TabIndex = 274;
this.btnTopUp.Text = "SL顶升上升";
this.btnTopUp.UseVisualStyleBackColor = false;
this.btnTopUp.Click += new System.EventHandler(this.btnTopUp_Click);
//
// btnGuding
//
this.btnGuding.BackColor = System.Drawing.Color.White;
this.btnGuding.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnGuding.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnGuding.Location = new System.Drawing.Point(167, 179);
this.btnGuding.Name = "btnGuding";
this.btnGuding.Size = new System.Drawing.Size(153, 34);
this.btnGuding.TabIndex = 273;
this.btnGuding.Text = "SL固定气缸上升";
this.btnGuding.UseVisualStyleBackColor = false;
this.btnGuding.Click += new System.EventHandler(this.btnGuding_Click);
//
// btnOutStopDown
//
this.btnOutStopDown.BackColor = System.Drawing.Color.White;
this.btnOutStopDown.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnOutStopDown.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnOutStopDown.Location = new System.Drawing.Point(168, 179);
this.btnOutStopDown.Location = new System.Drawing.Point(167, 140);
this.btnOutStopDown.Name = "btnOutStopDown";
this.btnOutStopDown.Size = new System.Drawing.Size(153, 34);
this.btnOutStopDown.TabIndex = 272;
......@@ -388,51 +431,12 @@
this.btnOutStopDown.UseVisualStyleBackColor = false;
this.btnOutStopDown.Click += new System.EventHandler(this.btnOutStopDown_Click);
//
// btnSwStop
//
this.btnSwStop.BackColor = System.Drawing.Color.White;
this.btnSwStop.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSwStop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSwStop.Location = new System.Drawing.Point(8, 258);
this.btnSwStop.Name = "btnSwStop";
this.btnSwStop.Size = new System.Drawing.Size(153, 34);
this.btnSwStop.TabIndex = 271;
this.btnSwStop.Text = "环形线阻挡气缸下降";
this.btnSwStop.UseVisualStyleBackColor = false;
this.btnSwStop.Click += new System.EventHandler(this.btnSwStop_Click);
//
// btnFLStop1
//
this.btnFLStop1.BackColor = System.Drawing.Color.White;
this.btnFLStop1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnFLStop1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnFLStop1.Location = new System.Drawing.Point(9, 257);
this.btnFLStop1.Name = "btnFLStop1";
this.btnFLStop1.Size = new System.Drawing.Size(153, 34);
this.btnFLStop1.TabIndex = 270;
this.btnFLStop1.Text = "FL阻挡1下降";
this.btnFLStop1.UseVisualStyleBackColor = false;
this.btnFLStop1.Click += new System.EventHandler(this.btnFLStop1_Click);
//
// btnFLStop2Down
//
this.btnFLStop2Down.BackColor = System.Drawing.Color.White;
this.btnFLStop2Down.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnFLStop2Down.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnFLStop2Down.Location = new System.Drawing.Point(168, 257);
this.btnFLStop2Down.Name = "btnFLStop2Down";
this.btnFLStop2Down.Size = new System.Drawing.Size(153, 34);
this.btnFLStop2Down.TabIndex = 269;
this.btnFLStop2Down.Text = "FL阻挡2下降";
this.btnFLStop2Down.UseVisualStyleBackColor = false;
this.btnFLStop2Down.Click += new System.EventHandler(this.btnFLStop2Down_Click);
//
// btnOLine
//
this.btnOLine.BackColor = System.Drawing.Color.White;
this.btnOLine.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnOLine.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnOLine.Location = new System.Drawing.Point(168, 23);
this.btnOLine.Location = new System.Drawing.Point(167, 23);
this.btnOLine.Name = "btnOLine";
this.btnOLine.Size = new System.Drawing.Size(153, 34);
this.btnOLine.TabIndex = 268;
......@@ -446,7 +450,7 @@
this.btnBStopDown.BackColor = System.Drawing.Color.White;
this.btnBStopDown.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnBStopDown.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnBStopDown.Location = new System.Drawing.Point(168, 101);
this.btnBStopDown.Location = new System.Drawing.Point(167, 101);
this.btnBStopDown.Name = "btnBStopDown";
this.btnBStopDown.Size = new System.Drawing.Size(153, 34);
this.btnBStopDown.TabIndex = 267;
......@@ -459,7 +463,7 @@
this.btnEStopDown.BackColor = System.Drawing.Color.White;
this.btnEStopDown.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnEStopDown.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnEStopDown.Location = new System.Drawing.Point(9, 101);
this.btnEStopDown.Location = new System.Drawing.Point(8, 101);
this.btnEStopDown.Name = "btnEStopDown";
this.btnEStopDown.Size = new System.Drawing.Size(153, 34);
this.btnEStopDown.TabIndex = 266;
......@@ -472,7 +476,7 @@
this.btnOSWRun.BackColor = System.Drawing.Color.White;
this.btnOSWRun.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnOSWRun.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnOSWRun.Location = new System.Drawing.Point(168, 62);
this.btnOSWRun.Location = new System.Drawing.Point(167, 62);
this.btnOSWRun.Name = "btnOSWRun";
this.btnOSWRun.Size = new System.Drawing.Size(153, 34);
this.btnOSWRun.TabIndex = 265;
......@@ -485,7 +489,7 @@
this.btnLSWRun.BackColor = System.Drawing.Color.White;
this.btnLSWRun.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnLSWRun.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnLSWRun.Location = new System.Drawing.Point(9, 62);
this.btnLSWRun.Location = new System.Drawing.Point(8, 62);
this.btnLSWRun.Name = "btnLSWRun";
this.btnLSWRun.Size = new System.Drawing.Size(153, 34);
this.btnLSWRun.TabIndex = 264;
......@@ -498,7 +502,7 @@
this.btnLineRun.BackColor = System.Drawing.Color.White;
this.btnLineRun.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnLineRun.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnLineRun.Location = new System.Drawing.Point(9, 23);
this.btnLineRun.Location = new System.Drawing.Point(8, 23);
this.btnLineRun.Name = "btnLineRun";
this.btnLineRun.Size = new System.Drawing.Size(153, 34);
this.btnLineRun.TabIndex = 263;
......@@ -506,64 +510,12 @@
this.btnLineRun.UseVisualStyleBackColor = false;
this.btnLineRun.Click += new System.EventHandler(this.btnLineRun_Click);
//
// btnFL_TopCylinder
//
this.btnFL_TopCylinder.BackColor = System.Drawing.Color.White;
this.btnFL_TopCylinder.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnFL_TopCylinder.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnFL_TopCylinder.Location = new System.Drawing.Point(9, 296);
this.btnFL_TopCylinder.Name = "btnFL_TopCylinder";
this.btnFL_TopCylinder.Size = new System.Drawing.Size(153, 34);
this.btnFL_TopCylinder.TabIndex = 262;
this.btnFL_TopCylinder.Text = "FL顶升上升";
this.btnFL_TopCylinder.UseVisualStyleBackColor = false;
this.btnFL_TopCylinder.Click += new System.EventHandler(this.btnFL_TopCylinder_Click);
//
// btnSwLocationCylinder
//
this.btnSwLocationCylinder.BackColor = System.Drawing.Color.White;
this.btnSwLocationCylinder.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSwLocationCylinder.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSwLocationCylinder.Location = new System.Drawing.Point(168, 258);
this.btnSwLocationCylinder.Name = "btnSwLocationCylinder";
this.btnSwLocationCylinder.Size = new System.Drawing.Size(153, 34);
this.btnSwLocationCylinder.TabIndex = 261;
this.btnSwLocationCylinder.Text = "环形线横移定位上升";
this.btnSwLocationCylinder.UseVisualStyleBackColor = false;
this.btnSwLocationCylinder.Click += new System.EventHandler(this.Toroid_LocationCylinder_Click);
//
// btnSWTop
//
this.btnSWTop.BackColor = System.Drawing.Color.White;
this.btnSWTop.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSWTop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSWTop.Location = new System.Drawing.Point(168, 296);
this.btnSWTop.Name = "btnSWTop";
this.btnSWTop.Size = new System.Drawing.Size(153, 34);
this.btnSWTop.TabIndex = 260;
this.btnSWTop.Text = "环形线横移顶升上升";
this.btnSWTop.UseVisualStyleBackColor = false;
this.btnSWTop.Click += new System.EventHandler(this.btnToroid_TopCylinder_Click);
//
// btnCloseAll
//
this.btnCloseAll.BackColor = System.Drawing.Color.White;
this.btnCloseAll.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnCloseAll.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnCloseAll.Location = new System.Drawing.Point(9, 335);
this.btnCloseAll.Name = "btnCloseAll";
this.btnCloseAll.Size = new System.Drawing.Size(153, 34);
this.btnCloseAll.TabIndex = 259;
this.btnCloseAll.Text = "关闭所有DO";
this.btnCloseAll.UseVisualStyleBackColor = false;
this.btnCloseAll.Click += new System.EventHandler(this.btnCloseAll_Click);
//
// btnOutTopCylinder
//
this.btnOutTopCylinder.BackColor = System.Drawing.Color.White;
this.btnOutTopCylinder.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnOutTopCylinder.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnOutTopCylinder.Location = new System.Drawing.Point(168, 140);
this.btnOutTopCylinder.Location = new System.Drawing.Point(167, 308);
this.btnOutTopCylinder.Name = "btnOutTopCylinder";
this.btnOutTopCylinder.Size = new System.Drawing.Size(153, 34);
this.btnOutTopCylinder.TabIndex = 258;
......@@ -576,7 +528,7 @@
this.btnLocationCylinder.BackColor = System.Drawing.Color.White;
this.btnLocationCylinder.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnLocationCylinder.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnLocationCylinder.Location = new System.Drawing.Point(9, 140);
this.btnLocationCylinder.Location = new System.Drawing.Point(8, 179);
this.btnLocationCylinder.Name = "btnLocationCylinder";
this.btnLocationCylinder.Size = new System.Drawing.Size(153, 34);
this.btnLocationCylinder.TabIndex = 256;
......@@ -589,7 +541,7 @@
this.btnTrayLocationCylinder.BackColor = System.Drawing.Color.White;
this.btnTrayLocationCylinder.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnTrayLocationCylinder.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnTrayLocationCylinder.Location = new System.Drawing.Point(168, 335);
this.btnTrayLocationCylinder.Location = new System.Drawing.Point(167, 218);
this.btnTrayLocationCylinder.Name = "btnTrayLocationCylinder";
this.btnTrayLocationCylinder.Size = new System.Drawing.Size(153, 34);
this.btnTrayLocationCylinder.TabIndex = 255;
......@@ -602,7 +554,7 @@
this.btnFeedSideWayCylinder.BackColor = System.Drawing.Color.White;
this.btnFeedSideWayCylinder.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnFeedSideWayCylinder.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnFeedSideWayCylinder.Location = new System.Drawing.Point(9, 179);
this.btnFeedSideWayCylinder.Location = new System.Drawing.Point(8, 257);
this.btnFeedSideWayCylinder.Name = "btnFeedSideWayCylinder";
this.btnFeedSideWayCylinder.Size = new System.Drawing.Size(153, 34);
this.btnFeedSideWayCylinder.TabIndex = 252;
......@@ -615,7 +567,7 @@
this.btnFeedCylinder.BackColor = System.Drawing.Color.White;
this.btnFeedCylinder.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnFeedCylinder.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnFeedCylinder.Location = new System.Drawing.Point(168, 217);
this.btnFeedCylinder.Location = new System.Drawing.Point(167, 257);
this.btnFeedCylinder.Name = "btnFeedCylinder";
this.btnFeedCylinder.Size = new System.Drawing.Size(153, 34);
this.btnFeedCylinder.TabIndex = 249;
......@@ -623,24 +575,11 @@
this.btnFeedCylinder.UseVisualStyleBackColor = false;
this.btnFeedCylinder.Click += new System.EventHandler(this.btnFeedCylinder_Click);
//
// btnFeedSideWay
//
this.btnFeedSideWay.BackColor = System.Drawing.Color.White;
this.btnFeedSideWay.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnFeedSideWay.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnFeedSideWay.Location = new System.Drawing.Point(9, 217);
this.btnFeedSideWay.Name = "btnFeedSideWay";
this.btnFeedSideWay.Size = new System.Drawing.Size(153, 34);
this.btnFeedSideWay.TabIndex = 246;
this.btnFeedSideWay.Text = "上料横移机构上升";
this.btnFeedSideWay.UseVisualStyleBackColor = false;
this.btnFeedSideWay.Click += new System.EventHandler(this.btnFeedSideWay_Click);
//
// chbDebug
//
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(651, 13);
this.chbDebug.Location = new System.Drawing.Point(537, 13);
this.chbDebug.Name = "chbDebug";
this.chbDebug.Size = new System.Drawing.Size(84, 24);
this.chbDebug.TabIndex = 247;
......@@ -668,7 +607,7 @@
this.lblStoreStatus.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblStoreStatus.ForeColor = System.Drawing.Color.Green;
this.lblStoreStatus.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.lblStoreStatus.Location = new System.Drawing.Point(979, 15);
this.lblStoreStatus.Location = new System.Drawing.Point(865, 15);
this.lblStoreStatus.Name = "lblStoreStatus";
this.lblStoreStatus.Size = new System.Drawing.Size(65, 20);
this.lblStoreStatus.TabIndex = 245;
......@@ -701,20 +640,6 @@
this.btnStop.UseVisualStyleBackColor = false;
this.btnStop.Click += new System.EventHandler(this.btnStop_Click);
//
// btnReset
//
this.btnReset.BackColor = System.Drawing.Color.White;
this.btnReset.Enabled = false;
this.btnReset.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnReset.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnReset.Location = new System.Drawing.Point(420, 5);
this.btnReset.Name = "btnReset";
this.btnReset.Size = new System.Drawing.Size(110, 40);
this.btnReset.TabIndex = 95;
this.btnReset.Text = "复位";
this.btnReset.UseVisualStyleBackColor = false;
this.btnReset.Click += new System.EventHandler(this.btnReset_Click);
//
// tabControl1
//
this.tabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
......@@ -873,12 +798,13 @@
this.groupBox8.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.groupBox8.Controls.Add(this.tableLayoutPanel4);
this.groupBox8.Location = new System.Drawing.Point(685, 1);
this.groupBox8.Location = new System.Drawing.Point(685, 51);
this.groupBox8.Name = "groupBox8";
this.groupBox8.Size = new System.Drawing.Size(240, 446);
this.groupBox8.Size = new System.Drawing.Size(240, 396);
this.groupBox8.TabIndex = 280;
this.groupBox8.TabStop = false;
this.groupBox8.Text = "DO列表";
this.groupBox8.Visible = false;
//
// tableLayoutPanel4
//
......@@ -892,7 +818,7 @@
this.tableLayoutPanel4.RowCount = 2;
this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel4.Size = new System.Drawing.Size(229, 426);
this.tableLayoutPanel4.Size = new System.Drawing.Size(229, 376);
this.tableLayoutPanel4.TabIndex = 103;
//
// tabPage2
......@@ -1304,7 +1230,6 @@
this.panel1.Controls.Add(this.lblStoreStatus);
this.panel1.Controls.Add(this.btnStart);
this.panel1.Controls.Add(this.btnStop);
this.panel1.Controls.Add(this.btnReset);
this.panel1.Location = new System.Drawing.Point(2, 1);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1269, 47);
......@@ -1327,7 +1252,7 @@
//
this.chbBoxSendShelf.AutoSize = true;
this.chbBoxSendShelf.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.chbBoxSendShelf.Location = new System.Drawing.Point(831, 13);
this.chbBoxSendShelf.Location = new System.Drawing.Point(717, 13);
this.chbBoxSendShelf.Name = "chbBoxSendShelf";
this.chbBoxSendShelf.Size = new System.Drawing.Size(140, 24);
this.chbBoxSendShelf.TabIndex = 251;
......@@ -1339,7 +1264,7 @@
//
this.chbMoveStop.AutoSize = true;
this.chbMoveStop.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.chbMoveStop.Location = new System.Drawing.Point(741, 13);
this.chbMoveStop.Location = new System.Drawing.Point(627, 13);
this.chbMoveStop.Name = "chbMoveStop";
this.chbMoveStop.Size = new System.Drawing.Size(84, 24);
this.chbMoveStop.TabIndex = 250;
......@@ -1364,7 +1289,7 @@
this.btnScan.BackColor = System.Drawing.Color.White;
this.btnScan.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnScan.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnScan.Location = new System.Drawing.Point(534, 5);
this.btnScan.Location = new System.Drawing.Point(420, 5);
this.btnScan.Name = "btnScan";
this.btnScan.Size = new System.Drawing.Size(110, 40);
this.btnScan.TabIndex = 248;
......@@ -1430,12 +1355,10 @@
private System.Windows.Forms.Button btnTrayLocationCylinder;
private System.Windows.Forms.Button btnFeedSideWayCylinder;
private System.Windows.Forms.Button btnFeedCylinder;
private System.Windows.Forms.Button btnFeedSideWay;
private System.Windows.Forms.Label lblThisSta;
private System.Windows.Forms.Label lblStoreStatus;
private System.Windows.Forms.Button btnStart;
private System.Windows.Forms.Button btnStop;
private System.Windows.Forms.Button btnReset;
private System.Windows.Forms.CheckBox chbDebug;
private System.Windows.Forms.Button btnOutTopCylinder;
private System.Windows.Forms.Button btnLocationCylinder;
......@@ -1464,9 +1387,6 @@
private System.Windows.Forms.TextBox txtDoName;
private System.Windows.Forms.Label label17;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.Button btnSwLocationCylinder;
private System.Windows.Forms.Button btnSWTop;
private System.Windows.Forms.Button btnFL_TopCylinder;
private System.Windows.Forms.Button btnEStopDown;
private System.Windows.Forms.Button btnOSWRun;
private System.Windows.Forms.Button btnLineRun;
......@@ -1490,10 +1410,7 @@
private System.Windows.Forms.Button btnOLine;
private System.Windows.Forms.TabPage tabPage3;
private System.Windows.Forms.Label lblwidth;
private System.Windows.Forms.Button btnFLStop1;
private System.Windows.Forms.Button btnFLStop2Down;
private System.Windows.Forms.CheckBox chbBoxSendShelf;
private System.Windows.Forms.Button btnSwStop;
private System.Windows.Forms.Button btnOutStopDown;
private System.Windows.Forms.Button btnUpdateShelf;
private System.Windows.Forms.TextBox txtShelfID;
......@@ -1507,6 +1424,9 @@
private System.Windows.Forms.ComboBox cmbDSize;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button btnClose;
private System.Windows.Forms.Button btnGuding;
private System.Windows.Forms.Button btnTopUp;
private System.Windows.Forms.Button btnRollerRun;
}
}
......@@ -116,9 +116,9 @@ namespace OnlineStore.AssemblyLine
ReadIOList();
//lblTrayNum.Text = "托盘编码:" + TrayManager.GetTrayNum(equipBean.DeviceID);
}
lblName.BackColor = equipBean.GetShowColor();
if (equipBean.runStatus > LineRunStatus.Wait)
{
lblName.BackColor = Color.Green;
if (btnStart.Enabled)
{
FormStatus(true);
......@@ -126,7 +126,7 @@ namespace OnlineStore.AssemblyLine
}
else
{
lblName.BackColor= System.Drawing.Color.DodgerBlue;
//lblName.BackColor= System.Drawing.Color.DodgerBlue;
if (!btnStart.Enabled)
{
FormStatus(false );
......@@ -260,30 +260,15 @@ namespace OnlineStore.AssemblyLine
lblThisSta.Text = equipBean.WarnMsg;
txtP1.Text = equipBean.Config.UpDownAxisP1.ToString();
txtUpdownP3.Text = equipBean.Config.UpDownAxisP3.ToString();
if (equipBean.Config.SidesWayNum > 0)
if (equipBean.Config.DOList.ContainsKey(IO_Type.SL_RollerLine_Run) )
{
btnSwLocationCylinder.Visible = true;
btnSWTop.Visible = true;
btnFL_TopCylinder.Visible = false;
btnFLStop1.Visible = false;
btnFLStop2Down.Visible = false;
btnRollerRun.Visible = true;
}
else
{
btnSwLocationCylinder.Visible = false;
btnSWTop.Visible = false;
btnFL_TopCylinder.Visible = true;
btnFLStop1.Visible = true;
btnFLStop2Down.Visible = true;
}
if (equipBean.Config.SidesWayNum.Equals(2))
{
btnSwStop.Visible = true;
}
else
{
btnSwStop.Visible = false;
btnRollerRun.Visible = false;
}
LoadDP2();
txtBp1.Text = equipBean.Config.BatchAxisP1.ToString();
txtBP2.Text = equipBean.Config.BatchAxisP2.ToString();
......@@ -314,12 +299,7 @@ namespace OnlineStore.AssemblyLine
{
ReadIOList();
}
internal override void FormStatus(bool isStart)
{
btnStart.Enabled = !isStart;
btnStop.Enabled = true;
btnReset.Enabled = isStart;
}
private void FrmIOStatus_Shown(object sender, EventArgs e)
{
timer1.Start();
......@@ -327,19 +307,36 @@ namespace OnlineStore.AssemblyLine
private void btnStart_Click(object sender, EventArgs e)
{
if (equipBase.runStatus.Equals(LineRunStatus.Wait))
{
LogUtil.info(equipBean.Name + "点击:启用调试");
StartDebug();
}
private void btnStop_Click(object sender, EventArgs e)
else
{
LogUtil.info(equipBean.Name + "点击:停止");
StopRun();
LogUtil.info(equipBean.Name + "点击:复位");
Reset();
}
}
internal override void FormStatus(bool isStart)
{
//btnStart.Enabled = !isStart;
btnStop.Enabled = true;
if (isStart)
{
btnStart.Text = "复位";
}
else
{
btnStart.Text = "启动调试";
}
//btnReset.Enabled = isStart;
}
private void btnReset_Click(object sender, EventArgs e)
private void btnStop_Click(object sender, EventArgs e)
{
LogUtil.info(equipBean.Name + "点击:复位");
Reset();
LogUtil.info(equipBean.Name + "点击:停止");
StopRun();
}
private void chbDebug_CheckedChanged(object sender, EventArgs e)
......@@ -392,15 +389,7 @@ namespace OnlineStore.AssemblyLine
BtnMove(btnOutTopCylinder, "SL出口顶升上升", "SL出口顶升下降", IO_Type.SL_OutTopCylinder_Down, IO_Type.SL_OutTopCylinder_Up);
}
private void btnFeedSideWay_Click(object sender, EventArgs e)
{
BtnMove(btnFeedSideWay, "上料横移机构上升", "上料横移机构下降", IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up);
}
private void btnFeedCylinder_Click(object sender, EventArgs e)
{
BtnMove(btnFeedCylinder, "夹料气缸放松", "夹料气缸夹紧", IO_Type.SL_MoveCylinder_Tighten, IO_Type.SL_MoveCylinder_Slack);
}
private void btnFeedSideWayCylinder_Click(object sender, EventArgs e)
{
if (equipBean.MoveCylineIsUp())
......@@ -428,19 +417,6 @@ namespace OnlineStore.AssemblyLine
}
BtnMove(btnTrayLocationCylinder, "SL升降盘定位气缸前进", "SL升降盘定位气缸后退", IO_Type.SL_TrayLocation_After, IO_Type.SL_TrayLocation_Before);
}
private void btnToroid_TopCylinder_Click(object sender, EventArgs e)
{
BtnMove(btnSWTop, "环形线横移顶升上升", "环形线横移顶升下降", IO_Type.SW_TopCylinder_Down, IO_Type.SW_TopCylinder_Up);
}
private void btnFL_TopCylinder_Click(object sender, EventArgs e)
{
BtnMove(btnFL_TopCylinder, "FL顶升上升", "FL顶升下降", IO_Type.FL_TopCylinder_Down, IO_Type.FL_TopCylinder_Up);
}
private void Toroid_LocationCylinder_Click(object sender, EventArgs e)
{
BtnMove(btnSwLocationCylinder, "环形线横移定位上升", "环形线横移定位下降", IO_Type.SW_LocationCylinder_Down, IO_Type.SW_LocationCylinder_Up);
}
private void cmbSizeList_SelectedIndexChanged(object sender, EventArgs e)
{
......@@ -616,15 +592,7 @@ namespace OnlineStore.AssemblyLine
BtnMove(btnOLine, "SL出料线体运转", "SL出料线体停止", IO_Type.SL_OutLine_Run);
}
private void btnFLStop1_Click(object sender, EventArgs e)
{
BtnMove(btnFLStop1, "FL阻挡1下降", "FL阻挡1上升", IO_Type.FL_StopCylinder_Down1);
}
private void btnFLStop2Down_Click(object sender, EventArgs e)
{
BtnMove(btnFLStop2Down, "FL阻挡2下降", "FL阻挡2上升", IO_Type.FL_StopCylinder_Down2);
}
private void chbBoxSendShelf_CheckedChanged(object sender, EventArgs e)
{
......@@ -634,10 +602,6 @@ namespace OnlineStore.AssemblyLine
IsInCheck = false;
}
private void btnSwStop_Click(object sender, EventArgs e)
{
BtnMove(btnSwStop, "环形线阻挡气缸下降", "环形线阻挡气缸上升", IO_Type.SW_StopDown);
}
private void btnOutStopDown_Click(object sender, EventArgs e)
{
......@@ -755,6 +719,26 @@ namespace OnlineStore.AssemblyLine
{
this.Close();
}
private void btnGuding_Click(object sender, EventArgs e)
{
BtnMove(btnGuding , "SL固定气缸上升", "SL固定气缸下降", IO_Type.SL_FixedCylinder_Down, IO_Type.SL_FixedCylinder_Up);
}
private void btnTopUp_Click(object sender, EventArgs e)
{
BtnMove(btnTopUp, "SL顶升上升", "SL顶升下降", IO_Type.SL_TopCylinder_Down, IO_Type.SL_TopCylinder_Up);
}
private void btnRollerRun_Click(object sender, EventArgs e)
{
BtnMove(btnRollerRun, "SL过渡滚筒运转", "SL过渡滚筒停止", IO_Type.SL_RollerLine_Run);
}
private void btnFeedCylinder_Click(object sender, EventArgs e)
{
BtnMove(btnFeedCylinder, "夹料气缸放松", "夹料气缸夹紧", IO_Type.SL_MoveCylinder_Relax, IO_Type.SL_MoveCylinder_Work);
}
}
}
......
......@@ -19,6 +19,7 @@
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmHYEquip));
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.btnCloseAll = new System.Windows.Forms.Button();
this.txtDOIndex = new System.Windows.Forms.TextBox();
this.txtDoName = new System.Windows.Forms.TextBox();
this.label17 = new System.Windows.Forms.Label();
......@@ -34,13 +35,16 @@
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.groupBox5 = new System.Windows.Forms.GroupBox();
this.btnCloseAll = new System.Windows.Forms.Button();
this.btnStop2Up = new System.Windows.Forms.Button();
this.btnStop1Up = new System.Windows.Forms.Button();
this.btnClampSlack = new System.Windows.Forms.Button();
this.btnUpDownUp = new System.Windows.Forms.Button();
this.btnBeforeAfterBefore = new System.Windows.Forms.Button();
this.btnTopUp = new System.Windows.Forms.Button();
this.btnClampWork = new System.Windows.Forms.Button();
this.btnMoveTake = new System.Windows.Forms.Button();
this.btnFrontStopDown = new System.Windows.Forms.Button();
this.btnLocation_Up = new System.Windows.Forms.Button();
this.btnStopDown = new System.Windows.Forms.Button();
this.btnLineRun = new System.Windows.Forms.Button();
this.btnTopCylinder_UP = new System.Windows.Forms.Button();
this.btnLineBackRun = new System.Windows.Forms.Button();
this.btnClampRelax = new System.Windows.Forms.Button();
this.btnLocation_Down = new System.Windows.Forms.Button();
this.chbDebug = new System.Windows.Forms.CheckBox();
this.lblThisSta = new System.Windows.Forms.Label();
this.lblStoreStatus = new System.Windows.Forms.Label();
......@@ -54,6 +58,8 @@
this.lblMoveInfo = new System.Windows.Forms.Label();
this.lblTrayNum = new System.Windows.Forms.Label();
this.lblInstoreList = new System.Windows.Forms.Label();
this.btnMoveGive = new System.Windows.Forms.Button();
this.btnUpDownUpbtnTopCylinder_Down = new System.Windows.Forms.Button();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.groupDetial = new System.Windows.Forms.GroupBox();
this.btnDSave = new System.Windows.Forms.Button();
......@@ -76,6 +82,7 @@
this.txtP2 = new System.Windows.Forms.TextBox();
this.axisMoveControl1 = new OnlineStore.AssemblyLine.AxisMoveControl();
this.panel1 = new System.Windows.Forms.Panel();
this.btnClose = new System.Windows.Forms.Button();
this.lblName = new System.Windows.Forms.Label();
this.groupBox1.SuspendLayout();
this.groupBox4.SuspendLayout();
......@@ -97,6 +104,7 @@
//
// groupBox1
//
this.groupBox1.Controls.Add(this.btnCloseAll);
this.groupBox1.Controls.Add(this.txtDOIndex);
this.groupBox1.Controls.Add(this.txtDoName);
this.groupBox1.Controls.Add(this.label17);
......@@ -108,21 +116,34 @@
this.groupBox1.Controls.Add(this.txtSlaveId);
this.groupBox1.Controls.Add(this.cmbWriteIO);
this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox1.Location = new System.Drawing.Point(497, 6);
this.groupBox1.Location = new System.Drawing.Point(497, 188);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(394, 188);
this.groupBox1.Size = new System.Drawing.Size(394, 156);
this.groupBox1.TabIndex = 105;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "DO写入";
//
// btnCloseAll
//
this.btnCloseAll.BackColor = System.Drawing.Color.White;
this.btnCloseAll.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnCloseAll.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnCloseAll.Location = new System.Drawing.Point(17, 107);
this.btnCloseAll.Name = "btnCloseAll";
this.btnCloseAll.Size = new System.Drawing.Size(140, 34);
this.btnCloseAll.TabIndex = 259;
this.btnCloseAll.Text = "关闭所有DO";
this.btnCloseAll.UseVisualStyleBackColor = false;
this.btnCloseAll.Click += new System.EventHandler(this.btnCloseAll_Click);
//
// txtDOIndex
//
this.txtDOIndex.Enabled = false;
this.txtDOIndex.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtDOIndex.Location = new System.Drawing.Point(328, 67);
this.txtDOIndex.Location = new System.Drawing.Point(191, 67);
this.txtDOIndex.MaxLength = 10;
this.txtDOIndex.Name = "txtDOIndex";
this.txtDOIndex.Size = new System.Drawing.Size(47, 23);
this.txtDOIndex.Size = new System.Drawing.Size(38, 23);
this.txtDOIndex.TabIndex = 284;
this.txtDOIndex.Text = "0";
//
......@@ -130,10 +151,10 @@
//
this.txtDoName.Enabled = false;
this.txtDoName.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtDoName.Location = new System.Drawing.Point(71, 67);
this.txtDoName.Location = new System.Drawing.Point(72, 67);
this.txtDoName.MaxLength = 10;
this.txtDoName.Name = "txtDoName";
this.txtDoName.Size = new System.Drawing.Size(116, 23);
this.txtDoName.Size = new System.Drawing.Size(70, 23);
this.txtDoName.TabIndex = 283;
this.txtDoName.Text = "0";
//
......@@ -154,7 +175,7 @@
this.label14.AutoSize = true;
this.label14.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label14.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label14.Location = new System.Drawing.Point(272, 70);
this.label14.Location = new System.Drawing.Point(149, 70);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(35, 17);
this.label14.TabIndex = 281;
......@@ -166,7 +187,7 @@
this.btnOpenDo.BackColor = System.Drawing.Color.White;
this.btnOpenDo.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnOpenDo.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnOpenDo.Location = new System.Drawing.Point(169, 107);
this.btnOpenDo.Location = new System.Drawing.Point(166, 107);
this.btnOpenDo.Name = "btnOpenDo";
this.btnOpenDo.Size = new System.Drawing.Size(100, 34);
this.btnOpenDo.TabIndex = 280;
......@@ -190,7 +211,7 @@
// txtWriteTime
//
this.txtWriteTime.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtWriteTime.Location = new System.Drawing.Point(82, 113);
this.txtWriteTime.Location = new System.Drawing.Point(303, 67);
this.txtWriteTime.MaxLength = 10;
this.txtWriteTime.Name = "txtWriteTime";
this.txtWriteTime.Size = new System.Drawing.Size(66, 23);
......@@ -202,7 +223,7 @@
this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label5.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label5.Location = new System.Drawing.Point(19, 116);
this.label5.Location = new System.Drawing.Point(236, 70);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(60, 17);
this.label5.TabIndex = 278;
......@@ -294,111 +315,150 @@
//
this.groupBox5.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.groupBox5.Controls.Add(this.btnCloseAll);
this.groupBox5.Controls.Add(this.btnStop2Up);
this.groupBox5.Controls.Add(this.btnStop1Up);
this.groupBox5.Controls.Add(this.btnClampSlack);
this.groupBox5.Controls.Add(this.btnUpDownUp);
this.groupBox5.Controls.Add(this.btnBeforeAfterBefore);
this.groupBox5.Controls.Add(this.btnTopUp);
this.groupBox5.Location = new System.Drawing.Point(897, 6);
this.groupBox5.Controls.Add(this.btnClampWork);
this.groupBox5.Controls.Add(this.btnMoveTake);
this.groupBox5.Controls.Add(this.btnFrontStopDown);
this.groupBox5.Controls.Add(this.btnLocation_Up);
this.groupBox5.Controls.Add(this.btnStopDown);
this.groupBox5.Controls.Add(this.btnLineRun);
this.groupBox5.Controls.Add(this.btnTopCylinder_UP);
this.groupBox5.Controls.Add(this.btnLineBackRun);
this.groupBox5.Location = new System.Drawing.Point(897, 188);
this.groupBox5.Name = "groupBox5";
this.groupBox5.Size = new System.Drawing.Size(393, 188);
this.groupBox5.Size = new System.Drawing.Size(332, 321);
this.groupBox5.TabIndex = 255;
this.groupBox5.TabStop = false;
this.groupBox5.Text = "IO操作测试";
//
// btnCloseAll
//
this.btnCloseAll.BackColor = System.Drawing.Color.White;
this.btnCloseAll.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnCloseAll.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnCloseAll.Location = new System.Drawing.Point(17, 140);
this.btnCloseAll.Name = "btnCloseAll";
this.btnCloseAll.Size = new System.Drawing.Size(140, 34);
this.btnCloseAll.TabIndex = 259;
this.btnCloseAll.Text = "关闭所有DO";
this.btnCloseAll.UseVisualStyleBackColor = false;
this.btnCloseAll.Click += new System.EventHandler(this.btnCloseAll_Click);
//
// btnStop2Up
//
this.btnStop2Up.BackColor = System.Drawing.Color.White;
this.btnStop2Up.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnStop2Up.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnStop2Up.Location = new System.Drawing.Point(175, 22);
this.btnStop2Up.Name = "btnStop2Up";
this.btnStop2Up.Size = new System.Drawing.Size(140, 34);
this.btnStop2Up.TabIndex = 258;
this.btnStop2Up.Text = "阻挡2下降";
this.btnStop2Up.UseVisualStyleBackColor = false;
this.btnStop2Up.Click += new System.EventHandler(this.btnStop2Up_Click);
//
// btnStop1Up
//
this.btnStop1Up.BackColor = System.Drawing.Color.White;
this.btnStop1Up.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnStop1Up.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnStop1Up.Location = new System.Drawing.Point(17, 22);
this.btnStop1Up.Name = "btnStop1Up";
this.btnStop1Up.Size = new System.Drawing.Size(140, 34);
this.btnStop1Up.TabIndex = 256;
this.btnStop1Up.Text = "阻挡1下降";
this.btnStop1Up.UseVisualStyleBackColor = false;
this.btnStop1Up.Click += new System.EventHandler(this.btnStop1Up_Click);
//
// btnClampSlack
//
this.btnClampSlack.BackColor = System.Drawing.Color.White;
this.btnClampSlack.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnClampSlack.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnClampSlack.Location = new System.Drawing.Point(17, 100);
this.btnClampSlack.Name = "btnClampSlack";
this.btnClampSlack.Size = new System.Drawing.Size(140, 34);
this.btnClampSlack.TabIndex = 255;
this.btnClampSlack.Text = "夹料夹紧";
this.btnClampSlack.UseVisualStyleBackColor = false;
this.btnClampSlack.Click += new System.EventHandler(this.btnClampSlack_Click);
//
// btnUpDownUp
//
this.btnUpDownUp.BackColor = System.Drawing.Color.White;
this.btnUpDownUp.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnUpDownUp.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnUpDownUp.Location = new System.Drawing.Point(175, 100);
this.btnUpDownUp.Name = "btnUpDownUp";
this.btnUpDownUp.Size = new System.Drawing.Size(140, 34);
this.btnUpDownUp.TabIndex = 252;
this.btnUpDownUp.Text = "升降上升";
this.btnUpDownUp.UseVisualStyleBackColor = false;
this.btnUpDownUp.Visible = false;
this.btnUpDownUp.Click += new System.EventHandler(this.btnUpDownUp_Click);
//
// btnBeforeAfterBefore
//
this.btnBeforeAfterBefore.BackColor = System.Drawing.Color.White;
this.btnBeforeAfterBefore.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnBeforeAfterBefore.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnBeforeAfterBefore.Location = new System.Drawing.Point(175, 61);
this.btnBeforeAfterBefore.Name = "btnBeforeAfterBefore";
this.btnBeforeAfterBefore.Size = new System.Drawing.Size(140, 34);
this.btnBeforeAfterBefore.TabIndex = 249;
this.btnBeforeAfterBefore.Text = "横移前进";
this.btnBeforeAfterBefore.UseVisualStyleBackColor = false;
this.btnBeforeAfterBefore.Click += new System.EventHandler(this.btnBeforeAfterBefore_Click);
//
// btnTopUp
//
this.btnTopUp.BackColor = System.Drawing.Color.White;
this.btnTopUp.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnTopUp.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnTopUp.Location = new System.Drawing.Point(17, 61);
this.btnTopUp.Name = "btnTopUp";
this.btnTopUp.Size = new System.Drawing.Size(140, 34);
this.btnTopUp.TabIndex = 246;
this.btnTopUp.Text = "顶升上升";
this.btnTopUp.UseVisualStyleBackColor = false;
this.btnTopUp.Click += new System.EventHandler(this.btnTopUp_Click);
// btnClampWork
//
this.btnClampWork.BackColor = System.Drawing.Color.White;
this.btnClampWork.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnClampWork.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnClampWork.Location = new System.Drawing.Point(175, 140);
this.btnClampWork.Name = "btnClampWork";
this.btnClampWork.Size = new System.Drawing.Size(140, 34);
this.btnClampWork.TabIndex = 265;
this.btnClampWork.Text = "夹料气缸夹紧";
this.btnClampWork.UseVisualStyleBackColor = false;
this.btnClampWork.Click += new System.EventHandler(this.btnClampWork_Click);
//
// btnMoveTake
//
this.btnMoveTake.BackColor = System.Drawing.Color.White;
this.btnMoveTake.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnMoveTake.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnMoveTake.Location = new System.Drawing.Point(17, 140);
this.btnMoveTake.Name = "btnMoveTake";
this.btnMoveTake.Size = new System.Drawing.Size(140, 34);
this.btnMoveTake.TabIndex = 263;
this.btnMoveTake.Text = "接驳台取料";
this.btnMoveTake.UseVisualStyleBackColor = false;
this.btnMoveTake.Click += new System.EventHandler(this.btnMoveTake_Click);
//
// btnFrontStopDown
//
this.btnFrontStopDown.BackColor = System.Drawing.Color.White;
this.btnFrontStopDown.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnFrontStopDown.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnFrontStopDown.Location = new System.Drawing.Point(175, 62);
this.btnFrontStopDown.Name = "btnFrontStopDown";
this.btnFrontStopDown.Size = new System.Drawing.Size(140, 34);
this.btnFrontStopDown.TabIndex = 261;
this.btnFrontStopDown.Text = "托盘前阻挡下降";
this.btnFrontStopDown.UseVisualStyleBackColor = false;
this.btnFrontStopDown.Click += new System.EventHandler(this.btnFrontStopDown_Click);
//
// btnLocation_Up
//
this.btnLocation_Up.BackColor = System.Drawing.Color.White;
this.btnLocation_Up.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnLocation_Up.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnLocation_Up.Location = new System.Drawing.Point(175, 100);
this.btnLocation_Up.Name = "btnLocation_Up";
this.btnLocation_Up.Size = new System.Drawing.Size(140, 34);
this.btnLocation_Up.TabIndex = 260;
this.btnLocation_Up.Text = "横移定位上升";
this.btnLocation_Up.UseVisualStyleBackColor = false;
this.btnLocation_Up.Click += new System.EventHandler(this.btnLocation_Up_Click);
//
// btnStopDown
//
this.btnStopDown.BackColor = System.Drawing.Color.White;
this.btnStopDown.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnStopDown.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnStopDown.Location = new System.Drawing.Point(175, 22);
this.btnStopDown.Name = "btnStopDown";
this.btnStopDown.Size = new System.Drawing.Size(140, 34);
this.btnStopDown.TabIndex = 258;
this.btnStopDown.Text = "阻挡下降";
this.btnStopDown.UseVisualStyleBackColor = false;
this.btnStopDown.Click += new System.EventHandler(this.btnStopDown_Click);
//
// btnLineRun
//
this.btnLineRun.BackColor = System.Drawing.Color.White;
this.btnLineRun.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnLineRun.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnLineRun.Location = new System.Drawing.Point(17, 22);
this.btnLineRun.Name = "btnLineRun";
this.btnLineRun.Size = new System.Drawing.Size(140, 34);
this.btnLineRun.TabIndex = 256;
this.btnLineRun.Text = "横移电机正转>>";
this.btnLineRun.UseVisualStyleBackColor = false;
this.btnLineRun.Click += new System.EventHandler(this.btnLineRun_Click);
//
// btnTopCylinder_UP
//
this.btnTopCylinder_UP.BackColor = System.Drawing.Color.White;
this.btnTopCylinder_UP.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnTopCylinder_UP.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnTopCylinder_UP.Location = new System.Drawing.Point(17, 100);
this.btnTopCylinder_UP.Name = "btnTopCylinder_UP";
this.btnTopCylinder_UP.Size = new System.Drawing.Size(140, 34);
this.btnTopCylinder_UP.TabIndex = 255;
this.btnTopCylinder_UP.Text = "横移顶升上升";
this.btnTopCylinder_UP.UseVisualStyleBackColor = false;
this.btnTopCylinder_UP.Click += new System.EventHandler(this.btnTopCylinder_UP_Click);
//
// btnLineBackRun
//
this.btnLineBackRun.BackColor = System.Drawing.Color.White;
this.btnLineBackRun.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnLineBackRun.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnLineBackRun.Location = new System.Drawing.Point(17, 61);
this.btnLineBackRun.Name = "btnLineBackRun";
this.btnLineBackRun.Size = new System.Drawing.Size(140, 34);
this.btnLineBackRun.TabIndex = 246;
this.btnLineBackRun.Text = "横移电机反转<<";
this.btnLineBackRun.UseVisualStyleBackColor = false;
this.btnLineBackRun.Click += new System.EventHandler(this.btnLineBackRun_Click);
//
// btnClampRelax
//
this.btnClampRelax.BackColor = System.Drawing.Color.White;
this.btnClampRelax.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnClampRelax.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnClampRelax.Location = new System.Drawing.Point(699, 419);
this.btnClampRelax.Name = "btnClampRelax";
this.btnClampRelax.Size = new System.Drawing.Size(140, 34);
this.btnClampRelax.TabIndex = 264;
this.btnClampRelax.Text = "夹料气缸放松";
this.btnClampRelax.UseVisualStyleBackColor = false;
this.btnClampRelax.Visible = false;
//
// btnLocation_Down
//
this.btnLocation_Down.BackColor = System.Drawing.Color.White;
this.btnLocation_Down.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnLocation_Down.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnLocation_Down.Location = new System.Drawing.Point(699, 379);
this.btnLocation_Down.Name = "btnLocation_Down";
this.btnLocation_Down.Size = new System.Drawing.Size(140, 34);
this.btnLocation_Down.TabIndex = 259;
this.btnLocation_Down.Text = "横移定位下降";
this.btnLocation_Down.UseVisualStyleBackColor = false;
this.btnLocation_Down.Visible = false;
//
// chbDebug
//
......@@ -414,14 +474,15 @@
//
// lblThisSta
//
this.lblThisSta.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
this.lblThisSta.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.lblThisSta.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblThisSta.ForeColor = System.Drawing.Color.Red;
this.lblThisSta.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.lblThisSta.Location = new System.Drawing.Point(255, 13);
this.lblThisSta.Name = "lblThisSta";
this.lblThisSta.Size = new System.Drawing.Size(531, 197);
this.lblThisSta.Size = new System.Drawing.Size(470, 158);
this.lblThisSta.TabIndex = 246;
this.lblThisSta.Text = "等待启动";
this.lblThisSta.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
......@@ -502,20 +563,24 @@
this.tabControl1.Location = new System.Drawing.Point(5, 62);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(1173, 545);
this.tabControl1.Size = new System.Drawing.Size(1243, 545);
this.tabControl1.TabIndex = 257;
//
// tabPage1
//
this.tabPage1.Controls.Add(this.groupBox6);
this.tabPage1.Controls.Add(this.btnClampRelax);
this.tabPage1.Controls.Add(this.groupBox3);
this.tabPage1.Controls.Add(this.groupBox4);
this.tabPage1.Controls.Add(this.btnMoveGive);
this.tabPage1.Controls.Add(this.groupBox5);
this.tabPage1.Controls.Add(this.groupBox1);
this.tabPage1.Controls.Add(this.btnUpDownUpbtnTopCylinder_Down);
this.tabPage1.Controls.Add(this.btnLocation_Down);
this.tabPage1.Location = new System.Drawing.Point(4, 26);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
this.tabPage1.Size = new System.Drawing.Size(1299, 436);
this.tabPage1.Size = new System.Drawing.Size(1235, 515);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = " IO列表 ";
this.tabPage1.UseVisualStyleBackColor = true;
......@@ -529,9 +594,9 @@
this.groupBox6.Controls.Add(this.lblTrayNum);
this.groupBox6.Controls.Add(this.lblInstoreList);
this.groupBox6.Controls.Add(this.lblThisSta);
this.groupBox6.Location = new System.Drawing.Point(498, 200);
this.groupBox6.Location = new System.Drawing.Point(497, 6);
this.groupBox6.Name = "groupBox6";
this.groupBox6.Size = new System.Drawing.Size(792, 224);
this.groupBox6.Size = new System.Drawing.Size(731, 176);
this.groupBox6.TabIndex = 278;
this.groupBox6.TabStop = false;
this.groupBox6.Text = "消息";
......@@ -567,9 +632,36 @@
this.lblInstoreList.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.lblInstoreList.Location = new System.Drawing.Point(255, 177);
this.lblInstoreList.Name = "lblInstoreList";
this.lblInstoreList.Size = new System.Drawing.Size(531, 184);
this.lblInstoreList.Size = new System.Drawing.Size(470, 184);
this.lblInstoreList.TabIndex = 277;
//
// btnMoveGive
//
this.btnMoveGive.BackColor = System.Drawing.Color.White;
this.btnMoveGive.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnMoveGive.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnMoveGive.Location = new System.Drawing.Point(541, 419);
this.btnMoveGive.Name = "btnMoveGive";
this.btnMoveGive.Size = new System.Drawing.Size(140, 34);
this.btnMoveGive.TabIndex = 262;
this.btnMoveGive.Text = "接驳台放料";
this.btnMoveGive.UseVisualStyleBackColor = false;
this.btnMoveGive.Visible = false;
//
// btnUpDownUpbtnTopCylinder_Down
//
this.btnUpDownUpbtnTopCylinder_Down.BackColor = System.Drawing.Color.White;
this.btnUpDownUpbtnTopCylinder_Down.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnUpDownUpbtnTopCylinder_Down.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnUpDownUpbtnTopCylinder_Down.Location = new System.Drawing.Point(541, 379);
this.btnUpDownUpbtnTopCylinder_Down.Name = "btnUpDownUpbtnTopCylinder_Down";
this.btnUpDownUpbtnTopCylinder_Down.Size = new System.Drawing.Size(140, 34);
this.btnUpDownUpbtnTopCylinder_Down.TabIndex = 252;
this.btnUpDownUpbtnTopCylinder_Down.Text = "横移顶升下降";
this.btnUpDownUpbtnTopCylinder_Down.UseVisualStyleBackColor = false;
this.btnUpDownUpbtnTopCylinder_Down.Visible = false;
this.btnUpDownUpbtnTopCylinder_Down.Click += new System.EventHandler(this.btnUpDownUp_Click);
//
// tabPage2
//
this.tabPage2.Controls.Add(this.groupDetial);
......@@ -577,7 +669,7 @@
this.tabPage2.Controls.Add(this.axisMoveControl1);
this.tabPage2.Location = new System.Drawing.Point(4, 26);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Size = new System.Drawing.Size(1165, 515);
this.tabPage2.Size = new System.Drawing.Size(1235, 515);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "伺服调试";
this.tabPage2.UseVisualStyleBackColor = true;
......@@ -850,6 +942,7 @@
//
this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.panel1.Controls.Add(this.btnClose);
this.panel1.Controls.Add(this.lblName);
this.panel1.Controls.Add(this.chbDebug);
this.panel1.Controls.Add(this.lblStoreStatus);
......@@ -859,9 +952,22 @@
this.panel1.Controls.Add(this.btnReset);
this.panel1.Location = new System.Drawing.Point(2, 1);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1172, 58);
this.panel1.Size = new System.Drawing.Size(1242, 58);
this.panel1.TabIndex = 258;
//
// btnClose
//
this.btnClose.BackColor = System.Drawing.Color.White;
this.btnClose.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnClose.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnClose.Location = new System.Drawing.Point(1109, 13);
this.btnClose.Name = "btnClose";
this.btnClose.Size = new System.Drawing.Size(110, 40);
this.btnClose.TabIndex = 260;
this.btnClose.Text = "返回";
this.btnClose.UseVisualStyleBackColor = false;
this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
//
// lblName
//
this.lblName.BackColor = System.Drawing.Color.DodgerBlue;
......@@ -878,7 +984,7 @@
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1184, 611);
this.ClientSize = new System.Drawing.Size(1254, 611);
this.Controls.Add(this.panel1);
this.Controls.Add(this.tabControl1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
......@@ -920,10 +1026,8 @@
private System.Windows.Forms.ComboBox cmbWriteIO;
private System.Windows.Forms.TextBox txtSlaveId;
private System.Windows.Forms.GroupBox groupBox5;
private System.Windows.Forms.Button btnClampSlack;
private System.Windows.Forms.Button btnUpDownUp;
private System.Windows.Forms.Button btnBeforeAfterBefore;
private System.Windows.Forms.Button btnTopUp;
private System.Windows.Forms.Button btnTopCylinder_UP;
private System.Windows.Forms.Button btnLineBackRun;
private System.Windows.Forms.Label lblThisSta;
private System.Windows.Forms.Label lblStoreStatus;
private System.Windows.Forms.Button btnStart;
......@@ -931,8 +1035,8 @@
private System.Windows.Forms.Button btnReset;
private System.Windows.Forms.Button btnOutStore;
private System.Windows.Forms.CheckBox chbDebug;
private System.Windows.Forms.Button btnStop2Up;
private System.Windows.Forms.Button btnStop1Up;
private System.Windows.Forms.Button btnStopDown;
private System.Windows.Forms.Button btnLineRun;
private System.Windows.Forms.TabControl tabControl1;
private System.Windows.Forms.TabPage tabPage1;
private System.Windows.Forms.Panel panel1;
......@@ -971,6 +1075,15 @@
private System.Windows.Forms.Label label2;
private System.Windows.Forms.ComboBox cmbDSize;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button btnClose;
private System.Windows.Forms.Button btnLocation_Up;
private System.Windows.Forms.Button btnLocation_Down;
private System.Windows.Forms.Button btnFrontStopDown;
private System.Windows.Forms.Button btnClampWork;
private System.Windows.Forms.Button btnClampRelax;
private System.Windows.Forms.Button btnMoveTake;
private System.Windows.Forms.Button btnMoveGive;
private System.Windows.Forms.Button btnUpDownUpbtnTopCylinder_Down;
}
}
......@@ -43,17 +43,13 @@ namespace OnlineStore.AssemblyLine
{
cmbSizeList.Items.Add(heigth);
}
//for (int i = 8; i <= 48; i = i + 4)
//{
// cmbSizeList.Items.Add(i.ToString());
//}
cmbSizeList.SelectedIndex = 0;
btnUpDownUp.Visible = false;
btnUpDownUpbtnTopCylinder_Down.Visible = false;
}
else
{
tabControl1.TabPages.Remove(tabPage2);
btnUpDownUp.Visible = true;
btnUpDownUpbtnTopCylinder_Down.Visible = true;
}
LoadDP2();
chbDebug.Checked = equipBean.IsDebug;
......@@ -118,14 +114,15 @@ namespace OnlineStore.AssemblyLine
{
return;
}
if ( this.Visible)
if (this.Visible)
{
ReadIOList();
//lblTrayNum.Text = "托盘编码:" + TrayManager.GetTrayNum(equipBean.DeviceID);
}
lblName.BackColor = equipBean.GetShowColor();
if (equipBean.runStatus > LineRunStatus.Wait)
{
lblName.BackColor = Color.Green;
//lblName.BackColor = Color.Green;
if (btnStart.Enabled)
{
FormStatus(true);
......@@ -141,25 +138,13 @@ namespace OnlineStore.AssemblyLine
}
lblMoveInfo.Text = equipBean.GetMoveStr();
// string canOut = LineManager.Line.CanOutStore(equipBean.DeviceID) ? "可出库":"不可出库" ;
lblStoreStatus.Text = KTK_Store.GetRunStr(equipBean.lineStatus, equipBean.runStatus) ;
lblStoreStatus.Text = KTK_Store.GetRunStr(equipBean.lineStatus, equipBean.runStatus);
lblThisSta.Text = equipBean.WarnMsg;
//string text = "";
//List<InOutParam> ps = new List<InOutParam>(equipBean.waitOutStoreList);
//if (ps.Count > 0)
//{
// text = "等待出料列表:\r";
// foreach (InOutParam param in ps)
// {
// text += param.ToStr() + "\r";
// }
//}
//if (!lblInstoreList.Text.Equals(text))
//{
// lblInstoreList.Text = text;
//}
}catch(Exception ex)
}
catch (Exception ex)
{
LogUtil.error(equipBean.Name+ "界面定时器出错:"+ex.ToString());
LogUtil.error(equipBean.Name + "界面定时器出错:" + ex.ToString());
}
}
......@@ -177,7 +162,7 @@ namespace OnlineStore.AssemblyLine
catch (Exception ex)
{
MessageBox.Show(ex.StackTrace, "Exception(异常)", MessageBoxButtons.OK, MessageBoxIcon.Error);
LogUtil.error("",ex);
LogUtil.error("", ex);
}
}
private void btnOpenDo_Click(object sender, EventArgs e)
......@@ -302,7 +287,7 @@ namespace OnlineStore.AssemblyLine
equipBean.Config.IsDebug = 1;
LineManager.SaveHYEquipConfig(equipBean.Config);
equipBean.ChangeDebug(true);
LogUtil.info(equipBean.Name+ "用户切换到调试状态 ");
LogUtil.info(equipBean.Name + "用户切换到调试状态 ");
}
}
}
......@@ -325,10 +310,10 @@ namespace OnlineStore.AssemblyLine
private void btnOutStore_Click(object sender, EventArgs e)
{
if (equipBean.runStatus .Equals(LineRunStatus.Runing))
if (equipBean.runStatus.Equals(LineRunStatus.Runing))
{
LogUtil.info(equipBean.Name + "点击:出料测试");
equipBean.StartOutStoreMove(new InOutParam( ));
equipBean.StartOutStoreMove(new InOutParam());
}
else
{
......@@ -336,39 +321,45 @@ namespace OnlineStore.AssemblyLine
}
}
private void btnStop1Up_Click(object sender, EventArgs e)
private void btnLineRun_Click(object sender, EventArgs e)
{
BtnMove(btnStop1Up, "阻挡1下降", "阻挡1上升", IO_Type.StopDown1);
BtnMove(btnLineRun, "横移电机正转>>", "横移电机停止", IO_Type.HY_LineRun);
}
private void btnStop2Up_Click(object sender, EventArgs e)
private void btnStopDown_Click(object sender, EventArgs e)
{
BtnMove(btnStop2Up, "阻挡2下降", "阻挡2上升", IO_Type.StopDown2);
BtnMove(btnStopDown, "阻挡下降", "阻挡上升", IO_Type.HY_StopDown);
}
private void btnTopUp_Click(object sender, EventArgs e)
private void btnLineBackRun_Click(object sender, EventArgs e)
{
BtnMove(btnTopUp, "顶升上升", "顶升下降", IO_Type.TopCylinder_Down, IO_Type.TopCylinder_UP);
BtnMove(btnLineBackRun, "横移电机反转<<", "横移电机停止", IO_Type.HY_LineBackRun);
}
private void btnBeforeAfterBefore_Click(object sender, EventArgs e)
private void btnUpDownUp_Click(object sender, EventArgs e)
{
BtnMove(btnUpDownUpbtnTopCylinder_Down, "升降上升", "升降下降", IO_Type.UpDownCylinder_Down, IO_Type.UpDownCylinder_Up);
}
private void btnTopCylinder_UP_Click(object sender, EventArgs e)
{
BtnMove(btnTopCylinder_UP, "横移顶升上升", "横移顶升下降", IO_Type.HY_TopCylinder_Down, IO_Type.HY_TopCylinder_UP);
}
private void btnFrontStopDown_Click(object sender, EventArgs e)
{
//if (equipBean.CanBeforeAfter())
//{
// BtnMove(btnBeforeAfterBefore, "横移前进", "横移后退", IO_Type.BeforeAfterCylinder_After, IO_Type.BeforeAfterCylinder_Before);
//}
//else
//{
// MessageBox.Show("升降气缸不在上升端 或 升降轴不在待机点P1", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
//}
BtnMove(btnFrontStopDown, "托盘前阻挡下降", "托盘前阻挡上升", IO_Type.HY_FrontStopDown);
}
private void btnLocation_Up_Click(object sender, EventArgs e)
{
BtnMove(btnLocation_Up, "横移定位上升", "横移定位下降", IO_Type.HY_LocationCylinder_Down, IO_Type.HY_LocationCylinder_UP);
}
private void btnUpDownUp_Click(object sender, EventArgs e)
private void btnMoveTake_Click(object sender, EventArgs e)
{
BtnMove(btnUpDownUp, "升降上升", "升降下降", IO_Type.UpDownCylinder_Down, IO_Type.UpDownCylinder_Up);
BtnMove(btnMoveTake, "接驳台取料", "接驳台放料", IO_Type.HY_MoveCylinder_Give, IO_Type.HY_MoveCylinder_Take);
}
private void btnClampSlack_Click(object sender, EventArgs e)
private void btnClampWork_Click(object sender, EventArgs e)
{
BtnMove(btnClampSlack, "夹料夹紧", "夹料放松", IO_Type.ClampCylinder_Relax, IO_Type.ClampCylinder_Work);
BtnMove(btnClampWork, "夹料气缸夹紧", "夹料气缸放松", IO_Type.HY_MoveCylinder_Give, IO_Type.HY_MoveCylinder_Take);
}
private void btnCloseAll_Click(object sender, EventArgs e)
{
......@@ -541,6 +532,11 @@ namespace OnlineStore.AssemblyLine
}
}
private void btnClose_Click(object sender, EventArgs e)
{
this.Close();
}
}
}
......
......@@ -30,8 +30,6 @@
{
this.components = new System.ComponentModel.Container();
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.lblConInfo = new System.Windows.Forms.Label();
this.lblRFID = new System.Windows.Forms.Label();
this.lblBox = new System.Windows.Forms.Label();
this.lblMsg = new System.Windows.Forms.Label();
this.btnUpdate = new System.Windows.Forms.Button();
......@@ -43,26 +41,6 @@
this.timer1.Interval = 10000;
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
//
// lblConInfo
//
this.lblConInfo.AutoSize = true;
this.lblConInfo.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblConInfo.Location = new System.Drawing.Point(35, 62);
this.lblConInfo.Name = "lblConInfo";
this.lblConInfo.Size = new System.Drawing.Size(70, 17);
this.lblConInfo.TabIndex = 0;
this.lblConInfo.Text = "IO连接信息";
//
// lblRFID
//
this.lblRFID.AutoSize = true;
this.lblRFID.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblRFID.Location = new System.Drawing.Point(282, 62);
this.lblRFID.Name = "lblRFID";
this.lblRFID.Size = new System.Drawing.Size(71, 17);
this.lblRFID.TabIndex = 1;
this.lblRFID.Text = "RFID信息:";
//
// lblBox
//
this.lblBox.AutoSize = true;
......@@ -112,8 +90,6 @@
this.Controls.Add(this.btnUpdate);
this.Controls.Add(this.lblMsg);
this.Controls.Add(this.lblBox);
this.Controls.Add(this.lblRFID);
this.Controls.Add(this.lblConInfo);
this.Name = "FrmIOMsg";
this.Text = "IO连接状态";
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.FrmIOMsg_FormClosed);
......@@ -124,10 +100,7 @@
}
#endregion
private System.Windows.Forms.Label lblConInfo;
private System.Windows.Forms.Timer timer1;
private System.Windows.Forms.Label lblRFID;
private System.Windows.Forms.Label lblBox;
private System.Windows.Forms.Label lblMsg;
private System.Windows.Forms.Button btnUpdate;
......
......@@ -31,7 +31,7 @@ namespace OnlineStore.AssemblyLine
private void UpdateData()
{
lblMsg.Text = "自动刷新时间:" + timer1.Interval + "毫秒,最后更新时间:" + DateTime.Now.ToLongTimeString();
lblConInfo.Text = "IO连接信息:\r\n";
//lblConInfo.Text = "IO连接信息:\r\n";
string msg = "";
List<string> tList = new List<string>(LineManager.Line.cioList);
foreach (string ip in tList)
......@@ -40,7 +40,7 @@ namespace OnlineStore.AssemblyLine
//msg += ("IO模块[" + ip + "]").PadLeft(26, ' ') + con + "\n";
}
lblConInfo.Text += msg;
//lblConInfo.Text += msg;
//lblRFID.Text = "RFID信息:\r\n";
//msg = "";
......
namespace OnlineStore.AssemblyLine
{
partial class FrmIOStatus
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmIOStatus));
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.button1 = new System.Windows.Forms.Button();
this.txtDOIndex = new System.Windows.Forms.TextBox();
this.chbAutoRead = new System.Windows.Forms.CheckBox();
this.txtDoName = new System.Windows.Forms.TextBox();
this.label17 = new System.Windows.Forms.Label();
this.label14 = new System.Windows.Forms.Label();
this.btnWriteSingleDO = new System.Windows.Forms.Button();
this.txtWriteTime = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.cmbWriteIO = new System.Windows.Forms.ComboBox();
this.groupBox4 = new System.Windows.Forms.GroupBox();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel();
this.groupBox5 = new System.Windows.Forms.GroupBox();
this.button2 = new System.Windows.Forms.Button();
this.btnsw2StopDown = new System.Windows.Forms.Button();
this.btnSw3Location = new System.Windows.Forms.Button();
this.btnSw3Top = new System.Windows.Forms.Button();
this.btnSw2Location = new System.Windows.Forms.Button();
this.btnSw2Top = new System.Windows.Forms.Button();
this.btnSw1Location = new System.Windows.Forms.Button();
this.btnSw4Location = new System.Windows.Forms.Button();
this.btnSw4Top = new System.Windows.Forms.Button();
this.btnSw1Top = new System.Windows.Forms.Button();
this.btnSw3Run = new System.Windows.Forms.Button();
this.btnSw2Run = new System.Windows.Forms.Button();
this.btnSw1Run = new System.Windows.Forms.Button();
this.lblTrayNum = new System.Windows.Forms.Label();
this.btnCloseAll = new System.Windows.Forms.Button();
this.btnNGCylinder = new System.Windows.Forms.Button();
this.btnSW4Run = new System.Windows.Forms.Button();
this.btnDriveMotor_Run = new System.Windows.Forms.Button();
this.panel1 = new System.Windows.Forms.Panel();
this.tabIoControl = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.btnShuntClose = new System.Windows.Forms.Button();
this.btnShuntRun1 = new System.Windows.Forms.Button();
this.btnShuntRun2 = new System.Windows.Forms.Button();
this.btnShuntStop2 = new System.Windows.Forms.Button();
this.btnShuntStop1 = new System.Windows.Forms.Button();
this.btnShuntupdown1 = new System.Windows.Forms.Button();
this.btnShuntupdown2 = new System.Windows.Forms.Button();
this.tabPage3 = new System.Windows.Forms.TabPage();
this.btnShunt2Close = new System.Windows.Forms.Button();
this.btnShunt2Run1 = new System.Windows.Forms.Button();
this.btnShunt2Run2 = new System.Windows.Forms.Button();
this.btnShunt2Stop2 = new System.Windows.Forms.Button();
this.btnShunt2Stop1 = new System.Windows.Forms.Button();
this.btnShunt2updown1 = new System.Windows.Forms.Button();
this.btnShunt2updown2 = new System.Windows.Forms.Button();
this.groupBox6 = new System.Windows.Forms.GroupBox();
this.tableLayoutPanel4 = new System.Windows.Forms.TableLayoutPanel();
this.groupBox1.SuspendLayout();
this.groupBox4.SuspendLayout();
this.groupBox3.SuspendLayout();
this.groupBox2.SuspendLayout();
this.panel1.SuspendLayout();
this.tabIoControl.SuspendLayout();
this.tabPage1.SuspendLayout();
this.tabPage2.SuspendLayout();
this.tabPage3.SuspendLayout();
this.groupBox6.SuspendLayout();
this.SuspendLayout();
//
// timer1
//
this.timer1.Interval = 1000;
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
//
// groupBox1
//
this.groupBox1.Controls.Add(this.button1);
this.groupBox1.Controls.Add(this.txtDOIndex);
this.groupBox1.Controls.Add(this.chbAutoRead);
this.groupBox1.Controls.Add(this.txtDoName);
this.groupBox1.Controls.Add(this.label17);
this.groupBox1.Controls.Add(this.label14);
this.groupBox1.Controls.Add(this.btnWriteSingleDO);
this.groupBox1.Controls.Add(this.txtWriteTime);
this.groupBox1.Controls.Add(this.label5);
this.groupBox1.Controls.Add(this.cmbWriteIO);
this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox1.Location = new System.Drawing.Point(926, 3);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(377, 120);
this.groupBox1.TabIndex = 105;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "DO写入";
//
// button1
//
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button1.Location = new System.Drawing.Point(238, 78);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(87, 34);
this.button1.TabIndex = 256;
this.button1.Text = "关闭";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// txtDOIndex
//
this.txtDOIndex.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtDOIndex.Location = new System.Drawing.Point(277, 50);
this.txtDOIndex.MaxLength = 10;
this.txtDOIndex.Name = "txtDOIndex";
this.txtDOIndex.Size = new System.Drawing.Size(52, 23);
this.txtDOIndex.TabIndex = 242;
this.txtDOIndex.Text = "0";
//
// chbAutoRead
//
this.chbAutoRead.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.chbAutoRead.AutoSize = true;
this.chbAutoRead.Checked = true;
this.chbAutoRead.CheckState = System.Windows.Forms.CheckState.Checked;
this.chbAutoRead.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.chbAutoRead.Location = new System.Drawing.Point(308, 20);
this.chbAutoRead.Name = "chbAutoRead";
this.chbAutoRead.Size = new System.Drawing.Size(75, 21);
this.chbAutoRead.TabIndex = 244;
this.chbAutoRead.Text = "自动读取";
this.chbAutoRead.UseVisualStyleBackColor = true;
this.chbAutoRead.Visible = false;
//
// txtDoName
//
this.txtDoName.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtDoName.Location = new System.Drawing.Point(71, 50);
this.txtDoName.MaxLength = 10;
this.txtDoName.Name = "txtDoName";
this.txtDoName.Size = new System.Drawing.Size(133, 23);
this.txtDoName.TabIndex = 241;
this.txtDoName.Text = "0";
//
// label17
//
this.label17.AutoSize = true;
this.label17.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label17.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label17.Location = new System.Drawing.Point(19, 53);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(46, 17);
this.label17.TabIndex = 240;
this.label17.Text = "设备IP:";
this.label17.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// label14
//
this.label14.AutoSize = true;
this.label14.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label14.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label14.Location = new System.Drawing.Point(227, 53);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(44, 17);
this.label14.TabIndex = 239;
this.label14.Text = "地址:";
this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// btnWriteSingleDO
//
this.btnWriteSingleDO.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnWriteSingleDO.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnWriteSingleDO.Location = new System.Drawing.Point(145, 78);
this.btnWriteSingleDO.Name = "btnWriteSingleDO";
this.btnWriteSingleDO.Size = new System.Drawing.Size(87, 34);
this.btnWriteSingleDO.TabIndex = 232;
this.btnWriteSingleDO.Text = "打开";
this.btnWriteSingleDO.UseVisualStyleBackColor = true;
this.btnWriteSingleDO.Click += new System.EventHandler(this.btnWriteSingleDO_Click);
//
// txtWriteTime
//
this.txtWriteTime.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtWriteTime.Location = new System.Drawing.Point(82, 84);
this.txtWriteTime.MaxLength = 10;
this.txtWriteTime.Name = "txtWriteTime";
this.txtWriteTime.Size = new System.Drawing.Size(52, 23);
this.txtWriteTime.TabIndex = 238;
this.txtWriteTime.Text = "0";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label5.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label5.Location = new System.Drawing.Point(19, 87);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(60, 17);
this.label5.TabIndex = 237;
this.label5.Text = "定时(ms):";
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// cmbWriteIO
//
this.cmbWriteIO.DisplayMember = "ProName";
this.cmbWriteIO.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawVariable;
this.cmbWriteIO.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbWriteIO.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.cmbWriteIO.FormattingEnabled = true;
this.cmbWriteIO.ItemHeight = 22;
this.cmbWriteIO.Location = new System.Drawing.Point(11, 18);
this.cmbWriteIO.Name = "cmbWriteIO";
this.cmbWriteIO.Size = new System.Drawing.Size(318, 28);
this.cmbWriteIO.TabIndex = 234;
this.cmbWriteIO.ValueMember = "ProName";
this.cmbWriteIO.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.cmbWriteIO_DrawItem);
this.cmbWriteIO.SelectedIndexChanged += new System.EventHandler(this.cmbWriteIO_SelectedIndexChanged);
//
// groupBox4
//
this.groupBox4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.groupBox4.Controls.Add(this.tableLayoutPanel2);
this.groupBox4.Location = new System.Drawing.Point(465, 3);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new System.Drawing.Size(225, 560);
this.groupBox4.TabIndex = 104;
this.groupBox4.TabStop = false;
this.groupBox4.Text = "DO列表";
//
// tableLayoutPanel2
//
this.tableLayoutPanel2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.tableLayoutPanel2.AutoScroll = true;
this.tableLayoutPanel2.ColumnCount = 1;
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel2.Location = new System.Drawing.Point(5, 14);
this.tableLayoutPanel2.Name = "tableLayoutPanel2";
this.tableLayoutPanel2.RowCount = 2;
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel2.Size = new System.Drawing.Size(214, 540);
this.tableLayoutPanel2.TabIndex = 103;
//
// groupBox3
//
this.groupBox3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.groupBox3.Controls.Add(this.tableLayoutPanel1);
this.groupBox3.Location = new System.Drawing.Point(6, 3);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(225, 560);
this.groupBox3.TabIndex = 103;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "DI列表";
//
// tableLayoutPanel1
//
this.tableLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.tableLayoutPanel1.AutoScroll = true;
this.tableLayoutPanel1.ColumnCount = 1;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel1.Location = new System.Drawing.Point(6, 14);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 2;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(214, 540);
this.tableLayoutPanel1.TabIndex = 102;
//
// groupBox2
//
this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.groupBox2.Controls.Add(this.tableLayoutPanel3);
this.groupBox2.Location = new System.Drawing.Point(235, 3);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(225, 560);
this.groupBox2.TabIndex = 245;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "DI列表";
//
// tableLayoutPanel3
//
this.tableLayoutPanel3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.tableLayoutPanel3.ColumnCount = 1;
this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel3.Location = new System.Drawing.Point(6, 14);
this.tableLayoutPanel3.Name = "tableLayoutPanel3";
this.tableLayoutPanel3.RowCount = 2;
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel3.Size = new System.Drawing.Size(214, 540);
this.tableLayoutPanel3.TabIndex = 102;
//
// groupBox5
//
this.groupBox5.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.groupBox5.Location = new System.Drawing.Point(926, 126);
this.groupBox5.Name = "groupBox5";
this.groupBox5.Size = new System.Drawing.Size(383, 437);
this.groupBox5.TabIndex = 246;
this.groupBox5.TabStop = false;
this.groupBox5.Text = "IO操作测试";
//
// button2
//
this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button2.Location = new System.Drawing.Point(17, 169);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(153, 37);
this.button2.TabIndex = 287;
this.button2.Text = "环形线横移4阻挡下降";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// btnsw2StopDown
//
this.btnsw2StopDown.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnsw2StopDown.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnsw2StopDown.Location = new System.Drawing.Point(17, 327);
this.btnsw2StopDown.Name = "btnsw2StopDown";
this.btnsw2StopDown.Size = new System.Drawing.Size(153, 37);
this.btnsw2StopDown.TabIndex = 286;
this.btnsw2StopDown.Text = "环形线横移2阻挡下降";
this.btnsw2StopDown.UseVisualStyleBackColor = true;
this.btnsw2StopDown.Click += new System.EventHandler(this.btnsw2StopDown_Click);
//
// btnSw3Location
//
this.btnSw3Location.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSw3Location.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSw3Location.Location = new System.Drawing.Point(180, 212);
this.btnSw3Location.Name = "btnSw3Location";
this.btnSw3Location.Size = new System.Drawing.Size(153, 37);
this.btnSw3Location.TabIndex = 285;
this.btnSw3Location.Text = "环形线横移3定位上升";
this.btnSw3Location.UseVisualStyleBackColor = true;
this.btnSw3Location.Click += new System.EventHandler(this.btnSw3Location_Click);
//
// btnSw3Top
//
this.btnSw3Top.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSw3Top.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSw3Top.Location = new System.Drawing.Point(180, 250);
this.btnSw3Top.Name = "btnSw3Top";
this.btnSw3Top.Size = new System.Drawing.Size(153, 37);
this.btnSw3Top.TabIndex = 284;
this.btnSw3Top.Text = "环形线横移3顶升上升";
this.btnSw3Top.UseVisualStyleBackColor = true;
this.btnSw3Top.Click += new System.EventHandler(this.btnSw3Top_Click);
//
// btnSw2Location
//
this.btnSw2Location.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSw2Location.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSw2Location.Location = new System.Drawing.Point(17, 212);
this.btnSw2Location.Name = "btnSw2Location";
this.btnSw2Location.Size = new System.Drawing.Size(153, 37);
this.btnSw2Location.TabIndex = 283;
this.btnSw2Location.Text = "环形线横移2定位上升";
this.btnSw2Location.UseVisualStyleBackColor = true;
this.btnSw2Location.Click += new System.EventHandler(this.btnSw2Location_Click);
//
// btnSw2Top
//
this.btnSw2Top.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSw2Top.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSw2Top.Location = new System.Drawing.Point(17, 250);
this.btnSw2Top.Name = "btnSw2Top";
this.btnSw2Top.Size = new System.Drawing.Size(153, 37);
this.btnSw2Top.TabIndex = 282;
this.btnSw2Top.Text = "环形线横移2顶升上升";
this.btnSw2Top.UseVisualStyleBackColor = true;
this.btnSw2Top.Click += new System.EventHandler(this.btnSw2Top_Click);
//
// btnSw1Location
//
this.btnSw1Location.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSw1Location.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSw1Location.Location = new System.Drawing.Point(180, 55);
this.btnSw1Location.Name = "btnSw1Location";
this.btnSw1Location.Size = new System.Drawing.Size(153, 37);
this.btnSw1Location.TabIndex = 281;
this.btnSw1Location.Text = "环形线横移1定位上升";
this.btnSw1Location.UseVisualStyleBackColor = true;
this.btnSw1Location.Click += new System.EventHandler(this.btnSw1Location_Click);
//
// btnSw4Location
//
this.btnSw4Location.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSw4Location.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSw4Location.Location = new System.Drawing.Point(17, 55);
this.btnSw4Location.Name = "btnSw4Location";
this.btnSw4Location.Size = new System.Drawing.Size(153, 37);
this.btnSw4Location.TabIndex = 276;
this.btnSw4Location.Text = "环形线横移4定位上升";
this.btnSw4Location.UseVisualStyleBackColor = true;
this.btnSw4Location.Click += new System.EventHandler(this.btnSw4Location_Click);
//
// btnSw4Top
//
this.btnSw4Top.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSw4Top.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSw4Top.Location = new System.Drawing.Point(17, 93);
this.btnSw4Top.Name = "btnSw4Top";
this.btnSw4Top.Size = new System.Drawing.Size(153, 37);
this.btnSw4Top.TabIndex = 269;
this.btnSw4Top.Text = "环形线横移4顶升上升";
this.btnSw4Top.UseVisualStyleBackColor = true;
this.btnSw4Top.Click += new System.EventHandler(this.btn34Top_Click);
//
// btnSw1Top
//
this.btnSw1Top.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSw1Top.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSw1Top.Location = new System.Drawing.Point(180, 93);
this.btnSw1Top.Name = "btnSw1Top";
this.btnSw1Top.Size = new System.Drawing.Size(153, 37);
this.btnSw1Top.TabIndex = 280;
this.btnSw1Top.Text = "环形线横移1顶升上升";
this.btnSw1Top.UseVisualStyleBackColor = true;
this.btnSw1Top.Click += new System.EventHandler(this.btnSw1Top_Click);
//
// btnSw3Run
//
this.btnSw3Run.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSw3Run.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSw3Run.Location = new System.Drawing.Point(180, 288);
this.btnSw3Run.Name = "btnSw3Run";
this.btnSw3Run.Size = new System.Drawing.Size(153, 37);
this.btnSw3Run.TabIndex = 279;
this.btnSw3Run.Text = "环形线横移3电机运转";
this.btnSw3Run.UseVisualStyleBackColor = true;
this.btnSw3Run.Click += new System.EventHandler(this.btnSw3Run_Click);
//
// btnSw2Run
//
this.btnSw2Run.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSw2Run.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSw2Run.Location = new System.Drawing.Point(17, 288);
this.btnSw2Run.Name = "btnSw2Run";
this.btnSw2Run.Size = new System.Drawing.Size(153, 37);
this.btnSw2Run.TabIndex = 278;
this.btnSw2Run.Text = "环形线横移2电机运转";
this.btnSw2Run.UseVisualStyleBackColor = true;
this.btnSw2Run.Click += new System.EventHandler(this.btnSw2Run_Click);
//
// btnSw1Run
//
this.btnSw1Run.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSw1Run.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSw1Run.Location = new System.Drawing.Point(180, 131);
this.btnSw1Run.Name = "btnSw1Run";
this.btnSw1Run.Size = new System.Drawing.Size(153, 37);
this.btnSw1Run.TabIndex = 277;
this.btnSw1Run.Text = "环形线横移1电机运转";
this.btnSw1Run.UseVisualStyleBackColor = true;
this.btnSw1Run.Click += new System.EventHandler(this.btnSw1Run_Click);
//
// lblTrayNum
//
this.lblTrayNum.AutoSize = true;
this.lblTrayNum.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblTrayNum.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.lblTrayNum.Location = new System.Drawing.Point(14, 371);
this.lblTrayNum.Name = "lblTrayNum";
this.lblTrayNum.Size = new System.Drawing.Size(68, 17);
this.lblTrayNum.TabIndex = 275;
this.lblTrayNum.Text = "托盘编码:";
this.lblTrayNum.TextAlign = System.Drawing.ContentAlignment.BottomRight;
this.lblTrayNum.Visible = false;
//
// btnCloseAll
//
this.btnCloseAll.BackColor = System.Drawing.Color.White;
this.btnCloseAll.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnCloseAll.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnCloseAll.Location = new System.Drawing.Point(180, 351);
this.btnCloseAll.Name = "btnCloseAll";
this.btnCloseAll.Size = new System.Drawing.Size(153, 37);
this.btnCloseAll.TabIndex = 274;
this.btnCloseAll.Text = "关闭所有DO";
this.btnCloseAll.UseVisualStyleBackColor = false;
this.btnCloseAll.Click += new System.EventHandler(this.btnCloseAll_Click);
//
// btnNGCylinder
//
this.btnNGCylinder.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnNGCylinder.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnNGCylinder.Location = new System.Drawing.Point(180, 6);
this.btnNGCylinder.Name = "btnNGCylinder";
this.btnNGCylinder.Size = new System.Drawing.Size(153, 37);
this.btnNGCylinder.TabIndex = 268;
this.btnNGCylinder.Text = "NG料盘气缸前进";
this.btnNGCylinder.UseVisualStyleBackColor = true;
this.btnNGCylinder.Visible = false;
this.btnNGCylinder.Click += new System.EventHandler(this.btnNGCylinder_Click);
//
// btnSW4Run
//
this.btnSW4Run.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSW4Run.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSW4Run.Location = new System.Drawing.Point(17, 131);
this.btnSW4Run.Name = "btnSW4Run";
this.btnSW4Run.Size = new System.Drawing.Size(153, 37);
this.btnSW4Run.TabIndex = 262;
this.btnSW4Run.Text = "环形线横移4电机运转";
this.btnSW4Run.UseVisualStyleBackColor = true;
this.btnSW4Run.Click += new System.EventHandler(this.btnSWRun_Click);
//
// btnDriveMotor_Run
//
this.btnDriveMotor_Run.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnDriveMotor_Run.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnDriveMotor_Run.Location = new System.Drawing.Point(17, 6);
this.btnDriveMotor_Run.Name = "btnDriveMotor_Run";
this.btnDriveMotor_Run.Size = new System.Drawing.Size(153, 37);
this.btnDriveMotor_Run.TabIndex = 260;
this.btnDriveMotor_Run.Text = "驱动电机1234正转";
this.btnDriveMotor_Run.UseVisualStyleBackColor = false;
this.btnDriveMotor_Run.Click += new System.EventHandler(this.btnDriveMotor_Run_Click);
//
// panel1
//
this.panel1.AutoScroll = true;
this.panel1.Controls.Add(this.tabIoControl);
this.panel1.Controls.Add(this.groupBox6);
this.panel1.Controls.Add(this.groupBox4);
this.panel1.Controls.Add(this.groupBox3);
this.panel1.Controls.Add(this.groupBox5);
this.panel1.Controls.Add(this.groupBox2);
this.panel1.Controls.Add(this.groupBox1);
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1316, 571);
this.panel1.TabIndex = 248;
//
// tabIoControl
//
this.tabIoControl.Controls.Add(this.tabPage1);
this.tabIoControl.Controls.Add(this.tabPage2);
this.tabIoControl.Controls.Add(this.tabPage3);
this.tabIoControl.Location = new System.Drawing.Point(924, 129);
this.tabIoControl.Name = "tabIoControl";
this.tabIoControl.SelectedIndex = 0;
this.tabIoControl.Size = new System.Drawing.Size(380, 434);
this.tabIoControl.TabIndex = 288;
//
// tabPage1
//
this.tabPage1.Controls.Add(this.btnsw2StopDown);
this.tabPage1.Controls.Add(this.lblTrayNum);
this.tabPage1.Controls.Add(this.btnDriveMotor_Run);
this.tabPage1.Controls.Add(this.btnCloseAll);
this.tabPage1.Controls.Add(this.btnSw3Location);
this.tabPage1.Controls.Add(this.button2);
this.tabPage1.Controls.Add(this.btnSw3Top);
this.tabPage1.Controls.Add(this.btnSW4Run);
this.tabPage1.Controls.Add(this.btnSw2Location);
this.tabPage1.Controls.Add(this.btnSw2Top);
this.tabPage1.Controls.Add(this.btnNGCylinder);
this.tabPage1.Controls.Add(this.btnSw3Run);
this.tabPage1.Controls.Add(this.btnSw1Run);
this.tabPage1.Controls.Add(this.btnSw2Run);
this.tabPage1.Controls.Add(this.btnSw1Top);
this.tabPage1.Controls.Add(this.btnSw4Top);
this.tabPage1.Controls.Add(this.btnSw4Location);
this.tabPage1.Controls.Add(this.btnSw1Location);
this.tabPage1.Location = new System.Drawing.Point(4, 26);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
this.tabPage1.Size = new System.Drawing.Size(372, 404);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = " IO操作测试 ";
this.tabPage1.UseVisualStyleBackColor = true;
//
// tabPage2
//
this.tabPage2.Controls.Add(this.btnShuntClose);
this.tabPage2.Controls.Add(this.btnShuntRun1);
this.tabPage2.Controls.Add(this.btnShuntRun2);
this.tabPage2.Controls.Add(this.btnShuntStop2);
this.tabPage2.Controls.Add(this.btnShuntStop1);
this.tabPage2.Controls.Add(this.btnShuntupdown1);
this.tabPage2.Controls.Add(this.btnShuntupdown2);
this.tabPage2.Location = new System.Drawing.Point(4, 26);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
this.tabPage2.Size = new System.Drawing.Size(372, 404);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = " 分流横移1操作 ";
this.tabPage2.UseVisualStyleBackColor = true;
//
// btnShuntClose
//
this.btnShuntClose.BackColor = System.Drawing.Color.White;
this.btnShuntClose.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnShuntClose.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnShuntClose.Location = new System.Drawing.Point(183, 194);
this.btnShuntClose.Name = "btnShuntClose";
this.btnShuntClose.Size = new System.Drawing.Size(153, 37);
this.btnShuntClose.TabIndex = 294;
this.btnShuntClose.Text = "关闭所有分流DO";
this.btnShuntClose.UseVisualStyleBackColor = false;
this.btnShuntClose.Click += new System.EventHandler(this.btnShuntClose_Click);
//
// btnShuntRun1
//
this.btnShuntRun1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnShuntRun1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnShuntRun1.Location = new System.Drawing.Point(20, 127);
this.btnShuntRun1.Name = "btnShuntRun1";
this.btnShuntRun1.Size = new System.Drawing.Size(153, 37);
this.btnShuntRun1.TabIndex = 288;
this.btnShuntRun1.Text = "分流横移机构1皮带运行";
this.btnShuntRun1.UseVisualStyleBackColor = true;
this.btnShuntRun1.Click += new System.EventHandler(this.btnShuntRun1_Click);
//
// btnShuntRun2
//
this.btnShuntRun2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnShuntRun2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnShuntRun2.Location = new System.Drawing.Point(183, 127);
this.btnShuntRun2.Name = "btnShuntRun2";
this.btnShuntRun2.Size = new System.Drawing.Size(153, 37);
this.btnShuntRun2.TabIndex = 291;
this.btnShuntRun2.Text = "分流横移机构2皮带运行";
this.btnShuntRun2.UseVisualStyleBackColor = true;
this.btnShuntRun2.Click += new System.EventHandler(this.btnShuntRun2_Click);
//
// btnShuntStop2
//
this.btnShuntStop2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnShuntStop2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnShuntStop2.Location = new System.Drawing.Point(183, 22);
this.btnShuntStop2.Name = "btnShuntStop2";
this.btnShuntStop2.Size = new System.Drawing.Size(153, 37);
this.btnShuntStop2.TabIndex = 292;
this.btnShuntStop2.Text = "分流后端阻挡下降";
this.btnShuntStop2.UseVisualStyleBackColor = true;
this.btnShuntStop2.Click += new System.EventHandler(this.btnShuntStop2_Click);
//
// btnShuntStop1
//
this.btnShuntStop1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnShuntStop1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnShuntStop1.Location = new System.Drawing.Point(20, 22);
this.btnShuntStop1.Name = "btnShuntStop1";
this.btnShuntStop1.Size = new System.Drawing.Size(153, 37);
this.btnShuntStop1.TabIndex = 289;
this.btnShuntStop1.Text = "分流前端阻挡下降";
this.btnShuntStop1.UseVisualStyleBackColor = true;
this.btnShuntStop1.Click += new System.EventHandler(this.btnShuntStop1_Click);
//
// btnShuntupdown1
//
this.btnShuntupdown1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnShuntupdown1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnShuntupdown1.Location = new System.Drawing.Point(20, 75);
this.btnShuntupdown1.Name = "btnShuntupdown1";
this.btnShuntupdown1.Size = new System.Drawing.Size(153, 37);
this.btnShuntupdown1.TabIndex = 290;
this.btnShuntupdown1.Text = "分流横移机构1上升";
this.btnShuntupdown1.UseVisualStyleBackColor = true;
this.btnShuntupdown1.Click += new System.EventHandler(this.btnShuntupdown1_Click);
//
// btnShuntupdown2
//
this.btnShuntupdown2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnShuntupdown2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnShuntupdown2.Location = new System.Drawing.Point(183, 75);
this.btnShuntupdown2.Name = "btnShuntupdown2";
this.btnShuntupdown2.Size = new System.Drawing.Size(153, 37);
this.btnShuntupdown2.TabIndex = 293;
this.btnShuntupdown2.Text = "分流横移机构2上升";
this.btnShuntupdown2.UseVisualStyleBackColor = true;
this.btnShuntupdown2.Click += new System.EventHandler(this.btnShuntupdown2_Click);
//
// tabPage3
//
this.tabPage3.Controls.Add(this.btnShunt2Close);
this.tabPage3.Controls.Add(this.btnShunt2Run1);
this.tabPage3.Controls.Add(this.btnShunt2Run2);
this.tabPage3.Controls.Add(this.btnShunt2Stop2);
this.tabPage3.Controls.Add(this.btnShunt2Stop1);
this.tabPage3.Controls.Add(this.btnShunt2updown1);
this.tabPage3.Controls.Add(this.btnShunt2updown2);
this.tabPage3.Location = new System.Drawing.Point(4, 26);
this.tabPage3.Name = "tabPage3";
this.tabPage3.Size = new System.Drawing.Size(372, 404);
this.tabPage3.TabIndex = 2;
this.tabPage3.Text = " 分流横移2操作";
this.tabPage3.UseVisualStyleBackColor = true;
//
// btnShunt2Close
//
this.btnShunt2Close.BackColor = System.Drawing.Color.White;
this.btnShunt2Close.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnShunt2Close.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnShunt2Close.Location = new System.Drawing.Point(181, 195);
this.btnShunt2Close.Name = "btnShunt2Close";
this.btnShunt2Close.Size = new System.Drawing.Size(153, 37);
this.btnShunt2Close.TabIndex = 301;
this.btnShunt2Close.Text = "关闭所有分流2DO";
this.btnShunt2Close.UseVisualStyleBackColor = false;
this.btnShunt2Close.Click += new System.EventHandler(this.btnShunt2Close_Click);
//
// btnShunt2Run1
//
this.btnShunt2Run1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnShunt2Run1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnShunt2Run1.Location = new System.Drawing.Point(18, 128);
this.btnShunt2Run1.Name = "btnShunt2Run1";
this.btnShunt2Run1.Size = new System.Drawing.Size(153, 37);
this.btnShunt2Run1.TabIndex = 295;
this.btnShunt2Run1.Text = "分流2-机构1皮带运行";
this.btnShunt2Run1.UseVisualStyleBackColor = true;
this.btnShunt2Run1.Click += new System.EventHandler(this.btnShunt2Run1_Click);
//
// btnShunt2Run2
//
this.btnShunt2Run2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnShunt2Run2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnShunt2Run2.Location = new System.Drawing.Point(181, 128);
this.btnShunt2Run2.Name = "btnShunt2Run2";
this.btnShunt2Run2.Size = new System.Drawing.Size(153, 37);
this.btnShunt2Run2.TabIndex = 298;
this.btnShunt2Run2.Text = "分流2-机构2皮带运行";
this.btnShunt2Run2.UseVisualStyleBackColor = true;
this.btnShunt2Run2.Click += new System.EventHandler(this.btnShunt2Run2_Click);
//
// btnShunt2Stop2
//
this.btnShunt2Stop2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnShunt2Stop2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnShunt2Stop2.Location = new System.Drawing.Point(181, 23);
this.btnShunt2Stop2.Name = "btnShunt2Stop2";
this.btnShunt2Stop2.Size = new System.Drawing.Size(153, 37);
this.btnShunt2Stop2.TabIndex = 299;
this.btnShunt2Stop2.Text = "分流2-后端阻挡下降";
this.btnShunt2Stop2.UseVisualStyleBackColor = true;
this.btnShunt2Stop2.Click += new System.EventHandler(this.btnShunt2Stop2_Click);
//
// btnShunt2Stop1
//
this.btnShunt2Stop1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnShunt2Stop1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnShunt2Stop1.Location = new System.Drawing.Point(18, 23);
this.btnShunt2Stop1.Name = "btnShunt2Stop1";
this.btnShunt2Stop1.Size = new System.Drawing.Size(153, 37);
this.btnShunt2Stop1.TabIndex = 296;
this.btnShunt2Stop1.Text = "分流2-前端阻挡下降";
this.btnShunt2Stop1.UseVisualStyleBackColor = true;
this.btnShunt2Stop1.Click += new System.EventHandler(this.btnShunt2Stop1_Click);
//
// btnShunt2updown1
//
this.btnShunt2updown1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnShunt2updown1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnShunt2updown1.Location = new System.Drawing.Point(18, 76);
this.btnShunt2updown1.Name = "btnShunt2updown1";
this.btnShunt2updown1.Size = new System.Drawing.Size(153, 37);
this.btnShunt2updown1.TabIndex = 297;
this.btnShunt2updown1.Text = "分流2-机构1上升";
this.btnShunt2updown1.UseVisualStyleBackColor = true;
this.btnShunt2updown1.Click += new System.EventHandler(this.btnShunt2updown1_Click);
//
// btnShunt2updown2
//
this.btnShunt2updown2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnShunt2updown2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnShunt2updown2.Location = new System.Drawing.Point(181, 76);
this.btnShunt2updown2.Name = "btnShunt2updown2";
this.btnShunt2updown2.Size = new System.Drawing.Size(153, 37);
this.btnShunt2updown2.TabIndex = 300;
this.btnShunt2updown2.Text = "分流2-机构2上升";
this.btnShunt2updown2.UseVisualStyleBackColor = true;
this.btnShunt2updown2.Click += new System.EventHandler(this.btnShunt2updown2_Click);
//
// groupBox6
//
this.groupBox6.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.groupBox6.Controls.Add(this.tableLayoutPanel4);
this.groupBox6.Location = new System.Drawing.Point(693, 3);
this.groupBox6.Name = "groupBox6";
this.groupBox6.Size = new System.Drawing.Size(225, 560);
this.groupBox6.TabIndex = 105;
this.groupBox6.TabStop = false;
this.groupBox6.Text = "DO列表";
//
// tableLayoutPanel4
//
this.tableLayoutPanel4.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.tableLayoutPanel4.AutoScroll = true;
this.tableLayoutPanel4.ColumnCount = 1;
this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel4.Location = new System.Drawing.Point(5, 14);
this.tableLayoutPanel4.Name = "tableLayoutPanel4";
this.tableLayoutPanel4.RowCount = 2;
this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel4.Size = new System.Drawing.Size(214, 540);
this.tableLayoutPanel4.TabIndex = 103;
//
// FrmIOStatus
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1316, 571);
this.Controls.Add(this.panel1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "FrmIOStatus";
this.Text = "IO查看";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmTest_FormClosing);
this.Load += new System.EventHandler(this.FrmStoreIOStatus_Load);
this.Shown += new System.EventHandler(this.FrmIOStatus_Shown);
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.groupBox4.ResumeLayout(false);
this.groupBox3.ResumeLayout(false);
this.groupBox2.ResumeLayout(false);
this.panel1.ResumeLayout(false);
this.tabIoControl.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
this.tabPage1.PerformLayout();
this.tabPage2.ResumeLayout(false);
this.tabPage3.ResumeLayout(false);
this.groupBox6.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Timer timer1;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private System.Windows.Forms.GroupBox groupBox3;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
private System.Windows.Forms.GroupBox groupBox4;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.TextBox txtDOIndex;
private System.Windows.Forms.Label label17;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.TextBox txtWriteTime;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Button btnWriteSingleDO;
private System.Windows.Forms.ComboBox cmbWriteIO;
private System.Windows.Forms.CheckBox chbAutoRead;
private System.Windows.Forms.TextBox txtDoName;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel3;
private System.Windows.Forms.GroupBox groupBox5;
private System.Windows.Forms.Button btnSW4Run;
private System.Windows.Forms.Button btnDriveMotor_Run;
private System.Windows.Forms.Button btnSw4Top;
private System.Windows.Forms.Button btnNGCylinder;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Button btnCloseAll;
private System.Windows.Forms.Label lblTrayNum;
private System.Windows.Forms.Button btnSw4Location;
private System.Windows.Forms.Button btnSw3Run;
private System.Windows.Forms.Button btnSw2Run;
private System.Windows.Forms.Button btnSw1Run;
private System.Windows.Forms.Button btnSw3Location;
private System.Windows.Forms.Button btnSw3Top;
private System.Windows.Forms.Button btnSw2Location;
private System.Windows.Forms.Button btnSw2Top;
private System.Windows.Forms.Button btnSw1Location;
private System.Windows.Forms.Button btnSw1Top;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.GroupBox groupBox6;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel4;
private System.Windows.Forms.Button btnsw2StopDown;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.TabControl tabIoControl;
private System.Windows.Forms.TabPage tabPage1;
private System.Windows.Forms.TabPage tabPage2;
private System.Windows.Forms.Button btnShuntRun1;
private System.Windows.Forms.Button btnShuntRun2;
private System.Windows.Forms.Button btnShuntStop2;
private System.Windows.Forms.Button btnShuntStop1;
private System.Windows.Forms.Button btnShuntupdown1;
private System.Windows.Forms.Button btnShuntupdown2;
private System.Windows.Forms.Button btnShuntClose;
private System.Windows.Forms.TabPage tabPage3;
private System.Windows.Forms.Button btnShunt2Close;
private System.Windows.Forms.Button btnShunt2Run1;
private System.Windows.Forms.Button btnShunt2Run2;
private System.Windows.Forms.Button btnShunt2Stop2;
private System.Windows.Forms.Button btnShunt2Stop1;
private System.Windows.Forms.Button btnShunt2updown1;
private System.Windows.Forms.Button btnShunt2updown2;
}
}
namespace OnlineStore.AssemblyLine
{
partial class FrmLineIO
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmLineIO));
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.button1 = new System.Windows.Forms.Button();
this.txtDOIndex = new System.Windows.Forms.TextBox();
this.chbAutoRead = new System.Windows.Forms.CheckBox();
this.txtDoName = new System.Windows.Forms.TextBox();
this.label17 = new System.Windows.Forms.Label();
this.label14 = new System.Windows.Forms.Label();
this.btnWriteSingleDO = new System.Windows.Forms.Button();
this.txtWriteTime = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.cmbWriteIO = new System.Windows.Forms.ComboBox();
this.groupBox4 = new System.Windows.Forms.GroupBox();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel();
this.groupBox5 = new System.Windows.Forms.GroupBox();
this.btnFrontStopDown = new System.Windows.Forms.Button();
this.btnStopDown = new System.Windows.Forms.Button();
this.lblTrayNum = new System.Windows.Forms.Label();
this.btnCloseAll = new System.Windows.Forms.Button();
this.btnTopDown = new System.Windows.Forms.Button();
this.btnDriveMotor_Run = new System.Windows.Forms.Button();
this.panel1 = new System.Windows.Forms.Panel();
this.groupBox6 = new System.Windows.Forms.GroupBox();
this.tableLayoutPanel4 = new System.Windows.Forms.TableLayoutPanel();
this.groupBox1.SuspendLayout();
this.groupBox4.SuspendLayout();
this.groupBox3.SuspendLayout();
this.groupBox2.SuspendLayout();
this.groupBox5.SuspendLayout();
this.panel1.SuspendLayout();
this.groupBox6.SuspendLayout();
this.SuspendLayout();
//
// timer1
//
this.timer1.Interval = 1000;
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
//
// groupBox1
//
this.groupBox1.Controls.Add(this.button1);
this.groupBox1.Controls.Add(this.txtDOIndex);
this.groupBox1.Controls.Add(this.chbAutoRead);
this.groupBox1.Controls.Add(this.txtDoName);
this.groupBox1.Controls.Add(this.label17);
this.groupBox1.Controls.Add(this.label14);
this.groupBox1.Controls.Add(this.btnWriteSingleDO);
this.groupBox1.Controls.Add(this.txtWriteTime);
this.groupBox1.Controls.Add(this.label5);
this.groupBox1.Controls.Add(this.cmbWriteIO);
this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox1.Location = new System.Drawing.Point(581, 3);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(383, 120);
this.groupBox1.TabIndex = 105;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "DO写入";
//
// button1
//
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button1.Location = new System.Drawing.Point(238, 78);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(87, 34);
this.button1.TabIndex = 256;
this.button1.Text = "关闭";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// txtDOIndex
//
this.txtDOIndex.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtDOIndex.Location = new System.Drawing.Point(277, 50);
this.txtDOIndex.MaxLength = 10;
this.txtDOIndex.Name = "txtDOIndex";
this.txtDOIndex.Size = new System.Drawing.Size(52, 23);
this.txtDOIndex.TabIndex = 242;
this.txtDOIndex.Text = "0";
//
// chbAutoRead
//
this.chbAutoRead.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.chbAutoRead.AutoSize = true;
this.chbAutoRead.Checked = true;
this.chbAutoRead.CheckState = System.Windows.Forms.CheckState.Checked;
this.chbAutoRead.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.chbAutoRead.Location = new System.Drawing.Point(314, 20);
this.chbAutoRead.Name = "chbAutoRead";
this.chbAutoRead.Size = new System.Drawing.Size(75, 21);
this.chbAutoRead.TabIndex = 244;
this.chbAutoRead.Text = "自动读取";
this.chbAutoRead.UseVisualStyleBackColor = true;
this.chbAutoRead.Visible = false;
//
// txtDoName
//
this.txtDoName.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtDoName.Location = new System.Drawing.Point(71, 50);
this.txtDoName.MaxLength = 10;
this.txtDoName.Name = "txtDoName";
this.txtDoName.Size = new System.Drawing.Size(133, 23);
this.txtDoName.TabIndex = 241;
this.txtDoName.Text = "0";
//
// label17
//
this.label17.AutoSize = true;
this.label17.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label17.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label17.Location = new System.Drawing.Point(19, 53);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(46, 17);
this.label17.TabIndex = 240;
this.label17.Text = "设备IP:";
this.label17.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// label14
//
this.label14.AutoSize = true;
this.label14.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label14.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label14.Location = new System.Drawing.Point(227, 53);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(44, 17);
this.label14.TabIndex = 239;
this.label14.Text = "地址:";
this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// btnWriteSingleDO
//
this.btnWriteSingleDO.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnWriteSingleDO.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnWriteSingleDO.Location = new System.Drawing.Point(145, 78);
this.btnWriteSingleDO.Name = "btnWriteSingleDO";
this.btnWriteSingleDO.Size = new System.Drawing.Size(87, 34);
this.btnWriteSingleDO.TabIndex = 232;
this.btnWriteSingleDO.Text = "打开";
this.btnWriteSingleDO.UseVisualStyleBackColor = true;
this.btnWriteSingleDO.Click += new System.EventHandler(this.btnWriteSingleDO_Click);
//
// txtWriteTime
//
this.txtWriteTime.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtWriteTime.Location = new System.Drawing.Point(82, 84);
this.txtWriteTime.MaxLength = 10;
this.txtWriteTime.Name = "txtWriteTime";
this.txtWriteTime.Size = new System.Drawing.Size(52, 23);
this.txtWriteTime.TabIndex = 238;
this.txtWriteTime.Text = "0";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label5.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label5.Location = new System.Drawing.Point(19, 87);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(60, 17);
this.label5.TabIndex = 237;
this.label5.Text = "定时(ms):";
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// cmbWriteIO
//
this.cmbWriteIO.DisplayMember = "ProName";
this.cmbWriteIO.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawVariable;
this.cmbWriteIO.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbWriteIO.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.cmbWriteIO.FormattingEnabled = true;
this.cmbWriteIO.ItemHeight = 22;
this.cmbWriteIO.Location = new System.Drawing.Point(11, 18);
this.cmbWriteIO.Name = "cmbWriteIO";
this.cmbWriteIO.Size = new System.Drawing.Size(318, 28);
this.cmbWriteIO.TabIndex = 234;
this.cmbWriteIO.ValueMember = "ProName";
this.cmbWriteIO.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.cmbWriteIO_DrawItem);
this.cmbWriteIO.SelectedIndexChanged += new System.EventHandler(this.cmbWriteIO_SelectedIndexChanged);
//
// groupBox4
//
this.groupBox4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.groupBox4.Controls.Add(this.tableLayoutPanel2);
this.groupBox4.Location = new System.Drawing.Point(289, 3);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new System.Drawing.Size(276, 560);
this.groupBox4.TabIndex = 104;
this.groupBox4.TabStop = false;
this.groupBox4.Text = "DO列表";
//
// tableLayoutPanel2
//
this.tableLayoutPanel2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.tableLayoutPanel2.AutoScroll = true;
this.tableLayoutPanel2.ColumnCount = 1;
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel2.Location = new System.Drawing.Point(5, 14);
this.tableLayoutPanel2.Name = "tableLayoutPanel2";
this.tableLayoutPanel2.RowCount = 2;
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel2.Size = new System.Drawing.Size(265, 540);
this.tableLayoutPanel2.TabIndex = 103;
//
// groupBox3
//
this.groupBox3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.groupBox3.Controls.Add(this.tableLayoutPanel1);
this.groupBox3.Location = new System.Drawing.Point(6, 3);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(276, 560);
this.groupBox3.TabIndex = 103;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "DI列表";
//
// tableLayoutPanel1
//
this.tableLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.tableLayoutPanel1.AutoScroll = true;
this.tableLayoutPanel1.ColumnCount = 1;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel1.Location = new System.Drawing.Point(6, 14);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 2;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(265, 540);
this.tableLayoutPanel1.TabIndex = 102;
//
// groupBox2
//
this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.groupBox2.Controls.Add(this.tableLayoutPanel3);
this.groupBox2.Location = new System.Drawing.Point(235, 129);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(225, 434);
this.groupBox2.TabIndex = 245;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "DI列表";
this.groupBox2.Visible = false;
//
// tableLayoutPanel3
//
this.tableLayoutPanel3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.tableLayoutPanel3.ColumnCount = 1;
this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel3.Location = new System.Drawing.Point(6, 14);
this.tableLayoutPanel3.Name = "tableLayoutPanel3";
this.tableLayoutPanel3.RowCount = 2;
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel3.Size = new System.Drawing.Size(214, 414);
this.tableLayoutPanel3.TabIndex = 102;
//
// groupBox5
//
this.groupBox5.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.groupBox5.Controls.Add(this.lblTrayNum);
this.groupBox5.Controls.Add(this.btnDriveMotor_Run);
this.groupBox5.Controls.Add(this.btnFrontStopDown);
this.groupBox5.Controls.Add(this.btnCloseAll);
this.groupBox5.Controls.Add(this.btnStopDown);
this.groupBox5.Controls.Add(this.btnTopDown);
this.groupBox5.Location = new System.Drawing.Point(581, 129);
this.groupBox5.Name = "groupBox5";
this.groupBox5.Size = new System.Drawing.Size(383, 206);
this.groupBox5.TabIndex = 246;
this.groupBox5.TabStop = false;
this.groupBox5.Text = "IO操作测试";
//
// btnFrontStopDown
//
this.btnFrontStopDown.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnFrontStopDown.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnFrontStopDown.Location = new System.Drawing.Point(32, 22);
this.btnFrontStopDown.Name = "btnFrontStopDown";
this.btnFrontStopDown.Size = new System.Drawing.Size(153, 37);
this.btnFrontStopDown.TabIndex = 276;
this.btnFrontStopDown.Text = "T3-C1前阻挡上升";
this.btnFrontStopDown.UseVisualStyleBackColor = true;
this.btnFrontStopDown.Click += new System.EventHandler(this.btnSw4Location_Click);
//
// btnStopDown
//
this.btnStopDown.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnStopDown.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnStopDown.Location = new System.Drawing.Point(32, 63);
this.btnStopDown.Name = "btnStopDown";
this.btnStopDown.Size = new System.Drawing.Size(153, 37);
this.btnStopDown.TabIndex = 269;
this.btnStopDown.Text = "T3-C1阻挡上升";
this.btnStopDown.UseVisualStyleBackColor = true;
this.btnStopDown.Click += new System.EventHandler(this.btn34Top_Click);
//
// lblTrayNum
//
this.lblTrayNum.AutoSize = true;
this.lblTrayNum.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblTrayNum.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.lblTrayNum.Location = new System.Drawing.Point(29, 156);
this.lblTrayNum.Name = "lblTrayNum";
this.lblTrayNum.Size = new System.Drawing.Size(68, 17);
this.lblTrayNum.TabIndex = 275;
this.lblTrayNum.Text = "托盘编码:";
this.lblTrayNum.TextAlign = System.Drawing.ContentAlignment.BottomRight;
this.lblTrayNum.Visible = false;
//
// btnCloseAll
//
this.btnCloseAll.BackColor = System.Drawing.Color.White;
this.btnCloseAll.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnCloseAll.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnCloseAll.Location = new System.Drawing.Point(204, 104);
this.btnCloseAll.Name = "btnCloseAll";
this.btnCloseAll.Size = new System.Drawing.Size(153, 37);
this.btnCloseAll.TabIndex = 274;
this.btnCloseAll.Text = "关闭所有DO";
this.btnCloseAll.UseVisualStyleBackColor = false;
this.btnCloseAll.Click += new System.EventHandler(this.btnCloseAll_Click);
//
// btnTopDown
//
this.btnTopDown.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnTopDown.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnTopDown.Location = new System.Drawing.Point(32, 104);
this.btnTopDown.Name = "btnTopDown";
this.btnTopDown.Size = new System.Drawing.Size(153, 37);
this.btnTopDown.TabIndex = 262;
this.btnTopDown.Text = "T3-C1顶升上升";
this.btnTopDown.UseVisualStyleBackColor = true;
this.btnTopDown.Click += new System.EventHandler(this.btnSWRun_Click);
//
// btnDriveMotor_Run
//
this.btnDriveMotor_Run.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnDriveMotor_Run.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnDriveMotor_Run.Location = new System.Drawing.Point(204, 22);
this.btnDriveMotor_Run.Name = "btnDriveMotor_Run";
this.btnDriveMotor_Run.Size = new System.Drawing.Size(153, 37);
this.btnDriveMotor_Run.TabIndex = 260;
this.btnDriveMotor_Run.Text = "驱动电机正转";
this.btnDriveMotor_Run.UseVisualStyleBackColor = false;
this.btnDriveMotor_Run.Click += new System.EventHandler(this.btnDriveMotor_Run_Click);
//
// panel1
//
this.panel1.AutoScroll = true;
this.panel1.Controls.Add(this.groupBox4);
this.panel1.Controls.Add(this.groupBox6);
this.panel1.Controls.Add(this.groupBox3);
this.panel1.Controls.Add(this.groupBox5);
this.panel1.Controls.Add(this.groupBox2);
this.panel1.Controls.Add(this.groupBox1);
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(983, 571);
this.panel1.TabIndex = 248;
//
// groupBox6
//
this.groupBox6.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.groupBox6.Controls.Add(this.tableLayoutPanel4);
this.groupBox6.Location = new System.Drawing.Point(693, 499);
this.groupBox6.Name = "groupBox6";
this.groupBox6.Size = new System.Drawing.Size(225, 64);
this.groupBox6.TabIndex = 105;
this.groupBox6.TabStop = false;
this.groupBox6.Text = "DO列表";
this.groupBox6.Visible = false;
//
// tableLayoutPanel4
//
this.tableLayoutPanel4.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.tableLayoutPanel4.AutoScroll = true;
this.tableLayoutPanel4.ColumnCount = 1;
this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel4.Location = new System.Drawing.Point(5, 14);
this.tableLayoutPanel4.Name = "tableLayoutPanel4";
this.tableLayoutPanel4.RowCount = 2;
this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel4.Size = new System.Drawing.Size(214, 44);
this.tableLayoutPanel4.TabIndex = 103;
//
// FrmLineIO
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(983, 571);
this.Controls.Add(this.panel1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "FrmLineIO";
this.Text = "IO查看";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmTest_FormClosing);
this.Load += new System.EventHandler(this.FrmStoreIOStatus_Load);
this.Shown += new System.EventHandler(this.FrmIOStatus_Shown);
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.groupBox4.ResumeLayout(false);
this.groupBox3.ResumeLayout(false);
this.groupBox2.ResumeLayout(false);
this.groupBox5.ResumeLayout(false);
this.groupBox5.PerformLayout();
this.panel1.ResumeLayout(false);
this.groupBox6.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Timer timer1;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private System.Windows.Forms.GroupBox groupBox3;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
private System.Windows.Forms.GroupBox groupBox4;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.TextBox txtDOIndex;
private System.Windows.Forms.Label label17;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.TextBox txtWriteTime;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Button btnWriteSingleDO;
private System.Windows.Forms.ComboBox cmbWriteIO;
private System.Windows.Forms.CheckBox chbAutoRead;
private System.Windows.Forms.TextBox txtDoName;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel3;
private System.Windows.Forms.GroupBox groupBox5;
private System.Windows.Forms.Button btnTopDown;
private System.Windows.Forms.Button btnDriveMotor_Run;
private System.Windows.Forms.Button btnStopDown;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Button btnCloseAll;
private System.Windows.Forms.Label lblTrayNum;
private System.Windows.Forms.Button btnFrontStopDown;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.GroupBox groupBox6;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel4;
}
}
......@@ -20,10 +20,9 @@ using OnlineStore.Common;
namespace OnlineStore.AssemblyLine
{
internal partial class FrmIOStatus : FrmBase
internal partial class FrmLineIO : FrmBase
{
//internal static readonly ILog LOGGER = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
internal FrmIOStatus()
internal FrmLineIO()
{
Control.CheckForIllegalCrossThreadCalls = false;
InitializeComponent();
......@@ -274,28 +273,23 @@ namespace OnlineStore.AssemblyLine
}
private void btnDriveMotor_Run_Click(object sender, EventArgs e)
{
if (btnDriveMotor_Run.Text.Equals("驱动电机1234正转"))
if (btnDriveMotor_Run.Text.Equals("驱动电机正转"))
{
btnDriveMotor_Run.Text = "驱动电机1234停止";
btnDriveMotor_Run.Text = "驱动电机停止";
btnDriveMotor_Run.BackColor = Color.Aqua;
LineManager.Line.WriteDrivetMotorRun(IO_VALUE.HIGH);
}
else
{
LineManager.Line.WriteDrivetMotorRun(IO_VALUE.LOW);
btnDriveMotor_Run.Text = "驱动电机1234正转";
btnDriveMotor_Run.Text = "驱动电机正转";
btnDriveMotor_Run.BackColor = Color.White;
}
}
private void btnSWRun_Click(object sender, EventArgs e)
{
BtnMove(btnSW4Run, "环形线横移4电机运转", "环形线横移4电机停止", IO_Type.SW4_MotorRun);
}
private void btnNGCylinder_Click(object sender, EventArgs e)
{
BtnMove(btnNGCylinder, "NG料盘气缸前进", "NG料盘气缸后退", IO_Type.NGCylinder_After, IO_Type.NGCylinder_Before);
BtnMove(btnTopDown, "T3-C1顶升上升", "T3-C1顶升下降", IO_Type.HY_TopCylinder_Down,IO_Type.HY_TopCylinder_UP );
}
......@@ -304,146 +298,14 @@ namespace OnlineStore.AssemblyLine
IOManager.instance.CloseAllDO();
}
private void btnSw1Run_Click(object sender, EventArgs e)
{
BtnMove(btnSw1Run, "环形线横移1电机运转", "环形线横移1电机停止", IO_Type.SW1_MotorRun);
}
private void btnSw2Run_Click(object sender, EventArgs e)
{
BtnMove(btnSw2Run, "环形线横移2电机运转", "环形线横移2电机停止", IO_Type.SW2_MotorRun);
}
private void btnSw3Run_Click(object sender, EventArgs e)
{
BtnMove(btnSw3Run, "环形线横移3电机运转", "环形线横移3电机停止", IO_Type.SW3_MotorRun);
}
private void btnSw1Location_Click(object sender, EventArgs e)
{
BtnMove(btnSw1Location, "环形线横移1定位上升", "环形线横移1定位下降", IO_Type.SW1_LocationCylinder_Down, IO_Type.SW1_LocationCylinder_Up);
}
private void btnSw2Location_Click(object sender, EventArgs e)
{
BtnMove(btnSw2Location, "环形线横移2定位上升", "环形线横移2定位下降", IO_Type.SW2_LocationCylinder_Down, IO_Type.SW2_LocationCylinder_Up);
}
private void btnSw3Location_Click(object sender, EventArgs e)
{
BtnMove(btnSw3Location, "环形线横移3定位上升", "环形线横移3定位下降", IO_Type.SW3_LocationCylinder_Down, IO_Type.SW3_LocationCylinder_Up);
}
private void btnSw4Location_Click(object sender, EventArgs e)
{
BtnMove(btnSw4Location, "环形线横移4定位上升", "环形线横移4定位下降", IO_Type.SW4_LocationCylinder_Down, IO_Type.SW4_LocationCylinder_Up);
BtnMove(btnFrontStopDown, "T3-C1前阻挡上升", "T3-C1前阻挡下降", IO_Type.HY_FrontStopDown);
}
private void btnSw1Top_Click(object sender, EventArgs e)
{
BtnMove(btnSw1Top, "环形线横移1顶升上升", "环形线横移1顶升下降", IO_Type.SW1_TopCylinder_Down, IO_Type.SW1_TopCylinder_Up);
}
private void btnSw2Top_Click(object sender, EventArgs e)
{
BtnMove(btnSw2Top, "环形线横移2顶升上升", "环形线横移2顶升下降", IO_Type.SW2_TopCylinder_Down, IO_Type.SW2_TopCylinder_Up);
}
private void btnSw3Top_Click(object sender, EventArgs e)
{
BtnMove(btnSw3Top, "环形线横移3顶升上升", "环形线横移3顶升下降", IO_Type.SW3_TopCylinder_Down, IO_Type.SW3_TopCylinder_Up);
}
private void btn34Top_Click(object sender, EventArgs e)
{
BtnMove(btnSw4Top, "环形线横移4顶升上升", "环形线横移4顶升下降", IO_Type.SW4_TopCylinder_Down, IO_Type.SW4_TopCylinder_Up);
}
private void btnsw2StopDown_Click(object sender, EventArgs e)
{
BtnMove(btnsw2StopDown, "环形线横移2阻挡下降", "环形线横移2阻挡上升", IO_Type.SW2_StopDown);
}
private void button2_Click(object sender, EventArgs e)
{
BtnMove(button2, "环形线横移4阻挡下降", "环形线横移4阻挡上升", IO_Type.SW4_StopDown);
}
private void btnShuntStop1_Click(object sender, EventArgs e)
{
BtnMove(btnShuntStop1, "分流前端阻挡下降", "分流前端阻挡上升", IO_Type.Shunt_StopDown1_Front);
}
private void btnShuntStop2_Click(object sender, EventArgs e)
{
BtnMove(btnShuntStop2, "分流后端阻挡下降", "分流后端阻挡上升", IO_Type.Shunt_StopDown2_Back);
}
private void btnShuntupdown1_Click(object sender, EventArgs e)
{
BtnMove(btnShuntupdown1 , "分流横移机构1上升", "分流横移机构1下降", IO_Type.Shunt_TopCylinder_Down1, IO_Type.Shunt_TopCylinder_Up1);
}
private void btnShuntupdown2_Click(object sender, EventArgs e)
{
BtnMove(btnShuntupdown2, "分流横移机构2上升", "分流横移机构2下降", IO_Type.Shunt_TopCylinder_Down2, IO_Type.Shunt_TopCylinder_Up2);
}
private void btnShuntRun1_Click(object sender, EventArgs e)
{
BtnMove(btnShuntRun1, "分流横移机构1皮带运行", "分流横移机构1皮带停止", IO_Type.Shunt_MotorRun1);
}
private void btnShuntRun2_Click(object sender, EventArgs e)
{
BtnMove(btnShuntRun2, "分流横移机构2皮带运行", "分流横移机构2皮带停止", IO_Type.Shunt_MotorRun2);
}
private void btnShuntClose_Click(object sender, EventArgs e)
{
IOManager.IOMove(IO_Type.Shunt_StopDown1_Front, IO_VALUE.LOW);
IOManager.IOMove(IO_Type.Shunt_StopDown2_Back, IO_VALUE.LOW);
IOManager.IOMove(IO_Type.Shunt_TopCylinder_Down1, IO_VALUE.LOW);
IOManager.IOMove(IO_Type.Shunt_TopCylinder_Up1, IO_VALUE.LOW);
IOManager.IOMove(IO_Type.Shunt_TopCylinder_Down2, IO_VALUE.LOW);
IOManager.IOMove(IO_Type.Shunt_TopCylinder_Up2, IO_VALUE.LOW);
IOManager.IOMove(IO_Type.Shunt_MotorRun1, IO_VALUE.LOW);
IOManager.IOMove(IO_Type.Shunt_MotorRun2, IO_VALUE.LOW);
}
private void btnShunt2Stop1_Click(object sender, EventArgs e)
{
BtnMove(btnShunt2Stop1, "分流2-前端阻挡下降", "分流2-前端阻挡上升", IO_Type.Shunt2_StopDown1_Front);
}
private void btnShunt2Stop2_Click(object sender, EventArgs e)
{
BtnMove(btnShunt2Stop2, "分流2-后端阻挡下降", "分流2-后端阻挡上升", IO_Type.Shunt2_StopDown2_Back);
}
private void btnShunt2updown1_Click(object sender, EventArgs e)
{
BtnMove(btnShunt2updown1, "分流2-机构1上升", "分流2-机构1下降", IO_Type.Shunt2_TopCylinder_Down1, IO_Type.Shunt2_TopCylinder_Up1);
}
private void btnShunt2updown2_Click(object sender, EventArgs e)
{
BtnMove(btnShunt2updown2, "分流2-机构1上升", "分流2-机构1下降", IO_Type.Shunt2_TopCylinder_Down2, IO_Type.Shunt2_TopCylinder_Up2);
}
private void btnShunt2Run1_Click(object sender, EventArgs e)
{
BtnMove(btnShunt2Run1, "分流2-机构1皮带运行", "分流2-机构1皮带停止", IO_Type.Shunt2_MotorRun1);
}
private void btnShunt2Run2_Click(object sender, EventArgs e)
{
BtnMove(btnShunt2Run2, "分流2-机构2皮带运行", "分流2-机构2皮带停止", IO_Type.Shunt2_MotorRun2);
}
private void btnShunt2Close_Click(object sender, EventArgs e)
{
IOManager.IOMove(IO_Type.Shunt2_StopDown1_Front, IO_VALUE.LOW);
IOManager.IOMove(IO_Type.Shunt2_StopDown2_Back, IO_VALUE.LOW);
IOManager.IOMove(IO_Type.Shunt2_TopCylinder_Down1, IO_VALUE.LOW);
IOManager.IOMove(IO_Type.Shunt2_TopCylinder_Up1, IO_VALUE.LOW);
IOManager.IOMove(IO_Type.Shunt2_TopCylinder_Down2, IO_VALUE.LOW);
IOManager.IOMove(IO_Type.Shunt2_TopCylinder_Up2, IO_VALUE.LOW);
IOManager.IOMove(IO_Type.Shunt2_MotorRun1, IO_VALUE.LOW);
IOManager.IOMove(IO_Type.Shunt2_MotorRun2, IO_VALUE.LOW);
BtnMove(btnStopDown, "T3-C1前阻挡上升", "T3-C1前阻挡下降", IO_Type.HY_StopDown);
}
}
}
......@@ -32,17 +32,13 @@
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmLineStore));
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.panel1 = new System.Windows.Forms.Panel();
this.chbShunt2 = new System.Windows.Forms.CheckBox();
this.btnShunt2Reset = new System.Windows.Forms.Button();
this.btnShuntReset = new System.Windows.Forms.Button();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.chbShunt = new System.Windows.Forms.CheckBox();
this.chbTrayCheck = new System.Windows.Forms.CheckBox();
this.btnClearLog = new System.Windows.Forms.Button();
this.listView1 = new System.Windows.Forms.ListView();
this.logBox = new System.Windows.Forms.RichTextBox();
this.lblCID = new System.Windows.Forms.Label();
this.lblMoveInfo = new System.Windows.Forms.Label();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.lblPosId = new System.Windows.Forms.Label();
this.btnUpdateStatus = new System.Windows.Forms.Button();
this.txtPosId = new System.Windows.Forms.TextBox();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.chbInStoNG = new System.Windows.Forms.CheckBox();
this.cmbTrayType = new System.Windows.Forms.ComboBox();
......@@ -54,11 +50,6 @@
this.txtTrayPosid = new System.Windows.Forms.TextBox();
this.cmbTray = new System.Windows.Forms.ComboBox();
this.btnUpdateTray = new System.Windows.Forms.Button();
this.lblMoveInfo = new System.Windows.Forms.Label();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.lblPosId = new System.Windows.Forms.Label();
this.btnUpdateStatus = new System.Windows.Forms.Button();
this.txtPosId = new System.Windows.Forms.TextBox();
this.cmbBoxIndex = new System.Windows.Forms.ComboBox();
this.btnInStoreTset = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
......@@ -88,7 +79,6 @@
this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.退出ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.设置TToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.扫码测试ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator();
this.二维码学习ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator7 = new System.Windows.Forms.ToolStripSeparator();
......@@ -115,18 +105,35 @@
this.toolStripSeparator16 = new System.Windows.Forms.ToolStripSeparator();
this.aGVCancelStateToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator17 = new System.Windows.Forms.ToolStripSeparator();
this.contextMenuStrip_control = new System.Windows.Forms.ContextMenuStrip(this.components);
this.toolStripSeparator21 = new System.Windows.Forms.ToolStripSeparator();
this.control_InDetial = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator18 = new System.Windows.Forms.ToolStripSeparator();
this.control_StartDebug = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator19 = new System.Windows.Forms.ToolStripSeparator();
this.control_Stop = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator20 = new System.Windows.Forms.ToolStripSeparator();
this.control_Debug = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator22 = new System.Windows.Forms.ToolStripSeparator();
this.panel1 = new System.Windows.Forms.Panel();
this.label1 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.lblCID = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
this.panel1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.groupBox3.SuspendLayout();
this.groupBox1.SuspendLayout();
this.groupBox3.SuspendLayout();
this.tabPage2.SuspendLayout();
this.panel2.SuspendLayout();
this.tableLayoutPanel1.SuspendLayout();
this.tabPage3.SuspendLayout();
this.panel3.SuspendLayout();
this.contextMenuStrip1.SuspendLayout();
this.menuStrip1.SuspendLayout();
this.contextMenuStrip_control.SuspendLayout();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// tabControl1
......@@ -149,12 +156,8 @@
//
// tabPage1
//
this.tabPage1.Controls.Add(this.panel1);
this.tabPage1.Controls.Add(this.groupBox2);
this.tabPage1.Controls.Add(this.listView1);
this.tabPage1.Controls.Add(this.logBox);
this.tabPage1.Controls.Add(this.lblCID);
this.tabPage1.Controls.Add(this.groupBox3);
this.tabPage1.Controls.Add(this.lblMoveInfo);
this.tabPage1.Controls.Add(this.groupBox1);
this.tabPage1.Location = new System.Drawing.Point(4, 29);
......@@ -164,102 +167,6 @@
this.tabPage1.Text = "状态信息";
this.tabPage1.UseVisualStyleBackColor = true;
//
// panel1
//
this.panel1.Controls.Add(this.chbShunt2);
this.panel1.Controls.Add(this.btnShunt2Reset);
this.panel1.Controls.Add(this.btnShuntReset);
this.panel1.Location = new System.Drawing.Point(757, 7);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(179, 157);
this.panel1.TabIndex = 199;
//
// chbShunt2
//
this.chbShunt2.AutoSize = true;
this.chbShunt2.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.chbShunt2.Location = new System.Drawing.Point(22, 72);
this.chbShunt2.Name = "chbShunt2";
this.chbShunt2.Size = new System.Drawing.Size(120, 24);
this.chbShunt2.TabIndex = 202;
this.chbShunt2.Text = "禁用分流横移2";
this.chbShunt2.UseVisualStyleBackColor = true;
this.chbShunt2.CheckedChanged += new System.EventHandler(this.chbShunt2_CheckedChanged);
//
// btnShunt2Reset
//
this.btnShunt2Reset.BackColor = System.Drawing.Color.White;
this.btnShunt2Reset.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnShunt2Reset.Location = new System.Drawing.Point(18, 105);
this.btnShunt2Reset.Name = "btnShunt2Reset";
this.btnShunt2Reset.Size = new System.Drawing.Size(133, 40);
this.btnShunt2Reset.TabIndex = 201;
this.btnShunt2Reset.Text = "分流横移2复位";
this.btnShunt2Reset.UseVisualStyleBackColor = false;
this.btnShunt2Reset.Click += new System.EventHandler(this.btnShunt2Reset_Click);
//
// btnShuntReset
//
this.btnShuntReset.BackColor = System.Drawing.Color.White;
this.btnShuntReset.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnShuntReset.Location = new System.Drawing.Point(18, 12);
this.btnShuntReset.Name = "btnShuntReset";
this.btnShuntReset.Size = new System.Drawing.Size(133, 40);
this.btnShuntReset.TabIndex = 199;
this.btnShuntReset.Text = "分流横移1复位";
this.btnShuntReset.UseVisualStyleBackColor = false;
this.btnShuntReset.Click += new System.EventHandler(this.btnShuntReset_Click);
//
// groupBox2
//
this.groupBox2.Controls.Add(this.chbShunt);
this.groupBox2.Controls.Add(this.chbTrayCheck);
this.groupBox2.Controls.Add(this.btnClearLog);
this.groupBox2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox2.Location = new System.Drawing.Point(555, 26);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(131, 117);
this.groupBox2.TabIndex = 196;
this.groupBox2.TabStop = false;
this.groupBox2.Visible = false;
//
// chbShunt
//
this.chbShunt.AutoSize = true;
this.chbShunt.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.chbShunt.Location = new System.Drawing.Point(6, 44);
this.chbShunt.Name = "chbShunt";
this.chbShunt.Size = new System.Drawing.Size(130, 21);
this.chbShunt.TabIndex = 200;
this.chbShunt.Text = "禁用分流横移1功能";
this.chbShunt.UseVisualStyleBackColor = true;
this.chbShunt.CheckedChanged += new System.EventHandler(this.chbShunt_CheckedChanged);
//
// chbTrayCheck
//
this.chbTrayCheck.AutoSize = true;
this.chbTrayCheck.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.chbTrayCheck.Location = new System.Drawing.Point(6, 17);
this.chbTrayCheck.Name = "chbTrayCheck";
this.chbTrayCheck.Size = new System.Drawing.Size(123, 21);
this.chbTrayCheck.TabIndex = 197;
this.chbTrayCheck.Text = "启用托盘顺序检测";
this.chbTrayCheck.UseVisualStyleBackColor = true;
this.chbTrayCheck.Visible = false;
this.chbTrayCheck.CheckedChanged += new System.EventHandler(this.chbTrayCheck_CheckedChanged);
//
// btnClearLog
//
this.btnClearLog.BackColor = System.Drawing.Color.White;
this.btnClearLog.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnClearLog.Location = new System.Drawing.Point(6, 77);
this.btnClearLog.Name = "btnClearLog";
this.btnClearLog.Size = new System.Drawing.Size(85, 35);
this.btnClearLog.TabIndex = 190;
this.btnClearLog.Text = "清空日志";
this.btnClearLog.UseVisualStyleBackColor = false;
this.btnClearLog.Click += new System.EventHandler(this.btnClearLog_Click);
//
// listView1
//
this.listView1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
......@@ -284,23 +191,72 @@
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.logBox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.logBox.Location = new System.Drawing.Point(740, 167);
this.logBox.Location = new System.Drawing.Point(740, 113);
this.logBox.Name = "logBox";
this.logBox.Size = new System.Drawing.Size(580, 439);
this.logBox.Size = new System.Drawing.Size(580, 493);
this.logBox.TabIndex = 106;
this.logBox.Text = "";
this.logBox.VisibleChanged += new System.EventHandler(this.logBox_VisibleChanged);
//
// lblCID
// lblMoveInfo
//
this.lblCID.AutoSize = true;
this.lblCID.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblCID.Location = new System.Drawing.Point(1287, 4);
this.lblCID.Name = "lblCID";
this.lblCID.Size = new System.Drawing.Size(33, 20);
this.lblCID.TabIndex = 95;
this.lblCID.Text = "CID";
this.lblCID.Visible = false;
this.lblMoveInfo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.lblMoveInfo.AutoSize = true;
this.lblMoveInfo.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblMoveInfo.Location = new System.Drawing.Point(935, 7);
this.lblMoveInfo.Name = "lblMoveInfo";
this.lblMoveInfo.Size = new System.Drawing.Size(29, 17);
this.lblMoveInfo.TabIndex = 196;
this.lblMoveInfo.Text = "CID";
//
// groupBox1
//
this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.groupBox1.Controls.Add(this.lblPosId);
this.groupBox1.Controls.Add(this.btnUpdateStatus);
this.groupBox1.Controls.Add(this.txtPosId);
this.groupBox1.Controls.Add(this.groupBox3);
this.groupBox1.Controls.Add(this.cmbBoxIndex);
this.groupBox1.Controls.Add(this.btnInStoreTset);
this.groupBox1.Controls.Add(this.button2);
this.groupBox1.Controls.Add(this.button1);
this.groupBox1.Location = new System.Drawing.Point(448, 167);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(872, 61);
this.groupBox1.TabIndex = 195;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "料仓通信测试";
this.groupBox1.Visible = false;
//
// lblPosId
//
this.lblPosId.AutoSize = true;
this.lblPosId.Location = new System.Drawing.Point(366, 35);
this.lblPosId.Name = "lblPosId";
this.lblPosId.Size = new System.Drawing.Size(40, 20);
this.lblPosId.TabIndex = 197;
this.lblPosId.Text = "库位:";
//
// btnUpdateStatus
//
this.btnUpdateStatus.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnUpdateStatus.BackColor = System.Drawing.Color.White;
this.btnUpdateStatus.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnUpdateStatus.Location = new System.Drawing.Point(641, 11);
this.btnUpdateStatus.Name = "btnUpdateStatus";
this.btnUpdateStatus.Size = new System.Drawing.Size(222, 35);
this.btnUpdateStatus.TabIndex = 195;
this.btnUpdateStatus.Text = "更改为调试状态";
this.btnUpdateStatus.UseVisualStyleBackColor = false;
this.btnUpdateStatus.Click += new System.EventHandler(this.btnUpdateStatus_Click);
//
// txtPosId
//
this.txtPosId.Location = new System.Drawing.Point(426, 32);
this.txtPosId.Name = "txtPosId";
this.txtPosId.Size = new System.Drawing.Size(80, 26);
this.txtPosId.TabIndex = 196;
//
// groupBox3
//
......@@ -315,9 +271,9 @@
this.groupBox3.Controls.Add(this.cmbTray);
this.groupBox3.Controls.Add(this.btnUpdateTray);
this.groupBox3.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox3.Location = new System.Drawing.Point(720, 97);
this.groupBox3.Location = new System.Drawing.Point(292, 11);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(600, 61);
this.groupBox3.Size = new System.Drawing.Size(567, 61);
this.groupBox3.TabIndex = 197;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "操作信息";
......@@ -420,64 +376,6 @@
this.btnUpdateTray.UseVisualStyleBackColor = false;
this.btnUpdateTray.Click += new System.EventHandler(this.btnUpdateTray_Click);
//
// lblMoveInfo
//
this.lblMoveInfo.AutoSize = true;
this.lblMoveInfo.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblMoveInfo.Location = new System.Drawing.Point(925, 7);
this.lblMoveInfo.Name = "lblMoveInfo";
this.lblMoveInfo.Size = new System.Drawing.Size(29, 17);
this.lblMoveInfo.TabIndex = 196;
this.lblMoveInfo.Text = "CID";
//
// groupBox1
//
this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.groupBox1.Controls.Add(this.lblPosId);
this.groupBox1.Controls.Add(this.btnUpdateStatus);
this.groupBox1.Controls.Add(this.txtPosId);
this.groupBox1.Controls.Add(this.cmbBoxIndex);
this.groupBox1.Controls.Add(this.btnInStoreTset);
this.groupBox1.Controls.Add(this.button2);
this.groupBox1.Controls.Add(this.button1);
this.groupBox1.Location = new System.Drawing.Point(448, 167);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(872, 61);
this.groupBox1.TabIndex = 195;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "料仓通信测试";
this.groupBox1.Visible = false;
//
// lblPosId
//
this.lblPosId.AutoSize = true;
this.lblPosId.Location = new System.Drawing.Point(366, 35);
this.lblPosId.Name = "lblPosId";
this.lblPosId.Size = new System.Drawing.Size(40, 20);
this.lblPosId.TabIndex = 197;
this.lblPosId.Text = "库位:";
//
// btnUpdateStatus
//
this.btnUpdateStatus.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnUpdateStatus.BackColor = System.Drawing.Color.White;
this.btnUpdateStatus.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnUpdateStatus.Location = new System.Drawing.Point(641, 11);
this.btnUpdateStatus.Name = "btnUpdateStatus";
this.btnUpdateStatus.Size = new System.Drawing.Size(222, 35);
this.btnUpdateStatus.TabIndex = 195;
this.btnUpdateStatus.Text = "更改为调试状态";
this.btnUpdateStatus.UseVisualStyleBackColor = false;
this.btnUpdateStatus.Click += new System.EventHandler(this.btnUpdateStatus_Click);
//
// txtPosId
//
this.txtPosId.Location = new System.Drawing.Point(426, 32);
this.txtPosId.Name = "txtPosId";
this.txtPosId.Size = new System.Drawing.Size(80, 26);
this.txtPosId.TabIndex = 196;
//
// cmbBoxIndex
//
this.cmbBoxIndex.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
......@@ -550,6 +448,7 @@
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel1.Controls.Add(this.panel1, 4, 4);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
......@@ -741,7 +640,6 @@
// 设置TToolStripMenuItem
//
this.设置TToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.扫码测试ToolStripMenuItem,
this.toolStripSeparator6,
this.二维码学习ToolStripMenuItem,
this.toolStripSeparator7,
......@@ -758,14 +656,6 @@
this.设置TToolStripMenuItem.Size = new System.Drawing.Size(91, 25);
this.设置TToolStripMenuItem.Text = "设备调试 ";
//
// 扫码测试ToolStripMenuItem
//
this.扫码测试ToolStripMenuItem.Name = "扫码测试ToolStripMenuItem";
this.扫码测试ToolStripMenuItem.Size = new System.Drawing.Size(176, 26);
this.扫码测试ToolStripMenuItem.Text = "扫码测试";
this.扫码测试ToolStripMenuItem.Visible = false;
this.扫码测试ToolStripMenuItem.Click += new System.EventHandler(this.扫码测试ToolStripMenuItem_Click);
//
// toolStripSeparator6
//
this.toolStripSeparator6.Name = "toolStripSeparator6";
......@@ -947,6 +837,142 @@
this.toolStripSeparator17.Size = new System.Drawing.Size(203, 6);
this.toolStripSeparator17.Visible = false;
//
// contextMenuStrip_control
//
this.contextMenuStrip_control.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.contextMenuStrip_control.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripSeparator21,
this.control_InDetial,
this.toolStripSeparator18,
this.control_StartDebug,
this.toolStripSeparator19,
this.control_Stop,
this.toolStripSeparator20,
this.control_Debug,
this.toolStripSeparator22});
this.contextMenuStrip_control.Name = "contextMenuStrip1";
this.contextMenuStrip_control.Size = new System.Drawing.Size(163, 130);
//
// toolStripSeparator21
//
this.toolStripSeparator21.Name = "toolStripSeparator21";
this.toolStripSeparator21.Size = new System.Drawing.Size(159, 6);
//
// control_InDetial
//
this.control_InDetial.Name = "control_InDetial";
this.control_InDetial.Size = new System.Drawing.Size(162, 24);
this.control_InDetial.Text = "进入详情界面";
this.control_InDetial.Click += new System.EventHandler(this.control_InDetial_Click);
//
// toolStripSeparator18
//
this.toolStripSeparator18.Name = "toolStripSeparator18";
this.toolStripSeparator18.Size = new System.Drawing.Size(159, 6);
//
// control_StartDebug
//
this.control_StartDebug.Name = "control_StartDebug";
this.control_StartDebug.Size = new System.Drawing.Size(162, 24);
this.control_StartDebug.Text = "启动调试";
this.control_StartDebug.Click += new System.EventHandler(this.control_StartDebug_Click);
//
// toolStripSeparator19
//
this.toolStripSeparator19.Name = "toolStripSeparator19";
this.toolStripSeparator19.Size = new System.Drawing.Size(159, 6);
//
// control_Stop
//
this.control_Stop.Name = "control_Stop";
this.control_Stop.Size = new System.Drawing.Size(162, 24);
this.control_Stop.Text = "停止运行";
this.control_Stop.Click += new System.EventHandler(this.control_Stop_Click);
//
// toolStripSeparator20
//
this.toolStripSeparator20.Name = "toolStripSeparator20";
this.toolStripSeparator20.Size = new System.Drawing.Size(159, 6);
//
// control_Debug
//
this.control_Debug.Name = "control_Debug";
this.control_Debug.Size = new System.Drawing.Size(162, 24);
this.control_Debug.Text = "启用调试";
this.control_Debug.Click += new System.EventHandler(this.control_Debug_Click);
//
// toolStripSeparator22
//
this.toolStripSeparator22.Name = "toolStripSeparator22";
this.toolStripSeparator22.Size = new System.Drawing.Size(159, 6);
//
// panel1
//
this.panel1.Controls.Add(this.label1);
this.panel1.Controls.Add(this.label7);
this.panel1.Controls.Add(this.lblCID);
this.panel1.Controls.Add(this.label6);
this.panel1.Controls.Add(this.label5);
this.panel1.Location = new System.Drawing.Point(1063, 487);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(165, 105);
this.panel1.TabIndex = 202;
//
// label1
//
this.label1.BackColor = System.Drawing.Color.LightBlue;
this.label1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.label1.Location = new System.Drawing.Point(7, 4);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(109, 18);
this.label1.TabIndex = 197;
this.label1.Text = "蓝色:正常待机中";
//
// label7
//
this.label7.BackColor = System.Drawing.Color.Red;
this.label7.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label7.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.label7.Location = new System.Drawing.Point(7, 84);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(109, 18);
this.label7.TabIndex = 200;
this.label7.Text = "红色:严重报警";
//
// lblCID
//
this.lblCID.BackColor = System.Drawing.Color.Orange;
this.lblCID.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblCID.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.lblCID.Location = new System.Drawing.Point(7, 44);
this.lblCID.Name = "lblCID";
this.lblCID.Size = new System.Drawing.Size(109, 18);
this.lblCID.TabIndex = 95;
this.lblCID.Text = "橘色:复位中";
//
// label6
//
this.label6.BackColor = System.Drawing.Color.LightCoral;
this.label6.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label6.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.label6.Location = new System.Drawing.Point(7, 64);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(109, 18);
this.label6.TabIndex = 199;
this.label6.Text = "珊瑚色:信号超时报警";
//
// label5
//
this.label5.BackColor = System.Drawing.Color.LightGreen;
this.label5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label5.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.label5.Location = new System.Drawing.Point(7, 24);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(109, 18);
this.label5.TabIndex = 198;
this.label5.Text = "绿色:忙碌中";
//
// FrmLineStore
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
......@@ -961,7 +987,6 @@
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MainMenuStrip = this.menuStrip1;
this.Name = "FrmLineStore";
this.Opacity = 0D;
this.Text = "流水线系统";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmMain_FormClosing);
......@@ -970,21 +995,20 @@
this.tabControl1.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
this.tabPage1.PerformLayout();
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
this.groupBox3.ResumeLayout(false);
this.groupBox3.PerformLayout();
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.groupBox3.ResumeLayout(false);
this.groupBox3.PerformLayout();
this.tabPage2.ResumeLayout(false);
this.panel2.ResumeLayout(false);
this.tableLayoutPanel1.ResumeLayout(false);
this.tabPage3.ResumeLayout(false);
this.panel3.ResumeLayout(false);
this.contextMenuStrip1.ResumeLayout(false);
this.menuStrip1.ResumeLayout(false);
this.menuStrip1.PerformLayout();
this.contextMenuStrip_control.ResumeLayout(false);
this.panel1.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
......@@ -999,10 +1023,8 @@
private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem1;
internal System.Windows.Forms.RichTextBox logBox;
private System.Windows.Forms.Timer timer1;
private System.Windows.Forms.Button btnClearLog;
private System.Windows.Forms.Label lblStatus;
private System.Windows.Forms.TabPage tabPage1;
private System.Windows.Forms.Label lblCID;
private System.Windows.Forms.ListView listView1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button1;
......@@ -1015,7 +1037,6 @@
private System.Windows.Forms.Button btnUpdateStatus;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator8;
private System.Windows.Forms.Label lblMoveInfo;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.GroupBox groupBox3;
private System.Windows.Forms.CheckBox chbInStoNG;
private System.Windows.Forms.ComboBox cmbTrayType;
......@@ -1027,7 +1048,6 @@
private System.Windows.Forms.TextBox txtTrayPosid;
private System.Windows.Forms.ComboBox cmbTray;
private System.Windows.Forms.Button btnUpdateTray;
private System.Windows.Forms.CheckBox chbTrayCheck;
private System.Windows.Forms.ToolStripMenuItem 操作ToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
private System.Windows.Forms.ToolStripMenuItem 启动AToolStripMenuItem;
......@@ -1039,7 +1059,6 @@
private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
private System.Windows.Forms.ToolStripMenuItem 退出ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem 设置TToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem 扫码测试ToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator6;
private System.Windows.Forms.ToolStripMenuItem 二维码学习ToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator7;
......@@ -1059,16 +1078,11 @@
private System.Windows.Forms.ToolStripSeparator toolStripSeparator11;
private System.Windows.Forms.ToolStripMenuItem 版本号ToolStripMenuItem;
private System.Windows.Forms.MenuStrip menuStrip1;
private System.Windows.Forms.Button btnShuntReset;
private System.Windows.Forms.CheckBox chbShunt;
private System.Windows.Forms.ToolStripMenuItem 运行参数ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem 开机自动启动ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem 启用蜂鸣器ToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator15;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator16;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.CheckBox chbShunt2;
private System.Windows.Forms.Button btnShunt2Reset;
private System.Windows.Forms.ToolStripMenuItem aGVCancelStateToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator17;
private System.Windows.Forms.TabPage tabPage2;
......@@ -1077,6 +1091,22 @@
private System.Windows.Forms.TabPage tabPage3;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
private System.Windows.Forms.ContextMenuStrip contextMenuStrip_control;
private System.Windows.Forms.ToolStripMenuItem control_InDetial;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator18;
private System.Windows.Forms.ToolStripMenuItem control_StartDebug;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator19;
private System.Windows.Forms.ToolStripMenuItem control_Stop;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator20;
private System.Windows.Forms.ToolStripMenuItem control_Debug;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator21;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator22;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label lblCID;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label5;
}
}
......@@ -44,7 +44,7 @@ namespace OnlineStore.AssemblyLine
this.Text = title;
this.notifyIcon1.Text = title;
int autoValue = ConfigAppSettings.GetIntValue(Setting_Init.App_AutoRun);
chbTrayCheck.Checked = TrayManager.NeedCheckTray;
//chbTrayCheck.Checked = TrayManager.NeedCheckTray;
lineBean = LineManager.Line;
if (lineBean == null)
{
......@@ -54,13 +54,13 @@ namespace OnlineStore.AssemblyLine
FrmIOTest ioStatus = new FrmIOTest();
AddForm(" IO列表查看 ", ioStatus);
FrmIOStatus frmIOStatus = new FrmIOStatus();
FrmLineIO frmIOStatus = new FrmLineIO();
AddForm(" 流水线IO ", frmIOStatus);
LoadMoveList();
lblCID.Text = ConfigAppSettings.GetValue(Setting_Init.Line_CID);
//lblCID.Text = ConfigAppSettings.GetValue(Setting_Init.Line_CID);
LoadListView();
托盘初始化ToolStripMenuItem.Visible = ConfigAppSettings.GetIntValue(Setting_Init.OpenRFIDWrite).Equals(1);
......@@ -89,7 +89,7 @@ namespace OnlineStore.AssemblyLine
cmbTray.SelectedIndex = 0;
LogUtil.logBox = this.logBox;
LoadOk = true;
HideForm();
//HideForm();
lastLogTime = DateTime.Now.AddMinutes(-10);
}
private void AddForm(string text, Form form)
......@@ -123,6 +123,12 @@ namespace OnlineStore.AssemblyLine
}
LoadStoreData();
this.Opacity = 100;
this.Visible = true;
this.WindowState = FormWindowState.Maximized;
this.notifyIcon1.Visible = false;
this.ShowInTaskbar = true;
timer1.Start();
}
......@@ -147,6 +153,7 @@ namespace OnlineStore.AssemblyLine
lvi.SubItems.Add(move.alarmType.ToString());
// lvi.SubItems.Add(move.lineStatus.ToString());
lvi.SubItems.Add(move.GetRunStr());
BoxInfo box = LineServer.GetBoxInfo(move.DeviceID);
if (box != null)
{
......@@ -193,15 +200,6 @@ namespace OnlineStore.AssemblyLine
this.listView1.Items.Add(lvi);
}
this.listView1.Items.Add((ListViewItem)emptyView.Clone());
//foreach (DischargeLine equip in lineBean.DisLineMap.Values)
//{
// ListViewItem lvi = new ListViewItem();
// lvi.Text = equip.Name;
// lvi.SubItems.Add(equip.Config.IsDebug.Equals(1) ? "✘" : "✔");
// lvi.SubItems.Add(equip.alarmType.ToString());
// lvi.SubItems.Add(equip.GetRunStr());
// this.listView1.Items.Add(lvi);
//}
cmbBoxIndex.Items.Clear();
foreach (int key in lineBean.MoveEquipMap.Keys)
{
......@@ -577,7 +575,7 @@ namespace OnlineStore.AssemblyLine
SetItemText(i, item_SAlarmType_index, "");
SetItemText(i, item_BoxStr_index, "");
}
SetItemColor(i, move.runStatus, move.alarmType);
SetItemColor(i, move.GetShowColor());
i++;
}
i++;
......@@ -586,7 +584,7 @@ namespace OnlineStore.AssemblyLine
SetItemText(i, item_debug_index, equip.Config.IsDebug.Equals(1) ? "✘" : "✔");
SetItemText(i, item_alarm_index, equip.alarmType.ToString());
SetItemText(i, item_runStr_index, equip.GetRunStr());
SetItemColor(i, equip.runStatus, equip.alarmType);
SetItemColor(i, equip.GetShowColor());
i++;
}
i++;
......@@ -595,18 +593,11 @@ namespace OnlineStore.AssemblyLine
SetItemText(i, item_debug_index, equip.IsDebug.Equals(1) ? "✘" : "✔");
SetItemText(i, item_alarm_index, equip.alarmType.ToString());
SetItemText(i, item_runStr_index, equip.GetRunStr());
SetItemColor(i, equip.runStatus, equip.alarmType);
SetItemColor(i, equip.GetShowColor());
i++;
}
i++;
//foreach (DischargeLine equip in lineBean.DisLineMap.Values)
//{
// SetItemText(i, item_debug_index, equip.Config.IsDebug.Equals(1) ? "✘" : "✔");
// SetItemText(i, item_alarm_index, equip.alarmType.ToString());
// SetItemText(i, item_runStr_index, equip.GetRunStr());
// SetItemColor(i, equip.runStatus, equip.alarmType);
// i++;
//}
if (lineBean.runStatus > LineRunStatus.Wait)
{
if (启动AToolStripMenuItem.Enabled.Equals(true))
......@@ -633,35 +624,6 @@ namespace OnlineStore.AssemblyLine
}
private void SetItemColor(int i, LineRunStatus runStatus, LineAlarmType alarmType)
{
if (runStatus.Equals(LineRunStatus.Wait))
{
SetItemColor(i, Color.White);
//listView1.Items[i].BackColor = Color.White;
}
else if (alarmType.Equals(LineAlarmType.IoSingleTimeOut))
{
SetItemColor(i, Color.LightCoral);
}
else if (alarmType.Equals(LineAlarmType.None).Equals(false))
{
SetItemColor(i, Color.Red);
}
else if (runStatus.Equals(LineRunStatus.HomeMoving) || runStatus.Equals(LineRunStatus.Reset))
{
SetItemColor(i, Color.Orange);
}
else if (runStatus.Equals(LineRunStatus.Busy))
{
SetItemColor(i, Color.LimeGreen);
}
else if (runStatus.Equals(LineRunStatus.Runing))
{
SetItemColor(i, Color.LightBlue);
}
}
private void SetMenuS(ToolStripMenuItem toolMenu, bool isEn)
{
if (!toolMenu.Enabled.Equals(isEn))
......@@ -719,17 +681,6 @@ namespace OnlineStore.AssemblyLine
about.ShowDialog();
}
private void 扫码测试ToolStripMenuItem_Click(object sender, EventArgs e)
{
//lineBean. GetCameraCode();
//List<string> codes = CodeManager.CameraScan();
//string result = "";
//foreach (string s in codes)
//{
// result += s + "\r\n";
//}
//LogUtil.info("扫到二维码:" + result);
}
private void 二维码学习ToolStripMenuItem_Click(object sender, EventArgs e)
{
......@@ -954,48 +905,6 @@ namespace OnlineStore.AssemblyLine
frm.ShowDialog();
}
private void chbTrayCheck_CheckedChanged(object sender, EventArgs e)
{
if (!LoadOk)
{
return;
}
if (chbTrayCheck.Checked.Equals(TrayManager.NeedCheckTray))
{
return;
}
TrayManager.NeedCheckTray = chbTrayCheck.Checked;
LogUtil.info("勾选:启用托盘顺序检测 NeedCheckTray =" + TrayManager.NeedCheckTray);
ConfigAppSettings.SaveValue(Setting_Init.NeedCheckTray, (TrayManager.NeedCheckTray ? 1 : 0));
}
private void btnShuntReset_Click(object sender, EventArgs e)
{
if (lineBean.runStatus.Equals(LineRunStatus.Wait))
{
MessageBox.Show(lineBean.Name + "流水线未启动,无法复位");
return;
}
LogUtil.info(Name + "点击 分流模块1复位 按钮复位");
lineBean.ShuntStop();
}
private void chbShunt_CheckedChanged(object sender, EventArgs e)
{
if (!LoadOk)
{
return;
}
if (chbShunt.Checked.Equals(lineBean.DisableShunt))
{
return;
}
lineBean.DisableShunt = (chbShunt.Checked);
LogUtil.info("勾选 禁用分流横移1功能:lineBean.DisableShunt =" + lineBean.DisableShunt);
}
private string gouStr = "✔";
private void 开机自动启动ToolStripMenuItem_Click(object sender, EventArgs e)
{
......@@ -1043,30 +952,7 @@ namespace OnlineStore.AssemblyLine
LogUtil.info(Name + " 点击:" + 启用蜂鸣器ToolStripMenuItem.Text);
}
private void btnShunt2Reset_Click(object sender, EventArgs e)
{
if (lineBean.runStatus.Equals(LineRunStatus.Wait))
{
MessageBox.Show(lineBean.Name + "流水线未启动,无法复位");
return;
}
LogUtil.info(Name + "点击 分流模块2复位 按钮复位");
lineBean.Shunt2Stop();
}
private void chbShunt2_CheckedChanged(object sender, EventArgs e)
{
if (!LoadOk)
{
return;
}
if (chbShunt2.Checked.Equals(lineBean.DisableShunt2))
{
return;
}
lineBean.DisableShunt2 = (chbShunt2.Checked);
LogUtil.info("勾选 禁用分流横移2功能:lineBean.DisableShunt2 =" + lineBean.DisableShunt2);
}
private void aGVCancelStateToolStripMenuItem_Click(object sender, EventArgs e)
{
......@@ -1141,11 +1027,13 @@ namespace OnlineStore.AssemblyLine
EquipControl control = EquipControl.NewControl(equip);
control.DoubleClick += Control_DoubleClick;
control.Click += Control_DoubleClick;
control.ContextMenuStrip = contextMenuStrip_control;
control.MouseEnter += Control_Click;
int row = num / 5;
int col = num % 5;
this.tableLayoutPanel1.Controls.Add(control, col, row);
equipControls1.Add(equip.DeviceID, control);
num++;
}
num = 0;
......@@ -1155,7 +1043,9 @@ namespace OnlineStore.AssemblyLine
EquipControl control = EquipControl.NewControl(equip);
control.DoubleClick += Control_DoubleClick;
control.Click += Control_DoubleClick;
control.ContextMenuStrip = contextMenuStrip_control;
control.MouseEnter += Control_Click;
int row = num / 5;
int col = num % 5;
this.tableLayoutPanel2.Controls.Add(control, col, row);
......@@ -1169,7 +1059,9 @@ namespace OnlineStore.AssemblyLine
EquipControl control = EquipControl.NewControl(equip);
control.DoubleClick += Control_DoubleClick;
control.Click += Control_DoubleClick;
control.ContextMenuStrip = contextMenuStrip_control;
control.MouseEnter += Control_Click;
int row = num / 5;
int col = num % 5;
......@@ -1186,6 +1078,58 @@ namespace OnlineStore.AssemblyLine
EquipControl control = (EquipControl)sender;
int deviceId = control.DeviceId;
OpendForm(deviceId);
}
}
private EquipBase seleEquip = null;
private void Control_Click(object sender ,EventArgs s)
{
if (sender is EquipControl)
{
EquipControl control = (EquipControl)sender;
int deviceId = control.DeviceId;
if (lineBean.MoveEquipMap.ContainsKey(deviceId))
{
seleEquip=lineBean.MoveEquipMap[deviceId];
}
else if (lineBean.FeedingEquipMap.ContainsKey(deviceId))
{
seleEquip=lineBean.FeedingEquipMap[deviceId];
}
else if (lineBean.HYEquipMap.ContainsKey(deviceId))
{
seleEquip=lineBean.HYEquipMap[deviceId];
}
if (seleEquip.runStatus > LineRunStatus.Wait)
{
control_StartDebug.Text = "复位[" + seleEquip.Name+"]";
}
else
{
control_StartDebug.Text = "启动调试[" + seleEquip.Name + "]";
}
string name = "打开[" + seleEquip.Name + "]";
if (control_InDetial.Text.Equals(name))
{
return;
}
control_InDetial.Text = name;
control_Stop.Text= "停止[" + seleEquip.Name + "]";
if (seleEquip.IsDebug)
{
control_Debug.Text = "✘ 未启用";
}
else
{
control_Debug.Text = "✔ 已启用";
}
}
}
private void OpendForm(int deviceId)
{
if (lineBean.MoveEquipMap.ContainsKey(deviceId))
{
FrmMoveEquip frm = new FrmMoveEquip(lineBean.MoveEquipMap[deviceId]);
......@@ -1202,16 +1146,115 @@ namespace OnlineStore.AssemblyLine
frm.ShowDialog();
}
}
private void control_InDetial_Click(object sender, EventArgs e)
{
if (seleEquip != null)
{
OpendForm(seleEquip.DeviceID);
}
}
#endregion
private void control_StartDebug_Click(object sender, EventArgs e)
{
if (seleEquip != null)
{
if (seleEquip.runStatus > LineRunStatus.Wait)
{
LogUtil.info(Name + "点击:复位[" + seleEquip.Name + "]");
bool result = seleEquip.Reset();
if (!result)
{
MessageBox.Show("[" + seleEquip.Name + "]复位失败:" + seleEquip.WarnMsg,"错误",MessageBoxButtons.OK,MessageBoxIcon.Error);
}
}
else
{
LogUtil.info(Name + "点击:启动调试[" + seleEquip.Name + "]");
bool result = seleEquip.StartRun();
if (!result)
{
MessageBox.Show("[" + seleEquip.Name + "]启动调试失败:" + seleEquip.WarnMsg, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
}
}
private void control_Stop_Click(object sender, EventArgs e)
{
if (seleEquip != null)
{
if (seleEquip.runStatus > LineRunStatus.Wait)
{
LogUtil.info(Name + "点击:停止[" + seleEquip.Name + "]");
seleEquip.Reset();
}
}
}
private void control_Debug_Click(object sender, EventArgs e)
{
if (seleEquip != null)
{
if (seleEquip.IsDebug)
{
DialogResult result = MessageBox.Show("是否切换【" + seleEquip.Name + "】到正常工作状态?", "是否确认切换", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1);
if (result.Equals(DialogResult.Yes))
{
seleEquip.IsDebug = false;
int deviceId = seleEquip.DeviceID;
if (lineBean.MoveEquipMap.ContainsKey(deviceId))
{
lineBean.MoveEquipMap[deviceId].Config.IsDebug = 0;
LineManager.SaveMoveEquipConfig(lineBean.MoveEquipMap[deviceId].Config);
}
else if (lineBean.FeedingEquipMap.ContainsKey(deviceId))
{
lineBean.FeedingEquipMap[deviceId].Config.IsDebug = 0;
LineManager.SaveFeedingEquipConfig(lineBean.FeedingEquipMap[deviceId].Config);
}
else if (lineBean.HYEquipMap.ContainsKey(deviceId))
{
lineBean.HYEquipMap[deviceId].Config.IsDebug = 0;
LineManager.SaveHYEquipConfig(lineBean.HYEquipMap[deviceId].Config);
}
seleEquip.ChangeDebug(false);
LogUtil.info(seleEquip.Name + "用户切换【" + seleEquip.Name + "】到正常工作状态 ");
control_Stop.Text = "✔ 已启用";
}
}
else
{
DialogResult result = MessageBox.Show("是否切换【" + seleEquip.Name + "】到调试状态?", "是否确认切换", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1);
if (result.Equals(DialogResult.Yes))
{
seleEquip.IsDebug = false;
int deviceId = seleEquip.DeviceID;
if (lineBean.MoveEquipMap.ContainsKey(deviceId))
{
lineBean.MoveEquipMap[deviceId].Config.IsDebug = 1;
LineManager.SaveMoveEquipConfig(lineBean.MoveEquipMap[deviceId].Config);
}
else if (lineBean.FeedingEquipMap.ContainsKey(deviceId))
{
lineBean.FeedingEquipMap[deviceId].Config.IsDebug = 1;
LineManager.SaveFeedingEquipConfig(lineBean.FeedingEquipMap[deviceId].Config);
}
else if (lineBean.HYEquipMap.ContainsKey(deviceId))
{
lineBean.HYEquipMap[deviceId].Config.IsDebug = 1;
LineManager.SaveHYEquipConfig(lineBean.HYEquipMap[deviceId].Config);
}
seleEquip.ChangeDebug(true);
LogUtil.info(seleEquip.Name + "用户切换【" + seleEquip.Name + "】到调试状态 ");
control_Stop.Text = "✘ 未启用";
}
}
}
}
#endregion
}
}
......@@ -817,6 +817,9 @@
<metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="contextMenuStrip_control.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>510, 17</value>
</metadata>
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAA8AMDAQAAEABABoBgAA9gAAACgoEAABAAQAyAQAAF4HAAAgIBAAAQAEAOgCAAAmDAAAGBgQAAEA
......
......@@ -19,6 +19,7 @@
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmMoveEquip));
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.btnCloseAll = new System.Windows.Forms.Button();
this.txtDOIndex = new System.Windows.Forms.TextBox();
this.txtDoName = new System.Windows.Forms.TextBox();
this.label17 = new System.Windows.Forms.Label();
......@@ -34,7 +35,6 @@
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.groupBox5 = new System.Windows.Forms.GroupBox();
this.btnCloseAll = new System.Windows.Forms.Button();
this.btnStop2Up = new System.Windows.Forms.Button();
this.btnStop1Up = new System.Windows.Forms.Button();
this.btnClampSlack = new System.Windows.Forms.Button();
......@@ -46,7 +46,6 @@
this.lblStoreStatus = new System.Windows.Forms.Label();
this.btnStart = new System.Windows.Forms.Button();
this.btnStop = new System.Windows.Forms.Button();
this.btnReset = new System.Windows.Forms.Button();
this.btnInStore = new System.Windows.Forms.Button();
this.btnOutStore = new System.Windows.Forms.Button();
this.tabControl1 = new System.Windows.Forms.TabControl();
......@@ -118,6 +117,19 @@
this.groupBox1.TabStop = false;
this.groupBox1.Text = "DO写入";
//
// btnCloseAll
//
this.btnCloseAll.BackColor = System.Drawing.Color.White;
this.btnCloseAll.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnCloseAll.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnCloseAll.Location = new System.Drawing.Point(17, 94);
this.btnCloseAll.Name = "btnCloseAll";
this.btnCloseAll.Size = new System.Drawing.Size(110, 34);
this.btnCloseAll.TabIndex = 259;
this.btnCloseAll.Text = "关闭所有DO";
this.btnCloseAll.UseVisualStyleBackColor = false;
this.btnCloseAll.Click += new System.EventHandler(this.btnCloseAll_Click);
//
// txtDOIndex
//
this.txtDOIndex.Enabled = false;
......@@ -312,19 +324,6 @@
this.groupBox5.TabStop = false;
this.groupBox5.Text = "IO操作测试";
//
// btnCloseAll
//
this.btnCloseAll.BackColor = System.Drawing.Color.White;
this.btnCloseAll.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnCloseAll.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnCloseAll.Location = new System.Drawing.Point(17, 94);
this.btnCloseAll.Name = "btnCloseAll";
this.btnCloseAll.Size = new System.Drawing.Size(110, 34);
this.btnCloseAll.TabIndex = 259;
this.btnCloseAll.Text = "关闭所有DO";
this.btnCloseAll.UseVisualStyleBackColor = false;
this.btnCloseAll.Click += new System.EventHandler(this.btnCloseAll_Click);
//
// btnStop2Up
//
this.btnStop2Up.BackColor = System.Drawing.Color.White;
......@@ -407,7 +406,7 @@
//
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(795, 21);
this.chbDebug.Location = new System.Drawing.Point(682, 21);
this.chbDebug.Name = "chbDebug";
this.chbDebug.Size = new System.Drawing.Size(84, 24);
this.chbDebug.TabIndex = 247;
......@@ -435,7 +434,7 @@
this.lblStoreStatus.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblStoreStatus.ForeColor = System.Drawing.Color.Green;
this.lblStoreStatus.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.lblStoreStatus.Location = new System.Drawing.Point(917, 23);
this.lblStoreStatus.Location = new System.Drawing.Point(804, 23);
this.lblStoreStatus.Name = "lblStoreStatus";
this.lblStoreStatus.Size = new System.Drawing.Size(65, 20);
this.lblStoreStatus.TabIndex = 245;
......@@ -468,26 +467,12 @@
this.btnStop.UseVisualStyleBackColor = false;
this.btnStop.Click += new System.EventHandler(this.btnStop_Click);
//
// btnReset
//
this.btnReset.BackColor = System.Drawing.Color.White;
this.btnReset.Enabled = false;
this.btnReset.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnReset.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnReset.Location = new System.Drawing.Point(414, 12);
this.btnReset.Name = "btnReset";
this.btnReset.Size = new System.Drawing.Size(110, 40);
this.btnReset.TabIndex = 95;
this.btnReset.Text = "复位";
this.btnReset.UseVisualStyleBackColor = false;
this.btnReset.Click += new System.EventHandler(this.btnReset_Click);
//
// btnInStore
//
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(640, 12);
this.btnInStore.Location = new System.Drawing.Point(527, 12);
this.btnInStore.Name = "btnInStore";
this.btnInStore.Size = new System.Drawing.Size(110, 40);
this.btnInStore.TabIndex = 102;
......@@ -500,7 +485,7 @@
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(527, 12);
this.btnOutStore.Location = new System.Drawing.Point(414, 12);
this.btnOutStore.Name = "btnOutStore";
this.btnOutStore.Size = new System.Drawing.Size(110, 40);
this.btnOutStore.TabIndex = 101;
......@@ -594,7 +579,7 @@
this.tabPage2.Location = new System.Drawing.Point(4, 26);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
this.tabPage2.Size = new System.Drawing.Size(1315, 479);
this.tabPage2.Size = new System.Drawing.Size(1165, 519);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = " 伺服信息 ";
this.tabPage2.UseVisualStyleBackColor = true;
......@@ -873,7 +858,6 @@
this.panel1.Controls.Add(this.btnStart);
this.panel1.Controls.Add(this.btnInStore);
this.panel1.Controls.Add(this.btnStop);
this.panel1.Controls.Add(this.btnReset);
this.panel1.Location = new System.Drawing.Point(2, 1);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1169, 54);
......@@ -958,7 +942,6 @@
private System.Windows.Forms.Label lblStoreStatus;
private System.Windows.Forms.Button btnStart;
private System.Windows.Forms.Button btnStop;
private System.Windows.Forms.Button btnReset;
private System.Windows.Forms.Button btnInStore;
private System.Windows.Forms.Button btnOutStore;
private System.Windows.Forms.CheckBox chbDebug;
......
......@@ -120,9 +120,10 @@ namespace OnlineStore.AssemblyLine
ReadIOList();
//lblTrayNum.Text = "托盘编码:" + TrayManager.GetTrayNum(equipBean.DeviceID);
}
lblName.BackColor = equipBean.GetShowColor();
if (equipBean.runStatus > LineRunStatus.Wait)
{
lblName.BackColor = Color.Green;
//lblName.BackColor = Color.Green;
if (btnStart.Enabled)
{
FormStatus(true);
......@@ -130,7 +131,7 @@ namespace OnlineStore.AssemblyLine
}
else
{
lblName.BackColor = System.Drawing.Color.DodgerBlue;
//lblName.BackColor = System.Drawing.Color.DodgerBlue;
if (!btnStart.Enabled)
{
FormStatus(false);
......@@ -274,14 +275,6 @@ namespace OnlineStore.AssemblyLine
{
ReadIOList();
}
internal override void FormStatus(bool isStart)
{
btnStart.Enabled = !isStart;
btnStop.Enabled = true;
btnReset.Enabled = isStart;
btnInStore.Enabled = isStart;
btnOutStore.Enabled = isStart;
}
private void FrmIOStatus_Shown(object sender, EventArgs e)
......@@ -291,9 +284,35 @@ namespace OnlineStore.AssemblyLine
private void btnStart_Click(object sender, EventArgs e)
{
if (equipBase.runStatus.Equals(LineRunStatus.Wait))
{
LogUtil.info(equipBean.Name + "点击:启用调试");
StartDebug();
}
else
{
LogUtil.info(equipBean.Name + "点击:复位");
Reset();
}
}
internal override void FormStatus(bool isStart)
{
btnStart.Enabled = true;
btnStop.Enabled = true;
btnInStore.Enabled = isStart;
btnOutStore.Enabled = isStart;
btnStop.Enabled = true;
if (isStart)
{
btnStart.Text = "复位";
}
else
{
btnStart.Text = "启动调试";
}
//btnReset.Enabled = isStart;
}
private void btnStop_Click(object sender, EventArgs e)
{
LogUtil.info(equipBean.Name + "点击:停止");
......
......@@ -103,7 +103,7 @@
this.lblDebug.AutoSize = true;
this.lblDebug.BackColor = System.Drawing.Color.Transparent;
this.lblDebug.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblDebug.Location = new System.Drawing.Point(183, 4);
this.lblDebug.Location = new System.Drawing.Point(182, 4);
this.lblDebug.Name = "lblDebug";
this.lblDebug.Size = new System.Drawing.Size(51, 20);
this.lblDebug.TabIndex = 5;
......@@ -117,9 +117,9 @@
this.lblBox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblBox.ForeColor = System.Drawing.Color.Black;
this.lblBox.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.lblBox.Location = new System.Drawing.Point(2, 75);
this.lblBox.Location = new System.Drawing.Point(2, 73);
this.lblBox.Name = "lblBox";
this.lblBox.Size = new System.Drawing.Size(247, 24);
this.lblBox.Size = new System.Drawing.Size(246, 24);
this.lblBox.TabIndex = 6;
this.lblBox.Text = "BOX状态:";
this.lblBox.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
......@@ -133,7 +133,7 @@
this.panName.Controls.Add(this.lblName);
this.panName.Location = new System.Drawing.Point(1, 1);
this.panName.Name = "panName";
this.panName.Size = new System.Drawing.Size(248, 28);
this.panName.Size = new System.Drawing.Size(247, 28);
this.panName.TabIndex = 7;
//
// EquipControl
......
......@@ -126,39 +126,13 @@ namespace OnlineStore.AssemblyLine
{
lblMoveInfo.Text = "暂无托盘横移";
}
SetItemColor(equip.runStatus, equip.alarmType);
this.BackColor = equip.GetShowColor();
//SetItemColor(equip.runStatus, equip.alarmType);
}
public EquipControl()
{
InitializeComponent();
}
private void SetItemColor( LineRunStatus runStatus, LineAlarmType alarmType)
{
if (runStatus.Equals(LineRunStatus.Wait))
{
this.BackColor= Color.White ;
}
else if (alarmType.Equals(LineAlarmType.IoSingleTimeOut))
{
this.BackColor = Color.LightCoral;
}
else if (alarmType.Equals(LineAlarmType.None).Equals(false))
{
this.BackColor = Color.Red;
}
else if (runStatus.Equals(LineRunStatus.HomeMoving) || runStatus.Equals(LineRunStatus.Reset))
{
this.BackColor = Color.Orange;
}
else if (runStatus.Equals(LineRunStatus.Busy))
{
this.BackColor = Color.LimeGreen;
}
else if (runStatus.Equals(LineRunStatus.Runing))
{
this.BackColor = Color.LightBlue;
}
}
private void EquipControl_Load(object sender, EventArgs e)
{
//lblName.Text = "";
......
......@@ -67,10 +67,9 @@
<Compile Include="agvClient\AgvClient.cs" />
<Compile Include="assemblyLine\FeedingEquip_OutStore.cs" />
<Compile Include="assemblyLine\HY\HYEquipBase.cs" />
<Compile Include="assemblyLine\HY\HY_C1_SLStation.cs" />
<Compile Include="assemblyLine\HY\HY_OutLine.cs" />
<Compile Include="assemblyLine\HY\HY_C1Line.cs" />
<Compile Include="assemblyLine\LineBean_Shunt2.cs" />
<Compile Include="assemblyLine\LineBean_Shunt.cs" />
<Compile Include="assemblymanager\ALineManager.cs" />
<Compile Include="assemblyLine\FeedingEquip_InStore.cs" />
<Compile Include="assemblyLine\FeedingEquip.cs" />
......
......@@ -62,7 +62,7 @@ PRO,0,上料模块T3-C1-托盘-RFID-IP,PRO_RFIP_300,192.168.210.119,,
DI,0,急停,SuddenStop_BTN,0,HC,X00
DI,0,复位,Reset_BTN,1,HC,X01
DI,0,气压检测1,Airpressure_Check,2,HC,X02
DI,217,C7-HY17阻挡托盘检测,C7-HY17阻挡托盘检测,3,HC,X03
DI,217,C7-HY17阻挡托盘检测,HY_StopTray_Check,3,HC,X03
DI,217,HY17横移托盘检测,HY_TrayCheck,4,HC,X04
DI,217,HY17横移顶升上升端,HY_TopCylinder_UP,5,HC,X05
DI,217,HY17横移顶升下降端,HY_TopCylinder_Down,6,HC,X06
......@@ -1058,8 +1058,8 @@ DO,205,C2-HY5阻挡下降,HY_StopDown,421,HC,Y421
DO,207,HY7横移电机正转,HY_LineRun,422,HC,Y422
DO,207,HY7横移顶升上升,HY_TopCylinder_UP,423,HC,Y423
DO,207,HY7横移顶升下降,HY_TopCylinder_Down,424,HC,Y424
DO,207,C3-HY7阻挡下降,HY_StopCylinder_Up,425,HC,Y425
DO,207,C8-HY7阻挡下降,HY_StopCylinder_Down,426,HC,Y426
DO,207,C3-HY7阻挡下降,HY_StopDown,425,HC,Y425
DO,207,C8-HY7阻挡下降,HY_SideStopDown,426,HC,Y426
DO,210,HY10横移电机正转,HY_LineRun,427,HC,Y427
DO,210,HY10前阻挡下降,HY_FrontStopDown,428,HC,Y428
DO,210,HY10横移顶升上升,HY_TopCylinder_UP,429,HC,Y429
......@@ -1101,10 +1101,10 @@ DI,17,D9-2横移后退端,BeforeAfterCylinder_After,525,HC,X525
DI,17,D9-2夹料气缸料盘检测,ClampCylinder_Check,526,HC,X526
DI,17,D9-2夹料放松端,ClampCylinder_Relax,527,HC,X527
DI,17,D9-2升降上升端,UpDownCylinder_Up,528,HC,X528
DI,17,D9-2升降下降端,StopCheck1,529,HC,X529
DI,17,D9-2升降下降端,UpDownCylinder_Down,529,HC,X529
DI,20,D10-1阻挡1托盘检测,StopCheck2,530,HC,X530
DI,20,D10-1阻挡2托盘检测,TopCylinder_UP,531,HC,X531
DI,20,D10-1顶升上升端,TopCylinder_Down,532,HC,X532
DI,20,D10-1顶升上升端,TopCylinder_Up,532,HC,X532
DI,20,D10-1顶升下降端,TopCylinder_Down,533,HC,X533
DI,20,D10-1横移前进端,BeforeAfterCylinder_Before,534,HC,X534
DI,20,D10-1横移后退端,BeforeAfterCylinder_After,535,HC,X535
......
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,0,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
PRO,0,HY所在流水线,LineName,C1,,
PRO,0,HY工位对应的取放料设备,WorkDevice,101,,
PRO,0,HY是否是托盘横移入口,IsSideWayIn,1,,
PRO,0,HY是否是托盘横移出口,IsSideWayOut,0,,
PRO,0,HY是否是托盘进入出料线入口,IsOutLineIn,0,,
PRO,0,HY是否是托盘离开出料线出口,IsOutLineOut,0,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
......
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,0,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
PRO,0,HY所在流水线,LineName,C1,,
PRO,0,HY工位对应的取放料设备,WorkDevice,102,,
PRO,0,HY是否是托盘横移入口,IsSideWayIn,0,,
PRO,0,HY是否是托盘横移出口,IsSideWayOut,1,,
PRO,0,HY是否是托盘进入出料线入口,IsOutLineIn,0,,
PRO,0,HY是否是托盘离开出料线出口,IsOutLineOut,0,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
......
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,0,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
PRO,0,HY所在流水线,LineName,C1,,
PRO,0,HY工位对应的取放料设备,WorkDevice,0,,
PRO,0,HY是否是托盘横移入口,IsSideWayIn,0,,
PRO,0,HY是否是托盘横移出口,IsSideWayOut,1,,
PRO,0,HY是否是托盘进入出料线入口,IsOutLineIn,0,,
PRO,0,HY是否是托盘离开出料线出口,IsOutLineOut,0,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
......
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,0,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
PRO,0,HY所在流水线,LineName,C1,,
PRO,0,HY工位对应的取放料设备,WorkDevice,0,,
PRO,0,HY是否是托盘横移入口,IsSideWayIn,1,,
PRO,0,HY是否是托盘横移出口,IsSideWayOut,0,,
PRO,0,HY是否是托盘进入出料线入口,IsOutLineIn,1,,
PRO,0,HY是否是托盘离开出料线出口,IsOutLineOut,0,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
......
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,0,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
PRO,0,HY所在流水线,LineName,C8,,
PRO,0,HY工位对应的取放料设备,WorkDevice,0,,
PRO,0,HY是否是托盘横移入口,IsSideWayIn,0,,
PRO,0,HY是否是托盘横移出口,IsSideWayOut,0,,
PRO,0,HY是否是托盘进入出料线入口,IsOutLineIn,0,,
PRO,0,HY是否是托盘离开出料线出口,IsOutLineOut,0,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
......
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,0,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
PRO,0,HY所在流水线,LineName,C1,,
PRO,0,HY工位对应的取放料设备,WorkDevice,0,,
PRO,0,HY是否是托盘横移入口,IsSideWayIn,0,,
PRO,0,HY是否是托盘横移出口,IsSideWayOut,0,,
PRO,0,HY是否是托盘进入出料线入口,IsOutLineIn,1,,
PRO,0,HY是否是托盘离开出料线出口,IsOutLineOut,0,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
......
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,0,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
PRO,0,HY所在流水线,LineName,C8,,
PRO,0,HY工位对应的取放料设备,WorkDevice,0,,
PRO,0,HY是否是托盘横移入口,IsSideWayIn,0,,
PRO,0,HY是否是托盘横移出口,IsSideWayOut,0,,
PRO,0,HY是否是托盘进入出料线入口,IsOutLineIn,0,,
PRO,0,HY是否是托盘离开出料线出口,IsOutLineOut,0,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
......
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,0,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
PRO,0,HY所在流水线,LineName,C1,,
PRO,0,HY工位对应的取放料设备,WorkDevice,0,,
PRO,0,HY是否是托盘横移入口,IsSideWayIn,0,,
PRO,0,HY是否是托盘横移出口,IsSideWayOut,0,,
PRO,0,HY是否是托盘进入出料线入口,IsOutLineIn,0,,
PRO,0,HY是否是托盘离开出料线出口,IsOutLineOut,0,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
......
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,0,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
PRO,0,HY所在流水线,LineName,C1,,
PRO,0,HY工位对应的取放料设备,WorkDevice,0,,
PRO,0,HY是否是托盘横移入口,IsSideWayIn,0,,
PRO,0,HY是否是托盘横移出口,IsSideWayOut,0,,
PRO,0,HY是否是托盘进入出料线入口,IsOutLineIn,0,,
PRO,0,HY是否是托盘离开出料线出口,IsOutLineOut,1,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
......
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,1,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
PRO,0,HY所在流水线,LineName,C8,,
PRO,0,HY工位对应的取放料设备,WorkDevice,0,,
PRO,0,HY是否是托盘横移入口,IsSideWayIn,0,,
PRO,0,HY是否是托盘横移出口,IsSideWayOut,0,,
PRO,0,HY是否是托盘进入出料线入口,IsOutLineIn,0,,
PRO,0,HY是否是托盘离开出料线出口,IsOutLineOut,0,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
......
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,0,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
PRO,0,HY所在流水线,LineName,C1,,
PRO,0,HY工位对应的取放料设备,WorkDevice,0,,
PRO,0,HY是否是托盘横移入口,IsSideWayIn,0,,
PRO,0,HY是否是托盘横移出口,IsSideWayOut,0,,
PRO,0,HY是否是托盘进入出料线入口,IsOutLineIn,0,,
PRO,0,HY是否是托盘离开出料线出口,IsOutLineOut,1,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
......
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,1,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
PRO,0,HY所在流水线,LineName,C9,,
PRO,0,HY工位对应的取放料设备,WorkDevice,0,,
PRO,0,HY是否是托盘横移入口,IsSideWayIn,0,,
PRO,0,HY是否是托盘横移出口,IsSideWayOut,0,,
PRO,0,HY是否是托盘进入出料线入口,IsOutLineIn,0,,
PRO,0,HY是否是托盘离开出料线出口,IsOutLineOut,0,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
......
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,0,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
PRO,0,HY所在流水线,LineName,C1,,
PRO,0,HY工位对应的取放料设备,WorkDevice,0,,
PRO,0,HY是否是托盘横移入口,IsSideWayIn,0,,
PRO,0,HY是否是托盘横移出口,IsSideWayOut,0,,
PRO,0,HY是否是托盘进入出料线入口,IsOutLineIn,1,,
PRO,0,HY是否是托盘离开出料线出口,IsOutLineOut,0,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
......
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,0,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
PRO,0,HY所在流水线,LineName,C9,,
PRO,0,HY工位对应的取放料设备,WorkDevice,0,,
PRO,0,HY是否是托盘横移入口,IsSideWayIn,0,,
PRO,0,HY是否是托盘横移出口,IsSideWayOut,0,,
PRO,0,HY是否是托盘进入出料线入口,IsOutLineIn,0,,
PRO,0,HY是否是托盘离开出料线出口,IsOutLineOut,0,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
......
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,0,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
PRO,0,HY所在流水线,LineName,C1,,
PRO,0,HY工位对应的取放料设备,WorkDevice,0,,
PRO,0,HY是否是托盘横移入口,IsSideWayIn,1,,
PRO,0,HY是否是托盘横移出口,IsSideWayOut,0,,
PRO,0,HY是否是托盘进入出料线入口,IsOutLineIn,0,,
PRO,0,HY是否是托盘离开出料线出口,IsOutLineOut,0,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
......
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,0,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
PRO,0,HY所在流水线,LineName,C1,,
PRO,0,HY工位对应的取放料设备,WorkDevice,0,,
PRO,0,HY是否是托盘横移入口,IsSideWayIn,0,,
PRO,0,HY是否是托盘横移出口,IsSideWayOut,1,,
PRO,0,HY是否是托盘进入出料线入口,IsOutLineIn,1,,
PRO,0,HY是否是托盘离开出料线出口,IsOutLineOut,0,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
......
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,1,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
PRO,0,HY所在流水线,LineName,C9,,
PRO,0,HY工位对应的取放料设备,WorkDevice,0,,
PRO,0,HY是否是托盘横移入口,IsSideWayIn,0,,
PRO,0,HY是否是托盘横移出口,IsSideWayOut,0,,
PRO,0,HY是否是托盘进入出料线入口,IsOutLineIn,0,,
PRO,0,HY是否是托盘离开出料线出口,IsOutLineOut,0,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
......
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,0,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
PRO,0,HY所在流水线,LineName,C1,,
PRO,0,HY工位对应的取放料设备,WorkDevice,0,,
PRO,0,HY是否是托盘横移入口,IsSideWayIn,1,,
PRO,0,HY是否是托盘横移出口,IsSideWayOut,0,,
PRO,0,HY是否是托盘进入出料线入口,IsOutLineIn,0,,
PRO,0,HY是否是托盘离开出料线出口,IsOutLineOut,0,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
......
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,0,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
PRO,0,HY所在流水线,LineName,C1,,
PRO,0,HY工位对应的取放料设备,WorkDevice,0,,
PRO,0,HY是否是托盘横移入口,IsSideWayIn,0,,
PRO,0,HY是否是托盘横移出口,IsSideWayOut,1,,
PRO,0,HY是否是托盘进入出料线入口,IsOutLineIn,0,,
PRO,0,HY是否是托盘离开出料线出口,IsOutLineOut,0,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
......
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,0,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
PRO,0,HY所在流水线,LineName,C1,,
PRO,0,HY工位对应的取放料设备,WorkDevice,104,,
PRO,0,HY是否是托盘横移入口,IsSideWayIn,1,,
PRO,0,HY是否是托盘横移出口,IsSideWayOut,0,,
PRO,0,HY是否是托盘进入出料线入口,IsOutLineIn,0,,
PRO,0,HY是否是托盘离开出料线出口,IsOutLineOut,0,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
......
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,0,,
PRO,0,是否使用伺服,UpDownUseAxis,0,,
PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,
PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,
PRO,0,HY所在流水线,LineName,C1,,
PRO,0,HY工位对应的取放料设备,WorkDevice,105,,
PRO,0,HY是否是托盘横移入口,IsSideWayIn,0,,
PRO,0,HY是否是托盘横移出口,IsSideWayOut,1,,
PRO,0,HY是否是托盘进入出料线入口,IsOutLineIn,0,,
PRO,0,HY是否是托盘离开出料线出口,IsOutLineOut,0,,
,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,100,HC,,250,1000,1000,60,80,50,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,-11000,,
......
......@@ -3,6 +3,7 @@ using OnlineStore.LoadCSVLibrary;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
......@@ -230,6 +231,22 @@ namespace OnlineStore.DeviceLibrary
LogInfo("从调试状态切换到正常状态!");
}
}
else
{
if (isDebug)
{
IsDebug = true;
//两个阻挡气缸下降
lineStatus = LineStatus.Debugging;
LogInfo("从正常状态切换到调试状态!");
}
else if (lineStatus.Equals(LineStatus.Debugging))
{
IsDebug = false;
lineStatus = LineStatus.StoreOnline;
LogInfo("从调试状态切换到正常状态!");
}
}
}
/// <summary>
......@@ -275,16 +292,16 @@ namespace OnlineStore.DeviceLibrary
{
if (DeviceID.Equals(102))
{
if (IOValue(IO_Type.FL_StopCylinder_Down1).Equals(IO_VALUE.HIGH) &&
IOValue(IO_Type.FL_StopCylinder_Down2).Equals(IO_VALUE.HIGH))
{
return true;
}
else if (rwSpan.TotalSeconds > 5 && span.TotalSeconds > 6 && span.TotalSeconds < LineManager.Config.IOSingle_TimerOut * 2)
{
IOMove(IO_Type.FL_StopCylinder_Down1, IO_VALUE.HIGH);
IOMove(IO_Type.FL_StopCylinder_Down2, IO_VALUE.HIGH);
}
// if (IOValue(IO_Type.FL_StopCylinder_Down1).Equals(IO_VALUE.HIGH) &&
//IOValue(IO_Type.FL_StopCylinder_Down2).Equals(IO_VALUE.HIGH))
// {
// return true;
// }
// else if (rwSpan.TotalSeconds > 5 && span.TotalSeconds > 6 && span.TotalSeconds < LineManager.Config.IOSingle_TimerOut * 2)
// {
// IOMove(IO_Type.FL_StopCylinder_Down1, IO_VALUE.HIGH);
// IOMove(IO_Type.FL_StopCylinder_Down2, IO_VALUE.HIGH);
// }
}
else
{
......@@ -678,5 +695,42 @@ namespace OnlineStore.DeviceLibrary
runStatus = LineRunStatus.Runing;
MoveInfo.EndMove();
}
public string GetColorDes()
{
return
"橘色:复位中\r\n" +
"蓝色:正常待机中\r\n" +
"绿色:忙碌中\r\n" +
"珊瑚色:信号超时报警\r\n" +
"红色:严重报警\r\n";
}
public Color GetShowColor()
{
if (runStatus.Equals(LineRunStatus.Wait))
{
return Color.White;
}
else if (alarmType.Equals(LineAlarmType.IoSingleTimeOut))
{
return Color.LightCoral;
}
else if (alarmType.Equals(LineAlarmType.None).Equals(false))
{
return Color.Red;
}
else if (runStatus.Equals(LineRunStatus.HomeMoving) || runStatus.Equals(LineRunStatus.Reset))
{
return Color.Orange;
}
else if (runStatus.Equals(LineRunStatus.Busy))
{
return Color.LimeGreen;
}
else if (runStatus.Equals(LineRunStatus.Runing))
{
return Color.LightBlue;
}
return Color.White;
}
}
}
......@@ -124,19 +124,23 @@ namespace OnlineStore.DeviceLibrary
IOMove(IO_Type.SL_Buffer_StopDown, IO_VALUE.LOW);
IOMove(IO_Type.SL_Out_StopDown, IO_VALUE.LOW);
//夹紧气缸放松
CylinderMove(null, IO_Type.SL_MoveCylinder_Tighten, IO_Type.SL_MoveCylinder_Slack);
if (Config.SidesWayNum <= 0)
CylinderMove(null, IO_Type.SL_MoveCylinder_Relax, IO_Type.SL_MoveCylinder_Work);
if (Config.DOList.ContainsKey(IO_Type.SL_RollerLine_Run))
{
CheckAndMove(IO_Type.FL_StopCylinder_Down1, IO_VALUE.LOW);
CheckAndMove(IO_Type.FL_StopCylinder_Down2, IO_VALUE.LOW);
//顶升气缸下降
CylinderMove(null, IO_Type.FL_TopCylinder_Up, IO_Type.FL_TopCylinder_Down);
}
else if (LineManager.Line.runStatus <= LineRunStatus.Wait)
{
CylinderMove(null, IO_Type.SW_LocationCylinder_Up, IO_Type.SW_LocationCylinder_Down);
CylinderMove(null, IO_Type.SW_TopCylinder_Up, IO_Type.SW_TopCylinder_Down);
IOMove(IO_Type.SL_RollerLine_Run, IO_VALUE.LOW);
}
//if (Config.SidesWayNum <= 0)
//{
// CheckAndMove(IO_Type.FL_StopCylinder_Down1, IO_VALUE.LOW);
// CheckAndMove(IO_Type.FL_StopCylinder_Down2, IO_VALUE.LOW);
// //顶升气缸下降
// CylinderMove(null, IO_Type.FL_TopCylinder_Up, IO_Type.FL_TopCylinder_Down);
//}
//else if (LineManager.Line.runStatus <= LineRunStatus.Wait)
//{
// CylinderMove(null, IO_Type.SW_LocationCylinder_Up, IO_Type.SW_LocationCylinder_Down);
// CylinderMove(null, IO_Type.SW_TopCylinder_Up, IO_Type.SW_TopCylinder_Down);
//}
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SL_Entry_StopDown, IO_VALUE.LOW));
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SL_Buffer_StopDown, IO_VALUE.LOW));
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SL_Out_StopDown, IO_VALUE.LOW));
......@@ -185,18 +189,18 @@ namespace OnlineStore.DeviceLibrary
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SL_Line_Run, IO_VALUE.LOW));
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SL_LocationSideWay_Run, IO_VALUE.LOW));
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SL_OutSideWay_Run, IO_VALUE.LOW));
CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up);
CylinderMove(MoveInfo, IO_Type.SL_OutTopCylinder_Up, IO_Type.SL_OutTopCylinder_Down);
if (Config.SidesWayNum <= 0)
{
//顶升气缸下降
CylinderMove(MoveInfo, IO_Type.FL_TopCylinder_Up, IO_Type.FL_TopCylinder_Down);
}
else if (LineManager.Line.runStatus <= LineRunStatus.Wait)
{
CylinderMove(MoveInfo, IO_Type.SW_LocationCylinder_Up, IO_Type.SW_LocationCylinder_Down);
CylinderMove(MoveInfo, IO_Type.SW_TopCylinder_Up, IO_Type.SW_TopCylinder_Down);
}
//CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up);
//if (Config.SidesWayNum <= 0)
//{
// //顶升气缸下降
// CylinderMove(MoveInfo, IO_Type.FL_TopCylinder_Up, IO_Type.FL_TopCylinder_Down);
//}
//else if (LineManager.Line.runStatus <= LineRunStatus.Wait)
//{
// CylinderMove(MoveInfo, IO_Type.SW_LocationCylinder_Up, IO_Type.SW_LocationCylinder_Down);
// CylinderMove(MoveInfo, IO_Type.SW_TopCylinder_Up, IO_Type.SW_TopCylinder_Down);
//}
break;
case LineMoveStep.FR_03_CylinderUp:
MoveInfo.NextMoveStep(LineMoveStep.FR_04_UpdownAxisHome);
......@@ -230,7 +234,7 @@ namespace OnlineStore.DeviceLibrary
{
MoveInfo.NextMoveStep(LineMoveStep.FR_05_UpdownAxis_P1);
LogInfo(MoveInfo.MoveType + ":" + MoveInfo.SLog + ":上料横移机构上升SOL");
CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up);
//CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up);
}
break;
case LineMoveStep.FR_06_CylinderGive:
......@@ -259,7 +263,7 @@ namespace OnlineStore.DeviceLibrary
LogInfo(MoveInfo.MoveType + ":" + MoveInfo.SLog + ":SL1定位气缸下降SOL,出口顶升气缸下降,夹紧气缸放松");
CylinderMove(MoveInfo, IO_Type.SL_LocationCylinder_Up, IO_Type.SL_LocationCylinder_Down);
CylinderMove(MoveInfo, IO_Type.SL_OutTopCylinder_Up, IO_Type.SL_OutTopCylinder_Down);
CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Tighten, IO_Type.SL_MoveCylinder_Slack);
CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Work, IO_Type.SL_MoveCylinder_Relax );
break;
case LineMoveStep.FR_14_TopDown:
......@@ -311,13 +315,13 @@ namespace OnlineStore.DeviceLibrary
CloseAxis(BatchAxis);
CloseAxis(UpdownAxis);
if (Config.SidesWayNum <= 0)
{
CheckAndMove(IO_Type.FL_StopCylinder_Down1, IO_VALUE.LOW);
CheckAndMove(IO_Type.FL_StopCylinder_Down2, IO_VALUE.LOW);
CheckAndMove(IO_Type.FL_TopCylinder_Down, IO_VALUE.LOW);
CheckAndMove(IO_Type.FL_TopCylinder_Up, IO_VALUE.LOW);
}
//if (Config.SidesWayNum <= 0)
//{
// CheckAndMove(IO_Type.FL_StopCylinder_Down1, IO_VALUE.LOW);
// CheckAndMove(IO_Type.FL_StopCylinder_Down2, IO_VALUE.LOW);
// CheckAndMove(IO_Type.FL_TopCylinder_Down, IO_VALUE.LOW);
// CheckAndMove(IO_Type.FL_TopCylinder_Up, IO_VALUE.LOW);
//}
CheckAndMove(IO_Type.SL_Line_Run, IO_VALUE.LOW);
CheckAndMove(IO_Type.SL_LocationSideWay_Run, IO_VALUE.LOW);
CheckAndMove(IO_Type.SL_OutLine_Run, IO_VALUE.LOW);
......@@ -473,38 +477,38 @@ namespace OnlineStore.DeviceLibrary
/// </summary>
internal override void OpenStopCylinder()
{
if (Config.SidesWayNum <= 0)
{
LogInfo("下降放料阻挡12 ,下降FL顶升气缸,上升横移机构 ");
CheckAndMove(IO_Type.FL_StopCylinder_Down1, IO_VALUE.HIGH);
CheckAndMove(IO_Type.FL_StopCylinder_Down2, IO_VALUE.HIGH);
//顶升气缸下降
CylinderMove(null, IO_Type.FL_TopCylinder_Up, IO_Type.FL_TopCylinder_Down);
}
else
{
LogInfo(" 上升横移机构 ");
}
CylinderMove(null, IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up);
//if (Config.SidesWayNum <= 0)
//{
// LogInfo("下降放料阻挡12 ,下降FL顶升气缸,上升横移机构 ");
// CheckAndMove(IO_Type.FL_StopCylinder_Down1, IO_VALUE.HIGH);
// CheckAndMove(IO_Type.FL_StopCylinder_Down2, IO_VALUE.HIGH);
// //顶升气缸下降
// CylinderMove(null, IO_Type.FL_TopCylinder_Up, IO_Type.FL_TopCylinder_Down);
//}
//else
//{
// LogInfo(" 上升横移机构 ");
//}
//CylinderMove(null, IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up);
}
internal override void CloseCylinderStop()
{
if (Config.SidesWayNum <= 0)
{
LogInfo("上升放料阻挡12,关闭顶升气缸,关闭横移上下气缸");
CheckAndMove(IO_Type.FL_StopCylinder_Down1, IO_VALUE.LOW);
CheckAndMove(IO_Type.FL_StopCylinder_Down2, IO_VALUE.LOW);
//if (Config.SidesWayNum <= 0)
//{
// LogInfo("上升放料阻挡12,关闭顶升气缸,关闭横移上下气缸");
// CheckAndMove(IO_Type.FL_StopCylinder_Down1, IO_VALUE.LOW);
// CheckAndMove(IO_Type.FL_StopCylinder_Down2, IO_VALUE.LOW);
//顶升气缸下降
CheckAndMove(IO_Type.FL_TopCylinder_Up, IO_VALUE.LOW);
CheckAndMove(IO_Type.FL_TopCylinder_Down, IO_VALUE.LOW);
}
else
{
LogInfo(" 关闭横移上下气缸");
}
CheckAndMove(IO_Type.SL_MoveCylinder_Down, IO_VALUE.LOW);
CheckAndMove(IO_Type.SL_MoveCylinder_Up, IO_VALUE.LOW);
// //顶升气缸下降
// CheckAndMove(IO_Type.FL_TopCylinder_Up, IO_VALUE.LOW);
// CheckAndMove(IO_Type.FL_TopCylinder_Down, IO_VALUE.LOW);
//}
//else
//{
// LogInfo(" 关闭横移上下气缸");
//}
//CheckAndMove(IO_Type.SL_MoveCylinder_Down, IO_VALUE.LOW);
//CheckAndMove(IO_Type.SL_MoveCylinder_Up, IO_VALUE.LOW);
}
/// <summary>
......@@ -589,7 +593,7 @@ namespace OnlineStore.DeviceLibrary
/// <returns></returns>
public bool MoveCylineIsUp()
{
if(CylinderIsOk(IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up))
//if(CylinderIsOk(IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up))
// if (IOValue(IO_Type.SL_MoveCylinder_Down).Equals(IO_VALUE.LOW) && IOValue(IO_Type.SL_MoveCylinder_Up).Equals(IO_VALUE.HIGH))
{
return true;
......
......@@ -71,450 +71,450 @@ namespace OnlineStore.DeviceLibrary
private object lockObj = "";
private void StartCheckFixture()
{
if (Monitor.TryEnter(lockObj, 100))
{
try
{
if (SecondMoveInfo.MoveType.Equals(LineMoveType.None).Equals(false))
{
LogUtil.error(Name + " StartCheckFixture " + " 不在空闲中,直接返回 ");
return;
}
if (!LineManager.Line.CanProcessLine())
{
swWaitWatch.Stop();
return;
}
//if (Monitor.TryEnter(lockObj, 100))
//{
// try
// {
// if (SecondMoveInfo.MoveType.Equals(LineMoveType.None).Equals(false))
// {
// LogUtil.error(Name + " StartCheckFixture " + " 不在空闲中,直接返回 ");
// return;
// }
// if (!LineManager.Line.CanProcessLine())
// {
// swWaitWatch.Stop();
// return;
// }
if (Config.SidesWayNum > 0)
{
if (IOValue(IO_Type.SW_TrayCheck).Equals(IO_VALUE.HIGH))
{
bool canProcess = (LineManager.Line.SwNoProcess(Config.SidesWayNum));
if (TrayManager.checkWatch(swWaitWatch, TrayManager.SwTrayWaitTime, false) && canProcess)
{
swWaitWatch.Stop();
UpdateTrayNum();
//判断是否是需要的托盘
if (CurrTrayIsNeed(currTrayNum, true))
{
SecondMoveInfo.NewMove(LineMoveType.CheckFixture, CheckParam);
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_06_TopUp);
IOMove(IO_Type.SW_StopDown, IO_VALUE.LOW);
LogUtil.info(Name + " [" + trayCount + "] 检测到SW_TrayCheck:" + SecondMoveInfo.SLog + "横移顶升气缸上升 )");
CylinderMove(SecondMoveInfo, IO_Type.SW_TopCylinder_Down, IO_Type.SW_TopCylinder_Up);
}
else
{
SMoveEnd();
}
}
}
else if (Config.SidesWayNum.Equals(2) && IOValue(IO_Type.SW_StopCheck).Equals(IO_VALUE.HIGH)
&& (DateTime.Now - lastStopDown).TotalSeconds > 3)
{
bool canProcess = (LineManager.Line.SwNoProcess(Config.SidesWayNum));
if (TrayManager.checkWatch(swWaitWatch, TrayManager.SwTrayWaitTime, false) && canProcess)
{
swWaitWatch.Stop();
lastStopDown = DateTime.Now;
SecondMoveInfo.NewMove(LineMoveType.CheckFixture, CheckParam);
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_00_Stop1Down);
LogUtil.debug(Name + " [" + trayCount + "] 检测到SW_StopCheck:" + SecondMoveInfo.SLog + "阻挡气缸下降 ,等待 SW_StopCheck=0,清理托盘RFID");
ClearTrayRFID();
IOMove(IO_Type.SW_StopDown, IO_VALUE.HIGH, 1200);
SecondMoveInfo.OneWaitCanEndStep = true;
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW_StopCheck, IO_VALUE.LOW));
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW_TrayCheck, IO_VALUE.HIGH));
}
}
else
{
swWaitWatch.Stop();
}
}
else
{
//托盘在两个阻挡内
if (IOValue(IO_Type.FL_TrayCheck).Equals(IO_VALUE.HIGH))
{
if (TrayManager.checkWatch(swWaitWatch, TrayManager.SwTrayWaitTime, true))
{
SecondMoveInfo.NewMove(LineMoveType.CheckFixture);
CheckLog("检测到FL_TrayCheck:" + SecondMoveInfo.SLog + " FL阻挡1上升)");
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_03_Stop2Down);
IOMove(IO_Type.FL_StopCylinder_Down1, IO_VALUE.LOW);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.FL_StopCylinder_Down1, IO_VALUE.LOW));
}
}
else if (IOValue(IO_Type.FL_StopCheck).Equals(IO_VALUE.HIGH))
{
if (TrayManager.checkWatch(swWaitWatch, TrayManager.SwTrayWaitTime, true))
{
//托盘在第一个阻挡处
SecondMoveInfo.NewMove(LineMoveType.CheckFixture);
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_00_Stop1Down);
CheckLog(" 检测到FL_StopCheck:" + SecondMoveInfo.SLog + " FL阻挡1下降 ,等待 FL_StopCheck=0");
IOMove(IO_Type.FL_StopCylinder_Down1, IO_VALUE.HIGH, 1200);
SecondMoveInfo.OneWaitCanEndStep = true;
//SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.FL_StopCylinder_Down1, IO_VALUE.HIGH));
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.FL_StopCheck, IO_VALUE.LOW));
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.FL_TrayCheck, IO_VALUE.HIGH));
/// SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(TrayManager.StopDownWaitTime));
}
}
else
{
swWaitWatch.Stop();
}
}
}
catch (Exception ex)
{
LogUtil.error(Name + " StartCheckFixture " + " 出错:" + ex.ToString());
}
finally
{
Monitor.Exit(lockObj);
}
}
else
{
LogUtil.error(Name + " StartCheckFixture " + "失败,未得到锁");
}
// if (Config.SidesWayNum > 0)
// {
// if (IOValue(IO_Type.SW_TrayCheck).Equals(IO_VALUE.HIGH))
// {
// bool canProcess = (LineManager.Line.SwNoProcess(Config.SidesWayNum));
// if (TrayManager.checkWatch(swWaitWatch, TrayManager.SwTrayWaitTime, false) && canProcess)
// {
// swWaitWatch.Stop();
// UpdateTrayNum();
// //判断是否是需要的托盘
// if (CurrTrayIsNeed(currTrayNum, true))
// {
// SecondMoveInfo.NewMove(LineMoveType.CheckFixture, CheckParam);
// SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_06_TopUp);
// IOMove(IO_Type.SW_StopDown, IO_VALUE.LOW);
// LogUtil.info(Name + " [" + trayCount + "] 检测到SW_TrayCheck:" + SecondMoveInfo.SLog + "横移顶升气缸上升 )");
// CylinderMove(SecondMoveInfo, IO_Type.SW_TopCylinder_Down, IO_Type.SW_TopCylinder_Up);
// }
// else
// {
// SMoveEnd();
// }
// }
// }
// else if (Config.SidesWayNum.Equals(2) && IOValue(IO_Type.SW_StopCheck).Equals(IO_VALUE.HIGH)
// && (DateTime.Now - lastStopDown).TotalSeconds > 3)
// {
// bool canProcess = (LineManager.Line.SwNoProcess(Config.SidesWayNum));
// if (TrayManager.checkWatch(swWaitWatch, TrayManager.SwTrayWaitTime, false) && canProcess)
// {
// swWaitWatch.Stop();
// lastStopDown = DateTime.Now;
// SecondMoveInfo.NewMove(LineMoveType.CheckFixture, CheckParam);
// SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_00_Stop1Down);
// LogUtil.debug(Name + " [" + trayCount + "] 检测到SW_StopCheck:" + SecondMoveInfo.SLog + "阻挡气缸下降 ,等待 SW_StopCheck=0,清理托盘RFID");
// ClearTrayRFID();
// IOMove(IO_Type.SW_StopDown, IO_VALUE.HIGH, 1200);
// SecondMoveInfo.OneWaitCanEndStep = true;
// SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW_StopCheck, IO_VALUE.LOW));
// SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW_TrayCheck, IO_VALUE.HIGH));
// }
// }
// else
// {
// swWaitWatch.Stop();
// }
// }
// else
// {
// //托盘在两个阻挡内
// if (IOValue(IO_Type.FL_TrayCheck).Equals(IO_VALUE.HIGH))
// {
// if (TrayManager.checkWatch(swWaitWatch, TrayManager.SwTrayWaitTime, true))
// {
// SecondMoveInfo.NewMove(LineMoveType.CheckFixture);
// CheckLog("检测到FL_TrayCheck:" + SecondMoveInfo.SLog + " FL阻挡1上升)");
// SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_03_Stop2Down);
// IOMove(IO_Type.FL_StopCylinder_Down1, IO_VALUE.LOW);
// SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.FL_StopCylinder_Down1, IO_VALUE.LOW));
// }
// }
// else if (IOValue(IO_Type.FL_StopCheck).Equals(IO_VALUE.HIGH))
// {
// if (TrayManager.checkWatch(swWaitWatch, TrayManager.SwTrayWaitTime, true))
// {
// //托盘在第一个阻挡处
// SecondMoveInfo.NewMove(LineMoveType.CheckFixture);
// SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_00_Stop1Down);
// CheckLog(" 检测到FL_StopCheck:" + SecondMoveInfo.SLog + " FL阻挡1下降 ,等待 FL_StopCheck=0");
// IOMove(IO_Type.FL_StopCylinder_Down1, IO_VALUE.HIGH, 1200);
// SecondMoveInfo.OneWaitCanEndStep = true;
// //SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.FL_StopCylinder_Down1, IO_VALUE.HIGH));
// SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.FL_StopCheck, IO_VALUE.LOW));
// SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.FL_TrayCheck, IO_VALUE.HIGH));
// /// SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(TrayManager.StopDownWaitTime));
// }
// }
// else
// {
// swWaitWatch.Stop();
// }
// }
// }
// catch (Exception ex)
// {
// LogUtil.error(Name + " StartCheckFixture " + " 出错:" + ex.ToString());
// }
// finally
// {
// Monitor.Exit(lockObj);
// }
//}
//else
//{
// LogUtil.error(Name + " StartCheckFixture " + "失败,未得到锁");
//}
}
protected override void CheckFixtureProcess()
{
if (!LineManager.Line.LineCanRun())
{
return;
}
if (SecondMoveInfo.IsInWait)
{
CheckWait(SecondMoveInfo);
}
if (SecondMoveInfo.IsInWait)
{
return;
}
#region 托盘检测
if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_00_Stop1Down))
{
if (Config.SidesWayNum <= 0)
{
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_03_Stop2Down);
CheckLog("托盘检测:" + SecondMoveInfo.SLog + "阻挡1上升,等待FL_TrayCheck=1 ");
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.FL_TrayCheck, IO_VALUE.HIGH));
}
else
{
TimeSpan span = DateTime.Now - SecondMoveInfo.LastSetpTime;
//去掉延迟
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_03_Stop2Down);
LogUtil.debug(Name + "托盘阻挡:" + SecondMoveInfo.SLog + "阻挡气缸上升,下降耗时(" + FormUtil.GetSpanStr(span) + "),等待SW_TrayCheck=1)");
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW_TrayCheck, IO_VALUE.HIGH));
}
}
//else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_01_FixtureCheck))
//if (!LineManager.Line.LineCanRun())
//{
// SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_02_WaitFixture);
// CheckLog("托盘检测:" + SecondMoveInfo.SLog + "再次等待SW_TrayCheck=1 :");
// SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW_TrayCheck, IO_VALUE.HIGH));
// return;
//}
//else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_02_WaitFixture))
//if (SecondMoveInfo.IsInWait)
//{
// CheckWait(SecondMoveInfo);
//}
//if (SecondMoveInfo.IsInWait)
//{
// return;
//}
//#region 托盘检测
//if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_00_Stop1Down))
//{
// if (Config.SidesWayNum <= 0)
// {
// SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_03_Stop2Down);
// CheckLog("托盘检测:" + SecondMoveInfo.SLog + "阻挡1上升,等待FL_TrayCheck=1 ");
// SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.FL_TrayCheck, IO_VALUE.HIGH));
// }
// else
// {
// TimeSpan span = DateTime.Now - SecondMoveInfo.LastSetpTime;
// //去掉延迟
// SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_03_Stop2Down);
// CheckLog("托盘检测:" + SecondMoveInfo.SLog + "阻挡气缸上升,等待SW_TrayCheck=1)");
// CheckAndMove(IO_Type.SW_StopDown, IO_VALUE.LOW);
// LogUtil.debug(Name + "托盘阻挡:" + SecondMoveInfo.SLog + "阻挡气缸上升,下降耗时(" + FormUtil.GetSpanStr(span) + "),等待SW_TrayCheck=1)");
// SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW_TrayCheck, IO_VALUE.HIGH));
// }
//}
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_03_Stop2Down))
{
UpdateTrayNum();
//出料中,需要拦盘
if (CurrTrayIsNeed(currTrayNum, true))
{
SecondMoveInfo.MoveParam = CheckParam;
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_06_TopUp);
if (Config.SidesWayNum <= 0)
{
CheckLog("托盘检测: " + SecondMoveInfo.SLog + " 顶升气缸上 升 )");
CylinderMove(SecondMoveInfo, IO_Type.FL_TopCylinder_Down, IO_Type.FL_TopCylinder_Up);
}
else
{
CylinderMove(SecondMoveInfo, IO_Type.SW_TopCylinder_Down, IO_Type.SW_TopCylinder_Up);
if (Config.SidesWayNum.Equals(2) && LineManager.Line.SwCanUpMove(3))
{
CheckLog("托盘检测:" + SecondMoveInfo.SLog + " 需要此托盘,横移顶升气缸上升,同时横移3处的顶升也可以上升 ");
LineManager.Line.CylinderMove(null, IO_Type.SW3_TopCylinder_Down, IO_Type.SW3_TopCylinder_Up);
}
else
{
CheckLog("托盘检测:" + SecondMoveInfo.SLog + " 需要此托盘,横移顶升气缸上 升 ");
}
}
}
else
{
if (Config.SidesWayNum <= 0)
{
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_15_WaitCanGo);
TrayInfo tray = TrayManager.GetTrayInfo(currTrayNum);
CheckLog(SecondMoveInfo.MoveNum + "***************上个托盘号【" + preTrayNum + "】,当前 【" + tray.ToStr() + "】没有出入料任务,放盘通过~");
//CheckLog("托盘放行 " + SecondMoveInfo.SLog + " ,移栽2,需要判断是否可以放盘通过,最多等待10000)");
CheckLog("托盘放行 " + SecondMoveInfo.SLog + " ,等待 NextStopCheck=0");
// SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.NextStopCheck, IO_VALUE.LOW));
}
else
{
CheckLog("托盘检测:不需要此托盘,写一下顶升上升,结束处理");
if (Config.SidesWayNum.Equals(2))
{
CylinderMove(null, IO_Type.SW_TopCylinder_Down, IO_Type.SW_TopCylinder_Up);
if (LineManager.Line.SwCanUpMove(3))
{
LineManager.Line.CylinderMove(null, IO_Type.SW3_TopCylinder_Down, IO_Type.SW3_TopCylinder_Up);
}
}
SMoveEnd();
}
}
}
////else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_01_FixtureCheck))
////{
//// SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_02_WaitFixture);
//// CheckLog("托盘检测:" + SecondMoveInfo.SLog + "再次等待SW_TrayCheck=1 :");
//// SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW_TrayCheck, IO_VALUE.HIGH));
////}
////else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_02_WaitFixture))
////{
//// SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_03_Stop2Down);
//// CheckLog("托盘检测:" + SecondMoveInfo.SLog + "阻挡气缸上升,等待SW_TrayCheck=1)");
//// CheckAndMove(IO_Type.SW_StopDown, IO_VALUE.LOW);
//// SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW_TrayCheck, IO_VALUE.HIGH));
////}
//else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_03_Stop2Down))
//{
// UpdateTrayNum();
// //出料中,需要拦盘
// if (CurrTrayIsNeed(currTrayNum, true))
// {
// SecondMoveInfo.MoveParam = CheckParam;
// SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_06_TopUp);
// if (Config.SidesWayNum <= 0)
// {
// CheckLog("托盘检测: " + SecondMoveInfo.SLog + " 顶升气缸上 升 )");
// CylinderMove(SecondMoveInfo, IO_Type.FL_TopCylinder_Down, IO_Type.FL_TopCylinder_Up);
// }
// else
// {
// CylinderMove(SecondMoveInfo, IO_Type.SW_TopCylinder_Down, IO_Type.SW_TopCylinder_Up);
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_06_TopUp))
{
// SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_07_LocationUp);
// CheckLog("托盘检测: " + SecondMoveInfo.SLog + " , 定位气缸上升 )");
// if (Config.SidesWayNum > 0)
// if (Config.SidesWayNum.Equals(2) && LineManager.Line.SwCanUpMove(3))
// {
// CylinderMove(SecondMoveInfo, IO_Type.SW_LocationCylinder_Down, IO_Type.SW_LocationCylinder_Up);
// CheckLog("托盘检测:" + SecondMoveInfo.SLog + " 需要此托盘,横移顶升气缸上升,同时横移3处的顶升也可以上升 ");
// LineManager.Line.CylinderMove(null, IO_Type.SW3_TopCylinder_Down, IO_Type.SW3_TopCylinder_Up);
// }
// else
// {
// CheckLog("托盘检测:" + SecondMoveInfo.SLog + " 需要此托盘,横移顶升气缸上 升 ");
// }
// }
// }
// else
// {
// if (Config.SidesWayNum <= 0)
// {
// SecondMoveInfo.NextMoveStep(LineMoveStep.MO_15_WaitCanGo);
// TrayInfo tray = TrayManager.GetTrayInfo(currTrayNum);
// CheckLog(SecondMoveInfo.MoveNum + "***************上个托盘号【" + preTrayNum + "】,当前 【" + tray.ToStr() + "】没有出入料任务,放盘通过~");
// //CheckLog("托盘放行 " + SecondMoveInfo.SLog + " ,移栽2,需要判断是否可以放盘通过,最多等待10000)");
// CheckLog("托盘放行 " + SecondMoveInfo.SLog + " ,等待 NextStopCheck=0");
// // SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.NextStopCheck, IO_VALUE.LOW));
// }
// else
// {
// CheckLog("托盘检测:不需要此托盘,写一下顶升上升,结束处理");
// if (Config.SidesWayNum.Equals(2))
// {
// CylinderMove(null, IO_Type.SW_TopCylinder_Down, IO_Type.SW_TopCylinder_Up);
// if (LineManager.Line.SwCanUpMove(3))
// {
// LineManager.Line.CylinderMove(null, IO_Type.SW3_TopCylinder_Down, IO_Type.SW3_TopCylinder_Up);
// }
// }
// SMoveEnd();
// }
// }
//}
//else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_07_LocationUp))
//{
CheckLog("托盘阻挡*************** 托盘号【" + currTrayNum + "】");
//判断盘是空盘,空盘并且编号正确才需要放料盘过去
if (MoveInfo.MoveType.Equals(LineMoveType.InStore))
{
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_11_CodeRember);
LogInfo(SecondMoveInfo.MoveNum + SecondMoveInfo.SLog + "*************** 托盘号【" + currTrayNum + "】 ,需要入料,移栽料盘");
SecondMoveInfo.EndStepWait();
if (Config.SidesWayNum > 0)
{
// CylinderMove(null, IO_Type.SW_LocationCylinder_Down, IO_Type.SW_LocationCylinder_Up);
}
}
else
{
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_200_WaitInoutParam);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(300));
// SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitFeedNoMove());
LogInfo(SecondMoveInfo.MoveNum + SecondMoveInfo.SLog + " ,托盘号【" + currTrayNum + "】需要出库,等待开始出库");
if (Config.SidesWayNum > 0)
{
//CylinderMove(null, IO_Type.SW_LocationCylinder_Down, IO_Type.SW_LocationCylinder_Up);
}
}
//else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_06_TopUp))
//{
//// SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_07_LocationUp);
//// CheckLog("托盘检测: " + SecondMoveInfo.SLog + " , 定位气缸上升 )");
//// if (Config.SidesWayNum > 0)
//// {
//// CylinderMove(SecondMoveInfo, IO_Type.SW_LocationCylinder_Down, IO_Type.SW_LocationCylinder_Up);
//// }
////}
////else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_07_LocationUp))
////{
// CheckLog("托盘阻挡*************** 托盘号【" + currTrayNum + "】");
// //判断盘是空盘,空盘并且编号正确才需要放料盘过去
// if (MoveInfo.MoveType.Equals(LineMoveType.InStore))
// {
// SecondMoveInfo.NextMoveStep(LineMoveStep.MO_11_CodeRember);
// LogInfo(SecondMoveInfo.MoveNum + SecondMoveInfo.SLog + "*************** 托盘号【" + currTrayNum + "】 ,需要入料,移栽料盘");
// SecondMoveInfo.EndStepWait();
// if (Config.SidesWayNum > 0)
// {
// // CylinderMove(null, IO_Type.SW_LocationCylinder_Down, IO_Type.SW_LocationCylinder_Up);
// }
// }
// else
// {
// SecondMoveInfo.NextMoveStep(LineMoveStep.MO_200_WaitInoutParam);
// SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(300));
// // SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitFeedNoMove());
// LogInfo(SecondMoveInfo.MoveNum + SecondMoveInfo.SLog + " ,托盘号【" + currTrayNum + "】需要出库,等待开始出库");
// if (Config.SidesWayNum > 0)
// {
// //CylinderMove(null, IO_Type.SW_LocationCylinder_Down, IO_Type.SW_LocationCylinder_Up);
// }
// }
}
//}
#endregion
//#endregion
#region 不需要托盘或移栽入库料盘完成
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_12_MoveOk))
{
if (Config.SidesWayNum > 0)
{
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_13_LoactionDown);
SInLog("托盘放行, " + SecondMoveInfo.SLog + " 托盘开始放行,环形线定位气缸下降");
CylinderMove(SecondMoveInfo, IO_Type.SW_LocationCylinder_Up, IO_Type.SW_LocationCylinder_Down);
}
else
{
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_14_TopDown);
CheckLog("托盘放行, " + SecondMoveInfo.SLog + " , 顶升气缸下降)");
CylinderMove(SecondMoveInfo, IO_Type.FL_TopCylinder_Up, IO_Type.FL_TopCylinder_Down);
}
}
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_13_LoactionDown))
{
if (Config.SidesWayNum.Equals(2))
{
//preTrayNum = currTrayNum;
CheckLog("托盘放行: 此处为环形线横移2,顶升气缸不需要下降, (托盘放行结束) ");
//#region 不需要托盘或移栽入库料盘完成
//else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_12_MoveOk))
//{
// if (Config.SidesWayNum > 0)
// {
// SecondMoveInfo.NextMoveStep(LineMoveStep.MO_13_LoactionDown);
// SInLog("托盘放行, " + SecondMoveInfo.SLog + " 托盘开始放行,环形线定位气缸下降");
// CylinderMove(SecondMoveInfo, IO_Type.SW_LocationCylinder_Up, IO_Type.SW_LocationCylinder_Down);
// }
// else
// {
// SecondMoveInfo.NextMoveStep(LineMoveStep.MO_14_TopDown);
// CheckLog("托盘放行, " + SecondMoveInfo.SLog + " , 顶升气缸下降)");
// CylinderMove(SecondMoveInfo, IO_Type.FL_TopCylinder_Up, IO_Type.FL_TopCylinder_Down);
// }
//}
//else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_13_LoactionDown))
//{
// if (Config.SidesWayNum.Equals(2))
// {
// //preTrayNum = currTrayNum;
// CheckLog("托盘放行: 此处为环形线横移2,顶升气缸不需要下降, (托盘放行结束) ");
SMoveEnd();
}
else
{
if (CylinderIsOk(IO_Type.SW_TopCylinder_Up, IO_Type.SW_TopCylinder_Down))
{
MO_15_WaitCanGo();
}
else
{
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_14_TopDown);
CheckLog("托盘放行, " + SecondMoveInfo.SLog + " ,环形线顶升气缸下降)");
CylinderMove(SecondMoveInfo, IO_Type.SW_TopCylinder_Up, IO_Type.SW_TopCylinder_Down);
}
}
}
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_14_TopDown))
{
MO_15_WaitCanGo();
}
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_15_WaitCanGo))
{
if (Config.SidesWayNum > 0)
{
if (Config.SidesWayNum.Equals(3) || Config.SidesWayNum.Equals(1))
{
CylinderMove(null, IO_Type.SW_TopCylinder_Down, IO_Type.SW_TopCylinder_Up);
}
CheckLog("托盘放行 SecondStoreMove:(托盘放行结束)横移顶升先上升 ");
SMoveEnd();
}
else
{
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_16_Stop2Down);
CheckLog("托盘放行 " + SecondMoveInfo.SLog + " ,阻挡气缸1-2下降,等待");
IOMove(IO_Type.FL_StopCylinder_Down2, IO_VALUE.HIGH);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.FL_StopCylinder_Down2, IO_VALUE.HIGH));
// SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(TrayManager.StopDownWaitTime));
}
// SecondMoveInfo.EndStepWait();
}
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_16_Stop2Down))
{
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_17_Stop2Check);
CheckLog("托盘放行 " + SecondMoveInfo.SLog + " ,等待FL_TrayCheck=0");
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.FL_TrayCheck, IO_VALUE.LOW));
// SMoveEnd();
// }
// else
// {
// if (CylinderIsOk(IO_Type.SW_TopCylinder_Up, IO_Type.SW_TopCylinder_Down))
// {
// MO_15_WaitCanGo();
// }
// else
// {
// SecondMoveInfo.NextMoveStep(LineMoveStep.MO_14_TopDown);
// CheckLog("托盘放行, " + SecondMoveInfo.SLog + " ,环形线顶升气缸下降)");
// CylinderMove(SecondMoveInfo, IO_Type.SW_TopCylinder_Up, IO_Type.SW_TopCylinder_Down);
// }
// }
//}
//else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_14_TopDown))
//{
// MO_15_WaitCanGo();
//}
//else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_15_WaitCanGo))
//{
// if (Config.SidesWayNum > 0)
// {
// if (Config.SidesWayNum.Equals(3) || Config.SidesWayNum.Equals(1))
// {
// CylinderMove(null, IO_Type.SW_TopCylinder_Down, IO_Type.SW_TopCylinder_Up);
// }
// CheckLog("托盘放行 SecondStoreMove:(托盘放行结束)横移顶升先上升 ");
// SMoveEnd();
// }
// else
// {
// SecondMoveInfo.NextMoveStep(LineMoveStep.MO_16_Stop2Down);
// CheckLog("托盘放行 " + SecondMoveInfo.SLog + " ,阻挡气缸1-2下降,等待");
// IOMove(IO_Type.FL_StopCylinder_Down2, IO_VALUE.HIGH);
// SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.FL_StopCylinder_Down2, IO_VALUE.HIGH));
// // SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(TrayManager.StopDownWaitTime));
// }
// // SecondMoveInfo.EndStepWait();
//}
//else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_16_Stop2Down))
//{
// SecondMoveInfo.NextMoveStep(LineMoveStep.MO_17_Stop2Check);
// CheckLog("托盘放行 " + SecondMoveInfo.SLog + " ,等待FL_TrayCheck=0");
// SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.FL_TrayCheck, IO_VALUE.LOW));
}
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_17_Stop2Check))
{
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_18_WaitTime);
CheckLog("托盘放行 " + SecondMoveInfo.SLog + " , 等待500ms后阻挡2上升");
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(500));
}
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_18_WaitTime))
{
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_19_StopCylinder_Back);
CheckLog("托盘放行 " + SecondMoveInfo.SLog + " ,等待托盘离开 )");
IOMove(IO_Type.FL_StopCylinder_Down2, IO_VALUE.LOW);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.FL_StopCylinder_Down2, IO_VALUE.LOW));
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(200));
}
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_19_StopCylinder_Back))
{
//preTrayNum = currTrayNum;
CheckLog("托盘放行 SecondStoreMove:(托盘放行结束) ");
SMoveEnd();
}
#endregion
//}
//else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_17_Stop2Check))
//{
// SecondMoveInfo.NextMoveStep(LineMoveStep.MO_18_WaitTime);
// CheckLog("托盘放行 " + SecondMoveInfo.SLog + " , 等待500ms后阻挡2上升");
// SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(500));
//}
//else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_18_WaitTime))
//{
// SecondMoveInfo.NextMoveStep(LineMoveStep.MO_19_StopCylinder_Back);
// CheckLog("托盘放行 " + SecondMoveInfo.SLog + " ,等待托盘离开 )");
// IOMove(IO_Type.FL_StopCylinder_Down2, IO_VALUE.LOW);
// SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.FL_StopCylinder_Down2, IO_VALUE.LOW));
// SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(200));
//}
//else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_19_StopCylinder_Back))
//{
// //preTrayNum = currTrayNum;
// CheckLog("托盘放行 SecondStoreMove:(托盘放行结束) ");
// SMoveEnd();
//}
//#endregion
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_200_WaitInoutParam))
{
if ( StartTrayOut(SecondMoveInfo.MoveParam))
{
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_201_WaitOutEnd);
}
//else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_200_WaitInoutParam))
//{
// if ( StartTrayOut(SecondMoveInfo.MoveParam))
// {
// SecondMoveInfo.NextMoveStep(LineMoveStep.MO_201_WaitOutEnd);
// }
//如果当前无料串,或者料串已离开,直接放行 托盘
// //如果当前无料串,或者料串已离开,直接放行 托盘
else if (SecondMoveInfo.IsTimeOut(30))
{
WarnMsg = SecondMoveInfo.Name + "[" + SecondMoveInfo.MoveStep + "] 等待出库移栽超时 [" + Math.Round(MoveInfo.StepSpan().TotalSeconds, 1) + "]秒";
LogUtil.error(WarnMsg + ",暂时放托盘离开");
TrayMoveOk();
}
else if (SecondMoveInfo.IsTimeOut(20))
{
WarnMsg = SecondMoveInfo.Name + "[" + SecondMoveInfo.MoveStep + "] 等待出库移栽超时 [" + Math.Round(MoveInfo.StepSpan().TotalSeconds, 1) + "]秒";
LogUtil.error(WarnMsg, DeviceID * 1000 + 21);
Alarm(LineAlarmType.IoSingleTimeOut);
}
}
// else if (SecondMoveInfo.IsTimeOut(30))
// {
// WarnMsg = SecondMoveInfo.Name + "[" + SecondMoveInfo.MoveStep + "] 等待出库移栽超时 [" + Math.Round(MoveInfo.StepSpan().TotalSeconds, 1) + "]秒";
// LogUtil.error(WarnMsg + ",暂时放托盘离开");
// TrayMoveOk();
// }
// else if (SecondMoveInfo.IsTimeOut(20))
// {
// WarnMsg = SecondMoveInfo.Name + "[" + SecondMoveInfo.MoveStep + "] 等待出库移栽超时 [" + Math.Round(MoveInfo.StepSpan().TotalSeconds, 1) + "]秒";
// LogUtil.error(WarnMsg, DeviceID * 1000 + 21);
// Alarm(LineAlarmType.IoSingleTimeOut);
// }
//}
}
private void TrayMoveOk(bool needCheck = false)
{
if (needCheck && (!SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_11_CodeRember)))
{
return;
}
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_12_MoveOk);
InLog("料盘移栽" + MoveInfo.SLog + ","+SecondMoveInfo.SLog+":托盘开始放行");
if (Config.SidesWayNum > 0)
{
if (CylinderIsOk(IO_Type.SW_LocationCylinder_Up, IO_Type.SW_LocationCylinder_Down))
{
if (Config.SidesWayNum.Equals(2))
{
//preTrayNum = currTrayNum;
CheckLog("托盘放行: 此处为环形线横移2,顶升气缸不需要下降, (托盘放行结束) ");
SMoveEnd();
}
else
{
if (CylinderIsOk(IO_Type.SW_TopCylinder_Up, IO_Type.SW_TopCylinder_Down))
{
MO_15_WaitCanGo();
}
else
{
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_14_TopDown);
CheckLog("托盘放行, " + SecondMoveInfo.SLog + " ,环形线顶升气缸下降)");
CylinderMove(SecondMoveInfo, IO_Type.SW_TopCylinder_Up, IO_Type.SW_TopCylinder_Down);
}
}
}
else
{
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_13_LoactionDown);
SInLog("托盘放行, " + SecondMoveInfo.SLog + " 托盘开始放行,环形线定位气缸下降,判断顶升是否需要同时下降");
CylinderMove(SecondMoveInfo, IO_Type.SW_LocationCylinder_Up, IO_Type.SW_LocationCylinder_Down);
//if (needCheck && (!SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_11_CodeRember)))
//{
// return;
//}
//SecondMoveInfo.NextMoveStep(LineMoveStep.MO_12_MoveOk);
//InLog("料盘移栽" + MoveInfo.SLog + ","+SecondMoveInfo.SLog+":托盘开始放行");
//if (Config.SidesWayNum > 0)
//{
// if (CylinderIsOk(IO_Type.SW_LocationCylinder_Up, IO_Type.SW_LocationCylinder_Down))
// {
// if (Config.SidesWayNum.Equals(2))
// {
// //preTrayNum = currTrayNum;
// CheckLog("托盘放行: 此处为环形线横移2,顶升气缸不需要下降, (托盘放行结束) ");
// SMoveEnd();
// }
// else
// {
// if (CylinderIsOk(IO_Type.SW_TopCylinder_Up, IO_Type.SW_TopCylinder_Down))
// {
// MO_15_WaitCanGo();
// }
// else
// {
// SecondMoveInfo.NextMoveStep(LineMoveStep.MO_14_TopDown);
// CheckLog("托盘放行, " + SecondMoveInfo.SLog + " ,环形线顶升气缸下降)");
// CylinderMove(SecondMoveInfo, IO_Type.SW_TopCylinder_Up, IO_Type.SW_TopCylinder_Down);
// }
// }
// }
// else
// {
// SecondMoveInfo.NextMoveStep(LineMoveStep.MO_13_LoactionDown);
// SInLog("托盘放行, " + SecondMoveInfo.SLog + " 托盘开始放行,环形线定位气缸下降,判断顶升是否需要同时下降");
// CylinderMove(SecondMoveInfo, IO_Type.SW_LocationCylinder_Up, IO_Type.SW_LocationCylinder_Down);
if (!Config.SidesWayNum.Equals(2))
{
CylinderMove(SecondMoveInfo, IO_Type.SW_TopCylinder_Up, IO_Type.SW_TopCylinder_Down);
}
}
}
else
{
if (CylinderIsOk(IO_Type.FL_TopCylinder_Up, IO_Type.FL_TopCylinder_Down))
{
MO_15_WaitCanGo();
}
else
{
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_14_TopDown);
CheckLog("托盘放行, " + SecondMoveInfo.SLog + " , 顶升气缸下降)");
CylinderMove(SecondMoveInfo, IO_Type.FL_TopCylinder_Up, IO_Type.FL_TopCylinder_Down);
}
}
// if (!Config.SidesWayNum.Equals(2))
// {
// CylinderMove(SecondMoveInfo, IO_Type.SW_TopCylinder_Up, IO_Type.SW_TopCylinder_Down);
// }
// }
//}
//else
//{
// if (CylinderIsOk(IO_Type.FL_TopCylinder_Up, IO_Type.FL_TopCylinder_Down))
// {
// MO_15_WaitCanGo();
// }
// else
// {
// SecondMoveInfo.NextMoveStep(LineMoveStep.MO_14_TopDown);
// CheckLog("托盘放行, " + SecondMoveInfo.SLog + " , 顶升气缸下降)");
// CylinderMove(SecondMoveInfo, IO_Type.FL_TopCylinder_Up, IO_Type.FL_TopCylinder_Down);
// }
//}
}
private void MO_15_WaitCanGo()
{
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_15_WaitCanGo);
if (Config.SidesWayNum > 0)
{
CheckLog("托盘放行 " + SecondMoveInfo.SLog + " ,等待托盘离开");
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(2000));
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW_TrayCheck, IO_VALUE.LOW));
}
else
{
CheckLog("托盘放行 " + SecondMoveInfo.SLog + " ,等待 NextStopCheck=0");
// SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.NextStopCheck, IO_VALUE.LOW));
}
//SecondMoveInfo.NextMoveStep(LineMoveStep.MO_15_WaitCanGo);
//if (Config.SidesWayNum > 0)
//{
// CheckLog("托盘放行 " + SecondMoveInfo.SLog + " ,等待托盘离开");
// SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(2000));
// SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW_TrayCheck, IO_VALUE.LOW));
//}
//else
//{
// CheckLog("托盘放行 " + SecondMoveInfo.SLog + " ,等待 NextStopCheck=0");
// // SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.NextStopCheck, IO_VALUE.LOW));
//}
}
private void SMoveEnd()
{
......@@ -783,7 +783,7 @@ namespace OnlineStore.DeviceLibrary
{
MoveInfo.NextMoveStep(LineMoveStep.FI_16_CylinderTighten);
InLog("料盘移栽" + MoveInfo.SLog + ":上料横移机构夹紧");
CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Slack, IO_Type.SL_MoveCylinder_Tighten);
CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Relax, IO_Type.SL_MoveCylinder_Work);
}
else if (MoveInfo.MoveStep.Equals(LineMoveStep.FI_16_CylinderTighten))
{
......@@ -803,11 +803,11 @@ namespace OnlineStore.DeviceLibrary
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000));
LastWidth = GetWidth();
InLog("料盘移栽" + MoveInfo.SLog + ":提升伺服运动到P3,盘宽【" + LastWidth + "】,横移气缸上升 ");
if (!CylinderIsOk(IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up))
{
CylinderMove(null, IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up);
}
else
//if (!CylinderIsOk(IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up))
//{
// CylinderMove(null, IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up);
//}
//else
{
CylinderMove(null, IO_Type.SL_MoveCylinder_Take, IO_Type.SL_MoveCylinder_Give);
}
......@@ -826,7 +826,7 @@ namespace OnlineStore.DeviceLibrary
{
MoveInfo.NextMoveStep(LineMoveStep.FI_20_SaveSize);
InLog("料盘移栽" + MoveInfo.SLog + ":上料横移气缸放料SOL前先上升横移气缸");
CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up);
//CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up);
}
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(500));
LastHeight = GetHeight();
......@@ -884,7 +884,6 @@ namespace OnlineStore.DeviceLibrary
{
MoveInfo.NextMoveStep(LineMoveStep.FI_20_SaveSize);
InLog("料盘移栽" + MoveInfo.SLog + ":上料横移气缸放料SOL前先上升横移气缸");
CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up);
}
}
else if (MoveInfo.MoveStep.Equals(LineMoveStep.FI_21_CylinderGive))
......@@ -939,7 +938,7 @@ namespace OnlineStore.DeviceLibrary
if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_11_CodeRember))
{
MoveInfo.NextMoveStep(LineMoveStep.FI_26_CylinderDown);
CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Up, IO_Type.SL_MoveCylinder_Down);
//CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Up, IO_Type.SL_MoveCylinder_Down);
if (Config.SidesWayNum > 0)
{
// CylinderMove(MoveInfo, IO_Type.SW_LocationCylinder_Down, IO_Type.SW_LocationCylinder_Up);
......@@ -966,15 +965,15 @@ namespace OnlineStore.DeviceLibrary
{
MoveInfo.NextMoveStep(LineMoveStep.FI_27_CylinderRelax);
InLog("料盘移栽" + MoveInfo.SLog + ":上料气缸放松");
CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Tighten, IO_Type.SL_MoveCylinder_Slack);
CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Work, IO_Type.SL_MoveCylinder_Relax);
ClearTimeoutAlarm("等待空托盘到达超时");
}
else if (MoveInfo.MoveStep.Equals(LineMoveStep.FI_27_CylinderRelax))
{
MoveInfo.NextMoveStep(LineMoveStep.FI_28_WaitCylinderUp);
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(100));
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SL_MoveCylinder_Down, IO_VALUE.LOW));
CylinderMove(null, IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up);
//MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SL_MoveCylinder_Down, IO_VALUE.LOW));
//CylinderMove(null, IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up);
TrayPreMove();
}
else if (MoveInfo.MoveStep.Equals(LineMoveStep.FI_28_WaitCylinderUp))
......@@ -1164,7 +1163,7 @@ namespace OnlineStore.DeviceLibrary
{
MoveInfo.NextMoveStep(LineMoveStep.FI_29_CylinderUp);
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000));
CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up);
//CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up);
//如果是小料盘,且升降轴需要上升,
string upLog = "";
if (LastWidth.Equals(7) && LastHeight.Equals(8))
......@@ -1179,21 +1178,21 @@ namespace OnlineStore.DeviceLibrary
if (Config.SidesWayNum > 0)
{
InLog(MoveInfo.SLog + " 提前下降顶升气缸 ,环形线定位气缸先下降");
CylinderMove(null, IO_Type.SW_LocationCylinder_Up, IO_Type.SW_LocationCylinder_Down);
if (Config.SidesWayNum.Equals(1))
{
Task.Factory.StartNew(delegate
{
//需要等待500再下降
Thread.Sleep(500);
CylinderMove(null, IO_Type.SW_TopCylinder_Up, IO_Type.SW_TopCylinder_Down);
});
}
//CylinderMove(null, IO_Type.SW_LocationCylinder_Up, IO_Type.SW_LocationCylinder_Down);
//if (Config.SidesWayNum.Equals(1))
//{
// Task.Factory.StartNew(delegate
// {
// //需要等待500再下降
// Thread.Sleep(500);
// CylinderMove(null, IO_Type.SW_TopCylinder_Up, IO_Type.SW_TopCylinder_Down);
// });
//}
}
else
{
InLog(MoveInfo.SLog + " 提前顶升下降, 顶升气缸下降)");
CylinderMove(null, IO_Type.FL_TopCylinder_Up, IO_Type.FL_TopCylinder_Down);
//CylinderMove(null, IO_Type.FL_TopCylinder_Up, IO_Type.FL_TopCylinder_Down);
}
}
private void FI_BatchAxisDown()
......@@ -1276,7 +1275,7 @@ namespace OnlineStore.DeviceLibrary
//有料盘
MoveInfo.NextMoveStep(LineMoveStep.FI_11_CylinderUp);
InLog("料盘移栽" + MoveInfo.SLog + ":上料机构检测到料盘,横移机构上升");
CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up);
//CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up);
}
}
private Task ScanCodeTask = null;
......
......@@ -19,17 +19,17 @@ namespace OnlineStore.DeviceLibrary
internal bool CanStartCheckOut(int trayNum)
{
preTrayNum = currTrayNum;
currTrayNum = trayNum;
if (CurrTrayIsNeed(currTrayNum, true))
{
SecondMoveInfo.NewMove(LineMoveType.CheckFixture, CheckParam);
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_06_TopUp);
CheckLog("检测到SW_TrayCheck:" + SecondMoveInfo.SLog + "横移顶升气缸上升 )");
CylinderMove(SecondMoveInfo, IO_Type.SW_TopCylinder_Down, IO_Type.SW_TopCylinder_Up);
return true;
}
else
//preTrayNum = currTrayNum;
//currTrayNum = trayNum;
//if (CurrTrayIsNeed(currTrayNum, true))
//{
// SecondMoveInfo.NewMove(LineMoveType.CheckFixture, CheckParam);
// SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_06_TopUp);
// CheckLog("检测到SW_TrayCheck:" + SecondMoveInfo.SLog + "横移顶升气缸上升 )");
// CylinderMove(SecondMoveInfo, IO_Type.SW_TopCylinder_Down, IO_Type.SW_TopCylinder_Up);
// return true;
//}
//else
{
// currTrayNum = num;
return false;
......@@ -118,7 +118,7 @@ namespace OnlineStore.DeviceLibrary
if (MoveInfo.MoveParam.PlateW.Equals(7))
{
//升降先下降
CylinderMove(null, IO_Type.SL_MoveCylinder_Up, IO_Type.SL_MoveCylinder_Down);
//CylinderMove(null, IO_Type.SL_MoveCylinder_Up, IO_Type.SL_MoveCylinder_Down);
}
int targetP = Config.GetUpdownP2Detial(MoveInfo.MoveParam.PlateH, MoveInfo.MoveParam.PlateW);
UpdownAxis.AbsMove(MoveInfo, targetP, Config.UpdownAxis_P2Speed);
......@@ -130,12 +130,12 @@ namespace OnlineStore.DeviceLibrary
}
else
{
CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up);
//CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up);
}
}
else
{
CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up);
//CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up);
}
BatchAxis.AbsMove(MoveInfo, targetPosition, Config.BatchAxis_P2Speed);
return true;
......@@ -553,7 +553,7 @@ namespace OnlineStore.DeviceLibrary
if (MoveInfo.MoveParam.PlateW.Equals(7))
{
//升降先下降
CylinderMove(null, IO_Type.SL_MoveCylinder_Up, IO_Type.SL_MoveCylinder_Down);
//CylinderMove(null, IO_Type.SL_MoveCylinder_Up, IO_Type.SL_MoveCylinder_Down);
}
UpdownAxis.AbsMove(MoveInfo, targetP, Config.UpdownAxis_P2Speed);
......@@ -571,7 +571,7 @@ namespace OnlineStore.DeviceLibrary
{
MoveInfo.NextMoveStep(LineMoveStep.FO_211_AxisDownMove);
OutLog(outType + MoveInfo.SLog + ":上料横移机构取料端 前先上升横移气缸");
CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up);
//CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up);
}
}
}
......@@ -600,22 +600,23 @@ namespace OnlineStore.DeviceLibrary
{
MoveInfo.NextMoveStep(LineMoveStep.FO_215_CylinderTighten);
OutLog(outType + MoveInfo.SLog + ":上料气缸夹紧");
CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Slack, IO_Type.SL_MoveCylinder_Tighten);
CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Relax, IO_Type.SL_MoveCylinder_Work);
}
else if (MoveInfo.MoveStep.Equals(LineMoveStep.FO_215_CylinderTighten))
{
MoveInfo.NextMoveStep(LineMoveStep.FO_216_CylinderUp);
OutLog(outType + MoveInfo.SLog + ":上料横移机构上升");
CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up);
if (Config.SidesWayNum.Equals(3) && MoveInfo.MoveParam.PlateW.Equals(7))
{
InLog(MoveInfo.SLog + " 提前下降顶升气缸 ,环形线定位气缸先下降,顶升气缸同时下降");
CylinderMove(null, IO_Type.SW_LocationCylinder_Up, IO_Type.SW_LocationCylinder_Down);
CylinderMove(SecondMoveInfo, IO_Type.SW_TopCylinder_Up, IO_Type.SW_TopCylinder_Down);
//七寸时伺服可以先动作
UpdownAxis.AbsMove(MoveInfo, Config.UpDownAxisP1, Config.UpdownAxis_P1Speed);
}
// TODO
//CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up);
//if (Config.SidesWayNum.Equals(3) && MoveInfo.MoveParam.PlateW.Equals(7))
//{
// InLog(MoveInfo.SLog + " 提前下降顶升气缸 ,环形线定位气缸先下降,顶升气缸同时下降");
// CylinderMove(null, IO_Type.SW_LocationCylinder_Up, IO_Type.SW_LocationCylinder_Down);
// CylinderMove(SecondMoveInfo, IO_Type.SW_TopCylinder_Up, IO_Type.SW_TopCylinder_Down);
// //七寸时伺服可以先动作
// UpdownAxis.AbsMove(MoveInfo, Config.UpDownAxisP1, Config.UpdownAxis_P1Speed);
//}
}
else if (MoveInfo.MoveStep.Equals(LineMoveStep.FO_216_CylinderUp))
{
......@@ -644,7 +645,7 @@ namespace OnlineStore.DeviceLibrary
{
MoveInfo.NextMoveStep(LineMoveStep.FO_217_UpdownAxisToP1);
OutLog(outType + MoveInfo.SLog + ":上料横移机构到放料端前,先上升横移气缸");
CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up);
//CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up);
}
}
......@@ -660,7 +661,7 @@ namespace OnlineStore.DeviceLibrary
OutStoreCount++;
MoveInfo.NextMoveStep(LineMoveStep.FO_220_CylinderSlack);
OutLog(outType + MoveInfo.SLog + ":出料横移机构放松,累积出库【" + OutStoreCount + "】盘【" + OutStoreHeight + "】mm");
CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Tighten, IO_Type.SL_MoveCylinder_Slack);
CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Work, IO_Type.SL_MoveCylinder_Relax);
}
else if (MoveInfo.MoveStep.Equals(LineMoveStep.FO_220_CylinderSlack))
......@@ -700,7 +701,7 @@ namespace OnlineStore.DeviceLibrary
{
MoveInfo.NextMoveStep(LineMoveStep.FO_221_UpdownAxisToP1);
OutLog(outType + MoveInfo.SLog + ":上料横移机构取料端 前先上升横移气缸");
CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up);
//CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up);
}
}
else if (MoveInfo.MoveStep.Equals(LineMoveStep.FO_222_CylinderTake))
......@@ -753,18 +754,18 @@ namespace OnlineStore.DeviceLibrary
private bool afterPutOk = false;
private void FO_214_CylinderDown(string outType)
{
if (CylinderIsOk(IO_Type.SL_MoveCylinder_Up, IO_Type.SL_MoveCylinder_Down))
//if (CylinderIsOk(IO_Type.SL_MoveCylinder_Up, IO_Type.SL_MoveCylinder_Down))
{
MoveInfo.NextMoveStep(LineMoveStep.FO_215_CylinderTighten);
OutLog(outType + MoveInfo.SLog + ":上料气缸夹紧");
CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Slack, IO_Type.SL_MoveCylinder_Tighten);
}
else
{
MoveInfo.NextMoveStep(LineMoveStep.FO_214_CylinderDown);
OutLog(outType + MoveInfo.SLog + ":上料横移机构下降");
CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Up, IO_Type.SL_MoveCylinder_Down);
}
CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Relax, IO_Type.SL_MoveCylinder_Work);
}
//else
//{
// MoveInfo.NextMoveStep(LineMoveStep.FO_214_CylinderDown);
// OutLog(outType + MoveInfo.SLog + ":上料横移机构下降");
// CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Up, IO_Type.SL_MoveCylinder_Down);
//}
}
private void SendOutShelfOut(string msg="")
{
......
......@@ -14,9 +14,15 @@ namespace OnlineStore.DeviceLibrary
public static HYEquipBase GetHY(string cid, HYEquip_Config config)
{
int hynum = (config.Id % 100);
List<int> workList = new List<int>() { 1, 2, 20,21 };
List<int> jNumList = new List<int>() { 10,12,17};
List<int> oNumList = new List<int>() { 5, 7, 14 };
//List<int> cNumList = new List<int>() { 10, 12, 17 };
if (workList.Contains(hynum))
{
return new HY_C1_SLStation(cid, config);
}
if (jNumList.Contains(hynum))
{
return new HY_Coveryor(cid, config);
......@@ -46,34 +52,31 @@ namespace OnlineStore.DeviceLibrary
SecondMoveInfo = new LineMoveInfo(DeviceID, "[" + Name.Trim() + "-SMove]");
UseAxis = config.UpDownUseAxis.Equals(1);
if (UseAxis)
{
//if (UseAxis)
//{
Config.UpDown_Axis.ServerOnDO = IO_Type.UpDownAxis_ServoOn;
Config.UpDown_Axis.BreakOnDO = IO_Type.UpDownAxis_BreakOn;
}
// Config.UpDown_Axis.ServerOnDO = IO_Type.UpDownAxis_ServoOn;
// Config.UpDown_Axis.BreakOnDO = IO_Type.UpDownAxis_BreakOn;
//}
UpdownAxis = new AxisBean(config.UpDown_Axis, Name);
}
public override bool Reset()
public override bool StartRun(bool isDebug = false)
{
return false;
}
public override bool StartInStoreMove(InOutParam param)
public override bool Reset()
{
return false;
}
public override bool StartOutStoreMove(InOutParam param)
protected override void ResetProcess()
{
return false;
}
public override bool StartRun(bool isDebug = false)
internal override void StopMove()
{
return false;
}
public override void StopRun()
{
}
......@@ -82,24 +85,28 @@ namespace OnlineStore.DeviceLibrary
{
}
protected override void CheckFixtureProcess()
public override bool StartInStoreMove(InOutParam param)
{
return false;
}
protected override void InStoreProcess()
public override bool StartOutStoreMove(InOutParam param)
{
return false;
}
protected override void OutStoreProcess()
protected override void CheckFixtureProcess()
{
}
protected override void ResetProcess()
protected override void InStoreProcess()
{
}
internal override void StopMove()
protected override void OutStoreProcess()
{
}
}
}
......@@ -13,5 +13,217 @@ namespace OnlineStore.DeviceLibrary
{
Name = ("_C1线HY" + (DeviceID % 100).ToString().PadLeft(2, '0') + "_").ToUpper();
}
public override bool StartRun(bool isDebug = false)
{
if (CanStartRun().Equals(false))
{
return false;
}
if (!RunAxis(true, UpdownAxis))
{
return false;
}
mainTimer.Enabled = false;
MoveInfo.EndMove();
SecondMoveInfo.EndMove();
runStatus = LineRunStatus.HomeMoving;
LogInfo("开始 原点返回 ");
MoveInfo.NewMove(LineMoveType.ReturnHome);
StartReset();
if (isDebug)
{
mainTimer.Enabled = true;
}
return true;
}
public override bool Reset()
{
StopMove();
if (!RunAxis(true, UpdownAxis))
{
return false;
}
LogInfo("开始重置: 升降轴回原点,阻挡气缸上升 ");
runStatus = LineRunStatus.Reset;
SecondMoveInfo.EndMove();
MoveInfo.NewMove(LineMoveType.Reset);
StartReset();
return true;
}
private void StartReset()
{
ResetClearData();
lineStatus = LineStatus.ResetMove;
MoveInfo.NextMoveStep(LineMoveStep.HY_R_01StopMove);
if (IsDebug)
{
IOMove(IO_Type.StopDown1, IO_VALUE.HIGH);
IOMove(IO_Type.StopDown2, IO_VALUE.HIGH);
}
else
{
IOMove(IO_Type.StopDown1, IO_VALUE.LOW);
IOMove(IO_Type.StopDown2, IO_VALUE.LOW);
}
if (IsDebug)
{
IOMove(IO_Type.HY_FrontStopDown, IO_VALUE.HIGH);
IOMove(IO_Type.HY_SideStopDown, IO_VALUE.HIGH);
IOMove(IO_Type.HY_StopDown, IO_VALUE.HIGH);
}
else
{
IOMove(IO_Type.HY_FrontStopDown, IO_VALUE.LOW);
IOMove(IO_Type.HY_SideStopDown, IO_VALUE.LOW);
IOMove(IO_Type.HY_StopDown, IO_VALUE.LOW);
}
IOMove(IO_Type.HY_LineRun, IO_VALUE.LOW);
CylinderMove(MoveInfo, IO_Type.HY_TopCylinder_UP, IO_Type.HY_TopCylinder_Down);
CylinderMove(MoveInfo, IO_Type.HY_LocationCylinder_UP, IO_Type.HY_LocationCylinder_Down);
CylinderMove(MoveInfo, IO_Type.HY_StopCylinder_Down, IO_Type.HY_StopCylinder_Up);
isInPro = false;
}
protected override void ResetProcess()
{
if (MoveInfo.IsInWait)
{
CheckWait(MoveInfo);
}
else if (SecondMoveInfo.IsInWait)
{
CheckWait(SecondMoveInfo);
}
if (!MoveInfo.IsInWait && !SecondMoveInfo.IsInWait)
{
//流水线各装置复原位,夹料气缸状态不变
//阻挡气缸全部=0
//上下气缸上升,、
//上升到位,顶升气缸下降,前后气缸回退
//复位时夹紧气缸需要发送,不然后面出入库会有问题
switch (MoveInfo.MoveStep)
{
case LineMoveStep.HY_R_01StopMove:
LogInfo(MoveInfo.MoveType + " 完成!");
runStatus = LineRunStatus.Runing;
MoveInfo.EndMove();
SecondMoveInfo.EndMove();
if (IsDebug)
{
lineStatus = LineStatus.Debugging;
}
else
{
lineStatus = LineStatus.StoreOnline;
}
break;
default: break;
}
}
}
/// <summary>
/// 停止运动
/// </summary>
internal override void StopMove()
{
//trayCheck2LowWait.Stop();
//trayCheckWait.Stop();
//如果正在出库中,需要减去托盘号
if (MoveInfo.MoveType.Equals(LineMoveType.OutStore))
{
DebugInfo("停止运动时出库执行中,减去托盘数;");
//减去需要的盘数
// TrayManager.DelNeedEmptyTrayNum();
MoveInfo.EndMove();
}
runStatus = LineRunStatus.Busy;
SecondMoveInfo.EndMove();
LogInfo("停止运动:上下气缸上升端,阻挡气缸上升 ");
//UpdownUpMove();
CylinderMove(MoveInfo, IO_Type.TopCylinder_UP, IO_Type.TopCylinder_Down);
IOMove(IO_Type.StopDown1, IO_VALUE.LOW);
IOMove(IO_Type.StopDown2, IO_VALUE.LOW);
}
public override void StopRun()
{
if (mainTimer != null)
{
mainTimer.Enabled = false;
}
StopMove();
//停止运行时,把所有IO 置零
CheckAndMove(IO_Type.StopDown1, IO_VALUE.LOW);
CheckAndMove(IO_Type.StopDown2, IO_VALUE.LOW);
CheckAndMove(IO_Type.TopCylinder_UP, IO_VALUE.LOW);
CheckAndMove(IO_Type.TopCylinder_Down, IO_VALUE.LOW);
CheckAndMove(IO_Type.BeforeAfterCylinder_Before, IO_VALUE.LOW);
CheckAndMove(IO_Type.BeforeAfterCylinder_After, IO_VALUE.LOW);
if (UseAxis.Equals(false))
{
CheckAndMove(IO_Type.UpDownCylinder_Up, IO_VALUE.LOW);
CheckAndMove(IO_Type.UpDownCylinder_Down, IO_VALUE.LOW);
}
CheckAndMove(IO_Type.ClampCylinder_Work, IO_VALUE.LOW);
CheckAndMove(IO_Type.ClampCylinder_Relax, IO_VALUE.LOW);
runStatus = LineRunStatus.Wait;
}
protected override void BaseTimerProcess()
{
if (isInSuddenDown || isNoAirCheck)
{
return;
}
BusyMoveProcess();
IOTimeOutProcess();
//判断流水线打开了才可以运行
if (SecondMoveInfo.MoveType.Equals(LineMoveType.None))
{
if (LineManager.Line.CanProcessLine())
{
// LogUtil.info("StartCheckFixture");
//StartCheckFixture();
}
}
//OutStoreListPro();
}
public override bool StartInStoreMove(InOutParam param)
{
return false;
}
public override bool StartOutStoreMove(InOutParam param)
{
return false;
}
protected override void CheckFixtureProcess()
{
}
protected override void InStoreProcess()
{
}
protected override void OutStoreProcess()
{
}
}
}
using OnlineStore.LoadCSVLibrary;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OnlineStore.DeviceLibrary
{
public class HY_C1_SLStation : HYEquipBase
{
public HY_C1_SLStation(string cid, HYEquip_Config config) : base(cid, config)
{
Name = ("_C1线THY" + (DeviceID % 100).ToString().PadLeft(2, '0') + "_").ToUpper();
}
public override bool StartRun(bool isDebug = false)
{
if (CanStartRun().Equals(false))
{
return false;
}
if (!RunAxis(true, UpdownAxis))
{
return false;
}
mainTimer.Enabled = false;
MoveInfo.EndMove();
SecondMoveInfo.EndMove();
runStatus = LineRunStatus.HomeMoving;
LogInfo("开始 原点返回 ");
MoveInfo.NewMove(LineMoveType.ReturnHome);
StartReset();
if (isDebug)
{
mainTimer.Enabled = true;
}
return true;
}
public override bool Reset()
{
StopMove();
if (!RunAxis(true, UpdownAxis))
{
return false;
}
LogInfo("开始重置: 升降轴回原点,阻挡气缸上升 ");
runStatus = LineRunStatus.Reset;
SecondMoveInfo.EndMove();
MoveInfo.NewMove(LineMoveType.Reset);
StartReset();
return true;
}
private void StartReset()
{
ResetClearData();
lineStatus = LineStatus.ResetMove;
MoveInfo.NextMoveStep(LineMoveStep.HY_R_01StopMove);
if (IsDebug)
{
IOMove(IO_Type.StopDown1, IO_VALUE.HIGH);
IOMove(IO_Type.StopDown2, IO_VALUE.HIGH);
}
else
{
IOMove(IO_Type.StopDown1, IO_VALUE.LOW);
IOMove(IO_Type.StopDown2, IO_VALUE.LOW);
}
if (IsDebug)
{
IOMove(IO_Type.HY_FrontStopDown, IO_VALUE.HIGH);
IOMove(IO_Type.HY_SideStopDown, IO_VALUE.HIGH);
IOMove(IO_Type.HY_StopDown, IO_VALUE.HIGH);
}
else
{
IOMove(IO_Type.HY_FrontStopDown, IO_VALUE.LOW);
IOMove(IO_Type.HY_SideStopDown, IO_VALUE.LOW);
IOMove(IO_Type.HY_StopDown, IO_VALUE.LOW);
}
IOMove(IO_Type.HY_LineRun, IO_VALUE.LOW);
CylinderMove(MoveInfo, IO_Type.HY_TopCylinder_UP, IO_Type.HY_TopCylinder_Down);
CylinderMove(MoveInfo, IO_Type.HY_LocationCylinder_UP, IO_Type.HY_LocationCylinder_Down);
CylinderMove(MoveInfo, IO_Type.HY_StopCylinder_Down, IO_Type.HY_StopCylinder_Up);
isInPro = false;
}
protected override void ResetProcess()
{
if (MoveInfo.IsInWait)
{
CheckWait(MoveInfo);
}
else if (SecondMoveInfo.IsInWait)
{
CheckWait(SecondMoveInfo);
}
if (!MoveInfo.IsInWait && !SecondMoveInfo.IsInWait)
{
//流水线各装置复原位,夹料气缸状态不变
//阻挡气缸全部=0
//上下气缸上升,、
//上升到位,顶升气缸下降,前后气缸回退
//复位时夹紧气缸需要发送,不然后面出入库会有问题
switch (MoveInfo.MoveStep)
{
case LineMoveStep.HY_R_01StopMove:
LogInfo(MoveInfo.MoveType + " 完成!");
runStatus = LineRunStatus.Runing;
MoveInfo.EndMove();
SecondMoveInfo.EndMove();
if (IsDebug)
{
lineStatus = LineStatus.Debugging;
}
else
{
lineStatus = LineStatus.StoreOnline;
}
break;
default: break;
}
}
}
/// <summary>
/// 停止运动
/// </summary>
internal override void StopMove()
{
//trayCheck2LowWait.Stop();
//trayCheckWait.Stop();
//如果正在出库中,需要减去托盘号
if (MoveInfo.MoveType.Equals(LineMoveType.OutStore))
{
DebugInfo("停止运动时出库执行中,减去托盘数;");
//减去需要的盘数
// TrayManager.DelNeedEmptyTrayNum();
MoveInfo.EndMove();
}
runStatus = LineRunStatus.Busy;
SecondMoveInfo.EndMove();
LogInfo("停止运动:上下气缸上升端,阻挡气缸上升 ");
//UpdownUpMove();
CylinderMove(MoveInfo, IO_Type.TopCylinder_UP, IO_Type.TopCylinder_Down);
IOMove(IO_Type.StopDown1, IO_VALUE.LOW);
IOMove(IO_Type.StopDown2, IO_VALUE.LOW);
}
public override void StopRun()
{
if (mainTimer != null)
{
mainTimer.Enabled = false;
}
StopMove();
//停止运行时,把所有IO 置零
CheckAndMove(IO_Type.StopDown1, IO_VALUE.LOW);
CheckAndMove(IO_Type.StopDown2, IO_VALUE.LOW);
CheckAndMove(IO_Type.TopCylinder_UP, IO_VALUE.LOW);
CheckAndMove(IO_Type.TopCylinder_Down, IO_VALUE.LOW);
CheckAndMove(IO_Type.BeforeAfterCylinder_Before, IO_VALUE.LOW);
CheckAndMove(IO_Type.BeforeAfterCylinder_After, IO_VALUE.LOW);
if (UseAxis.Equals(false))
{
CheckAndMove(IO_Type.UpDownCylinder_Up, IO_VALUE.LOW);
CheckAndMove(IO_Type.UpDownCylinder_Down, IO_VALUE.LOW);
}
CheckAndMove(IO_Type.ClampCylinder_Work, IO_VALUE.LOW);
CheckAndMove(IO_Type.ClampCylinder_Relax, IO_VALUE.LOW);
runStatus = LineRunStatus.Wait;
}
protected override void BaseTimerProcess()
{
if (isInSuddenDown || isNoAirCheck)
{
return;
}
BusyMoveProcess();
IOTimeOutProcess();
//判断流水线打开了才可以运行
if (SecondMoveInfo.MoveType.Equals(LineMoveType.None))
{
if (LineManager.Line.CanProcessLine())
{
// LogUtil.info("StartCheckFixture");
//StartCheckFixture();
}
}
//OutStoreListPro();
}
public override bool StartInStoreMove(InOutParam param)
{
return false;
}
public override bool StartOutStoreMove(InOutParam param)
{
return false;
}
protected override void CheckFixtureProcess()
{
}
protected override void InStoreProcess()
{
}
protected override void OutStoreProcess()
{
}
}
}
......@@ -13,5 +13,51 @@ namespace OnlineStore.DeviceLibrary
{
Name = ("_接驳台HY" + (DeviceID % 100).ToString().PadLeft(2, '0') + "_").ToUpper();
}
public override bool StartRun(bool isDebug = false)
{
return false;
}
public override bool Reset()
{
return false;
}
protected override void ResetProcess()
{
}
internal override void StopMove()
{
}
public override void StopRun()
{
}
protected override void BaseTimerProcess()
{
}
public override bool StartInStoreMove(InOutParam param)
{
return false;
}
public override bool StartOutStoreMove(InOutParam param)
{
return false;
}
protected override void CheckFixtureProcess()
{
}
protected override void InStoreProcess()
{
}
protected override void OutStoreProcess()
{
}
}
}
......@@ -11,7 +11,53 @@ namespace OnlineStore.DeviceLibrary
{
public HY_OutLine(string cid, HYEquip_Config config) : base(cid, config)
{
Name = ("_出料线HY" + (DeviceID % 100).ToString().PadLeft(2, '0') + "_").ToUpper();
Name = ("_"+config.LineName+"线HY" + (DeviceID % 100).ToString().PadLeft(2, '0') + "_").ToUpper();
}
public override bool StartRun(bool isDebug = false)
{
return false;
}
public override bool Reset()
{
return false;
}
protected override void ResetProcess()
{
}
internal override void StopMove()
{
}
public override void StopRun()
{
}
protected override void BaseTimerProcess()
{
}
public override bool StartInStoreMove(InOutParam param)
{
return false;
}
public override bool StartOutStoreMove(InOutParam param)
{
return false;
}
protected override void CheckFixtureProcess()
{
}
protected override void InStoreProcess()
{
}
protected override void OutStoreProcess()
{
}
}
}
......@@ -64,10 +64,10 @@ namespace OnlineStore.DeviceLibrary
baseConfig = lineConfig;
this.Config = lineConfig;
this.DeviceID = lineConfig.Id;
SW41_MoveInfo = new LineMoveInfo(DeviceID, "横移轨道-41");
SW23_MoveInfo = new LineMoveInfo(DeviceID, "横移轨道-23");
Shunt_MoveInfo = new LineMoveInfo(DeviceID, "分流横移1");
Shunt2_MoveInfo = new LineMoveInfo(DeviceID, "分流横移2");
//SW41_MoveInfo = new LineMoveInfo(DeviceID, "横移轨道-41");
//SW23_MoveInfo = new LineMoveInfo(DeviceID, "横移轨道-23");
//Shunt_MoveInfo = new LineMoveInfo(DeviceID, "分流横移1");
//Shunt2_MoveInfo = new LineMoveInfo(DeviceID, "分流横移2");
MoveInfo = new LineMoveInfo(DeviceID, "[流水线-Move] ");
Name = (" 流水线_" + Config.CID + " ").ToUpper();
......@@ -91,7 +91,7 @@ namespace OnlineStore.DeviceLibrary
AddDeviceName(ioList, config.IOIPList);
FeedingEquipMap.Add(config.Id, equip);
AllEquipMap.Add(config.Id, equip);
equip.TrayPEndEvent += Equip_TrayPEndEvent;
//equip.TrayPEndEvent += Equip_TrayPEndEvent;
}
foreach (MoveEquip_Config config in configList.Values)
{
......@@ -177,13 +177,12 @@ namespace OnlineStore.DeviceLibrary
addLastDI(IO_Type.Airpressure_Check, IOValue(IO_Type.Airpressure_Check));
addLastDI(IO_Type.SuddenStop_BTN, IOValue(IO_Type.SuddenStop_BTN));
addLastDI(IO_Type.Reset_BTN, IOValue(IO_Type.Reset_BTN));
addLastDI(IO_Type.Start_BTN, IOValue(IO_Type.Start_BTN));
mainTimer.Enabled = true;
IoCheckTimer.Enabled = true;
canStart = true;
AgvClient.Init();
//AgvClient.Init();
});
}
......@@ -282,15 +281,11 @@ namespace OnlineStore.DeviceLibrary
{
//如果已经转动5秒,先停止链条
TimeSpan span = DateTime.Now - StartTime;
if (span.TotalSeconds > 5)
{
LogUtil.info(Name + "链条转动超过5秒,先停止链条转动");
WriteDrivetMotorRun(IO_VALUE.LOW);
if (!DisableShunt2)
{
IOMove(IO_Type.Shunt2_StopDown1_Front, IO_VALUE.LOW );
}
}
//if (span.TotalSeconds > 5)
//{
// LogUtil.info(Name + "链条转动超过5秒,先停止链条转动");
// WriteDrivetMotorRun(IO_VALUE.LOW);
//}
if (runStatus.Equals(LineRunStatus.Wait))
{
LogUtil.error(Name + "启动过程中发现 runStatus=Wait,中断启动");
......@@ -346,34 +341,34 @@ namespace OnlineStore.DeviceLibrary
//横移轨道下降
SideWayStop();
SW23WaitTrayNum = -1;
SW41WaitTrayNum = -1;
CheckAndMove(IO_Type.SW2_StopDown, IO_VALUE.LOW);
CheckAndMove(IO_Type.SW4_StopDown, IO_VALUE.LOW);
//SideWayStop();
//SW23WaitTrayNum = -1;
//SW41WaitTrayNum = -1;
//CheckAndMove(IO_Type.SW2_StopDown, IO_VALUE.LOW);
//CheckAndMove(IO_Type.SW4_StopDown, IO_VALUE.LOW);
//定位下降
CylinderMove(MoveInfo, IO_Type.SW1_LocationCylinder_Up, IO_Type.SW1_LocationCylinder_Down);
CylinderMove(MoveInfo, IO_Type.SW4_LocationCylinder_Up, IO_Type.SW4_LocationCylinder_Down);
CylinderMove(MoveInfo, IO_Type.SW2_LocationCylinder_Up, IO_Type.SW2_LocationCylinder_Down);
CylinderMove(MoveInfo, IO_Type.SW3_LocationCylinder_Up, IO_Type.SW3_LocationCylinder_Down);
////定位下降
//CylinderMove(MoveInfo, IO_Type.SW1_LocationCylinder_Up, IO_Type.SW1_LocationCylinder_Down);
//CylinderMove(MoveInfo, IO_Type.SW4_LocationCylinder_Up, IO_Type.SW4_LocationCylinder_Down);
//CylinderMove(MoveInfo, IO_Type.SW2_LocationCylinder_Up, IO_Type.SW2_LocationCylinder_Down);
//CylinderMove(MoveInfo, IO_Type.SW3_LocationCylinder_Up, IO_Type.SW3_LocationCylinder_Down);
//顶升下降
CylinderMove(MoveInfo, IO_Type.SW2_TopCylinder_Up, IO_Type.SW2_TopCylinder_Down);
CylinderMove(MoveInfo, IO_Type.SW3_TopCylinder_Up, IO_Type.SW3_TopCylinder_Down);
////顶升下降
//CylinderMove(MoveInfo, IO_Type.SW2_TopCylinder_Up, IO_Type.SW2_TopCylinder_Down);
//CylinderMove(MoveInfo, IO_Type.SW3_TopCylinder_Up, IO_Type.SW3_TopCylinder_Down);
CylinderMove(MoveInfo, IO_Type.SW1_TopCylinder_Up, IO_Type.SW1_TopCylinder_Down);
CylinderMove(MoveInfo, IO_Type.SW4_TopCylinder_Up, IO_Type.SW4_TopCylinder_Down);
//CylinderMove(MoveInfo, IO_Type.SW1_TopCylinder_Up, IO_Type.SW1_TopCylinder_Down);
//CylinderMove(MoveInfo, IO_Type.SW4_TopCylinder_Up, IO_Type.SW4_TopCylinder_Down);
//分流模块复位
ShuntStop();
Shunt2Stop();
IOMove(IO_Type.Shunt2_StopDown1_Front, IO_VALUE.HIGH);
CylinderMove(MoveInfo, IO_Type.Shunt_TopCylinder_Up1, IO_Type.Shunt_TopCylinder_Down1);
CylinderMove(MoveInfo, IO_Type.Shunt_TopCylinder_Up2, IO_Type.Shunt_TopCylinder_Down2);
CylinderMove(MoveInfo, IO_Type.Shunt2_TopCylinder_Up1, IO_Type.Shunt2_TopCylinder_Down1);
CylinderMove(MoveInfo, IO_Type.Shunt2_TopCylinder_Up2, IO_Type.Shunt2_TopCylinder_Down2);
////分流模块复位
//ShuntStop();
//Shunt2Stop();
//IOMove(IO_Type.Shunt2_StopDown1_Front, IO_VALUE.HIGH);
//CylinderMove(MoveInfo, IO_Type.Shunt_TopCylinder_Up1, IO_Type.Shunt_TopCylinder_Down1);
//CylinderMove(MoveInfo, IO_Type.Shunt_TopCylinder_Up2, IO_Type.Shunt_TopCylinder_Down2);
//CylinderMove(MoveInfo, IO_Type.Shunt2_TopCylinder_Up1, IO_Type.Shunt2_TopCylinder_Down1);
//CylinderMove(MoveInfo, IO_Type.Shunt2_TopCylinder_Up2, IO_Type.Shunt2_TopCylinder_Down2);
}
public override bool Reset()
......@@ -413,10 +408,10 @@ namespace OnlineStore.DeviceLibrary
{
LogUtil.info(Name + "链条转动超过5秒,先停止链条转动");
WriteDrivetMotorRun(IO_VALUE.LOW);
if (!DisableShunt2)
{
IOMove(IO_Type.Shunt2_StopDown1_Front, IO_VALUE.LOW);
}
//if (!DisableShunt2)
//{
// IOMove(IO_Type.Shunt2_StopDown1_Front, IO_VALUE.LOW);
//}
}
if (runStatus.Equals(LineRunStatus.Wait))
{
......@@ -479,13 +474,13 @@ namespace OnlineStore.DeviceLibrary
MoveInfo.EndMove();
WriteDrivetMotorRun(IO_VALUE.LOW);
IOMove(IO_Type.SW4_MotorRun, IO_VALUE.LOW);
IOMove(IO_Type.SW4_TopCylinder_Down, IO_VALUE.LOW);
IOMove(IO_Type.SW4_TopCylinder_Up, IO_VALUE.LOW);
//IOMove(IO_Type.SW4_MotorRun, IO_VALUE.LOW);
//IOMove(IO_Type.SW4_TopCylinder_Down, IO_VALUE.LOW);
//IOMove(IO_Type.SW4_TopCylinder_Up, IO_VALUE.LOW);
SideWayStop();
ShuntStop();
Shunt2Stop();
//SideWayStop();
//ShuntStop();
//Shunt2Stop();
runStatus = LineRunStatus.Wait;
ledProcessTimer.Enabled = false;
......@@ -525,13 +520,13 @@ namespace OnlineStore.DeviceLibrary
MoveInfo.EndMove();
WriteDrivetMotorRun(IO_VALUE.LOW);
IOMove(IO_Type.SW4_MotorRun, IO_VALUE.LOW);
IOMove(IO_Type.SW4_TopCylinder_Down, IO_VALUE.LOW);
IOMove(IO_Type.SW4_TopCylinder_Up, IO_VALUE.LOW);
//IOMove(IO_Type.SW4_MotorRun, IO_VALUE.LOW);
//IOMove(IO_Type.SW4_TopCylinder_Down, IO_VALUE.LOW);
//IOMove(IO_Type.SW4_TopCylinder_Up, IO_VALUE.LOW);
SideWayStop();
ShuntStop();
Shunt2Stop();
//SideWayStop();
//ShuntStop();
//Shunt2Stop();
foreach (EquipBase equip in this.AllEquipMap.Values)
{
if (equip.runStatus>LineRunStatus.Wait)
......@@ -551,10 +546,10 @@ namespace OnlineStore.DeviceLibrary
public void WriteDrivetMotorRun(IO_VALUE value)
{
IOMove(IO_Type.DriveMotor_Run1, value);
IOMove(IO_Type.DriveMotor_Run2, value);
IOMove(IO_Type.DriveMotor_Run3, value);
IOMove(IO_Type.DriveMotor_Run4, value);
IOMove(IO_Type.MotorRun_C1_123, value);
IOMove(IO_Type.MotorRun_C1_4, value);
IOMove(IO_Type.MotorRun_23458, value);
IOMove(IO_Type.MotorRun_679, value);
}
......@@ -835,11 +830,11 @@ namespace OnlineStore.DeviceLibrary
default: break;
}
SideWayTimerProcess();
//SideWayTimerProcess();
ShuntTimerProcess();
//ShuntTimerProcess();
Shunt2TimerProcess();
//Shunt2TimerProcess();
}
catch (Exception ex)
{
......@@ -931,12 +926,12 @@ namespace OnlineStore.DeviceLibrary
MoveInfo.EndMove();
WriteDrivetMotorRun(IO_VALUE.LOW);
IOMove(IO_Type.SW4_MotorRun, IO_VALUE.LOW);
IOMove(IO_Type.SW4_TopCylinder_Down, IO_VALUE.LOW);
IOMove(IO_Type.SW4_TopCylinder_Up, IO_VALUE.LOW);
SideWayStop();
ShuntStop();
Shunt2Stop();
//IOMove(IO_Type.SW4_MotorRun, IO_VALUE.LOW);
//IOMove(IO_Type.SW4_TopCylinder_Down, IO_VALUE.LOW);
//IOMove(IO_Type.SW4_TopCylinder_Up, IO_VALUE.LOW);
//SideWayStop();
//ShuntStop();
//Shunt2Stop();
}
protected override void ResetProcess()
......@@ -1040,13 +1035,13 @@ namespace OnlineStore.DeviceLibrary
msg += " " + lineStatus + "\n";
msg += "alarm: " + alarmType + "\n";
msg += "Move:" + MoveInfo.MoveType + " " + MoveInfo.SLog + "\n";
msg += "横移41托盘:" + Sw41TrayNum.ToString().PadLeft(2,'0') + ":" + SW41_MoveInfo.MoveType + " " + SW41_MoveInfo.MoveStep + "\n";
msg += "横移23托盘:" + Sw23TrayNum.ToString().PadLeft(2,'0') + ":" + SW23_MoveInfo.MoveType + " " + SW23_MoveInfo.MoveStep + "\n";
//msg += "横移41托盘:" + Sw41TrayNum.ToString().PadLeft(2,'0') + ":" + SW41_MoveInfo.MoveType + " " + SW41_MoveInfo.MoveStep + "\n";
//msg += "横移23托盘:" + Sw23TrayNum.ToString().PadLeft(2,'0') + ":" + SW23_MoveInfo.MoveType + " " + SW23_MoveInfo.MoveStep + "\n";
//msg += "分流1托盘: " + ShuntTrayNum + " (" + ShuntWaitTrayNum + ")\n";
msg += "分流1: " + Shunt_MoveInfo.MoveType + " " + Shunt_MoveInfo.MoveStep +" "+ ShuntTrayNum + " (" + ShuntWaitTrayNum + ") " + "\n";
//msg += "分流2托盘: " + Shunt2TrayNum + " (" + Shunt2WaitTrayNum + ")\n";
msg += "分流2: " + Shunt2_MoveInfo.MoveType + " " + Shunt2_MoveInfo.MoveStep + " " + Shunt2TrayNum + "\n";
////msg += "分流1托盘: " + ShuntTrayNum + " (" + ShuntWaitTrayNum + ")\n";
//msg += "分流1: " + Shunt_MoveInfo.MoveType + " " + Shunt_MoveInfo.MoveStep +" "+ ShuntTrayNum + " (" + ShuntWaitTrayNum + ") " + "\n";
////msg += "分流2托盘: " + Shunt2TrayNum + " (" + Shunt2WaitTrayNum + ")\n";
//msg += "分流2: " + Shunt2_MoveInfo.MoveType + " " + Shunt2_MoveInfo.MoveStep + " " + Shunt2TrayNum + "\n";
return msg;
}
......
......@@ -26,10 +26,10 @@ namespace OnlineStore.DeviceLibrary
return false ;
}
if (LineCanRun() &&
IOManager.IOValue(IO_Type.DriveMotor_Run1, 0).Equals(IO_VALUE.HIGH) &&
IOManager.IOValue(IO_Type.DriveMotor_Run2, 0).Equals(IO_VALUE.HIGH) &&
IOManager.IOValue(IO_Type.DriveMotor_Run3, 0).Equals(IO_VALUE.HIGH) &&
IOManager.IOValue(IO_Type.DriveMotor_Run4, 0).Equals(IO_VALUE.HIGH))
IOManager.IOValue(IO_Type.MotorRun_C1_123, 0).Equals(IO_VALUE.HIGH) &&
IOManager.IOValue(IO_Type.MotorRun_C1_4, 0).Equals(IO_VALUE.HIGH) &&
IOManager.IOValue(IO_Type.MotorRun_679, 0).Equals(IO_VALUE.HIGH) &&
IOManager.IOValue(IO_Type.MotorRun_23458, 0).Equals(IO_VALUE.HIGH))
{
return true;
}
......@@ -53,12 +53,12 @@ namespace OnlineStore.DeviceLibrary
}
//若BOX和移栽都没有在等待Io的过程中则此Io超时异常可能已经处理过
if (MoveInfo.IsInWait.Equals(false) && SW41_MoveInfo.IsInWait.Equals(false) && SW23_MoveInfo.IsInWait.Equals(false))
{
LogUtil.info(Name + "清理信号超时报警【" + WarnMsg + "】 ");
alarmType = LineAlarmType.None;
SetWarnMsg("");
}
//if (MoveInfo.IsInWait.Equals(false) && SW41_MoveInfo.IsInWait.Equals(false) && SW23_MoveInfo.IsInWait.Equals(false))
//{
// LogUtil.info(Name + "清理信号超时报警【" + WarnMsg + "】 ");
// alarmType = LineAlarmType.None;
// SetWarnMsg("");
//}
}
}
catch (Exception ex)
......@@ -156,7 +156,7 @@ namespace OnlineStore.DeviceLibrary
}
else if (wait.WaitType.Equals(WaitEnum.W010_SWCanTopUp))
{
wait.IsEnd = SwCanUpMove(wait.TargetPosition);
//wait.IsEnd = SwCanUpMove(wait.TargetPosition);
}
if (wait.IsEnd)
{
......@@ -252,836 +252,6 @@ namespace OnlineStore.DeviceLibrary
#endregion
#region 横移处理-
internal int SW23WaitTrayNum = -1;
internal int SW41WaitTrayNum = -1;
internal int Sw41TrayNum = 0;
internal int Sw23TrayNum = 0;
private void Equip_TrayPEndEvent(int swNum, int trayNum)
{
try
{
if (swNum <= 0 || this.runStatus <= (LineRunStatus.Wait))
{
return;
}
if (swNum.Equals(2))
{
if (SW23_MoveInfo.MoveType.Equals(LineMoveType.None))
{
Sw23TrayNum = trayNum;
SW23_MoveInfo.NewMove(LineMoveType.InStore);
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW03_WaitTime);
SW23WaitTrayNum = -1;
SW23_SW04_WaitCanUp();
}
else
{
SW23WaitTrayNum = trayNum;
LogUtil.debug(Name+"Equip_TrayPEndEvent【" + swNum + "】【" + trayNum + "】失败,SW23_MoveInfo 忙碌中,记录 SW23WaitTrayNum=" + SW23WaitTrayNum);
}
}
else if (swNum.Equals(4))
{
if (SW41_MoveInfo.MoveType.Equals(LineMoveType.None))
{
Sw41TrayNum = trayNum;
SW41_MoveInfo.NewMove(LineMoveType.InStore);
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW03_WaitTime);
SW41WaitTrayNum = -1;
SW41_SW04_WaitCanUp();
}
else
{
SW41WaitTrayNum = trayNum;
LogUtil.debug(Name + "Equip_TrayPEndEvent【" + swNum + "】【" + trayNum + "】失败,SW41_MoveInfo 忙碌中,记录 SW41WaitTrayNum =" + SW41WaitTrayNum);
}
}
}
catch (Exception ex)
{
LogUtil.error(Name + "Equip_TrayPEndEvent出错:", ex);
}
}
/// <summary>
/// 入料三和出料四使用,判断是否可以开始处理托盘
/// 横移无处理,上料机构和出料机构判断使用
/// </summary>
internal bool SwNoProcess(int sidesWayNum)
{
//20200228修改,横移机构可以同时存在两个托盘
try
{
if (runStatus <= LineRunStatus.Wait || sidesWayNum <= 0)
{
return true;
}
if (sidesWayNum.Equals(2) && SW23WaitTrayNum < 0)
{
if (SW23_MoveInfo.MoveType.Equals(LineMoveType.None))
{
return true;
}
else if (SW23_MoveInfo.MoveStep <= (LineMoveStep.SW13_WaitTrayGo)
&& SW23_MoveInfo.MoveStep >= (LineMoveStep.SW10_WatOutFixture2)
)
{
if (CylinderIsOk(IO_Type.SW2_TopCylinder_Up, IO_Type.SW2_TopCylinder_Down))
{
return true;
}
else
{
CylinderMove(null, IO_Type.SW2_TopCylinder_Up, IO_Type.SW2_TopCylinder_Down);
}
}
}
else if (sidesWayNum.Equals(3) && SW23WaitTrayNum < 0 && runStatus <= LineRunStatus.Wait)
{
return true;
}
else if (sidesWayNum.Equals(4) && SW41WaitTrayNum < 0)
{
if (SW41_MoveInfo.MoveType.Equals(LineMoveType.None))
{
return true;
}
else if (SW41_MoveInfo.MoveStep <= (LineMoveStep.SW13_WaitTrayGo)
&& SW41_MoveInfo.MoveStep >= (LineMoveStep.SW10_WatOutFixture2))
{
if (CylinderIsOk(IO_Type.SW4_TopCylinder_Up, IO_Type.SW4_TopCylinder_Down))
{
return true;
}
else
{
CylinderMove(null, IO_Type.SW4_TopCylinder_Up, IO_Type.SW4_TopCylinder_Down);
}
}
}
else if (sidesWayNum.Equals(1) && SW41WaitTrayNum < 0 && runStatus <= LineRunStatus.Wait)
{
return true;
}
}
catch (Exception ex)
{
LogUtil.error("SwNoProcess [" + sidesWayNum + "] error :" + ex.ToString());
}
return false;
}
/// <summary>
/// 横移机构横移顶升之前判断
/// 等待横移机构是否可以开始顶升上升横移
/// </summary>
internal bool SwCanUpMove(int sidesWayNum)
{
//20200228修改,横移机构可以同时存在两个托盘
try
{
if (LineManager.Line.runStatus <= LineRunStatus.Wait || sidesWayNum <= 0)
{
return true;
}
if (sidesWayNum.Equals(3))
{
LineMoveInfo moveInfo = FeedingEquipMap[104].SecondMoveInfo;
if (IOValue(IO_Type.SW3_TrayCheck).Equals(IO_VALUE.LOW) && moveInfo.MoveType.Equals(LineMoveType.None))
{
return true;
}
}
else if (sidesWayNum.Equals(1))
{
LineMoveInfo moveInfo = FeedingEquipMap[101].SecondMoveInfo;
if (IOValue(IO_Type.SW1_TrayCheck).Equals(IO_VALUE.LOW) && moveInfo.MoveType.Equals(LineMoveType.None))
{
return true;
}
}
}
catch (Exception ex)
{
LogUtil.error("SwCanUpMove [" + sidesWayNum + "] error :" + ex.ToString());
}
return false;
}
private static LineMoveInfo SW41_MoveInfo = null;
private static LineMoveInfo SW23_MoveInfo = null;
private void SideWayStop()
{
sw23WaitWatch.Stop();
sw41WaitWatch.Stop();
SW41_MoveInfo.EndMove();
SW23_MoveInfo.EndMove();
IOMove(IO_Type.SW1_MotorRun, IO_VALUE.LOW);
IOMove(IO_Type.SW2_MotorRun, IO_VALUE.LOW);
IOMove(IO_Type.SW3_MotorRun, IO_VALUE.LOW);
IOMove(IO_Type.SW4_MotorRun, IO_VALUE.LOW);
}
private Stopwatch sw41WaitWatch = new Stopwatch();
private Stopwatch sw23WaitWatch = new Stopwatch();
private bool sdIsInprocess = false;
private DateTime sdlastProTime = DateTime.Now;
private DateTime lastSw2StopDownTime = DateTime.Now;
private DateTime lastSw4StopDownTime = DateTime.Now;
private void SideWayTimerProcess()
{
TimeSpan span = DateTime.Now - sdlastProTime;
if (sdIsInprocess && span.TotalSeconds < 5)
{
return;
}
try
{
sdIsInprocess = true;
sdlastProTime = DateTime.Now;
//流水线转动中,并且在忙碌或出入库处理中,需要处理移栽
if (!CanProcessLine())
{
sw41WaitWatch.Stop();
sw23WaitWatch.Stop();
sdIsInprocess = false;
return;
}
if (SW23_MoveInfo.MoveType.Equals(LineMoveType.None) && SW23WaitTrayNum >= 0)
{
Equip_TrayPEndEvent(2, SW23WaitTrayNum);
}
if (SW41_MoveInfo.MoveType.Equals(LineMoveType.None) && SW41WaitTrayNum >= 0)
{
Equip_TrayPEndEvent(4, SW41WaitTrayNum);
}
if (SW41_MoveInfo.MoveType.Equals(LineMoveType.None) && HYEquipMap[204].runStatus <= LineRunStatus.Wait)
{
if (IOValue(IO_Type.SW4_TrayCheck).Equals(IO_VALUE.HIGH) && IOValue(IO_Type.SW1_TrayCheck).Equals(IO_VALUE.LOW) &&
TrayManager.LineCanMoveSW(4) && TrayManager.LineCanMoveSW(1))
{
if (TrayManager.checkWatch(sw41WaitWatch, TrayManager.SwTrayWaitTime, true))
{
SW41_MoveInfo.NewMove(LineMoveType.InStore);
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW03_WaitTime);
UpateSw41TrayNum();
SWLog("横移轨道41:检测到SW4_TrayCheck,再次检测,更新托盘号 [" + Sw41TrayNum + "] ");
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW4_TrayCheck, IO_VALUE.HIGH));
}
}
else if (IOValue(IO_Type.SW4_StopCheck).Equals(IO_VALUE.HIGH) &&
IOValue(IO_Type.SW4_StopDown).Equals(IO_VALUE.LOW) &&
IOValue(IO_Type.SW4_TrayCheck).Equals(IO_VALUE.LOW) &&
IOValue(IO_Type.SW1_TrayCheck).Equals(IO_VALUE.LOW) &&
(DateTime.Now - lastSw4StopDownTime).TotalSeconds > 2 &&
TrayManager.LineCanMoveSW(4) && TrayManager.LineCanMoveSW(1))
{
if (TrayManager.checkWatch(sw41WaitWatch, TrayManager.SwTrayWaitTime, true))
{
SW41_MoveInfo.NewMove(LineMoveType.InStore);
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW00_Wait);
// UpateSw41TrayNum();
LogUtil.info(Name + "横移轨道41:检测到SW4_StopCheck, 开始处理托盘 ");
//阻挡气缸下降500毫秒然后上升
lastSw4StopDownTime = DateTime.Now;
}
}
else
{
sw41WaitWatch.Stop();
}
}
else
{
sw41WaitWatch.Stop();
SideWay41BusyProcess();
}
if (SW23_MoveInfo.MoveType.Equals(LineMoveType.None) && FeedingEquipMap[103].runStatus <= LineRunStatus.Wait)
{
//检测到阻挡夹具信号后,阻挡气缸下降,等待有夹具信号,阻挡气缸上升,
//顶升气缸上升到位,开始流水线转动,检测到出口信号后,停止转动,顶升气缸下降,阻挡4下降,盘通过
if (IOValue(IO_Type.SW2_TrayCheck).Equals(IO_VALUE.HIGH) && IOValue(IO_Type.SW3_TrayCheck).Equals(IO_VALUE.LOW) &&
TrayManager.LineCanMoveSW(2) && TrayManager.LineCanMoveSW(3))
{
if (TrayManager.checkWatch(sw23WaitWatch, TrayManager.SwTrayWaitTime, true))
{
SW23_MoveInfo.NewMove(LineMoveType.InStore);
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW03_WaitTime);
UpateSw23TrayNum();
SWLog("横移轨道23:检测到SW2_TrayCheck,再次检测,更新托盘号 [" + Sw23TrayNum + "] ");
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW2_TrayCheck, IO_VALUE.HIGH));
}
}
else if (IOValue(IO_Type.SW2_StopCheck).Equals(IO_VALUE.HIGH) &&
IOValue(IO_Type.SW2_StopDown).Equals(IO_VALUE.LOW) &&
IOValue(IO_Type.SW2_TrayCheck).Equals(IO_VALUE.LOW) &&
IOValue(IO_Type.SW3_TrayCheck).Equals(IO_VALUE.LOW) &&
(DateTime.Now - lastSw2StopDownTime).TotalSeconds > 2 &&
TrayManager.LineCanMoveSW(2) && TrayManager.LineCanMoveSW(3))
{
if (TrayManager.checkWatch(sw23WaitWatch, TrayManager.SwTrayWaitTime, true))
{
SW23_MoveInfo.NewMove(LineMoveType.InStore);
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW00_Wait);
// UpateSw23TrayNum();
LogUtil.info(Name + "横移轨道23:检测到SW2_StopCheck, 开始处理托盘 ");
//阻挡气缸下降500毫秒然后上升
lastSw2StopDownTime = DateTime.Now;
}
}
else
{
sw23WaitWatch.Stop();
}
}
else
{
sw23WaitWatch.Stop();
SideWay23BusyProcess();
}
}
catch (Exception ex)
{
LogUtil.error(Name + "SideWayTimerProcess 出错:", ex);
}
sdIsInprocess = false;
}
private void UpateSw41TrayNum()
{
Sw41TrayNum = 0;
if (HYEquipMap.ContainsKey(204))
{
HYEquipBase eq = HYEquipMap[204];
if (eq.runStatus >= LineRunStatus.HomeMoving)
{
Sw41TrayNum = eq.currTrayNum;
}
else
{
Sw41TrayNum = RFIDManager.GetTrayNum(204, true);
}
}
}
private void UpateSw23TrayNum()
{
Sw23TrayNum = 0;
if (FeedingEquipMap.ContainsKey(103))
{
FeedingEquip eq = FeedingEquipMap[103];
if (eq.runStatus >= LineRunStatus.HomeMoving)
{
Sw23TrayNum = eq.currTrayNum;
}
else
{
Sw23TrayNum = RFIDManager.GetTrayNum(103, true);
}
}
}
private void SideWay41BusyProcess()
{
if (SW41_MoveInfo.IsInWait)
{
CheckWait(SW41_MoveInfo);
}
if (SW41_MoveInfo.IsInWait)
{
return;
}
if (SW41_MoveInfo.MoveStep.Equals(LineMoveStep.SW00_Wait))
{
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW01_StopDown);
LogUtil.info(Name + "横移轨道41: 阻挡气缸下降 等待 SW4_StopCheck=0");
IOMove(IO_Type.SW4_StopDown, IO_VALUE.HIGH);
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW4_StopCheck, IO_VALUE.LOW));
//SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(TrayManager.StopDownWaitTime));
}
else if (SW41_MoveInfo.MoveStep.Equals(LineMoveStep.SW01_StopDown))
{
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW02_WaitCheckTime);
SWLog("横移轨道41: 等待横移4托盘检测信号 , SW011_WaitCheckTime ");
IOMove(IO_Type.SW4_StopDown, IO_VALUE.LOW);
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW4_TrayCheck, IO_VALUE.HIGH));
}
else if (SW41_MoveInfo.MoveStep.Equals(LineMoveStep.SW02_WaitCheckTime))
{
UpateSw41TrayNum();
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW03_WaitTime);
SWLog("横移轨道41: 等待横移4托盘检测信号 , SW012_WaitTime " + TrayManager.SwTrayWaitTime+",更新托盘号【"+Sw41TrayNum+"】");
CheckAndMove(IO_Type.SW4_StopDown, IO_VALUE.LOW);
// SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(TrayManager.SwTrayWaitTime));
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW4_TrayCheck, IO_VALUE.HIGH));
}
else if (SW41_MoveInfo.MoveStep.Equals(LineMoveStep.SW03_WaitTime))
{
if (IOValue(IO_Type.SW4_TrayCheck).Equals(IO_VALUE.HIGH))
{
SW41_SW04_WaitCanUp();
}
else
{
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW03_WaitTime);
SWLog("横移轨道41: 等待横移4托盘检测信号 , SW012_WaitTime " + TrayManager.SwTrayWaitTime);
CheckAndMove(IO_Type.SW4_StopDown, IO_VALUE.LOW);
// SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(TrayManager.SwTrayWaitTime));
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW4_TrayCheck, IO_VALUE.HIGH));
}
}
else if (SW41_MoveInfo.MoveStep.Equals(LineMoveStep.SW04_WaitCanUp))
{
SW41_SW05_LocationDown();
}
else if (SW41_MoveInfo.MoveStep.Equals(LineMoveStep.SW05_LocationDown))
{
SW41_SW06_TopCylinderUp();
}
else if (SW41_MoveInfo.MoveStep.Equals(LineMoveStep.SW06_TopCylinderUp))
{
SW41_SW07_WaitNoTray();
}
else if (SW41_MoveInfo.MoveStep.Equals(LineMoveStep.SW07_WaitNoTray))
{
SW41_SW08_DriveMotorMove();
}
else if (SW41_MoveInfo.MoveStep.Equals(LineMoveStep.SW08_DriveMotorMove))
{
if (IOValue(IO_Type.SW4_TrayCheck).Equals(IO_VALUE.LOW) && IOValue(IO_Type.SW1_TrayCheck).Equals(IO_VALUE.HIGH))
{
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW09_WaitOutCheck);
SWLog("横移轨道41:收到SW1_TrayCheck,先顶升4下降 ");
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(100));
CylinderMove(null, IO_Type.SW4_TopCylinder_Up, IO_Type.SW4_TopCylinder_Down);
// SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW1_TrayCheck, IO_VALUE.HIGH));
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW10_WatOutFixture2);
SWLog("横移轨道41:再次验证托盘是否在出口处,停止横移4的皮带线 ");
// SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(100));
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW1_TrayCheck, IO_VALUE.HIGH));
//需要停止横移4的皮带线
IOMove(IO_Type.SW4_MotorRun, IO_VALUE.LOW);
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW4_MotorRun, IO_VALUE.LOW));
}
}
else if (SW41_MoveInfo.MoveStep.Equals(LineMoveStep.SW09_WaitOutCheck))
{
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW10_WatOutFixture2);
SWLog("横移轨道41:再次验证托盘是否在出口处,停止横移4的皮带线 ");
//SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(100));
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW1_TrayCheck, IO_VALUE.HIGH));
//需要停止横移4的皮带线
IOMove(IO_Type.SW4_MotorRun, IO_VALUE.LOW);
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW4_MotorRun, IO_VALUE.LOW));
}
else if (SW41_MoveInfo.MoveStep.Equals(LineMoveStep.SW10_WatOutFixture2))
{
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW11_TopDown);
SWLog("横移轨道41:托盘已到达出口,顶升气缸下降,判断入料1是否需要此托盘 ");
// CylinderMove(SW41_MoveInfo, IO_Type.SW4_TopCylinder_Up, IO_Type.SW4_TopCylinder_Down);
//Thread.Sleep(50);
if (!CheckTrayIsNeed(101, Sw41TrayNum))
{
CylinderMove(SW41_MoveInfo, IO_Type.SW1_TopCylinder_Up, IO_Type.SW1_TopCylinder_Down);
}
//CylinderMove(SW41_MoveInfo, IO_Type.SW4_TopCylinder_Up, IO_Type.SW4_TopCylinder_Down);
}
else if (SW41_MoveInfo.MoveStep.Equals(LineMoveStep.SW11_TopDown))
{
bool result = false;
bool topCylinderDown = true;
//如果顶升1没有下降,才判断是否需要入库
if (IOValue(IO_Type.SW1_TopCylinder_Down).Equals(IO_VALUE.LOW) && IOValue(IO_Type.SW1_TopCylinder_Up).Equals(IO_VALUE.HIGH))
{
topCylinderDown = false;
result = FeedingEquipMap[101].CanStartCheckOut(Sw41TrayNum);
}
if (result)
{
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW13_WaitTrayGo);
SWLog("横移轨道41:关闭皮带电机,不需要等待 托盘离开");
IOMove(IO_Type.SW4_MotorRun, IO_VALUE.LOW);
IOMove(IO_Type.SW1_MotorRun, IO_VALUE.LOW);
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW4_MotorRun, IO_VALUE.LOW));
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW1_MotorRun, IO_VALUE.LOW));
}
else
{
//启动入库失败,需要下降顶升气缸
if (topCylinderDown)
{
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW12_WaitTime);
SWLog("横移轨道41:关闭皮带电机,等待1秒后,关闭横移电机 ");
IOMove(IO_Type.SW4_MotorRun, IO_VALUE.LOW);
IOMove(IO_Type.SW1_MotorRun, IO_VALUE.LOW);
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000));
}
else
{
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW11_TopDown);
SWLog("横移轨道41:托盘已到达出口,重新顶升气缸下降 ");
CylinderMove(SW41_MoveInfo, IO_Type.SW1_TopCylinder_Up, IO_Type.SW1_TopCylinder_Down);
}
}
}
else if (SW41_MoveInfo.MoveStep.Equals(LineMoveStep.SW12_WaitTime))
{
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW13_WaitTrayGo);
SWLog("横移轨道41:关闭皮带电机,等待SW1_TrayCheck=0,关闭横移电机 ");
IOMove(IO_Type.SW4_MotorRun, IO_VALUE.LOW);
IOMove(IO_Type.SW1_MotorRun, IO_VALUE.LOW);
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(2000));
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW1_TrayCheck, IO_VALUE.LOW));
}
else if (SW41_MoveInfo.MoveStep.Equals(LineMoveStep.SW13_WaitTrayGo))
{
lastSw4StopDownTime = DateTime.Now.AddSeconds(-2);
SW41_MoveInfo.EndMove();
CylinderMove(null, IO_Type.SW1_TopCylinder_Down, IO_Type.SW1_TopCylinder_Up);
SWLog("横移轨道41:横移结束 ,横移1顶升上升 ");
}
}
private void SW41_SW08_DriveMotorMove()
{
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW08_DriveMotorMove);
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1500));
SWLog("横移轨道41:开始转动电机 ,等待1000,SW4_TrayCheck=0, SW1_TrayCheck=1 ");
IOMove(IO_Type.SW4_MotorRun, IO_VALUE.HIGH);
IOMove(IO_Type.SW1_MotorRun, IO_VALUE.HIGH);
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW4_MotorRun, IO_VALUE.HIGH));
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW1_MotorRun, IO_VALUE.HIGH));
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW1_TrayCheck, IO_VALUE.HIGH));
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW4_TrayCheck, IO_VALUE.LOW));
}
private void SW41_SW07_WaitNoTray()
{
if (IOValue(IO_Type.SW1_TrayCheck).Equals(IO_VALUE.LOW))
{
SW41_SW08_DriveMotorMove();
}
else
{
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW07_WaitNoTray);
SWLog("横移轨道41: 等待 SW1_TrayCheck=0 ");
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW1_TrayCheck, IO_VALUE.LOW));
}
}
private void SW41_SW06_TopCylinderUp()
{
if (CylinderIsOk(IO_Type.SW4_TopCylinder_Down, IO_Type.SW4_TopCylinder_Up) &&
CylinderIsOk(IO_Type.SW1_TopCylinder_Down, IO_Type.SW1_TopCylinder_Up))
{
SW41_SW07_WaitNoTray();
}
else
{
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW06_TopCylinderUp);
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000));
SWLog("横移轨道41:顶升气缸上升 ,至少等待1000 ");
IOMove(IO_Type.SW4_StopDown, IO_VALUE.LOW);
CylinderMove(SW41_MoveInfo, IO_Type.SW4_TopCylinder_Down, IO_Type.SW4_TopCylinder_Up);
CylinderMove(SW41_MoveInfo, IO_Type.SW1_TopCylinder_Down, IO_Type.SW1_TopCylinder_Up);
}
}
private void SW41_SW05_LocationDown()
{
if (CylinderIsOk(IO_Type.SW4_LocationCylinder_Up, IO_Type.SW4_LocationCylinder_Down) &&
CylinderIsOk(IO_Type.SW1_LocationCylinder_Up, IO_Type.SW1_LocationCylinder_Down))
{
SW41_SW06_TopCylinderUp();
}
else
{
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW05_LocationDown);
SWLog("横移轨道41:定位气缸下降 ");
CylinderMove(SW41_MoveInfo, IO_Type.SW4_LocationCylinder_Up, IO_Type.SW4_LocationCylinder_Down);
CylinderMove(SW41_MoveInfo, IO_Type.SW1_LocationCylinder_Up, IO_Type.SW1_LocationCylinder_Down);
}
}
private void SW41_SW04_WaitCanUp()
{
if (IOValue(IO_Type.SW4_TrayCheck).Equals(IO_VALUE.HIGH) && IOValue(IO_Type.SW1_TrayCheck).Equals(IO_VALUE.LOW) && SwCanUpMove(1))
{
SW41_SW05_LocationDown();
}
else
{
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW04_WaitCanUp);
SWLog("横移轨道41: 等待横移4托盘检测信号 ,SW4_StopDown上升 ,等待横移1(上料1)无托盘处理 ");
CheckAndMove(IO_Type.SW4_StopDown, IO_VALUE.LOW);
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW4_TrayCheck, IO_VALUE.HIGH));
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW1_TrayCheck, IO_VALUE.LOW));
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitSWCanTopUp(1));
}
}
private bool CheckTrayIsNeed(int deviceId, int trayNum)
{
//横移1对应入料1
if (FeedingEquipMap.ContainsKey(deviceId))
{
FeedingEquip equip = FeedingEquipMap[deviceId];
if (equip.runStatus >= LineRunStatus.Runing)
{
if (equip.CurrTrayIsNeed(trayNum, false))
{
return true;
}
}
}
return false;
}
private void SideWay23BusyProcess()
{
if (SW23_MoveInfo.IsInWait)
{
CheckWait(SW23_MoveInfo);
}
if (SW23_MoveInfo.IsInWait)
{
return;
}
if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW00_Wait))
{
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW01_StopDown);
LogUtil.info(Name + "横移轨道23:阻挡气缸下降 等待 SW2_StopCheck=0 ");
IOMove(IO_Type.SW2_StopDown, IO_VALUE.HIGH);
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW2_StopCheck, IO_VALUE.LOW));
// SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(TrayManager.StopDownWaitTime));
}
else if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW01_StopDown))
{
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW02_WaitCheckTime);
SWLog("横移轨道23: 等待横移4托盘检测信号 , SW011_WaitCheckTime ");
IOMove(IO_Type.SW2_StopDown, IO_VALUE.LOW);
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW2_TrayCheck, IO_VALUE.HIGH));
}
else if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW02_WaitCheckTime))
{
UpateSw23TrayNum();
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW03_WaitTime);
SWLog("横移轨道23: 等待横移4托盘检测信号 , SW012_WaitTime " + TrayManager.SwTrayWaitTime + ",更新托盘号【" + Sw23TrayNum + "】");
CheckAndMove(IO_Type.SW2_StopDown, IO_VALUE.LOW);
// SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(TrayManager.SwTrayWaitTime));
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW2_TrayCheck, IO_VALUE.HIGH));
}
else if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW03_WaitTime))
{
if (IOValue(IO_Type.SW2_TrayCheck).Equals(IO_VALUE.HIGH))
{
SW23_SW04_WaitCanUp();
}
else
{
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW03_WaitTime);
SWLog("横移轨道23: 等待横移4托盘检测信号 , SW012_WaitTime " + TrayManager.SwTrayWaitTime);
CheckAndMove(IO_Type.SW2_StopDown, IO_VALUE.LOW);
// SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(TrayManager.SwTrayWaitTime));
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW2_TrayCheck, IO_VALUE.HIGH));
}
}
else if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW04_WaitCanUp))
{
SW23_SW05_LocationDown();
}
else if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW05_LocationDown))
{
SW23_SW06_TopCylinderUp();
}
else if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW06_TopCylinderUp))
{
SW23_SW07_WaitNoTray();
}
else if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW07_WaitNoTray))
{
SW23_SW08_DriveMotorMove();
}
else if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW08_DriveMotorMove))
{
if (IOValue(IO_Type.SW2_TrayCheck).Equals(IO_VALUE.LOW) && IOValue(IO_Type.SW3_TrayCheck).Equals(IO_VALUE.HIGH))
{
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW09_WaitOutCheck);
SWLog("横移轨道23:收到 SW3_TrayCheck,先顶升2下降, ");
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(100));
CylinderMove(null, IO_Type.SW2_TopCylinder_Up, IO_Type.SW2_TopCylinder_Down);
//SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW3_TrayCheck, IO_VALUE.HIGH));
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW10_WatOutFixture2);
SWLog("横移轨道23:再次验证托盘是否在出口处 ,停止横移2的皮带线 ");
// SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(100));
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW3_TrayCheck, IO_VALUE.HIGH));
IOMove(IO_Type.SW2_MotorRun, IO_VALUE.LOW);
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW2_MotorRun, IO_VALUE.LOW));
}
}
else if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW09_WaitOutCheck))
{
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW10_WatOutFixture2);
SWLog("横移轨道23:再次验证托盘是否在出口处 ,停止横移2的皮带线 ");
// SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(100));
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW3_TrayCheck, IO_VALUE.HIGH));
IOMove(IO_Type.SW2_MotorRun, IO_VALUE.LOW);
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW2_MotorRun, IO_VALUE.LOW));
}
else if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW10_WatOutFixture2))
{
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW11_TopDown);
SWLog("横移轨道23:托盘已到达出口,顶升气缸下降 ");
// CylinderMove(SW23_MoveInfo, IO_Type.SW2_TopCylinder_Up, IO_Type.SW2_TopCylinder_Down);
//Thread.Sleep(50);
if (!CheckTrayIsNeed(104, Sw23TrayNum))
{
CylinderMove(SW23_MoveInfo, IO_Type.SW3_TopCylinder_Up, IO_Type.SW3_TopCylinder_Down);
}
//CylinderMove(SW23_MoveInfo, IO_Type.SW2_TopCylinder_Up, IO_Type.SW2_TopCylinder_Down);
}
else if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW11_TopDown))
{
bool result = false;
bool topCylinderDown = true;
//如果顶升1没有下降,才判断是否需要入库
if (IOValue(IO_Type.SW3_TopCylinder_Down).Equals(IO_VALUE.LOW) && IOValue(IO_Type.SW3_TopCylinder_Up).Equals(IO_VALUE.HIGH))
{
topCylinderDown = false;
result = FeedingEquipMap[104].CanStartCheckOut(Sw23TrayNum);
}
if (result)
{
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW13_WaitTrayGo);
SWLog("横移轨道23:关闭皮带电机,需要紧急出料,不需要等待 托盘离开");
IOMove(IO_Type.SW2_MotorRun, IO_VALUE.LOW);
IOMove(IO_Type.SW3_MotorRun, IO_VALUE.LOW);
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW2_MotorRun, IO_VALUE.LOW));
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW3_MotorRun, IO_VALUE.LOW));
}
else
{
if (topCylinderDown)
{
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW12_WaitTime);
SWLog("横移轨道23:关闭皮带电机,等待1秒钟,关闭横移电机 ");
IOMove(IO_Type.SW2_MotorRun, IO_VALUE.LOW);
IOMove(IO_Type.SW3_MotorRun, IO_VALUE.LOW);
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000));
}
else
{
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW11_TopDown);
SWLog("横移轨道23:托盘已到达出口,重新顶升气缸下降 ");
CylinderMove(SW23_MoveInfo, IO_Type.SW3_TopCylinder_Up, IO_Type.SW3_TopCylinder_Down);
}
}
}
else if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW12_WaitTime))
{
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW13_WaitTrayGo);
SWLog("横移轨道23:关闭皮带电机,等待SW3_TrayCheck=0,关闭横移电机 ");
IOMove(IO_Type.SW2_MotorRun, IO_VALUE.LOW);
IOMove(IO_Type.SW3_MotorRun, IO_VALUE.LOW);
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(2000));
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW3_TrayCheck, IO_VALUE.LOW));
}
else if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW13_WaitTrayGo))
{
lastSw2StopDownTime = DateTime.Now.AddSeconds(-2);
SW23_MoveInfo.EndMove();
CylinderMove(null, IO_Type.SW3_TopCylinder_Down, IO_Type.SW3_TopCylinder_Up);
SWLog("横移轨道23:横移结束,横移3顶升上升 ");
}
}
private void SW23_SW08_DriveMotorMove()
{
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW08_DriveMotorMove);
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1500));
SWLog("横移轨道23:开始转动电机 ,等待1000,SW2_TrayCheck=0, SW3_TrayCheck=1 ");
IOMove(IO_Type.SW2_MotorRun, IO_VALUE.HIGH);
IOMove(IO_Type.SW3_MotorRun, IO_VALUE.HIGH);
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW2_MotorRun, IO_VALUE.HIGH));
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW3_MotorRun, IO_VALUE.HIGH));
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW3_TrayCheck, IO_VALUE.HIGH));
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW2_TrayCheck, IO_VALUE.LOW));
}
private void SW23_SW07_WaitNoTray()
{
if (IOValue(IO_Type.SW3_TrayCheck).Equals(IO_VALUE.LOW))
{
SW23_SW08_DriveMotorMove();
}
else
{
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW07_WaitNoTray);
SWLog("横移轨道23: 等待 SW3_TrayCheck=0 ");
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW3_TrayCheck, IO_VALUE.LOW));
}
}
private void SW23_SW06_TopCylinderUp()
{
if (CylinderIsOk(IO_Type.SW2_TopCylinder_Down, IO_Type.SW2_TopCylinder_Up) &&
CylinderIsOk(IO_Type.SW3_TopCylinder_Down, IO_Type.SW3_TopCylinder_Up))
{
SW23_SW07_WaitNoTray();
}
else
{
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW06_TopCylinderUp);
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000));
SWLog("横移轨道23:顶升气缸上升 ,至少等待1000 ");
IOMove(IO_Type.SW2_StopDown, IO_VALUE.LOW);
CylinderMove(SW23_MoveInfo, IO_Type.SW2_TopCylinder_Down, IO_Type.SW2_TopCylinder_Up);
CylinderMove(SW23_MoveInfo, IO_Type.SW3_TopCylinder_Down, IO_Type.SW3_TopCylinder_Up);
}
}
private void SW23_SW05_LocationDown()
{
if (CylinderIsOk(IO_Type.SW2_LocationCylinder_Up, IO_Type.SW2_LocationCylinder_Down) &&
CylinderIsOk(IO_Type.SW3_LocationCylinder_Up, IO_Type.SW3_LocationCylinder_Down))
{
SW23_SW06_TopCylinderUp();
}
else
{
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW05_LocationDown);
SWLog("横移轨道23:定位气缸下降 ");
CylinderMove(SW23_MoveInfo, IO_Type.SW2_LocationCylinder_Up, IO_Type.SW2_LocationCylinder_Down);
CylinderMove(SW23_MoveInfo, IO_Type.SW3_LocationCylinder_Up, IO_Type.SW3_LocationCylinder_Down);
}
}
private void SW23_SW04_WaitCanUp()
{
if (IOValue(IO_Type.SW2_TrayCheck).Equals(IO_VALUE.HIGH) && IOValue(IO_Type.SW3_TrayCheck).Equals(IO_VALUE.LOW) && SwCanUpMove(3))
{
SW23_SW05_LocationDown();
}
else
{
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW04_WaitCanUp);
SWLog("横移轨道23: 等待横移4托盘检测信号 ,SW2_StopDown上升 ,等待横移3(上料4)处无托盘 ");
CheckAndMove(IO_Type.SW2_StopDown, IO_VALUE.LOW);
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW2_TrayCheck, IO_VALUE.HIGH));
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW3_TrayCheck, IO_VALUE.LOW));
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitSWCanTopUp(3));
}
}
private void SWLog(string msg)
{
LogUtil.debug(Name + msg);
}
#endregion
#region 料仓出入库逻辑处理
......@@ -1246,5 +416,15 @@ namespace OnlineStore.DeviceLibrary
return false;
}
#endregion
internal bool Move5CanProcessTray(int deviceId)
{
return true;
}
internal bool Move9CanStop2Down(int deviceId,int trayNum=0)
{
return true;
}
}
}
using OnlineStore.Common;
using OnlineStore.LoadCSVLibrary;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OnlineStore.DeviceLibrary
{
partial class LineBean
{
#region 横移处理-
internal int SW23WaitTrayNum = -1;
internal int SW41WaitTrayNum = -1;
internal int Sw41TrayNum = 0;
internal int Sw23TrayNum = 0;
private void Equip_TrayPEndEvent(int swNum, int trayNum)
{
try
{
if (swNum <= 0 || this.runStatus <= (LineRunStatus.Wait))
{
return;
}
if (swNum.Equals(2))
{
if (SW23_MoveInfo.MoveType.Equals(LineMoveType.None))
{
Sw23TrayNum = trayNum;
SW23_MoveInfo.NewMove(LineMoveType.InStore);
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW03_WaitTime);
SW23WaitTrayNum = -1;
SW23_SW04_WaitCanUp();
}
else
{
SW23WaitTrayNum = trayNum;
LogUtil.debug(Name + "Equip_TrayPEndEvent【" + swNum + "】【" + trayNum + "】失败,SW23_MoveInfo 忙碌中,记录 SW23WaitTrayNum=" + SW23WaitTrayNum);
}
}
else if (swNum.Equals(4))
{
if (SW41_MoveInfo.MoveType.Equals(LineMoveType.None))
{
Sw41TrayNum = trayNum;
SW41_MoveInfo.NewMove(LineMoveType.InStore);
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW03_WaitTime);
SW41WaitTrayNum = -1;
SW41_SW04_WaitCanUp();
}
else
{
SW41WaitTrayNum = trayNum;
LogUtil.debug(Name + "Equip_TrayPEndEvent【" + swNum + "】【" + trayNum + "】失败,SW41_MoveInfo 忙碌中,记录 SW41WaitTrayNum =" + SW41WaitTrayNum);
}
}
}
catch (Exception ex)
{
LogUtil.error(Name + "Equip_TrayPEndEvent出错:", ex);
}
}
/// <summary>
/// 入料三和出料四使用,判断是否可以开始处理托盘
/// 横移无处理,上料机构和出料机构判断使用
/// </summary>
internal bool SwNoProcess(int sidesWayNum)
{
//20200228修改,横移机构可以同时存在两个托盘
try
{
if (runStatus <= LineRunStatus.Wait || sidesWayNum <= 0)
{
return true;
}
if (sidesWayNum.Equals(2) && SW23WaitTrayNum < 0)
{
if (SW23_MoveInfo.MoveType.Equals(LineMoveType.None))
{
return true;
}
else if (SW23_MoveInfo.MoveStep <= (LineMoveStep.SW13_WaitTrayGo)
&& SW23_MoveInfo.MoveStep >= (LineMoveStep.SW10_WatOutFixture2)
)
{
if (CylinderIsOk(IO_Type.SW2_TopCylinder_Up, IO_Type.SW2_TopCylinder_Down))
{
return true;
}
else
{
CylinderMove(null, IO_Type.SW2_TopCylinder_Up, IO_Type.SW2_TopCylinder_Down);
}
}
}
else if (sidesWayNum.Equals(3) && SW23WaitTrayNum < 0 && runStatus <= LineRunStatus.Wait)
{
return true;
}
else if (sidesWayNum.Equals(4) && SW41WaitTrayNum < 0)
{
if (SW41_MoveInfo.MoveType.Equals(LineMoveType.None))
{
return true;
}
else if (SW41_MoveInfo.MoveStep <= (LineMoveStep.SW13_WaitTrayGo)
&& SW41_MoveInfo.MoveStep >= (LineMoveStep.SW10_WatOutFixture2))
{
if (CylinderIsOk(IO_Type.SW4_TopCylinder_Up, IO_Type.SW4_TopCylinder_Down))
{
return true;
}
else
{
CylinderMove(null, IO_Type.SW4_TopCylinder_Up, IO_Type.SW4_TopCylinder_Down);
}
}
}
else if (sidesWayNum.Equals(1) && SW41WaitTrayNum < 0 && runStatus <= LineRunStatus.Wait)
{
return true;
}
}
catch (Exception ex)
{
LogUtil.error("SwNoProcess [" + sidesWayNum + "] error :" + ex.ToString());
}
return false;
}
/// <summary>
/// 横移机构横移顶升之前判断
/// 等待横移机构是否可以开始顶升上升横移
/// </summary>
internal bool SwCanUpMove(int sidesWayNum)
{
//20200228修改,横移机构可以同时存在两个托盘
try
{
if (LineManager.Line.runStatus <= LineRunStatus.Wait || sidesWayNum <= 0)
{
return true;
}
if (sidesWayNum.Equals(3))
{
LineMoveInfo moveInfo = FeedingEquipMap[104].SecondMoveInfo;
if (IOValue(IO_Type.SW3_TrayCheck).Equals(IO_VALUE.LOW) && moveInfo.MoveType.Equals(LineMoveType.None))
{
return true;
}
}
else if (sidesWayNum.Equals(1))
{
LineMoveInfo moveInfo = FeedingEquipMap[101].SecondMoveInfo;
if (IOValue(IO_Type.SW1_TrayCheck).Equals(IO_VALUE.LOW) && moveInfo.MoveType.Equals(LineMoveType.None))
{
return true;
}
}
}
catch (Exception ex)
{
LogUtil.error("SwCanUpMove [" + sidesWayNum + "] error :" + ex.ToString());
}
return false;
}
private static LineMoveInfo SW41_MoveInfo = null;
private static LineMoveInfo SW23_MoveInfo = null;
private void SideWayStop()
{
sw23WaitWatch.Stop();
sw41WaitWatch.Stop();
SW41_MoveInfo.EndMove();
SW23_MoveInfo.EndMove();
IOMove(IO_Type.SW1_MotorRun, IO_VALUE.LOW);
IOMove(IO_Type.SW2_MotorRun, IO_VALUE.LOW);
IOMove(IO_Type.SW3_MotorRun, IO_VALUE.LOW);
IOMove(IO_Type.SW4_MotorRun, IO_VALUE.LOW);
}
private Stopwatch sw41WaitWatch = new Stopwatch();
private Stopwatch sw23WaitWatch = new Stopwatch();
private bool sdIsInprocess = false;
private DateTime sdlastProTime = DateTime.Now;
private DateTime lastSw2StopDownTime = DateTime.Now;
private DateTime lastSw4StopDownTime = DateTime.Now;
private void SideWayTimerProcess()
{
TimeSpan span = DateTime.Now - sdlastProTime;
if (sdIsInprocess && span.TotalSeconds < 5)
{
return;
}
try
{
sdIsInprocess = true;
sdlastProTime = DateTime.Now;
//流水线转动中,并且在忙碌或出入库处理中,需要处理移栽
if (!CanProcessLine())
{
sw41WaitWatch.Stop();
sw23WaitWatch.Stop();
sdIsInprocess = false;
return;
}
if (SW23_MoveInfo.MoveType.Equals(LineMoveType.None) && SW23WaitTrayNum >= 0)
{
Equip_TrayPEndEvent(2, SW23WaitTrayNum);
}
if (SW41_MoveInfo.MoveType.Equals(LineMoveType.None) && SW41WaitTrayNum >= 0)
{
Equip_TrayPEndEvent(4, SW41WaitTrayNum);
}
if (SW41_MoveInfo.MoveType.Equals(LineMoveType.None) && HYEquipMap[204].runStatus <= LineRunStatus.Wait)
{
if (IOValue(IO_Type.SW4_TrayCheck).Equals(IO_VALUE.HIGH) && IOValue(IO_Type.SW1_TrayCheck).Equals(IO_VALUE.LOW) &&
TrayManager.LineCanMoveSW(4) && TrayManager.LineCanMoveSW(1))
{
if (TrayManager.checkWatch(sw41WaitWatch, TrayManager.SwTrayWaitTime, true))
{
SW41_MoveInfo.NewMove(LineMoveType.InStore);
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW03_WaitTime);
UpateSw41TrayNum();
SWLog("横移轨道41:检测到SW4_TrayCheck,再次检测,更新托盘号 [" + Sw41TrayNum + "] ");
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW4_TrayCheck, IO_VALUE.HIGH));
}
}
else if (IOValue(IO_Type.SW4_StopCheck).Equals(IO_VALUE.HIGH) &&
IOValue(IO_Type.SW4_StopDown).Equals(IO_VALUE.LOW) &&
IOValue(IO_Type.SW4_TrayCheck).Equals(IO_VALUE.LOW) &&
IOValue(IO_Type.SW1_TrayCheck).Equals(IO_VALUE.LOW) &&
(DateTime.Now - lastSw4StopDownTime).TotalSeconds > 2 &&
TrayManager.LineCanMoveSW(4) && TrayManager.LineCanMoveSW(1))
{
if (TrayManager.checkWatch(sw41WaitWatch, TrayManager.SwTrayWaitTime, true))
{
SW41_MoveInfo.NewMove(LineMoveType.InStore);
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW00_Wait);
// UpateSw41TrayNum();
LogUtil.info(Name + "横移轨道41:检测到SW4_StopCheck, 开始处理托盘 ");
//阻挡气缸下降500毫秒然后上升
lastSw4StopDownTime = DateTime.Now;
}
}
else
{
sw41WaitWatch.Stop();
}
}
else
{
sw41WaitWatch.Stop();
SideWay41BusyProcess();
}
if (SW23_MoveInfo.MoveType.Equals(LineMoveType.None) && FeedingEquipMap[103].runStatus <= LineRunStatus.Wait)
{
//检测到阻挡夹具信号后,阻挡气缸下降,等待有夹具信号,阻挡气缸上升,
//顶升气缸上升到位,开始流水线转动,检测到出口信号后,停止转动,顶升气缸下降,阻挡4下降,盘通过
if (IOValue(IO_Type.SW2_TrayCheck).Equals(IO_VALUE.HIGH) && IOValue(IO_Type.SW3_TrayCheck).Equals(IO_VALUE.LOW) &&
TrayManager.LineCanMoveSW(2) && TrayManager.LineCanMoveSW(3))
{
if (TrayManager.checkWatch(sw23WaitWatch, TrayManager.SwTrayWaitTime, true))
{
SW23_MoveInfo.NewMove(LineMoveType.InStore);
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW03_WaitTime);
UpateSw23TrayNum();
SWLog("横移轨道23:检测到SW2_TrayCheck,再次检测,更新托盘号 [" + Sw23TrayNum + "] ");
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW2_TrayCheck, IO_VALUE.HIGH));
}
}
else if (IOValue(IO_Type.SW2_StopCheck).Equals(IO_VALUE.HIGH) &&
IOValue(IO_Type.SW2_StopDown).Equals(IO_VALUE.LOW) &&
IOValue(IO_Type.SW2_TrayCheck).Equals(IO_VALUE.LOW) &&
IOValue(IO_Type.SW3_TrayCheck).Equals(IO_VALUE.LOW) &&
(DateTime.Now - lastSw2StopDownTime).TotalSeconds > 2 &&
TrayManager.LineCanMoveSW(2) && TrayManager.LineCanMoveSW(3))
{
if (TrayManager.checkWatch(sw23WaitWatch, TrayManager.SwTrayWaitTime, true))
{
SW23_MoveInfo.NewMove(LineMoveType.InStore);
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW00_Wait);
// UpateSw23TrayNum();
LogUtil.info(Name + "横移轨道23:检测到SW2_StopCheck, 开始处理托盘 ");
//阻挡气缸下降500毫秒然后上升
lastSw2StopDownTime = DateTime.Now;
}
}
else
{
sw23WaitWatch.Stop();
}
}
else
{
sw23WaitWatch.Stop();
SideWay23BusyProcess();
}
}
catch (Exception ex)
{
LogUtil.error(Name + "SideWayTimerProcess 出错:", ex);
}
sdIsInprocess = false;
}
private void UpateSw41TrayNum()
{
Sw41TrayNum = 0;
if (HYEquipMap.ContainsKey(204))
{
HYEquipBase eq = HYEquipMap[204];
if (eq.runStatus >= LineRunStatus.HomeMoving)
{
Sw41TrayNum = eq.currTrayNum;
}
else
{
Sw41TrayNum = RFIDManager.GetTrayNum(204, true);
}
}
}
private void UpateSw23TrayNum()
{
Sw23TrayNum = 0;
if (FeedingEquipMap.ContainsKey(103))
{
FeedingEquip eq = FeedingEquipMap[103];
if (eq.runStatus >= LineRunStatus.HomeMoving)
{
Sw23TrayNum = eq.currTrayNum;
}
else
{
Sw23TrayNum = RFIDManager.GetTrayNum(103, true);
}
}
}
private void SideWay41BusyProcess()
{
if (SW41_MoveInfo.IsInWait)
{
CheckWait(SW41_MoveInfo);
}
if (SW41_MoveInfo.IsInWait)
{
return;
}
if (SW41_MoveInfo.MoveStep.Equals(LineMoveStep.SW00_Wait))
{
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW01_StopDown);
LogUtil.info(Name + "横移轨道41: 阻挡气缸下降 等待 SW4_StopCheck=0");
IOMove(IO_Type.SW4_StopDown, IO_VALUE.HIGH);
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW4_StopCheck, IO_VALUE.LOW));
//SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(TrayManager.StopDownWaitTime));
}
else if (SW41_MoveInfo.MoveStep.Equals(LineMoveStep.SW01_StopDown))
{
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW02_WaitCheckTime);
SWLog("横移轨道41: 等待横移4托盘检测信号 , SW011_WaitCheckTime ");
IOMove(IO_Type.SW4_StopDown, IO_VALUE.LOW);
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW4_TrayCheck, IO_VALUE.HIGH));
}
else if (SW41_MoveInfo.MoveStep.Equals(LineMoveStep.SW02_WaitCheckTime))
{
UpateSw41TrayNum();
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW03_WaitTime);
SWLog("横移轨道41: 等待横移4托盘检测信号 , SW012_WaitTime " + TrayManager.SwTrayWaitTime + ",更新托盘号【" + Sw41TrayNum + "】");
CheckAndMove(IO_Type.SW4_StopDown, IO_VALUE.LOW);
// SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(TrayManager.SwTrayWaitTime));
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW4_TrayCheck, IO_VALUE.HIGH));
}
else if (SW41_MoveInfo.MoveStep.Equals(LineMoveStep.SW03_WaitTime))
{
if (IOValue(IO_Type.SW4_TrayCheck).Equals(IO_VALUE.HIGH))
{
SW41_SW04_WaitCanUp();
}
else
{
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW03_WaitTime);
SWLog("横移轨道41: 等待横移4托盘检测信号 , SW012_WaitTime " + TrayManager.SwTrayWaitTime);
CheckAndMove(IO_Type.SW4_StopDown, IO_VALUE.LOW);
// SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(TrayManager.SwTrayWaitTime));
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW4_TrayCheck, IO_VALUE.HIGH));
}
}
else if (SW41_MoveInfo.MoveStep.Equals(LineMoveStep.SW04_WaitCanUp))
{
SW41_SW05_LocationDown();
}
else if (SW41_MoveInfo.MoveStep.Equals(LineMoveStep.SW05_LocationDown))
{
SW41_SW06_TopCylinderUp();
}
else if (SW41_MoveInfo.MoveStep.Equals(LineMoveStep.SW06_TopCylinderUp))
{
SW41_SW07_WaitNoTray();
}
else if (SW41_MoveInfo.MoveStep.Equals(LineMoveStep.SW07_WaitNoTray))
{
SW41_SW08_DriveMotorMove();
}
else if (SW41_MoveInfo.MoveStep.Equals(LineMoveStep.SW08_DriveMotorMove))
{
if (IOValue(IO_Type.SW4_TrayCheck).Equals(IO_VALUE.LOW) && IOValue(IO_Type.SW1_TrayCheck).Equals(IO_VALUE.HIGH))
{
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW09_WaitOutCheck);
SWLog("横移轨道41:收到SW1_TrayCheck,先顶升4下降 ");
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(100));
CylinderMove(null, IO_Type.SW4_TopCylinder_Up, IO_Type.SW4_TopCylinder_Down);
// SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW1_TrayCheck, IO_VALUE.HIGH));
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW10_WatOutFixture2);
SWLog("横移轨道41:再次验证托盘是否在出口处,停止横移4的皮带线 ");
// SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(100));
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW1_TrayCheck, IO_VALUE.HIGH));
//需要停止横移4的皮带线
IOMove(IO_Type.SW4_MotorRun, IO_VALUE.LOW);
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW4_MotorRun, IO_VALUE.LOW));
}
}
else if (SW41_MoveInfo.MoveStep.Equals(LineMoveStep.SW09_WaitOutCheck))
{
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW10_WatOutFixture2);
SWLog("横移轨道41:再次验证托盘是否在出口处,停止横移4的皮带线 ");
//SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(100));
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW1_TrayCheck, IO_VALUE.HIGH));
//需要停止横移4的皮带线
IOMove(IO_Type.SW4_MotorRun, IO_VALUE.LOW);
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW4_MotorRun, IO_VALUE.LOW));
}
else if (SW41_MoveInfo.MoveStep.Equals(LineMoveStep.SW10_WatOutFixture2))
{
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW11_TopDown);
SWLog("横移轨道41:托盘已到达出口,顶升气缸下降,判断入料1是否需要此托盘 ");
// CylinderMove(SW41_MoveInfo, IO_Type.SW4_TopCylinder_Up, IO_Type.SW4_TopCylinder_Down);
//Thread.Sleep(50);
if (!CheckTrayIsNeed(101, Sw41TrayNum))
{
CylinderMove(SW41_MoveInfo, IO_Type.SW1_TopCylinder_Up, IO_Type.SW1_TopCylinder_Down);
}
//CylinderMove(SW41_MoveInfo, IO_Type.SW4_TopCylinder_Up, IO_Type.SW4_TopCylinder_Down);
}
else if (SW41_MoveInfo.MoveStep.Equals(LineMoveStep.SW11_TopDown))
{
bool result = false;
bool topCylinderDown = true;
//如果顶升1没有下降,才判断是否需要入库
if (IOValue(IO_Type.SW1_TopCylinder_Down).Equals(IO_VALUE.LOW) && IOValue(IO_Type.SW1_TopCylinder_Up).Equals(IO_VALUE.HIGH))
{
topCylinderDown = false;
result = FeedingEquipMap[101].CanStartCheckOut(Sw41TrayNum);
}
if (result)
{
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW13_WaitTrayGo);
SWLog("横移轨道41:关闭皮带电机,不需要等待 托盘离开");
IOMove(IO_Type.SW4_MotorRun, IO_VALUE.LOW);
IOMove(IO_Type.SW1_MotorRun, IO_VALUE.LOW);
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW4_MotorRun, IO_VALUE.LOW));
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW1_MotorRun, IO_VALUE.LOW));
}
else
{
//启动入库失败,需要下降顶升气缸
if (topCylinderDown)
{
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW12_WaitTime);
SWLog("横移轨道41:关闭皮带电机,等待1秒后,关闭横移电机 ");
IOMove(IO_Type.SW4_MotorRun, IO_VALUE.LOW);
IOMove(IO_Type.SW1_MotorRun, IO_VALUE.LOW);
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000));
}
else
{
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW11_TopDown);
SWLog("横移轨道41:托盘已到达出口,重新顶升气缸下降 ");
CylinderMove(SW41_MoveInfo, IO_Type.SW1_TopCylinder_Up, IO_Type.SW1_TopCylinder_Down);
}
}
}
else if (SW41_MoveInfo.MoveStep.Equals(LineMoveStep.SW12_WaitTime))
{
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW13_WaitTrayGo);
SWLog("横移轨道41:关闭皮带电机,等待SW1_TrayCheck=0,关闭横移电机 ");
IOMove(IO_Type.SW4_MotorRun, IO_VALUE.LOW);
IOMove(IO_Type.SW1_MotorRun, IO_VALUE.LOW);
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(2000));
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW1_TrayCheck, IO_VALUE.LOW));
}
else if (SW41_MoveInfo.MoveStep.Equals(LineMoveStep.SW13_WaitTrayGo))
{
lastSw4StopDownTime = DateTime.Now.AddSeconds(-2);
SW41_MoveInfo.EndMove();
CylinderMove(null, IO_Type.SW1_TopCylinder_Down, IO_Type.SW1_TopCylinder_Up);
SWLog("横移轨道41:横移结束 ,横移1顶升上升 ");
}
}
private void SW41_SW08_DriveMotorMove()
{
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW08_DriveMotorMove);
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1500));
SWLog("横移轨道41:开始转动电机 ,等待1000,SW4_TrayCheck=0, SW1_TrayCheck=1 ");
IOMove(IO_Type.SW4_MotorRun, IO_VALUE.HIGH);
IOMove(IO_Type.SW1_MotorRun, IO_VALUE.HIGH);
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW4_MotorRun, IO_VALUE.HIGH));
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW1_MotorRun, IO_VALUE.HIGH));
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW1_TrayCheck, IO_VALUE.HIGH));
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW4_TrayCheck, IO_VALUE.LOW));
}
private void SW41_SW07_WaitNoTray()
{
if (IOValue(IO_Type.SW1_TrayCheck).Equals(IO_VALUE.LOW))
{
SW41_SW08_DriveMotorMove();
}
else
{
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW07_WaitNoTray);
SWLog("横移轨道41: 等待 SW1_TrayCheck=0 ");
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW1_TrayCheck, IO_VALUE.LOW));
}
}
private void SW41_SW06_TopCylinderUp()
{
if (CylinderIsOk(IO_Type.SW4_TopCylinder_Down, IO_Type.SW4_TopCylinder_Up) &&
CylinderIsOk(IO_Type.SW1_TopCylinder_Down, IO_Type.SW1_TopCylinder_Up))
{
SW41_SW07_WaitNoTray();
}
else
{
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW06_TopCylinderUp);
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000));
SWLog("横移轨道41:顶升气缸上升 ,至少等待1000 ");
IOMove(IO_Type.SW4_StopDown, IO_VALUE.LOW);
CylinderMove(SW41_MoveInfo, IO_Type.SW4_TopCylinder_Down, IO_Type.SW4_TopCylinder_Up);
CylinderMove(SW41_MoveInfo, IO_Type.SW1_TopCylinder_Down, IO_Type.SW1_TopCylinder_Up);
}
}
private void SW41_SW05_LocationDown()
{
if (CylinderIsOk(IO_Type.SW4_LocationCylinder_Up, IO_Type.SW4_LocationCylinder_Down) &&
CylinderIsOk(IO_Type.SW1_LocationCylinder_Up, IO_Type.SW1_LocationCylinder_Down))
{
SW41_SW06_TopCylinderUp();
}
else
{
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW05_LocationDown);
SWLog("横移轨道41:定位气缸下降 ");
CylinderMove(SW41_MoveInfo, IO_Type.SW4_LocationCylinder_Up, IO_Type.SW4_LocationCylinder_Down);
CylinderMove(SW41_MoveInfo, IO_Type.SW1_LocationCylinder_Up, IO_Type.SW1_LocationCylinder_Down);
}
}
private void SW41_SW04_WaitCanUp()
{
if (IOValue(IO_Type.SW4_TrayCheck).Equals(IO_VALUE.HIGH) && IOValue(IO_Type.SW1_TrayCheck).Equals(IO_VALUE.LOW) && SwCanUpMove(1))
{
SW41_SW05_LocationDown();
}
else
{
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW04_WaitCanUp);
SWLog("横移轨道41: 等待横移4托盘检测信号 ,SW4_StopDown上升 ,等待横移1(上料1)无托盘处理 ");
CheckAndMove(IO_Type.SW4_StopDown, IO_VALUE.LOW);
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW4_TrayCheck, IO_VALUE.HIGH));
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW1_TrayCheck, IO_VALUE.LOW));
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitSWCanTopUp(1));
}
}
private bool CheckTrayIsNeed(int deviceId, int trayNum)
{
//横移1对应入料1
if (FeedingEquipMap.ContainsKey(deviceId))
{
FeedingEquip equip = FeedingEquipMap[deviceId];
if (equip.runStatus >= LineRunStatus.Runing)
{
if (equip.CurrTrayIsNeed(trayNum, false))
{
return true;
}
}
}
return false;
}
private void SideWay23BusyProcess()
{
if (SW23_MoveInfo.IsInWait)
{
CheckWait(SW23_MoveInfo);
}
if (SW23_MoveInfo.IsInWait)
{
return;
}
if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW00_Wait))
{
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW01_StopDown);
LogUtil.info(Name + "横移轨道23:阻挡气缸下降 等待 SW2_StopCheck=0 ");
IOMove(IO_Type.SW2_StopDown, IO_VALUE.HIGH);
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW2_StopCheck, IO_VALUE.LOW));
// SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(TrayManager.StopDownWaitTime));
}
else if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW01_StopDown))
{
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW02_WaitCheckTime);
SWLog("横移轨道23: 等待横移4托盘检测信号 , SW011_WaitCheckTime ");
IOMove(IO_Type.SW2_StopDown, IO_VALUE.LOW);
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW2_TrayCheck, IO_VALUE.HIGH));
}
else if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW02_WaitCheckTime))
{
UpateSw23TrayNum();
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW03_WaitTime);
SWLog("横移轨道23: 等待横移4托盘检测信号 , SW012_WaitTime " + TrayManager.SwTrayWaitTime + ",更新托盘号【" + Sw23TrayNum + "】");
CheckAndMove(IO_Type.SW2_StopDown, IO_VALUE.LOW);
// SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(TrayManager.SwTrayWaitTime));
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW2_TrayCheck, IO_VALUE.HIGH));
}
else if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW03_WaitTime))
{
if (IOValue(IO_Type.SW2_TrayCheck).Equals(IO_VALUE.HIGH))
{
SW23_SW04_WaitCanUp();
}
else
{
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW03_WaitTime);
SWLog("横移轨道23: 等待横移4托盘检测信号 , SW012_WaitTime " + TrayManager.SwTrayWaitTime);
CheckAndMove(IO_Type.SW2_StopDown, IO_VALUE.LOW);
// SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(TrayManager.SwTrayWaitTime));
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW2_TrayCheck, IO_VALUE.HIGH));
}
}
else if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW04_WaitCanUp))
{
SW23_SW05_LocationDown();
}
else if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW05_LocationDown))
{
SW23_SW06_TopCylinderUp();
}
else if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW06_TopCylinderUp))
{
SW23_SW07_WaitNoTray();
}
else if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW07_WaitNoTray))
{
SW23_SW08_DriveMotorMove();
}
else if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW08_DriveMotorMove))
{
if (IOValue(IO_Type.SW2_TrayCheck).Equals(IO_VALUE.LOW) && IOValue(IO_Type.SW3_TrayCheck).Equals(IO_VALUE.HIGH))
{
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW09_WaitOutCheck);
SWLog("横移轨道23:收到 SW3_TrayCheck,先顶升2下降, ");
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(100));
CylinderMove(null, IO_Type.SW2_TopCylinder_Up, IO_Type.SW2_TopCylinder_Down);
//SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW3_TrayCheck, IO_VALUE.HIGH));
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW10_WatOutFixture2);
SWLog("横移轨道23:再次验证托盘是否在出口处 ,停止横移2的皮带线 ");
// SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(100));
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW3_TrayCheck, IO_VALUE.HIGH));
IOMove(IO_Type.SW2_MotorRun, IO_VALUE.LOW);
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW2_MotorRun, IO_VALUE.LOW));
}
}
else if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW09_WaitOutCheck))
{
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW10_WatOutFixture2);
SWLog("横移轨道23:再次验证托盘是否在出口处 ,停止横移2的皮带线 ");
// SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(100));
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW3_TrayCheck, IO_VALUE.HIGH));
IOMove(IO_Type.SW2_MotorRun, IO_VALUE.LOW);
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW2_MotorRun, IO_VALUE.LOW));
}
else if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW10_WatOutFixture2))
{
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW11_TopDown);
SWLog("横移轨道23:托盘已到达出口,顶升气缸下降 ");
// CylinderMove(SW23_MoveInfo, IO_Type.SW2_TopCylinder_Up, IO_Type.SW2_TopCylinder_Down);
//Thread.Sleep(50);
if (!CheckTrayIsNeed(104, Sw23TrayNum))
{
CylinderMove(SW23_MoveInfo, IO_Type.SW3_TopCylinder_Up, IO_Type.SW3_TopCylinder_Down);
}
//CylinderMove(SW23_MoveInfo, IO_Type.SW2_TopCylinder_Up, IO_Type.SW2_TopCylinder_Down);
}
else if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW11_TopDown))
{
bool result = false;
bool topCylinderDown = true;
//如果顶升1没有下降,才判断是否需要入库
if (IOValue(IO_Type.SW3_TopCylinder_Down).Equals(IO_VALUE.LOW) && IOValue(IO_Type.SW3_TopCylinder_Up).Equals(IO_VALUE.HIGH))
{
topCylinderDown = false;
result = FeedingEquipMap[104].CanStartCheckOut(Sw23TrayNum);
}
if (result)
{
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW13_WaitTrayGo);
SWLog("横移轨道23:关闭皮带电机,需要紧急出料,不需要等待 托盘离开");
IOMove(IO_Type.SW2_MotorRun, IO_VALUE.LOW);
IOMove(IO_Type.SW3_MotorRun, IO_VALUE.LOW);
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW2_MotorRun, IO_VALUE.LOW));
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW3_MotorRun, IO_VALUE.LOW));
}
else
{
if (topCylinderDown)
{
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW12_WaitTime);
SWLog("横移轨道23:关闭皮带电机,等待1秒钟,关闭横移电机 ");
IOMove(IO_Type.SW2_MotorRun, IO_VALUE.LOW);
IOMove(IO_Type.SW3_MotorRun, IO_VALUE.LOW);
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000));
}
else
{
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW11_TopDown);
SWLog("横移轨道23:托盘已到达出口,重新顶升气缸下降 ");
CylinderMove(SW23_MoveInfo, IO_Type.SW3_TopCylinder_Up, IO_Type.SW3_TopCylinder_Down);
}
}
}
else if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW12_WaitTime))
{
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW13_WaitTrayGo);
SWLog("横移轨道23:关闭皮带电机,等待SW3_TrayCheck=0,关闭横移电机 ");
IOMove(IO_Type.SW2_MotorRun, IO_VALUE.LOW);
IOMove(IO_Type.SW3_MotorRun, IO_VALUE.LOW);
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(2000));
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW3_TrayCheck, IO_VALUE.LOW));
}
else if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW13_WaitTrayGo))
{
lastSw2StopDownTime = DateTime.Now.AddSeconds(-2);
SW23_MoveInfo.EndMove();
CylinderMove(null, IO_Type.SW3_TopCylinder_Down, IO_Type.SW3_TopCylinder_Up);
SWLog("横移轨道23:横移结束,横移3顶升上升 ");
}
}
private void SW23_SW08_DriveMotorMove()
{
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW08_DriveMotorMove);
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1500));
SWLog("横移轨道23:开始转动电机 ,等待1000,SW2_TrayCheck=0, SW3_TrayCheck=1 ");
IOMove(IO_Type.SW2_MotorRun, IO_VALUE.HIGH);
IOMove(IO_Type.SW3_MotorRun, IO_VALUE.HIGH);
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW2_MotorRun, IO_VALUE.HIGH));
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW3_MotorRun, IO_VALUE.HIGH));
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW3_TrayCheck, IO_VALUE.HIGH));
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW2_TrayCheck, IO_VALUE.LOW));
}
private void SW23_SW07_WaitNoTray()
{
if (IOValue(IO_Type.SW3_TrayCheck).Equals(IO_VALUE.LOW))
{
SW23_SW08_DriveMotorMove();
}
else
{
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW07_WaitNoTray);
SWLog("横移轨道23: 等待 SW3_TrayCheck=0 ");
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW3_TrayCheck, IO_VALUE.LOW));
}
}
private void SW23_SW06_TopCylinderUp()
{
if (CylinderIsOk(IO_Type.SW2_TopCylinder_Down, IO_Type.SW2_TopCylinder_Up) &&
CylinderIsOk(IO_Type.SW3_TopCylinder_Down, IO_Type.SW3_TopCylinder_Up))
{
SW23_SW07_WaitNoTray();
}
else
{
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW06_TopCylinderUp);
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000));
SWLog("横移轨道23:顶升气缸上升 ,至少等待1000 ");
IOMove(IO_Type.SW2_StopDown, IO_VALUE.LOW);
CylinderMove(SW23_MoveInfo, IO_Type.SW2_TopCylinder_Down, IO_Type.SW2_TopCylinder_Up);
CylinderMove(SW23_MoveInfo, IO_Type.SW3_TopCylinder_Down, IO_Type.SW3_TopCylinder_Up);
}
}
private void SW23_SW05_LocationDown()
{
if (CylinderIsOk(IO_Type.SW2_LocationCylinder_Up, IO_Type.SW2_LocationCylinder_Down) &&
CylinderIsOk(IO_Type.SW3_LocationCylinder_Up, IO_Type.SW3_LocationCylinder_Down))
{
SW23_SW06_TopCylinderUp();
}
else
{
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW05_LocationDown);
SWLog("横移轨道23:定位气缸下降 ");
CylinderMove(SW23_MoveInfo, IO_Type.SW2_LocationCylinder_Up, IO_Type.SW2_LocationCylinder_Down);
CylinderMove(SW23_MoveInfo, IO_Type.SW3_LocationCylinder_Up, IO_Type.SW3_LocationCylinder_Down);
}
}
private void SW23_SW04_WaitCanUp()
{
if (IOValue(IO_Type.SW2_TrayCheck).Equals(IO_VALUE.HIGH) && IOValue(IO_Type.SW3_TrayCheck).Equals(IO_VALUE.LOW) && SwCanUpMove(3))
{
SW23_SW05_LocationDown();
}
else
{
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW04_WaitCanUp);
SWLog("横移轨道23: 等待横移4托盘检测信号 ,SW2_StopDown上升 ,等待横移3(上料4)处无托盘 ");
CheckAndMove(IO_Type.SW2_StopDown, IO_VALUE.LOW);
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW2_TrayCheck, IO_VALUE.HIGH));
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW3_TrayCheck, IO_VALUE.LOW));
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitSWCanTopUp(3));
}
}
private void SWLog(string msg)
{
LogUtil.debug(Name + msg);
}
#endregion
}
}
......@@ -32,12 +32,12 @@ namespace OnlineStore.DeviceLibrary
SecondMoveInfo = new LineMoveInfo(DeviceID, "[" + Name.Trim() + "-SMove]");
UseAxis = config.UpDownUseAxis.Equals(1);
if (UseAxis)
{
//if (UseAxis)
//{
Config.UpDown_Axis.ServerOnDO = IO_Type.UpDownAxis_ServoOn;
Config.UpDown_Axis.BreakOnDO = IO_Type.UpDownAxis_BreakOn;
}
// Config.UpDown_Axis.ServerOnDO = IO_Type.UpDownAxis_ServoOn;
// Config.UpDown_Axis.BreakOnDO = IO_Type.UpDownAxis_BreakOn;
//}
UpdownAxis = new AxisBean(config.UpDown_Axis, Name);
}
private string GetNByID()
......
......@@ -24,7 +24,7 @@ namespace OnlineStore.DeviceLibrary
public LineManager()
{
}
public static void CheckEnum(Type type)
public static bool CheckEnum(Type type)
{
if (type.IsEnum)
{
......@@ -36,11 +36,13 @@ namespace OnlineStore.DeviceLibrary
{
LogUtil.error( type.Name + "枚举值:" + item + "重复存在,请检查代码!程序退出。");
Application.Exit();
return false;
break;
}
valueList.Add(item);
}
}
return true;
}
public static bool Init()
{
......@@ -72,13 +74,19 @@ namespace OnlineStore.DeviceLibrary
{
IsConnectServer = true;
}
CheckEnum(typeof(LineMoveStep));
CheckEnum(typeof(LineStatus));
CheckEnum(typeof(LineRunStatus));
if (!CheckEnum(typeof(LineMoveStep))){
return false; }
if (!CheckEnum(typeof(LineStatus)))
{
return false;
}
if (!CheckEnum(typeof(LineRunStatus))){
return false;
}
isInit = true;
string lineType = ConfigAppSettings.GetValue(Setting_Init.Line_Type);
LogUtil.info( " 类型=" + lineType + ",开始加载 配置");
LogUtil.info(" 类型=" + lineType + ",开始加载 配置");
if (lineType == DeviceType.Line)
{
string appPath = Application.StartupPath;
......@@ -93,7 +101,7 @@ namespace OnlineStore.DeviceLibrary
{
string nameStr = i.ToString().PadLeft(2, '0');
string config = appPath + moveEquipConfig.Replace(".csv", "_" + nameStr + ".csv");
MoveEquip_Config moveConfig = CSVConfigReader.LoadMoveConfig(i,DeviceType.MoveEquip, config);
MoveEquip_Config moveConfig = CSVConfigReader.LoadMoveConfig(i, DeviceType.MoveEquip, config);
int subType = i;
// moveConfig.SetIO(subType);
moveECMap.Add(i, moveConfig);
......@@ -111,7 +119,7 @@ namespace OnlineStore.DeviceLibrary
{
int subType = 100 + i;
string config = appPath + feedingEquipConfig.Replace(".csv", "_" + i + ".csv");
FeedingEquip_Config moveConfig = CSVConfigReader.LoadFeedingConfig(subType,DeviceType.FeedingEquip, config);
FeedingEquip_Config moveConfig = CSVConfigReader.LoadFeedingConfig(subType, DeviceType.FeedingEquip, config);
moveConfig.SetIO(subType);
feedingECMap.Add(subType, moveConfig);
allConfigMap.Add(subType, moveConfig);
......@@ -123,8 +131,8 @@ namespace OnlineStore.DeviceLibrary
{
int subType = 200 + i;
string nameStr = i.ToString().PadLeft(2, '0');
string config = appPath + hyEquipConfig.Replace(".csv", "_" +nameStr + ".csv");
HYEquip_Config moveConfig = CSVConfigReader.LoadHYConfig(subType,DeviceType.HYEquip, config);
string config = appPath + hyEquipConfig.Replace(".csv", "_" + nameStr + ".csv");
HYEquip_Config moveConfig = CSVConfigReader.LoadHYConfig(subType, DeviceType.HYEquip, config);
moveConfig.SetIO(subType);
HYECMap.Add(subType, moveConfig);
allConfigMap.Add(subType, moveConfig);
......@@ -143,7 +151,7 @@ namespace OnlineStore.DeviceLibrary
//}
Config.SetIO(1000);
Line = new LineBean(Config, moveECMap, feedingECMap, HYECMap);
LogUtil.info( "加载 完成!");
LogUtil.info("加载 完成!");
return true;
}
}
......@@ -154,7 +162,7 @@ namespace OnlineStore.DeviceLibrary
}
catch (Exception ex)
{
LogUtil.error("出错:",ex);
LogUtil.error("出错:", ex);
MessageBox.Show(ex.ToString(), "加载配置错误(请检查配置)");
Application.Exit();
}
......
......@@ -46,14 +46,14 @@ namespace OnlineStore.DeviceLibrary
{
return DefaultTrayNum;
}
if (subType.Equals(104))
{
return LineManager.Line.Sw23TrayNum;
}
else if (subType.Equals(101))
{
return LineManager.Line.Sw41TrayNum;
}
//if (subType.Equals(104))
//{
// return LineManager.Line.Sw23TrayNum;
//}
//else if (subType.Equals(101))
//{
// return LineManager.Line.Sw41TrayNum;
//}
string ip = GetRFIP(subType);
//获取盘号
......
......@@ -465,7 +465,10 @@ namespace OnlineStore.DeviceLibrary
{
try
{
if (baseConfig.DType.Equals(DeviceType.HYEquip))
{
//需要判断是否包含此DO
}
if (baseConfig.DType.Equals(DeviceType.FeedingEquip))
{
if (!baseConfig.DOList.ContainsKey(IoLowType))
......@@ -531,6 +534,10 @@ namespace OnlineStore.DeviceLibrary
}
public void IOMove(string IoType, IO_VALUE value, int msTime = 0)
{
if (baseConfig.DType.Equals(DeviceType.HYEquip))
{
//需要判断是否包含此DO
}
if (msTime <= 0)
{
IOManager.IOMove(IoType, value, baseConfig.Id);
......@@ -544,7 +551,8 @@ namespace OnlineStore.DeviceLibrary
IO_VALUE tValue = value.Equals(IO_VALUE.HIGH) ? IO_VALUE.LOW : IO_VALUE.HIGH;
if (IOValue(IoType).Equals(tValue).Equals(false))
{
if (IoType.Equals(IO_Type.StopDown1).Equals(false)&&IoType.Equals(IO_Type.SW_StopDown).Equals(false))
if (IoType.Equals(IO_Type.StopDown1).Equals(false) )
//if (IoType.Equals(IO_Type.StopDown1).Equals(false)&&IoType.Equals(IO_Type.SW_StopDown).Equals(false))
{
LogUtil.info(Name + "定时回写IO: [" + IoType + "]=[" + value + "],[" + baseConfig.Id + "],msTime=" + msTime);
}
......
......@@ -302,11 +302,11 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 等待StoreMove完成当前操作开始入库
/// </summary>
MIO_08_WaitInStore=3088,
MIO_08_WaitInStore = 3088,
/// <summary>
/// 等待StoreMove移走料盘开始放托盘通过
/// </summary>
MIO_09_WaitLetFixtureGo=3089,
MIO_09_WaitLetFixtureGo = 3089,
#endregion
#region 移栽装置出库处理 3100-3200
......@@ -317,7 +317,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 移栽处理已完成,开始扫码或继续托盘处理流程
/// </summary>
MO_12_MoveOk=3102,
MO_12_MoveOk = 3102,
/// <summary>
/// 移载(流水线)定位气缸下降
/// </summary>
......@@ -329,7 +329,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 如果是移栽2需要等待托盘是否可以走
/// </summary>
MO_15_WaitCanGo=3105,
MO_15_WaitCanGo = 3105,
/// <summary>
/// 移载(流水线)装置出库处理, 阻挡气缸1-2下降
/// </summary>
......@@ -350,7 +350,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 移栽装置出库处理,开始出库
/// </summary>
MO_50_StartOutProcess=3150,
MO_50_StartOutProcess = 3150,
/// <summary>
/// 移栽装置出库处理。。前后气缸1前进
/// </summary>
......@@ -395,11 +395,11 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 等待当前的出入库结束
/// </summary>
MO_200_WaitInoutParam=3200,
MO_200_WaitInoutParam = 3200,
/// <summary>
/// 等待紧急出料结束
/// </summary>
MO_201_WaitOutEnd=3201,
MO_201_WaitOutEnd = 3201,
#endregion
......@@ -413,7 +413,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 阻挡气缸下降
/// </summary>
SW01_StopDown=5001,
SW01_StopDown = 5001,
/// <summary>
/// 等待到托盘信号后,需要持续一段时间
......@@ -426,36 +426,36 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 等待轨道1夹具检测信号,等待横移3或横移1无托盘
/// </summary>
SW04_WaitCanUp= 5004,
SW04_WaitCanUp = 5004,
/// <summary>
/// 定位气缸下降
/// </summary>
SW05_LocationDown=5005,
SW05_LocationDown = 5005,
/// <summary>
/// 横移轨道顶升气缸上升
/// </summary>
SW06_TopCylinderUp= 5006,
SW06_TopCylinderUp = 5006,
/// <summary>
/// 等待第二个横移没有托盘
/// </summary>
SW07_WaitNoTray=5007,
SW07_WaitNoTray = 5007,
/// <summary>
/// 横移轨道点击转动
/// </summary>
SW08_DriveMotorMove=5008,
SW08_DriveMotorMove = 5008,
/// <summary>
/// 收到横移轨道2夹具检测信号
/// </summary>
SW09_WaitOutCheck=5009,
SW09_WaitOutCheck = 5009,
/// <summary>
/// 等待出口信号持续一段时间
/// </summary>
SW10_WatOutFixture2=5010,
SW10_WatOutFixture2 = 5010,
/// <summary>
/// 停止横移轨道转动,横移轨道顶升气缸下降
/// </summary>
SW11_TopDown=5011,
SW11_TopDown = 5011,
/// <summary>
/// 等待托盘流出,等待1秒后再检测托盘信号是否消失
/// </summary>
......@@ -463,7 +463,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 等待托盘流出,上升阻挡气缸
/// </summary>
SW13_WaitTrayGo =5013,
SW13_WaitTrayGo = 5013,
#endregion
......@@ -477,7 +477,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 分流横移:托盘不需要横移,阻挡1下降1200,
/// </summary>
Shunt02_Stop1Down ,
Shunt02_Stop1Down,
/// <summary>
/// 分流横移:等待检测1信号消失
/// </summary>
......@@ -510,7 +510,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 分流横移:升降2下降,皮带线停止
/// </summary>
Shunt11_TopDown ,
Shunt11_TopDown,
#endregion
......@@ -524,7 +524,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 复位之前,所有的链条先转动3秒钟
/// </summary>
FR_02_LineRun=10002,
FR_02_LineRun = 10002,
/// <summary>
/// 横移装置上升,
/// </summary>
......@@ -618,7 +618,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 提升轴先返回P2
/// </summary>
FI_00_BatchAxisToP2 =11000,
FI_00_BatchAxisToP2 = 11000,
/// <summary>
/// 入料流程:升降盘定位气缸后退
/// </summary>
......@@ -640,12 +640,12 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
///入料检测: 工位检测信号,定位气缸上升
/// </summary>
FI_05_LocationCylinder_Up ,
FI_05_LocationCylinder_Up,
/// <summary>
/// 入料检测:提升轴下降到位P2
/// </summary>
FI_06_BatchAxisToP2 ,
FI_06_BatchAxisToP2,
/// <summary>
/// 入料检测:升降盘定位气缸第一次前进
/// </summary>
......@@ -653,15 +653,15 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 入料检测:升降盘定位气缸第一次后退
/// </summary>
FI_08_TrayLocation_Back ,
FI_08_TrayLocation_Back,
/// <summary>
/// 入料检测:升降盘定位气缸前进
/// </summary>
FI_09_TrayLocation_Before ,
FI_09_TrayLocation_Before,
/// <summary>
/// 入料检测:上料轴开始慢速上升到P3点,等待检测到料盘
/// </summary>
FI_10_AxisUpMove ,
FI_10_AxisUpMove,
/// <summary>
/// 入料取料:横移机构先上升
......@@ -671,16 +671,16 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 入料取料:上料机构到放料端
/// </summary>
FI_12_CylinderGive ,
FI_12_CylinderGive,
/// <summary>
/// 入料检测到料盘:扫码
/// </summary>
FI_13_ScanCode ,
FI_13_ScanCode,
/// <summary>
/// 料盘移栽:有料盘:上料横移机构取料
/// </summary>
FI_14_CylinderTake ,
FI_14_CylinderTake,
/// <summary>
/// 料盘移栽:升降轴到P3
......@@ -690,7 +690,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 料盘移栽:上料横移机构夹紧
/// </summary>
FI_16_CylinderTighten ,
FI_16_CylinderTighten,
/// <summary>
/// 料盘移栽:升降伺服到P1点
/// </summary>
......@@ -706,7 +706,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 料盘移栽:记录高度尺寸
/// </summary>
FI_20_SaveSize ,
FI_20_SaveSize,
/// <summary>
/// 料盘移栽: 上料横移气缸放料SOL
......@@ -778,12 +778,12 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 上料完成,出口顶升气缸上升
/// </summary>
FI_35_OutTopCylinder_Up ,
FI_35_OutTopCylinder_Up,
/// <summary>
///上料完成, 线体横移电机运转,等待料架到达出口
/// </summary>
FI_36_SideWayLineRun ,
FI_36_SideWayLineRun,
/// <summary>
///上料完成,等待料架到达出口
/// </summary>
......@@ -792,7 +792,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
///上料完成, 料架到达出口,线体横移电机停止
/// </summary>
FI_38_LineStop ,
FI_38_LineStop,
/// <summary>
///上料完成, 料架到达出口,出口顶升下降,定位气缸下降,
/// </summary>
......@@ -817,7 +817,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 出库流程:提升伺服到P2
/// </summary>
FO_00_BatchAxisToP2=12000,
FO_00_BatchAxisToP2 = 12000,
/// <summary>
/// 出料流程:升降盘定位气缸后退
/// </summary>
......@@ -833,12 +833,12 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 定位工位检测到料架,等待1秒钟后重新检测
/// </summary>
FO_04_WaitTime=12004,
FO_04_WaitTime = 12004,
/// <summary>
///出料检测: 工位检测信号,定位气缸上升
/// </summary>
FO_05_LocationUp= 12005,
FO_05_LocationUp = 12005,
/// <summary>
/// 出料检测:提升轴下降到位P2
......@@ -932,7 +932,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 出料完成,等待出料线体无料架
/// </summary>
FO_34_OutCheck ,
FO_34_OutCheck,
/// <summary>
/// 出料完成,出口顶升气缸上升
/// </summary>
......@@ -950,16 +950,16 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
///出料完成, 料架到达出口,线体横移电机停止
/// </summary>
FO_37_LineStop ,
FO_37_LineStop,
/// <summary>
///出料完成, 料架到达出口,出口顶升下降,定位气缸下降,
/// </summary>
FO_38_TopDown ,
FO_38_TopDown,
/// <summary>
///出料完成, 出口线体运转,料架到达出口处, 通知AGV取空料架
/// </summary>
FO_39_OutLineRun ,
FO_39_OutLineRun,
/// <summary>
///出料完成, AGV到达,继续转动出口线体,送走出料料架,
/// </summary>
......@@ -987,7 +987,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 夹料气缸夹紧
/// </summary>
PO_03_CylinderOpen=20003,
PO_03_CylinderOpen = 20003,
/// <summary>
/// 上下气缸上升
/// </summary>
......@@ -1023,8 +1023,6 @@ namespace OnlineStore.DeviceLibrary
/// </summary>
PO_10_CylinderAfter = 20010,
#endregion
......@@ -1032,15 +1030,15 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 出料流水线复位,定位气缸下降,NG气缸后退
/// </summary>
DL_R_CylinderDown=30001,
DL_R_CylinderDown = 30001,
/// <summary>
/// 转动皮带开始运行
/// </summary>
DL_R_StartRun=30002,
DL_R_StartRun = 30002,
/// <summary>
/// 皮带线检测处理
/// </summary>
DL_R_LineCheck=30100,
DL_R_LineCheck = 30100,
#region 皮带线3送出料盘处理
/// <summary>
......@@ -1079,11 +1077,11 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 停止接驳台皮带线
/// </summary>
DO_10_StopSeparateLine=30210,
DO_10_StopSeparateLine = 30210,
/// <summary>
/// 出料皮带线获取尺寸NG,先转动料盘到扫码的下一个工位
/// </summary>
DO_11_NGToNextStation=30211,
DO_11_NGToNextStation = 30211,
/// <summary>
/// 出料皮带线获取尺寸NG,NG气缸前进
/// </summary>
......@@ -1204,13 +1202,18 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 皮带线12处理料盘:出口无料盘,结束,
/// </summary>
DLO_11_ExitNoTray
DLO_11_ExitNoTray,
#endregion
#endregion
#region MyRegion 80000开始
HY_R_01StopMove = 80001,
#endregion
}
public enum LineAlarmType
......
......@@ -161,8 +161,8 @@ namespace OnlineStore.LoadCSVLibrary
{
if (!titleIndex.ContainsKey(str))
{
LogUtil.error("【“+lineValue+”】未找到必须列:" + str + ",加载数据失败!");
throw new CVSFieldNotMatchingExection("未找到必须列:" + str + ",加载数据失败!");
LogUtil.error("【"+lineValue+"】未找到必须列:" + str + ",加载数据失败!");
throw new CVSFieldNotMatchingExection("【" + lineValue + "】未找到必须列:" + str + ",加载数据失败!");
}
}
}
......
......@@ -82,6 +82,10 @@ namespace OnlineStore.LoadCSVLibrary
private int LineSubType = 1000;
public virtual void LoadConfig(List<ConfigBase> configList)
{
List<string> ioTypeList = IO_Type.GetTypeList();
//ioTypeList = new List<string>();
StringBuilder builder = new StringBuilder("\r\n");
StringBuilder proBuilder = new StringBuilder("\r\n");
DIList = new Dictionary<string, ConfigIO>();
DOList = new Dictionary<string, ConfigIO>();
// SubDIList = new Dictionary<int, Dictionary<string, ConfigIO>>();
......@@ -130,6 +134,7 @@ namespace OnlineStore.LoadCSVLibrary
}
else
{
AddProBuffer(con, proBuilder);
LogUtil.error("配置文件:" + this.ConfigFilePath + ",属性名=" + con.ProName + "的属性未找到匹配字段!");
}
}
......@@ -184,6 +189,12 @@ namespace OnlineStore.LoadCSVLibrary
SubDIList[io.SubType].Add(io.ProName, io);
}
}
if (!ioTypeList.Contains(con.ProName))
{
ioTypeList.Add(con.ProName);
AddBuffer(con, builder);
}
}
else if (con.ProType == ConfigItemType.DO)
{
......@@ -234,8 +245,22 @@ namespace OnlineStore.LoadCSVLibrary
SubDOList[io.SubType].Add(io.ProName, io);
}
}
if (!ioTypeList.Contains(con.ProName))
{
ioTypeList.Add(con.ProName);
AddBuffer(con, builder);
}
}
}
if (String.IsNullOrEmpty(proBuilder.ToString()).Equals(false) && proBuilder.ToString().Equals("\r\n").Equals(false))
{
LogUtil.error(proBuilder.ToString());
}
if (String.IsNullOrEmpty(builder.ToString()).Equals(false) && builder.ToString().Equals("\r\n").Equals(false))
{
LogUtil.error(builder.ToString());
}
if (checkProList.Count >= 0)
{
//常规属性检测
......@@ -288,7 +313,21 @@ namespace OnlineStore.LoadCSVLibrary
}
}
private void AddProBuffer(ConfigBase con, StringBuilder builder)
{
builder.Append(" /// <summary>\r\n");
builder.Append(" /// " + con.ConfigStr + "\r\n");
builder.Append(" /// </summary>\r\n");
builder.Append(" [ConfigProAttribute(\"" + con.ProName + "\")]\r\n");
builder.Append(" public int " + con.ProName + " { get; set; }\r\n");
}
private void AddBuffer(ConfigBase con, StringBuilder builder)
{
builder.Append(" /// <summary>\r\n");
builder.Append(" /// " + con.ConfigStr + "\r\n");
builder.Append(" /// </summary>\r\n");
builder.Append(" public static string " + con.ProName + "=\"" + con.ProName + "\";\r\n");
}
public void SetIO( int subType)
{
//if (subType < 1000)
......
......@@ -18,6 +18,10 @@ namespace OnlineStore.LoadCSVLibrary
public HYEquip_Config(int id, string cid, string type, string filepath)
: base(id, cid, LoadCSVLibrary.DeviceType.HYEquip, filepath)
{
IsOutLineOut = 0;
IsOutLineIn = 0;
IsSideWayIn = 0;
IsOutLineOut = 0;
}
public int SidesWayNum = 0;
......@@ -29,16 +33,36 @@ namespace OnlineStore.LoadCSVLibrary
public int IsDebug { get; set; }
/// <summary>
/// PRO,0,设备对应的出料流水线的编号,DLineEquipNum,1,,,,,
/// PRO,0,HY所在流水线,LineName,C1,,
/// </summary>
[ConfigProAttribute("DLineEquipNum", false)]
public int DLineEquipNum { get; set; }
[ConfigProAttribute("LineName")]
public string LineName { get; set; }
/// <summary>
/// PRO,0,HY工位对应的取放料设备,WorkDevice,105,,
/// </summary>
[ConfigProAttribute("WorkDevice")]
public string WorkDevice { get; set; }
/// <summary>
/// PRO,0,HY是否是托盘横移入口,IsSideWayIn,0,,
/// </summary>
[ConfigProAttribute("IsSideWayIn")]
public int IsSideWayIn { get; set; }
/// <summary>
/// PRO,0,设备对应的出料流水线的第几条流水线,DLineLineNum,1,,,,,
/// PRO,0,HY是否是托盘横移出口,IsSideWayOut,1,,
/// </summary>
[ConfigProAttribute("DLineLineNum", false)]
public int DLineLineNum { get; set; }
[ConfigProAttribute("IsSideWayOut")]
public int IsSideWayOut { get; set; }
/// <summary>
/// PRO,0,HY是否是托盘进入出料线入口,IsOutLineIn,0,,
/// </summary>
[ConfigProAttribute("IsOutLineIn")]
public int IsOutLineIn { get; set; }
/// <summary>
/// PRO,0,HY是否是托盘离开出料线出口,IsOutLineOut,0,,
/// </summary>
[ConfigProAttribute("IsOutLineOut")]
public int IsOutLineOut { get; set; }
/// <summary>
/// PRO 0 移栽上下运动是否使用伺服 UpDownUseAxis 1
......
......@@ -28,777 +28,970 @@ namespace OnlineStore.LoadCSVLibrary
}
/// <summary>
/// DI 0 急停 SuddenStop_BTN 0 急停 X01 DI-01
/// DI,0,急停,SuddenStop_BTN,0,HC,X00
/// </summary>
public static string SuddenStop_BTN = "SuddenStop_BTN";
/// <summary>
/// DI 0 复位 Reset_BTN 1 复位 X02 DI-02
/// DI,0,复位,Reset_BTN,1,HC,X01
/// </summary>
public static string Reset_BTN = "Reset_BTN";
/// <summary>
/// DI 0 启动 Start_BTN 2 联动按钮 X03 DI-03
/// DI,0,气压检测1,Airpressure_Check,2,HC,X02
/// </summary>
public static string Start_BTN = "Start_BTN";
public static string Airpressure_Check = "Airpressure_Check";
/// <summary>
/// DI 0 流水线自动运转 Line_Run 3 流水线自动运转 X04 DI-04
/// DI,217,C7-HY17阻挡托盘检测,HY_StopTray_Check,3,HC,X03
/// </summary>
public static string Line_Run = "Line_Run";
public static string HY_StopTray_Check = "HY_StopTray_Check";
/// <summary>
/// DI 0 气压检测 Airpressure_Check 4 气压检测 X05 DI-05
/// DI,217,HY17横移托盘检测,HY_TrayCheck,4,HC,X04
/// </summary>
public static string Airpressure_Check = "Airpressure_Check";
public static string HY_TrayCheck = "HY_TrayCheck";
/// <summary>
/// DO 0 黄灯 待机状态(指示灯) AutoRun_HddLed 24 待机状态(指示灯) Y01 DO-01
/// DI,217,HY17横移顶升上升端,HY_TopCylinder_UP,5,HC,X05
/// </summary>
public static string AutoRun_HddLed = "AutoRun_HddLed";
public static string HY_TopCylinder_UP = "HY_TopCylinder_UP";
/// <summary>
/// DO 0 绿灯 运行状态(指示灯) RunSign_HddLed 25 运行状态(指示灯) Y02 DO-02
/// DI,217,HY17横移顶升下降端,HY_TopCylinder_Down,6,HC,X06
/// </summary>
public static string RunSign_HddLed = "RunSign_HddLed";
public static string HY_TopCylinder_Down = "HY_TopCylinder_Down";
/// <summary>
/// DO 0 红灯 故障状态(指示灯) Alarm_HddLed 26 故障状态(指示灯) Y03 DO-03
/// DI,217,HY17横移定位1上升端,HY_LocationCylinder_UP1,7,HC,X07
/// </summary>
public static string Alarm_HddLed = "Alarm_HddLed";
public static string HY_LocationCylinder_UP1 = "HY_LocationCylinder_UP1";
/// <summary>
/// DO 0 阻挡气缸0-1下降SOL StopDown1 16 阻挡气缸0-1下降SOL Y11 DO-11
/// DI,217,HY17横移定位1下降端,HY_LocationCylinder_Down1,8,HC,X08
/// </summary>
public static string StopDown1 = "StopDown1";
public static string HY_LocationCylinder_Down1 = "HY_LocationCylinder_Down1";
/// <summary>
/// DO 0 阻挡气缸0-2下降SOL StopDown2 17 阻挡气缸0-2下降SOL Y12 DO-12
/// DI,217,HY17横移定位2上升端,HY_LocationCylinder_UP2,9,HC,X09
/// </summary>
public static string StopDown2 = "StopDown2";
public static string HY_LocationCylinder_UP2 = "HY_LocationCylinder_UP2";
/// <summary>
/// 移栽DI/DO 阻挡3-1夹具检测 TrayCheck 0
/// DI,217,HY17横移定位2下降端,HY_LocationCylinder_Down2,10,HC,X10
/// </summary>
public static string TrayCheck = "TrayCheck";
public static string HY_LocationCylinder_Down2 = "HY_LocationCylinder_Down2";
/// <summary>
/// 移栽DI/DO 移载顶升气缸上升端 /环形线横移4定位上升端 TopCylinder_UP 5
/// DI,217,HY17接驳台气缸取料端,HY_MoveCylinder_Take,11,HC,X11
/// </summary>
public static string TopCylinder_UP = "TopCylinder_UP";
public static string HY_MoveCylinder_Take = "HY_MoveCylinder_Take";
/// <summary>
/// 移栽DI/DO 移载顶升气缸下降端/环形线横移4定位下降端 TopCylinder_Down 6
/// DI,217,HY17接驳台气缸放料端,HY_MoveCylinder_Give,12,HC,X12
/// </summary>
public static string TopCylinder_Down = "TopCylinder_Down";
public static string HY_MoveCylinder_Give = "HY_MoveCylinder_Give";
/// <summary>
/// 移栽DI/DO 移载前后气缸前进端 BeforeAfterCylinder_Before 7
/// DI,217,HY17夹料气缸料盘检测,HY_ClampCylinder_Check,13,HC,X13
/// </summary>
public static string BeforeAfterCylinder_Before = "BeforeAfterCylinder_Before";
public static string HY_ClampCylinder_Check = "HY_ClampCylinder_Check";
/// <summary>
/// 移栽DI/DO 移载前后气缸后退端 BeforeAfterCylinder_After 8
/// DI,217,HY17夹料气缸放松端,HY_ClampCylinder_Relax,14,HC,X14
/// </summary>
public static string BeforeAfterCylinder_After = "BeforeAfterCylinder_After";
public static string HY_ClampCylinder_Relax = "HY_ClampCylinder_Relax";
/// <summary>
/// 移栽DI/DO 移载上下气缸上升端 UpDownCylinder_Up 9
/// DO,0,待机状态(指示灯),AutoRun_HddLed,0,HC,Y00
/// </summary>
public static string UpDownCylinder_Up = "UpDownCylinder_Up";
public static string AutoRun_HddLed = "AutoRun_HddLed";
/// <summary>
/// 移栽DI/DO 移载上下气缸下降端 UpDownCylinder_Down 10
/// DO,0,运行状态(指示灯),RunSign_HddLed,1,HC,Y01
/// </summary>
public static string UpDownCylinder_Down = "UpDownCylinder_Down";
public static string RunSign_HddLed = "RunSign_HddLed";
/// <summary>
/// 移栽DI/DO 移载夹料气缸夹紧端 ClampCylinder_Work 11
/// DO,0,故障状态(指示灯),Alarm_HddLed,2,HC,Y02
/// </summary>
public static string ClampCylinder_Work = "ClampCylinder_Work";
public static string Alarm_HddLed = "Alarm_HddLed";
/// <summary>
/// 移栽DI/DO 移载夹料气缸放松端 ClampCylinder_Relax 12
/// DO,0,故障状态(蜂鸣器),Alarm_Buzzer,3,HC,Y03
/// </summary>
public static string ClampCylinder_Relax = "ClampCylinder_Relax";
public static string Alarm_Buzzer = "Alarm_Buzzer";
/// <summary>
/// DO 0 移载4升降轴刹车ON UpDownAxis_BreakOn 30 移载4升降轴刹车ON Y07 DO-07
/// DO,0,C6/C7/C9线体运转,MotorRun_679,4,HC,Y04
/// </summary>
public static string UpDownAxis_BreakOn = "UpDownAxis_BreakOn";
public static string MotorRun_679 = "MotorRun_679";
/// <summary>
/// DO 0 移载4升降轴伺服ON UpDownAxis_ServoOn 31 移载4升降轴伺服ON Y08 DO-08
/// DO,217,HY17横移电机正转,HY_LineRun,5,HC,Y05
/// </summary>
public static string UpDownAxis_ServoOn = "UpDownAxis_ServoOn";
public static string BatchAxis_BreakOn = "BatchAxis_BreakOn";
public static string BatchAxis_ServoOn = "BatchAxis_ServoOn";
#region 流水线新增IO
public static string HY_LineRun = "HY_LineRun";
/// <summary>
/// DI 进仓01阻挡1托盘检测,StopCheck1, X261
/// DO,217,HY17阻挡下降,HY_StopDown,6,HC,Y06
/// </summary>
public static string StopCheck1 = "StopCheck1";
public static string HY_StopDown = "HY_StopDown";
/// <summary>
/// DI 进仓01阻挡2托盘检测, StopCheck2, X262
/// DO,217,HY17横移定位上升,HY_LocationCylinder_UP,9,HC,Y09
/// </summary>
public static string StopCheck2 = "StopCheck2";
public static string HY_LocationCylinder_UP = "HY_LocationCylinder_UP";
/// <summary>
///DI NG料盘推出气缸前进端,NGCylinder_Before, X005
/// DO,217,HY17横移定位下降,HY_LocationCylinder_Down,10,HC,Y10
/// </summary>
public static string NGCylinder_Before = "NGCylinder_Before";
public static string HY_LocationCylinder_Down = "HY_LocationCylinder_Down";
/// <summary>
///DI NG料盘推出气缸后退端,NGCylinder_After, X006
/// DO,217,HY17夹料气缸夹紧,HY_ClampCylinder_Work,13,HC,Y13
/// </summary>
public static string NGCylinder_After = "NGCylinder_After";
public static string HY_ClampCylinder_Work = "HY_ClampCylinder_Work";
/// <summary>
/// DO 故障状态(蜂鸣器),Alarm_Buzzer, Y004
/// DI,22,D11-1阻挡1托盘检测,StopCheck1,16,HC,X16
/// </summary>
public static string Alarm_Buzzer = "Alarm_Buzzer";
public static string StopCheck1 = "StopCheck1";
/// <summary>
/// DO 驱动电机1正转,DriveMotor_Run1, Y005
/// DI,22,D11-1阻挡2托盘检测,StopCheck2,17,HC,X17
/// </summary>
public static string DriveMotor_Run1 = "DriveMotor_Run1";
public static string StopCheck2 = "StopCheck2";
/// <summary>
/// DO 驱动电机2正转,DriveMotor_Run2, ,Y006
/// DI,22,D11-1顶升上升端,TopCylinder_UP,18,HC,X18
/// </summary>
public static string DriveMotor_Run2 = "DriveMotor_Run2";
public static string TopCylinder_UP = "TopCylinder_UP";
/// <summary>
/// DO 驱动电机3正转,DriveMotor_Run3, Y007
/// DI,22,D11-1顶升下降端,TopCylinder_Down,19,HC,X19
/// </summary>
public static string DriveMotor_Run3 = "DriveMotor_Run3";
public static string TopCylinder_Down = "TopCylinder_Down";
/// <summary>
/// DO 驱动电机4正转,DriveMotor_Run4, Y008
/// DI,22,D11-1横移前进端,BeforeAfterCylinder_Before,20,HC,X20
/// </summary>
public static string DriveMotor_Run4 = "DriveMotor_Run4";
#endregion
#region 皮带线新增IO
public static string BeforeAfterCylinder_Before = "BeforeAfterCylinder_Before";
/// <summary>
/// DI 出料皮带线体1急停 DLine_SuddenStop X021
/// DI,22,D11-1横移后退端,BeforeAfterCylinder_After,21,HC,X21
/// </summary>
public static string DLine_SuddenStop = "DLine_SuddenStop";
public static string BeforeAfterCylinder_After = "BeforeAfterCylinder_After";
/// <summary>
/// DI 出料皮带线体1复位 DLine_Reset X022
/// DI,22,D11-1夹料气缸料盘检测,ClampCylinder_Check,22,HC,X22
/// </summary>
public static string DLine_Reset = "DLine_Reset";
///// <summary>
///// DI 0 皮带线1入口定位检测 EntryLocation_Check1 2 PRO_AOI_IP_2 0 皮带线1入口定位检测 X023 X023
///// </summary>
//public static string EntryLocation_Check1 = "EntryLocation_Check1";
public static string ClampCylinder_Check = "ClampCylinder_Check";
/// <summary>
/// DI 0 皮带线1出口定位检测 ExitLocation_Check1 3 PRO_AOI_IP_2 0 皮带线1出口定位检测 X024 X024
/// DI,22,D11-1夹料放松端,ClampCylinder_Relax,23,HC,X23
/// </summary>
public static string ExitLocation_Check1 = "ExitLocation_Check1";
public static string ClampCylinder_Relax = "ClampCylinder_Relax";
/// <summary>
/// DI 0 皮带线1出口料盘检测 ExitTray_Check1 4 PRO_AOI_IP_2 0 皮带线1出口料盘检测 X025 X025
/// DI,22,D11-1升降上升端,UpDownCylinder_Up,24,HC,X24
/// </summary>
public static string ExitTray_Check1 = "ExitTray_Check1";
///// <summary>
///// DI,0,皮带线2入口定位检测 EntryLocation_Check2 5 PRO_AOI_IP_2 0 皮带线2入口定位检测 X026 X026
///// </summary>
//public static string EntryLocation_Check2 = "EntryLocation_Check2";
public static string UpDownCylinder_Up = "UpDownCylinder_Up";
/// <summary>
/// DI 皮带线2出口定位检测 ExitLocation_Check2 6 PRO_AOI_IP_2 0 皮带线2出口定位检测 X027 X027
/// DI,22,D11-1升降下降端,UpDownCylinder_Down,25,HC,X25
/// </summary>
public static string ExitLocation_Check2 = "ExitLocation_Check2";
public static string UpDownCylinder_Down = "UpDownCylinder_Down";
/// <summary>
/// DI 皮带线2出口料盘检测 ExitTray_Check2 7 PRO_AOI_IP_2 0 皮带线2出口料盘检测 X028 X028
/// DI,216,HY16前阻挡托盘检测,HY_FrontStopCheck,52,HC,X52
/// </summary>
public static string ExitTray_Check2 = "ExitTray_Check2";
public static string HY_FrontStopCheck = "HY_FrontStopCheck";
/// <summary>
/// DI 皮带线3定位检测,Location_Check3,8,PRO_AOI_IP_2,0,皮带线3定位检测,X029,X029
/// DI,216,HY16-C7阻挡上升端,HY_StopCylinder_Up,56,HC,X56
/// </summary>
public static string Location_Check3 = "Location_Check3";
public static string HY_StopCylinder_Up = "HY_StopCylinder_Up";
/// <summary>
/// DI 皮带线3入口料盘检测, EntryTray_Check3,9, PRO_AOI_IP_2,0, 皮带线3入口料盘检测, X030, X030
/// DI,216,HY16-C7阻挡下降端,HY_StopCylinder_Down,57,HC,X57
/// </summary>
public static string EntryTray_Check3 = "EntryTray_Check3";
public static string HY_StopCylinder_Down = "HY_StopCylinder_Down";
/// <summary>
/// DI 皮带线3中间位置料盘检测,MiddleTray_Check3,10,PRO_AOI_IP_2,0,皮带线3中间位置料盘检测,X031,X031
/// DI,217,C7-HY17满料检测,HY_TrayImpletion_Check,58,HC,X58
/// </summary>
public static string MiddleTray_Check3 = "MiddleTray_Check3";
public static string HY_TrayImpletion_Check = "HY_TrayImpletion_Check";
/// <summary>
/// DI 皮带线3出口料盘检测, ExitTray_Check3,11, PRO_AOI_IP_2,0, 皮带线3出口料盘检测, X032, X032
/// DO,22,D11-1阻挡1下降,StopDown1,16,HC,Y16
/// </summary>
public static string ExitTray_Check3 = "ExitTray_Check3";
public static string StopDown1 = "StopDown1";
/// <summary>
/// DI 分盘装置1定位气缸上升端,SeparateDevice_Up,12,PRO_AOI_IP_2,0,分盘装置1定位气缸上升端,X033,X033
/// DO,22,D11-1阻挡2下降,StopDown2,17,HC,Y17
/// </summary>
public static string SeparateDevice_Up = "SeparateDevice_Up";
public static string StopDown2 = "StopDown2";
/// <summary>
/// DI 分盘装置1定位气缸下降端, SeparateDevice_Down,13, PRO_AOI_IP_2,0, 分盘装置1定位气缸下降端, X034, X034
/// DO,22,D11-1夹料夹紧,ClampCylinder_Work,22,HC,Y22
/// </summary>
public static string SeparateDevice_Down = "SeparateDevice_Down";
public static string ClampCylinder_Work = "ClampCylinder_Work";
/// <summary>
/// DI 分盘装置1料盘检测,SeparateDevice_Check,14,PRO_AOI_IP_2,0,分盘装置1料盘检测,X035,X035
/// DO,216,HY16前阻挡下降,HY_FrontStopDown,55,HC,Y55
/// </summary>
public static string SeparateDevice_Check = "SeparateDevice_Check";
public static string HY_FrontStopDown = "HY_FrontStopDown";
/// <summary>
/// DI 出料皮带线体1运行状态 DLine_RunStatus Y021
/// DO,0,C1线体电机1/2/3启动,MotorRun_C1_123,59,HC,Y59
/// </summary>
public static string DLine_RunStatus = "DLine_RunStatus";
public static string MotorRun_C1_123 = "MotorRun_C1_123";
/// <summary>
/// DI 出料皮带线体1故障状态 DLine_RunAlarm Y022
/// DI,105,T5急停,SL_SuddenStop_BTN,64,HC,X64
/// </summary>
public static string DLine_RunAlarm = "DLine_RunAlarm";
public static string SL_SuddenStop_BTN = "SL_SuddenStop_BTN";
/// <summary>
/// DO 0 出料皮带线1运转 DLine_Run1,Y021
/// DI,105,T5复位,SL_Reset_BTN,65,HC,X65
/// </summary>
public static string DLine_Run1 = "DLine_Run1";
public static string SL_Reset_BTN = "SL_Reset_BTN";
/// <summary>
/// DO 0 出料皮带线2运转 DLine_Run2,Y022
/// DI,105,T5入口检测,SL_Entry_Check,66,HC,X66
/// </summary>
public static string DLine_Run2 = "DLine_Run2";
public static string SL_Entry_Check = "SL_Entry_Check";
/// <summary>
/// DO 0 出料皮带线3运转 DLine_Run3,Y023
/// DI,105,T5阻挡检测,SL_Stop_Check,67,HC,X67
/// </summary>
public static string DLine_Run3 = "DLine_Run3";
public static string SL_Stop_Check = "SL_Stop_Check";
/// <summary>
/// DO 0 分盘装置电机驱动 SeparateDevice_Run,Y024
/// DI,105,T5定位工位检测,SL_Location_Check,68,HC,X68
/// </summary>
public static string SeparateDevice_Run = "SeparateDevice_Run";
#endregion
#region 上料流水线
public static string SL_Location_Check = "SL_Location_Check";
/// <summary>
/// DI 0 上料3夹爪料盘检测 ReelCheck 10 PRO_AOI_IP_16 0 上料3夹爪料盘检测 X211 X211
/// DI,105,T5定位气缸1上升端,SL_LocationCylinder_Up1,69,HC,X69
/// </summary>
public static string ReelCheck = "ReelCheck";
public static string SL_LocationCylinder_Up1 = "SL_LocationCylinder_Up1";
/// <summary>
/// DI SL1急停 SL_SuddenStop_BTN X101
/// DI,105,T5定位气缸1下降端,SL_LocationCylinder_Down1,70,HC,X70
/// </summary>
public static string SL_SuddenStop_BTN = "SL_SuddenStop_BTN";
public static string SL_LocationCylinder_Down1 = "SL_LocationCylinder_Down1";
/// <summary>
/// DI SL1复位 SL_Reset_BTN X102
/// DI,105,T5定位气缸2上升端,SL_LocationCylinder_Up2,71,HC,X71
/// </summary>
public static string SL_Reset_BTN = "SL_Reset_BTN";
public static string SL_LocationCylinder_Up2 = "SL_LocationCylinder_Up2";
/// <summary>
/// DI SL1入口检测 SL_Entry_Check X103
/// DI,105,T5定位气缸2下降端,SL_LocationCylinder_Down2,72,HC,X72
/// </summary>
public static string SL_Entry_Check = "SL_Entry_Check";
public static string SL_LocationCylinder_Down2 = "SL_LocationCylinder_Down2";
/// <summary>
/// DI SL1阻挡检测 SL_Stop_Check X104
/// DI,105,T5固定气缸1上升端,SL_FixedCylinder_Up1,73,HC,X73
/// </summary>
public static string SL_Stop_Check = "SL_Stop_Check";
public static string SL_FixedCylinder_Up1 = "SL_FixedCylinder_Up1";
/// <summary>
/// DI SL1定位工位检测 SL_Location_Check X105
/// DI,105,T5固定气缸2上升端,SL_FixedCylinder_Up2,74,HC,X74
/// </summary>
public static string SL_Location_Check = "SL_Location_Check";
public static string SL_FixedCylinder_Up2 = "SL_FixedCylinder_Up2";
/// <summary>
/// DI /DO SL1定位气缸上升端 SL_LocationCylinder_Up X106
/// DI,105,T5定位工位顶升上升端,SL_TopCylinder_Up,75,HC,X75
/// </summary>
public static string SL_LocationCylinder_Up = "SL_LocationCylinder_Up";
public static string SL_TopCylinder_Up = "SL_TopCylinder_Up";
/// <summary>
/// DI /DO SL1定位气缸下降端 SL_LocationCylinder_Down X107
/// DI,105,T5定位工位顶升下降端,SL_TopCylinder_Down,76,HC,X76
/// </summary>
public static string SL_LocationCylinder_Down = "SL_LocationCylinder_Down";
public static string SL_TopCylinder_Down = "SL_TopCylinder_Down";
/// <summary>
/// DI /DO SL1出口顶升上升端 SL_OutTopCylinder_Up X108
/// DI,105,T5出口顶升上升端,SL_OutTopCylinder_Up,77,HC,X77
/// </summary>
public static string SL_OutTopCylinder_Up = "SL_OutTopCylinder_Up";
/// <summary>
/// DI /DO SL1出口顶升下降端 SL_OutTopCylinder_Down X109
/// DI,105,T5出口顶升下降端,SL_OutTopCylinder_Down,78,HC,X78
/// </summary>
public static string SL_OutTopCylinder_Down = "SL_OutTopCylinder_Down";
/// <summary>
/// DI SL1出口检测 SL_Out_Check X110
/// DI,105,T5出口横移检测,SL_Out_Check,79,HC,X79
/// </summary>
public static string SL_Out_Check = "SL_Out_Check";
/// <summary>
/// DI SL1托盘定位气缸1前进端 SL_TrayLocation1_Before X111
/// DI,105,T5托盘定位气缸1前进端,SL_TrayLocation1_Before,80,HC,X80
/// </summary>
public static string SL_TrayLocation1_Before = "SL_TrayLocation1_Before";
/// <summary>
/// DI SL1托盘定位气缸1后退端 SL_TrayLocation1_After X112
/// DI,105,T5托盘定位气缸1后退端,SL_TrayLocation1_After,81,HC,X81
/// </summary>
public static string SL_TrayLocation1_After = "SL_TrayLocation1_After";
/// <summary>
/// DI SL1托盘定位气缸2前进端 SL_TrayLocation2_Before X113
/// DI,105,T5托盘定位气缸2前进端,SL_TrayLocation2_Before,82,HC,X82
/// </summary>
public static string SL_TrayLocation2_Before = "SL_TrayLocation2_Before";
/// <summary>
/// DI SL1托盘定位气缸2后退端 SL_TrayLocation2_After X114
/// DI,105,T5托盘定位气缸2后退端,SL_TrayLocation2_After,83,HC,X83
/// </summary>
public static string SL_TrayLocation2_After = "SL_TrayLocation2_After";
/// <summary>
/// DI SL1料盘检测1 SL_TrayCheck1 X115
/// DI,105,T5料盘检测7寸,SL_TrayCheck1,84,HC,X84
/// </summary>
public static string SL_TrayCheck1 = "SL_TrayCheck1";
/// <summary>
/// DI SL1料盘检测2 SL_TrayCheck2 X116
/// DI,105,T5料盘检测11寸,SL_TrayCheck2,85,HC,X85
/// </summary>
public static string SL_TrayCheck2 = "SL_TrayCheck2";
/// <summary>
/// DI SL1料盘检测3 SL_TrayCheck3 X121
/// DI,105,T5料盘检测13寸,SL_TrayCheck3,86,HC,X86
/// </summary>
public static string SL_TrayCheck3 = "SL_TrayCheck3";
/// <summary>
/// DI SL1料盘检测4 SL_TrayCheck4 X122
/// DI,105,T5料盘检测15寸,SL_TrayCheck4,87,HC,X87
/// </summary>
public static string SL_TrayCheck4 = "SL_TrayCheck4";
/// <summary>
/// DI SL1伺服定位料盘检测 SL_AxisLocationCheck X123
/// DI,105,T5伺服定位料盘检测,SL_AxisLocationCheck,88,HC,X88
/// </summary>
public static string SL_AxisLocationCheck = "SL_AxisLocationCheck";
/// <summary>
/// DI /DO SL1上料横移机构上升端 SL_MoveCylinder_Up X124
/// </summary>
public static string SL_MoveCylinder_Up = "SL_MoveCylinder_Up";
/// <summary>
/// DI /DO SL1上料横移机构下降端 SL_MoveCylinder_Down X125
/// </summary>
public static string SL_MoveCylinder_Down = "SL_MoveCylinder_Down";
/// <summary>
/// DI /DO SL1上料横移气缸取料端 SL_MoveCylinder_Take X126
/// DI,105,T5上料横移气缸取料端,SL_MoveCylinder_Take,89,HC,X89
/// </summary>
public static string SL_MoveCylinder_Take = "SL_MoveCylinder_Take";
/// <summary>
/// DI /DO SL1上料横移气缸放料端 SL_MoveCylinder_Give X127
/// DI,105,T5上料横移气缸放料端,SL_MoveCylinder_Give,90,HC,X90
/// </summary>
public static string SL_MoveCylinder_Give = "SL_MoveCylinder_Give";
/// <summary>
/// DI /DO SL1上料气缸放松端 SL_MoveCylinder_Slack X128
/// DI,105,T5上料气缸放松端,SL_MoveCylinder_Relax,91,HC,X91
/// </summary>
public static string SL_MoveCylinder_Slack = "SL_MoveCylinder_Slack";
public static string SL_MoveCylinder_Relax = "SL_MoveCylinder_Relax";
/// <summary>
/// DI /DO SL1上料气缸夹紧端 SL_MoveCylinder_Tighten X129
/// DI,105,T5上料气缸料盘检测,SL_MoveCylinder_Check,92,HC,X92
/// </summary>
public static string SL_MoveCylinder_Tighten = "SL_MoveCylinder_Tighten";
public static string SL_MoveCylinder_Check = "SL_MoveCylinder_Check";
/// <summary>
/// DI SL1线体出口横移检测 SL_SideWay_OutCheck X136
/// DO,105,T5运行指示灯,SL_HddLed,64,HC,Y64
/// </summary>
public static string SL_SideWay_OutCheck = "SL_SideWay_OutCheck";
public static string SL_HddLed = "SL_HddLed";
/// <summary>
/// DO SL1状态指示灯 SL_HddLed Y101
/// DO,105,T5故障指示灯,SL_AlarmLed,65,HC,Y65
/// </summary>
public static string SL_HddLed = "SL_HddLed";
public static string SL_AlarmLed = "SL_AlarmLed";
/// <summary>
/// DO SL1进料线体运转 SL_Line_Run Y102
/// DO,105,T5进料线体运转,SL_Line_Run,66,HC,Y66
/// </summary>
public static string SL_Line_Run = "SL_Line_Run";
/// <summary>
/// DO SL1线体定位横移电机运转 SL_LocationSideWay_Run Y103
/// DO,105,T5线体定位横移电机运转,SL_LocationSideWay_Run,67,HC,Y67
/// </summary>
public static string SL_LocationSideWay_Run = "SL_LocationSideWay_Run";
/// <summary>
/// DO SL1线体出口横移电机运转 SL_OutSideWay_Run Y104
/// DO,105,T5线体出口横移电机运转,SL_OutSideWay_Run,68,HC,Y68
/// </summary>
public static string SL_OutSideWay_Run = "SL_OutSideWay_Run";
/// <summary>
/// DO SL1进料阻挡下降SOL SL_Entry_StopDown Y106
/// DO,105,T5进料阻挡下降,SL_Entry_StopDown,71,HC,Y71
/// </summary>
public static string SL_Entry_StopDown = "SL_Entry_StopDown";
/// <summary>
/// DO SL1缓冲阻挡 SL_Buffer_StopDown Y107
/// DO,105,T5定位工位缓冲阻挡,SL_Buffer_StopDown,72,HC,Y72
/// </summary>
public static string SL_Buffer_StopDown = "SL_Buffer_StopDown";
/// <summary>
/// DO SL1出料阻挡下降SOL SL_Out_StopDown Y108
/// DO,105,T5出料阻挡下降,SL_Out_StopDown,73,HC,Y73
/// </summary>
public static string SL_Out_StopDown = "SL_Out_StopDown";
/// <summary>
/// DO SL1升降盘定位气缸1前进SOL SL_TrayLocation_Before Y123
/// </summary>
public static string SL_TrayLocation_Before = "SL_TrayLocation_Before";
/// <summary>
/// DO SL1升降盘定位气缸1后退SOL SL_TrayLocation_After Y124
/// </summary>
public static string SL_TrayLocation_After = "SL_TrayLocation_After";
/// <summary>
/// DO SL1提升伺服刹车ON SL_UpAxis_BreakOn Y129
/// </summary>
public static string SL_UpAxis_BreakOn = "SL_UpAxis_BreakOn";
/// <summary>
/// DO SL1移载1伺服刹车ON SL_MoveAxis_BreakOn Y130
/// </summary>
public static string SL_MoveAxis_BreakOn = "SL_MoveAxis_BreakOn";
/// <summary>
/// DO SL1提升伺服运转ON SL_UpAxis_ServoOn Y131
/// </summary>
public static string SL_UpAxis_ServoOn = "SL_UpAxis_ServoOn";
/// <summary>
/// DO SL1移载1伺服运转ON SL_MoveAxis_ServoOn Y132
/// </summary>
public static string SL_MoveAxis_ServoOn = "SL_MoveAxis_ServoOn";
/// <summary>
/// DO SL1出料线体运转 SL_OutLine_Run Y133
/// DO,105,T5定位气缸上升,SL_LocationCylinder_Up,74,HC,Y74
/// </summary>
public static string SL_OutLine_Run = "SL_OutLine_Run";
public static string SL_LocationCylinder_Up = "SL_LocationCylinder_Up";
/// <summary>
/// DI FL1阻挡检测 FL_StopCheck X170
/// DO,105,T5定位气缸下降 ,SL_LocationCylinder_Down,75,HC,Y75
/// </summary>
public static string FL_StopCheck = "FL_StopCheck";
public static string SL_LocationCylinder_Down = "SL_LocationCylinder_Down";
/// <summary>
/// DI FL1托盘检测 FL_TrayCheck X171
/// DO,105,T5固定气缸上升,SL_FixedCylinder_Up,76,HC,Y76
/// </summary>
public static string FL_TrayCheck = "FL_TrayCheck";
///// <summary>
///// DI FL1料盘检测1 FL_ReelCheck X172
///// </summary>
//public static string FL_ReelCheck = "FL_ReelCheck";
public static string SL_FixedCylinder_Up = "SL_FixedCylinder_Up";
/// <summary>
/// DI /DO FL1顶升上升端 FL_TopCylinder_Up X173
/// DO,105,T5固定气缸下降,SL_FixedCylinder_Down,77,HC,Y77
/// </summary>
public static string FL_TopCylinder_Up = "FL_TopCylinder_Up";
public static string SL_FixedCylinder_Down = "SL_FixedCylinder_Down";
/// <summary>
/// DI /DO FL1顶升下降端 FL_TopCylinder_Down X174
/// DO,105,T5上料气缸夹紧,SL_MoveCylinder_Work,83,HC,Y83
/// </summary>
public static string FL_TopCylinder_Down = "FL_TopCylinder_Down";
public static string SL_MoveCylinder_Work = "SL_MoveCylinder_Work";
/// <summary>
/// DO FL1阻挡1下降SOL FL_StopCylinder_Down1 Y165
/// DO,105,T5托盘定位气缸前进,SL_TrayLocation_Before,84,HC,Y84
/// </summary>
public static string FL_StopCylinder_Down1 = "FL_StopCylinder_Down1";
public static string SL_TrayLocation_Before = "SL_TrayLocation_Before";
/// <summary>
/// DO FL1阻挡2下降SOL FL_StopCylinder_Down2 Y166
/// DO,105,T5托盘定位气缸后退,SL_TrayLocation_After,85,HC,Y85
/// </summary>
public static string FL_StopCylinder_Down2 = "FL_StopCylinder_Down2";
#endregion
#region 环行线横移
public static string SL_TrayLocation_After = "SL_TrayLocation_After";
/// <summary>
/// DI 环形线横移1托盘检测 SW_TrayCheck X130
/// DI,104,T4出口检测,SL_OutLine_Check,141,HC,X141
/// </summary>
public static string SW_TrayCheck = "SW_TrayCheck";
///// <summary>
///// DI 环形线横移1料盘检测1 SW_ReelCheck X131
///// </summary>
//public static string SW_ReelCheck = "SW_ReelCheck";
public static string SL_OutLine_Check = "SL_OutLine_Check";
/// <summary>
/// DI /DO 环形线横移1顶升上升端 SW_TopCylinder_Up X132
/// DO,104,T4出料线体运转,SL_OutLine_Run,99,HC,Y99
/// </summary>
public static string SW_TopCylinder_Up = "SW_TopCylinder_Up";
public static string SL_OutLine_Run = "SL_OutLine_Run";
/// <summary>
/// DI /DO 环形线横移1顶升下降端 SW_TopCylinder_Down X133
/// DO,104,T4线体过渡滚筒运转,SL_RollerLine_Run,104,HC,Y104
/// </summary>
public static string SW_TopCylinder_Down = "SW_TopCylinder_Down";
public static string SL_RollerLine_Run = "SL_RollerLine_Run";
/// <summary>
/// DI /DO 环形线横移1定位上升端 SW_LocationCylinder_Up X134
/// DO,208,HY8横移电机反转,HY_LineBackRun,261,HC,Y261
/// </summary>
public static string SW_LocationCylinder_Up = "SW_LocationCylinder_Up";
public static string HY_LineBackRun = "HY_LineBackRun";
/// <summary>
/// DI /DO 环形线横移1定位下降端 SW_LocationCylinder_Down X135
/// DI,207,C8-HY7阻挡托盘检测,HY_StopTray_Check2,489,HC,X489
/// </summary>
public static string SW_LocationCylinder_Down = "SW_LocationCylinder_Down";
public static string HY_StopTray_Check2 = "HY_StopTray_Check2";
/// <summary>
/// DO 环形线横移1电机运转 SW_MotorRun Y105
/// DI,210,HY10接驳台料盘检测7寸,HY_TrayCheck1,504,HC,X504
/// </summary>
public static string SW_MotorRun = "SW_MotorRun";
public static string HY_TrayCheck1 = "HY_TrayCheck1";
/// <summary>
/// DI 环形线横移1托盘检测 SW1_TrayCheck X130
/// DI,210,HY10接驳台料盘检测11寸,HY_TrayCheck2,505,HC,X505
/// </summary>
public static string SW1_TrayCheck = "SW1_TrayCheck";
public static string HY_TrayCheck2 = "HY_TrayCheck2";
/// <summary>
/// DI 环形线横移1料盘检测1 SW1_ReelCheck X131
/// DI,210,HY10接驳台料盘检测13寸,HY_TrayCheck3,506,HC,X506
/// </summary>
public static string SW1_ReelCheck = "SW1_ReelCheck";
public static string HY_TrayCheck3 = "HY_TrayCheck3";
/// <summary>
/// DI /DO 环形线横移1顶升上升端 SW1_TopCylinder_Up X132
/// DI,210,HY10接驳台料盘检测15寸,HY_TrayCheck4,507,HC,X507
/// </summary>
public static string SW1_TopCylinder_Up = "SW1_TopCylinder_Up";
public static string HY_TrayCheck4 = "HY_TrayCheck4";
/// <summary>
/// DI /DO 环形线横移1顶升下降端 SW1_TopCylinder_Down X133
/// DO,0,C1线体电机4启动,MotorRun_C1_4,416,HC,Y416
/// </summary>
public static string SW1_TopCylinder_Down = "SW1_TopCylinder_Down";
public static string MotorRun_C1_4 = "MotorRun_C1_4";
/// <summary>
/// DI /DO 环形线横移1定位上升端 SW1_LocationCylinder_Up X134
/// DO,0,C2/C3/C4/C5/C8线体运转,MotorRun_23458,417,HC,Y417
/// </summary>
public static string SW1_LocationCylinder_Up = "SW1_LocationCylinder_Up";
public static string MotorRun_23458 = "MotorRun_23458";
/// <summary>
/// DI /DO 环形线横移1定位下降端 SW1_LocationCylinder_Down X135
/// DO,207,C8-HY7阻挡下降,HY_SideStopDown,426,HC,Y426
/// </summary>
public static string SW1_LocationCylinder_Down = "SW1_LocationCylinder_Down";
public static string HY_SideStopDown = "HY_SideStopDown";
/// <summary>
/// DO 环形线横移1电机运转 SW1_MotorRun Y105
/// DI,20,D10-1顶升上升端,TopCylinder_Up,532,HC,X532
/// </summary>
public static string SW1_MotorRun = "SW1_MotorRun";
public static string TopCylinder_Up = "TopCylinder_Up";
/// <summary>
/// DI 环形线横移2托盘检测 SW2_TrayCheck X210
/// </summary>
public static string SW2_TrayCheck = "SW2_TrayCheck";
/// <summary>
/// DI 环形线横移2料盘检测1 SW2_ReelCheck X211
/// </summary>
public static string SW2_ReelCheck = "SW2_ReelCheck";
/// <summary>
/// DI /DO 环形线横移2顶升上升端 SW2_TopCylinder_Up X212
/// </summary>
public static string SW2_TopCylinder_Up = "SW2_TopCylinder_Up";
/// <summary>
/// DI /DO 环形线横移2顶升下降端 SW2_TopCylinder_Down X213
/// </summary>
public static string SW2_TopCylinder_Down = "SW2_TopCylinder_Down";
/// <summary>
/// DI /DO 环形线横移2定位上升端 SW2_LocationCylinder_Up X214
/// </summary>
public static string SW2_LocationCylinder_Up = "SW2_LocationCylinder_Up";
/// <summary>
/// DI /DO 环形线横移2定位下降端 SW2_LocationCylinder_Down X215
/// </summary>
public static string SW2_LocationCylinder_Down = "SW2_LocationCylinder_Down";
/// <summary>
/// DO 环形线横移2电机运转 SW2_MotorRun Y185
/// </summary>
public static string SW2_MotorRun = "SW2_MotorRun";
/// <summary>
/// DI 环形线横移3托盘检测 SW3_TrayCheck X250
/// </summary>
public static string SW3_TrayCheck = "SW3_TrayCheck";
/// <summary>
/// DI 环形线横移3料盘检测1 SW3_ReelCheck X251
/// </summary>
public static string SW3_ReelCheck = "SW3_ReelCheck";
/// <summary>
/// DI /DO 环形线横移3顶升上升端 SW3_TopCylinder_Up X252
/// </summary>
public static string SW3_TopCylinder_Up = "SW3_TopCylinder_Up";
/// <summary>
/// DI /DO 环形线横移3顶升下降端 SW3_TopCylinder_Down X253
/// </summary>
public static string SW3_TopCylinder_Down = "SW3_TopCylinder_Down";
/// <summary>
/// DI /DO 环形线横移3定位上升端 SW3_LocationCylinder_Up X254
/// </summary>
public static string SW3_LocationCylinder_Up = "SW3_LocationCylinder_Up";
/// <summary>
/// DI /DO 环形线横移3定位下降端 SW3_LocationCylinder_Down X255
/// </summary>
public static string SW3_LocationCylinder_Down = "SW3_LocationCylinder_Down";
/// <summary>
/// DO 环形线横移3电机运转 SW3_MotorRun Y225
/// </summary>
public static string SW3_MotorRun = "SW3_MotorRun";
/// <summary>
/// DI 环形线横移4托盘检测 SW4_TrayCheck X556
/// </summary>
public static string SW4_TrayCheck = "SW4_TrayCheck";
/// <summary>
/// DI 环形线横移4料盘检测1 SW4_ReelCheck X557
/// </summary>
public static string SW4_ReelCheck = "SW4_ReelCheck";
/// <summary>
/// DI /DO 环形线横移4顶升上升端 SW4_TopCylinder_Up X558
/// </summary>
public static string SW4_TopCylinder_Up = "SW4_TopCylinder_Up";
/// <summary>
/// DI /DO 环形线横移4顶升下降端 SW4_TopCylinder_Down X559
/// </summary>
public static string SW4_TopCylinder_Down = "SW4_TopCylinder_Down";
/// <summary>
/// DI /DO 环形线横移4定位上升端 SW4_LocationCylinder_Up X007
/// </summary>
public static string SW4_LocationCylinder_Up = "SW4_LocationCylinder_Up";
/// <summary>
/// DI /DO 环形线横移4定位下降端 SW4_LocationCylinder_Down X008
/// </summary>
public static string SW4_LocationCylinder_Down = "SW4_LocationCylinder_Down";
/// <summary>
/// DO 环形线横移4电机运转 SW4_MotorRun Y009
/// </summary>
public static string SW4_MotorRun = "SW4_MotorRun";
//************************************************以下为原有IO******************************************************************
///// <summary>
///// DI 0 启动 Start_BTN 2 联动按钮 X03 DI-03
///// </summary>
//public static string Start_BTN = "Start_BTN";
///// <summary>
///// DI 0 流水线自动运转 Line_Run 3 流水线自动运转 X04 DI-04
///// </summary>
//public static string Line_Run = "Line_Run";
/// <summary>
/// DI,0,环形线横移2阻挡检测,SW2_StopCheck,2,PRO_AOI_IP_28,0,环形线横移2阻挡检测,X403,X403
/// </summary>
public static string SW2_StopCheck = "SW2_StopCheck";
/// <summary>
/// DO,0, 环形线横移2阻挡下降SOL, SW2_StopDown,4, PRO_AOI_IP_28,0, 环形线横移2阻挡下降SOL, Y405, Y405
/// </summary>
public static string SW2_StopDown = "SW2_StopDown";
///// <summary>
///// 移栽DI/DO 阻挡3-1夹具检测 TrayCheck 0
///// </summary>
//public static string TrayCheck = "TrayCheck";
/// <summary>
/// DI,1000,环形线横移4阻挡检测,SW4_StopCheck,6,PRO_AOI_IP_36,0,环形线横移4阻挡检测,X557,X557
/// </summary>
public static string SW4_StopCheck = "SW4_StopCheck";
/// <summary>
/// DO,204, 环形线横移4阻挡下降SOL, SW4_StopDown,4, PRO_AOI_IP_36,0, 环形线横移4阻挡下降, Y555, Y555
/// </summary>
public static string SW4_StopDown = "SW4_StopDown";
///// <summary>
///// DO 0 移载4升降轴刹车ON UpDownAxis_BreakOn 30 移载4升降轴刹车ON Y07 DO-07
///// </summary>
//public static string UpDownAxis_BreakOn = "UpDownAxis_BreakOn";
///// <summary>
///// DO 0 移载4升降轴伺服ON UpDownAxis_ServoOn 31 移载4升降轴伺服ON Y08 DO-08
///// </summary>
//public static string UpDownAxis_ServoOn = "UpDownAxis_ServoOn";
/// <summary>
/// DI,0,环形线横移2阻挡检测,SW2_StopCheck,2,PRO_AOI_IP_28,0,环形线横移2阻挡检测,X403,X403
/// </summary>
public static string SW_StopCheck = "SW_StopCheck";
/// <summary>
/// DO,0, 环形线横移2阻挡下降SOL, SW2_StopDown,4, PRO_AOI_IP_28,0, 环形线横移2阻挡下降SOL, Y405, Y405
/// </summary>
public static string SW_StopDown = "SW_StopDown";
#endregion
//public static string BatchAxis_BreakOn = "BatchAxis_BreakOn";
//public static string BatchAxis_ServoOn = "BatchAxis_ServoOn";
//#region 流水线新增IO
/// <summary>
/// DO 0 扫码NG料气缸1前进SOL ScanNGCylinder_Forward 8 PRO_AOI_IP_2 0 扫码NG料气缸1前进SOL Y029 Y029
/// </summary>
public static string ScanNGCylinder_Forward = "ScanNGCylinder_Forward";
///// <summary>
/////DI NG料盘推出气缸前进端,NGCylinder_Before, X005
///// </summary>
//public static string NGCylinder_Before = "NGCylinder_Before";
///// <summary>
/////DI NG料盘推出气缸后退端,NGCylinder_After, X006
///// </summary>
//public static string NGCylinder_After = "NGCylinder_After";
/// <summary>
/// DO 0 扫码NG料气缸1后退SOL ScanNGCylinder_Back 9 PRO_AOI_IP_2 0 扫码NG料气缸1后退SOL Y030 Y030
/// </summary>
public static string ScanNGCylinder_Back = "ScanNGCylinder_Back";
///// <summary>
///// DO 驱动电机1正转,DriveMotor_Run1, Y005
///// </summary>
//public static string DriveMotor_Run1 = "DriveMotor_Run1";
///// <summary>
///// DO 驱动电机2正转,DriveMotor_Run2, ,Y006
///// </summary>
//public static string DriveMotor_Run2 = "DriveMotor_Run2";
///// <summary>
///// DO 驱动电机3正转,DriveMotor_Run3, Y007
///// </summary>
//public static string DriveMotor_Run3 = "DriveMotor_Run3";
///// <summary>
///// DO 驱动电机4正转,DriveMotor_Run4, Y008
///// </summary>
//public static string DriveMotor_Run4 = "DriveMotor_Run4";
/// <summary>
/// DO 0 分盘装置电机1驱动反转 SeparateDevice_BackRun 10 PRO_AOI_IP_2 0 分盘装置电机1驱动反转 Y031 Y031
/// </summary>
public static string SeparateDevice_BackRun = "SeparateDevice_BackRun";
/// <summary>
/// DO 0 皮带线1滚刷电机运行 DLine_Brush1 11 PRO_AOI_IP_2 0 皮带线1滚刷电机运行 Y032 Y032
/// </summary>
public static string DLine_Brush1 = "DLine_Brush1";
//#endregion
/// <summary>
/// DO 0 皮带线2滚刷电机运行 DLine_Brush2 12 PRO_AOI_IP_2 0 皮带线2滚刷电机运行 Y033 Y033
/// </summary>
public static string DLine_Brush2 = "DLine_Brush2";
//#region 皮带线新增IO
#region 20200715 新增分流横移装置
/// <summary>
/// DI,1000,分流前端托盘检测,Shunt_Check1_Front,3,PRO_AOI_IP_28,0,分流前端托盘检测,X404,X404
/// </summary>
public static string Shunt_Check1_Front = "Shunt_Check1_Front";
/// <summary>
/// DI,1000, 分流中间托盘检测, Shunt_Check2_Middle,4, PRO_AOI_IP_28,0, 分流中间托盘检测, X405, X405
/// </summary>
public static string Shunt_Check2_Middle = "Shunt_Check2_Middle";
/// <summary>
/// DI,1000,分流后端托盘检测,Shunt_Check3_Back,5,PRO_AOI_IP_28,0,分流后端托盘检测,X406,X406
/// </summary>
public static string Shunt_Check3_Back = "Shunt_Check3_Back";
/// <summary>
///DI,1000, 分流后端阻挡托盘检测, Shunt_Check4_BStop,6, PRO_AOI_IP_28,0, 分流后端阻挡托盘检测, X407, X407
/// </summary>
public static string Shunt_Check4_BStop = "Shunt_Check4_BStop";
/// <summary>
/// DI,1000,分流横移机构1上升端,Shunt_TopCylinder_Up1,7,PRO_AOI_IP_28,0,分流横移机构1上升端,X408,X408
/// </summary>
public static string Shunt_TopCylinder_Up1 = "Shunt_TopCylinder_Up1";
/// <summary>
/// DI,1000, 分流横移机构1下降端, Shunt_TopCylinder_Down1,8, PRO_AOI_IP_28,0, 分流横移机构1下降端, X409, X409
/// </summary>
public static string Shunt_TopCylinder_Down1 = "Shunt_TopCylinder_Down1";
/// <summary>
/// DI,1000,分流横移机构2上升端,Shunt_TopCylinder_Up2,9,PRO_AOI_IP_28,0,分流横移机构2上升端,X410,X410
/// </summary>
public static string Shunt_TopCylinder_Up2 = "Shunt_TopCylinder_Up2";
/// <summary>
/// DI,1000, 分流横移机构2下降端, Shunt_TopCylinder_Down2,10, PRO_AOI_IP_28,0, 分流横移机构2下降端, X411, X411
/// </summary>
public static string Shunt_TopCylinder_Down2 = "Shunt_TopCylinder_Down2";
/// <summary>
/// DO,1000,分流前端阻挡下降SOL,Shunt_StopDown1_Front,5,PRO_AOI_IP_28,0,分流前端阻挡下降SOL,Y406,Y406
/// </summary>
public static string Shunt_StopDown1_Front = "Shunt_StopDown1_Front";
/// <summary>
/// DO,1000, 分流后端阻挡下降SOL, Shunt_StopDown2_Back,6, PRO_AOI_IP_28,0, 分流后端阻挡下降SOL, Y407, Y407
/// </summary>
public static string Shunt_StopDown2_Back = "Shunt_StopDown2_Back";
/// <summary>
/// DO,1000,分流横移机构1皮带运行,Shunt_MotorRun1,11,PRO_AOI_IP_28,0,分流横移机构1皮带运行,Y412,Y412
/// </summary>
public static string Shunt_MotorRun1 = "Shunt_MotorRun1";
/// <summary>
/// DO,1000, 分流横移机构2皮带运行, Shunt_MotorRun2,12, PRO_AOI_IP_28,0, 分流横移机构2皮带运行, Y413, Y413
/// </summary>
public static string Shunt_MotorRun2 = "Shunt_MotorRun2";
///// <summary>
///// DI 出料皮带线体1急停 DLine_SuddenStop X021
///// </summary>
//public static string DLine_SuddenStop = "DLine_SuddenStop";
#endregion
///// <summary>
///// DI 出料皮带线体1复位 DLine_Reset X022
///// </summary>
//public static string DLine_Reset = "DLine_Reset";
#region 20200902 新增分流2
/////// <summary>
/////// DI 0 皮带线1入口定位检测 EntryLocation_Check1 2 PRO_AOI_IP_2 0 皮带线1入口定位检测 X023 X023
/////// </summary>
////public static string EntryLocation_Check1 = "EntryLocation_Check1";
///// <summary>
///// DI 0 皮带线1出口定位检测 ExitLocation_Check1 3 PRO_AOI_IP_2 0 皮带线1出口定位检测 X024 X024
///// </summary>
//public static string ExitLocation_Check1 = "ExitLocation_Check1";
///// <summary>
///// DI 0 皮带线1出口料盘检测 ExitTray_Check1 4 PRO_AOI_IP_2 0 皮带线1出口料盘检测 X025 X025
///// </summary>
//public static string ExitTray_Check1 = "ExitTray_Check1";
/// <summary>
/// DI,1000,分流2前端托盘检测,Shunt2_Check1_Front,2,PRO_AOI_IP_24,0,分流2前端托盘检测,X343,X343
/// </summary>
public static string Shunt2_Check1_Front = "Shunt2_Check1_Front";
/// <summary>
/// DI,1000, 分流2中间托盘检测, Shunt2_Check2_Middle,3, PRO_AOI_IP_24,0, 分流2中间托盘检测, X344, X344
/// </summary>
public static string Shunt2_Check2_Middle = "Shunt2_Check2_Middle";
/// <summary>
/// DI,1000,分流2后端托盘检测,Shunt2_Check3_Back,4,PRO_AOI_IP_24,0,分流2后端托盘检测,X345,X345
/// </summary>
public static string Shunt2_Check3_Back = "Shunt2_Check3_Back";
/// <summary>
///DI,1000, 分流2后端阻挡托盘检测, Shunt2_Check4_BStop,5, PRO_AOI_IP_24,0, 分流2后端阻挡托盘检测, X346, X346
/// </summary>
public static string Shunt2_Check4_BStop = "Shunt2_Check4_BStop";
/// <summary>
/// DI,1000,分流2横移机构3上升端,Shunt2_TopCylinder_Up1,6,PRO_AOI_IP_24,0,分流2横移机构3上升端,X347,X347
/// </summary>
public static string Shunt2_TopCylinder_Up1 = "Shunt2_TopCylinder_Up1";
/// <summary>
/// DI,1000, 分流2横移机构3下降端, Shunt2_TopCylinder_Down1,7, PRO_AOI_IP_24,0, 分流2横移机构3下降端, X348, X348
/// </summary>
public static string Shunt2_TopCylinder_Down1 = "Shunt2_TopCylinder_Down1";
/// <summary>
/// DI,1000,分流2横移机构4上升端,Shunt2_TopCylinder_Up2,8,PRO_AOI_IP_24,0,分流2横移机构4上升端,X349,X349
/// </summary>
public static string Shunt2_TopCylinder_Up2 = "Shunt2_TopCylinder_Up2";
/// <summary>
/// DI,1000, 分流2横移机构4下降端, Shunt2_TopCylinder_Down2,9, PRO_AOI_IP_24,0, 分流2横移机构4下降端, X350, X350
/// </summary>
public static string Shunt2_TopCylinder_Down2 = "Shunt2_TopCylinder_Down2";
/////// <summary>
/////// DI,0,皮带线2入口定位检测 EntryLocation_Check2 5 PRO_AOI_IP_2 0 皮带线2入口定位检测 X026 X026
/////// </summary>
////public static string EntryLocation_Check2 = "EntryLocation_Check2";
///// <summary>
///// DI 皮带线2出口定位检测 ExitLocation_Check2 6 PRO_AOI_IP_2 0 皮带线2出口定位检测 X027 X027
///// </summary>
//public static string ExitLocation_Check2 = "ExitLocation_Check2";
///// <summary>
///// DI 皮带线2出口料盘检测 ExitTray_Check2 7 PRO_AOI_IP_2 0 皮带线2出口料盘检测 X028 X028
///// </summary>
//public static string ExitTray_Check2 = "ExitTray_Check2";
///// <summary>
///// DI 皮带线3定位检测,Location_Check3,8,PRO_AOI_IP_2,0,皮带线3定位检测,X029,X029
///// </summary>
//public static string Location_Check3 = "Location_Check3";
///// <summary>
///// DI 皮带线3入口料盘检测, EntryTray_Check3,9, PRO_AOI_IP_2,0, 皮带线3入口料盘检测, X030, X030
///// </summary>
//public static string EntryTray_Check3 = "EntryTray_Check3";
///// <summary>
///// DI 皮带线3中间位置料盘检测,MiddleTray_Check3,10,PRO_AOI_IP_2,0,皮带线3中间位置料盘检测,X031,X031
///// </summary>
//public static string MiddleTray_Check3 = "MiddleTray_Check3";
///// <summary>
///// DI 皮带线3出口料盘检测, ExitTray_Check3,11, PRO_AOI_IP_2,0, 皮带线3出口料盘检测, X032, X032
///// </summary>
//public static string ExitTray_Check3 = "ExitTray_Check3";
///// <summary>
///// DI 分盘装置1定位气缸上升端,SeparateDevice_Up,12,PRO_AOI_IP_2,0,分盘装置1定位气缸上升端,X033,X033
///// </summary>
//public static string SeparateDevice_Up = "SeparateDevice_Up";
///// <summary>
///// DI 分盘装置1定位气缸下降端, SeparateDevice_Down,13, PRO_AOI_IP_2,0, 分盘装置1定位气缸下降端, X034, X034
///// </summary>
//public static string SeparateDevice_Down = "SeparateDevice_Down";
///// <summary>
///// DI 分盘装置1料盘检测,SeparateDevice_Check,14,PRO_AOI_IP_2,0,分盘装置1料盘检测,X035,X035
///// </summary>
//public static string SeparateDevice_Check = "SeparateDevice_Check";
/// <summary>
/// DO,1000,分流2前端阻挡下降SOL,Shunt2_StopDown1_Front,4,PRO_AOI_IP_24,0,分流2前端阻挡下降SOL,Y345,Y345
/// </summary>
public static string Shunt2_StopDown1_Front = "Shunt2_StopDown1_Front";
/// <summary>
/// DO,1000, 分流2后端阻挡下降SOL, Shunt2_StopDown2_Back,5, PRO_AOI_IP_24,0, 分流2后端阻挡下降SOL, Y346, Y346
/// </summary>
public static string Shunt2_StopDown2_Back = "Shunt2_StopDown2_Back";
/// <summary>
/// DO,1000,分流2横移机构3皮带运行,Shunt2_MotorRun1,10,PRO_AOI_IP_24,0,分流2横移机构3皮带运行,Y351,Y351
/// </summary>
public static string Shunt2_MotorRun1 = "Shunt2_MotorRun1";
/// <summary>
/// DO,1000, 分流2横移机构4皮带运行, Shunt2_MotorRun2,11, PRO_AOI_IP_24,0, 分流2横移机构4皮带运行, Y352, Y352
/// </summary>
public static string Shunt2_MotorRun2 = "Shunt2_MotorRun2";
#endregion
///// <summary>
///// DI 出料皮带线体1运行状态 DLine_RunStatus Y021
///// </summary>
//public static string DLine_RunStatus = "DLine_RunStatus";
///// <summary>
///// DI 出料皮带线体1故障状态 DLine_RunAlarm Y022
///// </summary>
//public static string DLine_RunAlarm = "DLine_RunAlarm";
///// <summary>
///// DO 0 出料皮带线1运转 DLine_Run1,Y021
///// </summary>
//public static string DLine_Run1 = "DLine_Run1";
///// <summary>
///// DO 0 出料皮带线2运转 DLine_Run2,Y022
///// </summary>
//public static string DLine_Run2 = "DLine_Run2";
///// <summary>
///// DO 0 出料皮带线3运转 DLine_Run3,Y023
///// </summary>
//public static string DLine_Run3 = "DLine_Run3";
///// <summary>
///// DO 0 分盘装置电机驱动 SeparateDevice_Run,Y024
///// </summary>
//public static string SeparateDevice_Run = "SeparateDevice_Run";
//#endregion
//#region 上料流水线
///// <summary>
///// DI 0 上料3夹爪料盘检测 ReelCheck 10 PRO_AOI_IP_16 0 上料3夹爪料盘检测 X211 X211
///// </summary>
//public static string ReelCheck = "ReelCheck";
///// <summary>
///// DI /DO SL1上料横移机构上升端 SL_MoveCylinder_Up X124
///// </summary>
//public static string SL_MoveCylinder_Up = "SL_MoveCylinder_Up";
///// <summary>
///// DI /DO SL1上料横移机构下降端 SL_MoveCylinder_Down X125
///// </summary>
//public static string SL_MoveCylinder_Down = "SL_MoveCylinder_Down";
///// <summary>
///// DI /DO SL1上料气缸放松端 SL_MoveCylinder_Relax X128
///// </summary>
//public static string SL_MoveCylinder_Relax = "SL_MoveCylinder_Relax";
///// <summary>
///// DI /DO SL1上料气缸夹紧端 SL_MoveCylinder_Work X129
///// </summary>
//public static string SL_MoveCylinder_Work = "SL_MoveCylinder_Work";
///// <summary>
///// DI SL1线体出口横移检测 SL_SideWay_OutCheck X136
///// </summary>
//public static string SL_SideWay_OutCheck = "SL_SideWay_OutCheck";
///// <summary>
///// DO SL1提升伺服刹车ON SL_UpAxis_BreakOn Y129
///// </summary>
//public static string SL_UpAxis_BreakOn = "SL_UpAxis_BreakOn";
///// <summary>
///// DO SL1移载1伺服刹车ON SL_MoveAxis_BreakOn Y130
///// </summary>
//public static string SL_MoveAxis_BreakOn = "SL_MoveAxis_BreakOn";
///// <summary>
///// DO SL1提升伺服运转ON SL_UpAxis_ServoOn Y131
///// </summary>
//public static string SL_UpAxis_ServoOn = "SL_UpAxis_ServoOn";
///// <summary>
///// DO SL1移载1伺服运转ON SL_MoveAxis_ServoOn Y132
///// </summary>
//public static string SL_MoveAxis_ServoOn = "SL_MoveAxis_ServoOn";
// /// <summary>
// /// DI FL1阻挡检测 FL_StopCheck X170
// /// </summary>
//public static string FL_StopCheck = "FL_StopCheck";
///// <summary>
///// DI FL1托盘检测 FL_TrayCheck X171
///// </summary>
//public static string FL_TrayCheck = "FL_TrayCheck";
/////// <summary>
/////// DI FL1料盘检测1 FL_ReelCheck X172
/////// </summary>
////public static string FL_ReelCheck = "FL_ReelCheck";
///// <summary>
///// DI /DO FL1顶升上升端 FL_TopCylinder_Up X173
///// </summary>
//public static string FL_TopCylinder_Up = "FL_TopCylinder_Up";
///// <summary>
///// DI /DO FL1顶升下降端 FL_TopCylinder_Down X174
///// </summary>
//public static string FL_TopCylinder_Down = "FL_TopCylinder_Down";
///// <summary>
///// DO FL1阻挡1下降SOL FL_StopCylinder_Down1 Y165
///// </summary>
//public static string FL_StopCylinder_Down1 = "FL_StopCylinder_Down1";
///// <summary>
///// DO FL1阻挡2下降SOL FL_StopCylinder_Down2 Y166
///// </summary>
//public static string FL_StopCylinder_Down2 = "FL_StopCylinder_Down2";
//#endregion
//#region 环行线横移
///// <summary>
///// DI 环形线横移1托盘检测 SW_TrayCheck X130
///// </summary>
//public static string SW_TrayCheck = "SW_TrayCheck";
/////// <summary>
/////// DI 环形线横移1料盘检测1 SW_ReelCheck X131
/////// </summary>
////public static string SW_ReelCheck = "SW_ReelCheck";
///// <summary>
///// DI /DO 环形线横移1顶升上升端 SW_TopCylinder_Up X132
///// </summary>
//public static string SW_TopCylinder_Up = "SW_TopCylinder_Up";
///// <summary>
///// DI /DO 环形线横移1顶升下降端 SW_TopCylinder_Down X133
///// </summary>
//public static string SW_TopCylinder_Down = "SW_TopCylinder_Down";
///// <summary>
///// DI /DO 环形线横移1定位上升端 SW_LocationCylinder_Up X134
///// </summary>
//public static string SW_LocationCylinder_Up = "SW_LocationCylinder_Up";
///// <summary>
///// DI /DO 环形线横移1定位下降端 SW_LocationCylinder_Down X135
///// </summary>
//public static string SW_LocationCylinder_Down = "SW_LocationCylinder_Down";
///// <summary>
///// DO 环形线横移1电机运转 SW_MotorRun Y105
///// </summary>
//public static string SW_MotorRun = "SW_MotorRun";
///// <summary>
///// DI 环形线横移1托盘检测 SW1_TrayCheck X130
///// </summary>
//public static string SW1_TrayCheck = "SW1_TrayCheck";
///// <summary>
///// DI 环形线横移1料盘检测1 SW1_ReelCheck X131
///// </summary>
//public static string SW1_ReelCheck = "SW1_ReelCheck";
///// <summary>
///// DI /DO 环形线横移1顶升上升端 SW1_TopCylinder_Up X132
///// </summary>
//public static string SW1_TopCylinder_Up = "SW1_TopCylinder_Up";
///// <summary>
///// DI /DO 环形线横移1顶升下降端 SW1_TopCylinder_Down X133
///// </summary>
//public static string SW1_TopCylinder_Down = "SW1_TopCylinder_Down";
///// <summary>
///// DI /DO 环形线横移1定位上升端 SW1_LocationCylinder_Up X134
///// </summary>
//public static string SW1_LocationCylinder_Up = "SW1_LocationCylinder_Up";
///// <summary>
///// DI /DO 环形线横移1定位下降端 SW1_LocationCylinder_Down X135
///// </summary>
//public static string SW1_LocationCylinder_Down = "SW1_LocationCylinder_Down";
///// <summary>
///// DO 环形线横移1电机运转 SW1_MotorRun Y105
///// </summary>
//public static string SW1_MotorRun = "SW1_MotorRun";
///// <summary>
///// DI 环形线横移2托盘检测 SW2_TrayCheck X210
///// </summary>
//public static string SW2_TrayCheck = "SW2_TrayCheck";
///// <summary>
///// DI 环形线横移2料盘检测1 SW2_ReelCheck X211
///// </summary>
//public static string SW2_ReelCheck = "SW2_ReelCheck";
///// <summary>
///// DI /DO 环形线横移2顶升上升端 SW2_TopCylinder_Up X212
///// </summary>
//public static string SW2_TopCylinder_Up = "SW2_TopCylinder_Up";
///// <summary>
///// DI /DO 环形线横移2顶升下降端 SW2_TopCylinder_Down X213
///// </summary>
//public static string SW2_TopCylinder_Down = "SW2_TopCylinder_Down";
///// <summary>
///// DI /DO 环形线横移2定位上升端 SW2_LocationCylinder_Up X214
///// </summary>
//public static string SW2_LocationCylinder_Up = "SW2_LocationCylinder_Up";
///// <summary>
///// DI /DO 环形线横移2定位下降端 SW2_LocationCylinder_Down X215
///// </summary>
//public static string SW2_LocationCylinder_Down = "SW2_LocationCylinder_Down";
///// <summary>
///// DO 环形线横移2电机运转 SW2_MotorRun Y185
///// </summary>
//public static string SW2_MotorRun = "SW2_MotorRun";
///// <summary>
///// DI 环形线横移3托盘检测 SW3_TrayCheck X250
///// </summary>
//public static string SW3_TrayCheck = "SW3_TrayCheck";
///// <summary>
///// DI 环形线横移3料盘检测1 SW3_ReelCheck X251
///// </summary>
//public static string SW3_ReelCheck = "SW3_ReelCheck";
///// <summary>
///// DI /DO 环形线横移3顶升上升端 SW3_TopCylinder_Up X252
///// </summary>
//public static string SW3_TopCylinder_Up = "SW3_TopCylinder_Up";
///// <summary>
///// DI /DO 环形线横移3顶升下降端 SW3_TopCylinder_Down X253
///// </summary>
//public static string SW3_TopCylinder_Down = "SW3_TopCylinder_Down";
///// <summary>
///// DI /DO 环形线横移3定位上升端 SW3_LocationCylinder_Up X254
///// </summary>
//public static string SW3_LocationCylinder_Up = "SW3_LocationCylinder_Up";
///// <summary>
///// DI /DO 环形线横移3定位下降端 SW3_LocationCylinder_Down X255
///// </summary>
//public static string SW3_LocationCylinder_Down = "SW3_LocationCylinder_Down";
///// <summary>
///// DO 环形线横移3电机运转 SW3_MotorRun Y225
///// </summary>
//public static string SW3_MotorRun = "SW3_MotorRun";
///// <summary>
///// DI 环形线横移4托盘检测 SW4_TrayCheck X556
///// </summary>
//public static string SW4_TrayCheck = "SW4_TrayCheck";
///// <summary>
///// DI 环形线横移4料盘检测1 SW4_ReelCheck X557
///// </summary>
//public static string SW4_ReelCheck = "SW4_ReelCheck";
///// <summary>
///// DI /DO 环形线横移4顶升上升端 SW4_TopCylinder_Up X558
///// </summary>
//public static string SW4_TopCylinder_Up = "SW4_TopCylinder_Up";
///// <summary>
///// DI /DO 环形线横移4顶升下降端 SW4_TopCylinder_Down X559
///// </summary>
//public static string SW4_TopCylinder_Down = "SW4_TopCylinder_Down";
///// <summary>
///// DI /DO 环形线横移4定位上升端 SW4_LocationCylinder_Up X007
///// </summary>
//public static string SW4_LocationCylinder_Up = "SW4_LocationCylinder_Up";
///// <summary>
///// DI /DO 环形线横移4定位下降端 SW4_LocationCylinder_Down X008
///// </summary>
//public static string SW4_LocationCylinder_Down = "SW4_LocationCylinder_Down";
///// <summary>
///// DO 环形线横移4电机运转 SW4_MotorRun Y009
///// </summary>
//public static string SW4_MotorRun = "SW4_MotorRun";
///// <summary>
///// DI,0,环形线横移2阻挡检测,SW2_StopCheck,2,PRO_AOI_IP_28,0,环形线横移2阻挡检测,X403,X403
///// </summary>
//public static string SW2_StopCheck = "SW2_StopCheck";
///// <summary>
///// DO,0, 环形线横移2阻挡下降SOL, SW2_StopDown,4, PRO_AOI_IP_28,0, 环形线横移2阻挡下降SOL, Y405, Y405
///// </summary>
//public static string SW2_StopDown = "SW2_StopDown";
///// <summary>
///// DI,1000,环形线横移4阻挡检测,SW4_StopCheck,6,PRO_AOI_IP_36,0,环形线横移4阻挡检测,X557,X557
///// </summary>
//public static string SW4_StopCheck = "SW4_StopCheck";
///// <summary>
///// DO,204, 环形线横移4阻挡下降SOL, SW4_StopDown,4, PRO_AOI_IP_36,0, 环形线横移4阻挡下降, Y555, Y555
///// </summary>
//public static string SW4_StopDown = "SW4_StopDown";
///// <summary>
///// DI,0,环形线横移2阻挡检测,SW2_StopCheck,2,PRO_AOI_IP_28,0,环形线横移2阻挡检测,X403,X403
///// </summary>
//public static string SW_StopCheck = "SW_StopCheck";
///// <summary>
///// DO,0, 环形线横移2阻挡下降SOL, SW2_StopDown,4, PRO_AOI_IP_28,0, 环形线横移2阻挡下降SOL, Y405, Y405
///// </summary>
//public static string SW_StopDown = "SW_StopDown";
//#endregion
///// <summary>
///// DO 0 扫码NG料气缸1前进SOL ScanNGCylinder_Forward 8 PRO_AOI_IP_2 0 扫码NG料气缸1前进SOL Y029 Y029
///// </summary>
//public static string ScanNGCylinder_Forward = "ScanNGCylinder_Forward";
///// <summary>
///// DO 0 扫码NG料气缸1后退SOL ScanNGCylinder_Back 9 PRO_AOI_IP_2 0 扫码NG料气缸1后退SOL Y030 Y030
///// </summary>
//public static string ScanNGCylinder_Back = "ScanNGCylinder_Back";
///// <summary>
///// DO 0 分盘装置电机1驱动反转 SeparateDevice_BackRun 10 PRO_AOI_IP_2 0 分盘装置电机1驱动反转 Y031 Y031
///// </summary>
//public static string SeparateDevice_BackRun = "SeparateDevice_BackRun";
///// <summary>
///// DO 0 皮带线1滚刷电机运行 DLine_Brush1 11 PRO_AOI_IP_2 0 皮带线1滚刷电机运行 Y032 Y032
///// </summary>
//public static string DLine_Brush1 = "DLine_Brush1";
///// <summary>
///// DO 0 皮带线2滚刷电机运行 DLine_Brush2 12 PRO_AOI_IP_2 0 皮带线2滚刷电机运行 Y033 Y033
///// </summary>
//public static string DLine_Brush2 = "DLine_Brush2";
//#region 20200715 新增分流横移装置
///// <summary>
///// DI,1000,分流前端托盘检测,Shunt_Check1_Front,3,PRO_AOI_IP_28,0,分流前端托盘检测,X404,X404
///// </summary>
//public static string Shunt_Check1_Front = "Shunt_Check1_Front";
///// <summary>
///// DI,1000, 分流中间托盘检测, Shunt_Check2_Middle,4, PRO_AOI_IP_28,0, 分流中间托盘检测, X405, X405
///// </summary>
//public static string Shunt_Check2_Middle = "Shunt_Check2_Middle";
///// <summary>
///// DI,1000,分流后端托盘检测,Shunt_Check3_Back,5,PRO_AOI_IP_28,0,分流后端托盘检测,X406,X406
///// </summary>
//public static string Shunt_Check3_Back = "Shunt_Check3_Back";
///// <summary>
/////DI,1000, 分流后端阻挡托盘检测, Shunt_Check4_BStop,6, PRO_AOI_IP_28,0, 分流后端阻挡托盘检测, X407, X407
///// </summary>
//public static string Shunt_Check4_BStop = "Shunt_Check4_BStop";
///// <summary>
///// DI,1000,分流横移机构1上升端,Shunt_TopCylinder_Up1,7,PRO_AOI_IP_28,0,分流横移机构1上升端,X408,X408
///// </summary>
//public static string Shunt_TopCylinder_Up1 = "Shunt_TopCylinder_Up1";
///// <summary>
///// DI,1000, 分流横移机构1下降端, Shunt_TopCylinder_Down1,8, PRO_AOI_IP_28,0, 分流横移机构1下降端, X409, X409
///// </summary>
//public static string Shunt_TopCylinder_Down1 = "Shunt_TopCylinder_Down1";
///// <summary>
///// DI,1000,分流横移机构2上升端,Shunt_TopCylinder_Up2,9,PRO_AOI_IP_28,0,分流横移机构2上升端,X410,X410
///// </summary>
//public static string Shunt_TopCylinder_Up2 = "Shunt_TopCylinder_Up2";
///// <summary>
///// DI,1000, 分流横移机构2下降端, Shunt_TopCylinder_Down2,10, PRO_AOI_IP_28,0, 分流横移机构2下降端, X411, X411
///// </summary>
//public static string Shunt_TopCylinder_Down2 = "Shunt_TopCylinder_Down2";
///// <summary>
///// DO,1000,分流前端阻挡下降SOL,Shunt_StopDown1_Front,5,PRO_AOI_IP_28,0,分流前端阻挡下降SOL,Y406,Y406
///// </summary>
//public static string Shunt_StopDown1_Front = "Shunt_StopDown1_Front";
///// <summary>
///// DO,1000, 分流后端阻挡下降SOL, Shunt_StopDown2_Back,6, PRO_AOI_IP_28,0, 分流后端阻挡下降SOL, Y407, Y407
///// </summary>
//public static string Shunt_StopDown2_Back = "Shunt_StopDown2_Back";
///// <summary>
///// DO,1000,分流横移机构1皮带运行,Shunt_MotorRun1,11,PRO_AOI_IP_28,0,分流横移机构1皮带运行,Y412,Y412
///// </summary>
//public static string Shunt_MotorRun1 = "Shunt_MotorRun1";
///// <summary>
///// DO,1000, 分流横移机构2皮带运行, Shunt_MotorRun2,12, PRO_AOI_IP_28,0, 分流横移机构2皮带运行, Y413, Y413
///// </summary>
//public static string Shunt_MotorRun2 = "Shunt_MotorRun2";
//#endregion
//#region 20200902 新增分流2
///// <summary>
///// DI,1000,分流2前端托盘检测,Shunt2_Check1_Front,2,PRO_AOI_IP_24,0,分流2前端托盘检测,X343,X343
///// </summary>
//public static string Shunt2_Check1_Front = "Shunt2_Check1_Front";
///// <summary>
///// DI,1000, 分流2中间托盘检测, Shunt2_Check2_Middle,3, PRO_AOI_IP_24,0, 分流2中间托盘检测, X344, X344
///// </summary>
//public static string Shunt2_Check2_Middle = "Shunt2_Check2_Middle";
///// <summary>
///// DI,1000,分流2后端托盘检测,Shunt2_Check3_Back,4,PRO_AOI_IP_24,0,分流2后端托盘检测,X345,X345
///// </summary>
//public static string Shunt2_Check3_Back = "Shunt2_Check3_Back";
///// <summary>
/////DI,1000, 分流2后端阻挡托盘检测, Shunt2_Check4_BStop,5, PRO_AOI_IP_24,0, 分流2后端阻挡托盘检测, X346, X346
///// </summary>
//public static string Shunt2_Check4_BStop = "Shunt2_Check4_BStop";
///// <summary>
///// DI,1000,分流2横移机构3上升端,Shunt2_TopCylinder_Up1,6,PRO_AOI_IP_24,0,分流2横移机构3上升端,X347,X347
///// </summary>
//public static string Shunt2_TopCylinder_Up1 = "Shunt2_TopCylinder_Up1";
///// <summary>
///// DI,1000, 分流2横移机构3下降端, Shunt2_TopCylinder_Down1,7, PRO_AOI_IP_24,0, 分流2横移机构3下降端, X348, X348
///// </summary>
//public static string Shunt2_TopCylinder_Down1 = "Shunt2_TopCylinder_Down1";
///// <summary>
///// DI,1000,分流2横移机构4上升端,Shunt2_TopCylinder_Up2,8,PRO_AOI_IP_24,0,分流2横移机构4上升端,X349,X349
///// </summary>
//public static string Shunt2_TopCylinder_Up2 = "Shunt2_TopCylinder_Up2";
///// <summary>
///// DI,1000, 分流2横移机构4下降端, Shunt2_TopCylinder_Down2,9, PRO_AOI_IP_24,0, 分流2横移机构4下降端, X350, X350
///// </summary>
//public static string Shunt2_TopCylinder_Down2 = "Shunt2_TopCylinder_Down2";
///// <summary>
///// DO,1000,分流2前端阻挡下降SOL,Shunt2_StopDown1_Front,4,PRO_AOI_IP_24,0,分流2前端阻挡下降SOL,Y345,Y345
///// </summary>
//public static string Shunt2_StopDown1_Front = "Shunt2_StopDown1_Front";
///// <summary>
///// DO,1000, 分流2后端阻挡下降SOL, Shunt2_StopDown2_Back,5, PRO_AOI_IP_24,0, 分流2后端阻挡下降SOL, Y346, Y346
///// </summary>
//public static string Shunt2_StopDown2_Back = "Shunt2_StopDown2_Back";
///// <summary>
///// DO,1000,分流2横移机构3皮带运行,Shunt2_MotorRun1,10,PRO_AOI_IP_24,0,分流2横移机构3皮带运行,Y351,Y351
///// </summary>
//public static string Shunt2_MotorRun1 = "Shunt2_MotorRun1";
///// <summary>
///// DO,1000, 分流2横移机构4皮带运行, Shunt2_MotorRun2,11, PRO_AOI_IP_24,0, 分流2横移机构4皮带运行, Y352, Y352
///// </summary>
//public static string Shunt2_MotorRun2 = "Shunt2_MotorRun2";
//#endregion
}
public enum IO_VALUE
{
......
......@@ -139,7 +139,6 @@ namespace OnlineStore.LoadCSVLibrary
MustHaveDIList.Add(IO_Type.SuddenStop_BTN);
MustHaveDIList.Add(IO_Type.Reset_BTN);
MustHaveDIList.Add(IO_Type.Start_BTN);
MustHaveDIList.Add(IO_Type.Airpressure_Check);
//MustHaveDIList.Add(IO_Type.NGCylinder_Before);
//MustHaveDIList.Add(IO_Type.NGCylinder_After);
......@@ -151,11 +150,11 @@ namespace OnlineStore.LoadCSVLibrary
MustHaveDOList.Add(IO_Type.RunSign_HddLed);
MustHaveDOList.Add(IO_Type.Alarm_HddLed);
MustHaveDOList.Add(IO_Type.Alarm_Buzzer);
MustHaveDOList.Add(IO_Type.DriveMotor_Run1);
MustHaveDOList.Add(IO_Type.DriveMotor_Run2);
MustHaveDOList.Add(IO_Type.DriveMotor_Run3);
MustHaveDOList.Add(IO_Type.DriveMotor_Run4);
MustHaveDOList.Add(IO_Type.SW4_MotorRun);
//MustHaveDOList.Add(IO_Type.DriveMotor_Run1);
//MustHaveDOList.Add(IO_Type.DriveMotor_Run2);
//MustHaveDOList.Add(IO_Type.DriveMotor_Run3);
//MustHaveDOList.Add(IO_Type.DriveMotor_Run4);
//MustHaveDOList.Add(IO_Type.SW4_MotorRun);
//MustHaveDOList.Add(IO_Type.NGCylinder_Before);
//MustHaveDOList.Add(IO_Type.NGCylinder_After);
MustHaveDOList.Add(IO_Type.TopCylinder_UP);
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!