Commit 0b925597 LN

增加点料测试按钮

1 个父辈 a3f88ef6
......@@ -49,6 +49,7 @@
<add key ="NeedPrintLabel" value ="0"/>
<!--XRay射线最后一次使用时间-->
<add key ="XRay_Data" value ="2020-6-2"/>
<add key ="ThresholdValue" value ="30"/>
</appSettings>
<log4net>
......
......@@ -67,6 +67,9 @@
<Reference Include="CodeLibrary">
<HintPath>..\..\dll\CodeLibrary.dll</HintPath>
</Reference>
<Reference Include="CountImage">
<HintPath>..\..\dll\X-Ray\CountImage.dll</HintPath>
</Reference>
<Reference Include="DeviceLib">
<HintPath>..\..\dll\DeviceLib.dll</HintPath>
</Reference>
......
......@@ -25,62 +25,70 @@
this.lblStoreStatus = new System.Windows.Forms.Label();
this.btnStart = new System.Windows.Forms.Button();
this.btnStop = new System.Windows.Forms.Button();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.cmbWriteIO = new System.Windows.Forms.ComboBox();
this.txtSlaveId = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.txtWriteTime = new System.Windows.Forms.TextBox();
this.btnWriteSingleDO = new System.Windows.Forms.Button();
this.btnOpenDo = new System.Windows.Forms.Button();
this.label14 = new System.Windows.Forms.Label();
this.label17 = new System.Windows.Forms.Label();
this.txtDoName = new System.Windows.Forms.TextBox();
this.txtDOIndex = new System.Windows.Forms.TextBox();
this.groupBox5 = new System.Windows.Forms.GroupBox();
this.X_InDoor_Up = new System.Windows.Forms.Button();
this.X_InLine_Run = new System.Windows.Forms.Button();
this.X_MLine_Run = new System.Windows.Forms.Button();
this.btnCloseAll = new System.Windows.Forms.Button();
this.X_InDoor_Down = new System.Windows.Forms.Button();
this.X_OutDoor_Up = new System.Windows.Forms.Button();
this.X_OutDoor_Down = new System.Windows.Forms.Button();
this.X_StopCylinder_Up = new System.Windows.Forms.Button();
this.X_StopCylinder_Down = new System.Windows.Forms.Button();
this.X_Lock_On = 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.tabPage3 = new System.Windows.Forms.TabPage();
this.groupBox6 = new System.Windows.Forms.GroupBox();
this.groupBox7 = new System.Windows.Forms.GroupBox();
this.btnXStart = new System.Windows.Forms.Button();
this.btnXStop = new System.Windows.Forms.Button();
this.lblThisSta = new System.Windows.Forms.Label();
this.lblMoveInfo = new System.Windows.Forms.Label();
this.lblInoutInfo = new System.Windows.Forms.Label();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.lblXrOpen = new System.Windows.Forms.Label();
this.lblLastS = new System.Windows.Forms.Label();
this.lblData = new System.Windows.Forms.Label();
this.lblCom = new System.Windows.Forms.Label();
this.lblDiany = new System.Windows.Forms.Label();
this.lblDianl = new System.Windows.Forms.Label();
this.lblInoutInfo = new System.Windows.Forms.Label();
this.lblMoveInfo = new System.Windows.Forms.Label();
this.lblThisSta = new System.Windows.Forms.Label();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.groupBox4 = new System.Windows.Forms.GroupBox();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.groupBox5 = new System.Windows.Forms.GroupBox();
this.X_Lock_On = new System.Windows.Forms.Button();
this.X_StopCylinder_Down = new System.Windows.Forms.Button();
this.X_StopCylinder_Up = new System.Windows.Forms.Button();
this.X_OutDoor_Down = new System.Windows.Forms.Button();
this.X_OutDoor_Up = new System.Windows.Forms.Button();
this.X_InDoor_Down = new System.Windows.Forms.Button();
this.btnCloseAll = new System.Windows.Forms.Button();
this.X_MLine_Run = new System.Windows.Forms.Button();
this.X_InLine_Run = new System.Windows.Forms.Button();
this.X_InDoor_Up = new System.Windows.Forms.Button();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.txtDOIndex = new System.Windows.Forms.TextBox();
this.txtDoName = new System.Windows.Forms.TextBox();
this.label17 = new System.Windows.Forms.Label();
this.label14 = new System.Windows.Forms.Label();
this.btnOpenDo = new System.Windows.Forms.Button();
this.btnWriteSingleDO = new System.Windows.Forms.Button();
this.txtWriteTime = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.txtSlaveId = new System.Windows.Forms.TextBox();
this.cmbWriteIO = new System.Windows.Forms.ComboBox();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.lblDiany = new System.Windows.Forms.Label();
this.lblCom = new System.Windows.Forms.Label();
this.lblData = new System.Windows.Forms.Label();
this.lblLastS = new System.Windows.Forms.Label();
this.lblXrOpen = new System.Windows.Forms.Label();
this.groupBox7 = new System.Windows.Forms.GroupBox();
this.btnXStop = new System.Windows.Forms.Button();
this.btnXStart = new System.Windows.Forms.Button();
this.btnImage = new System.Windows.Forms.Button();
this.groupBox8 = new System.Windows.Forms.GroupBox();
this.btnWorkTest = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.txtResult = new System.Windows.Forms.TextBox();
this.btnSaveTh = new System.Windows.Forms.Button();
this.numTh = new System.Windows.Forms.NumericUpDown();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.panel1.SuspendLayout();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
this.groupBox1.SuspendLayout();
this.groupBox5.SuspendLayout();
this.groupBox4.SuspendLayout();
this.groupBox3.SuspendLayout();
this.tabPage3.SuspendLayout();
this.groupBox6.SuspendLayout();
this.groupBox7.SuspendLayout();
this.groupBox2.SuspendLayout();
this.tabPage1.SuspendLayout();
this.groupBox3.SuspendLayout();
this.groupBox4.SuspendLayout();
this.groupBox5.SuspendLayout();
this.groupBox1.SuspendLayout();
this.groupBox7.SuspendLayout();
this.groupBox8.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.numTh)).BeginInit();
this.tabControl1.SuspendLayout();
this.SuspendLayout();
//
// timer1
......@@ -178,264 +186,160 @@
this.btnStop.UseVisualStyleBackColor = false;
this.btnStop.Click += new System.EventHandler(this.btnStop_Click);
//
// tabControl1
// tabPage1
//
this.tabControl1.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.tabControl1.Controls.Add(this.tabPage3);
this.tabControl1.Controls.Add(this.tabPage1);
this.tabControl1.Controls.Add(this.tabPage2);
this.tabControl1.Location = new System.Drawing.Point(5, 51);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(1323, 516);
this.tabControl1.TabIndex = 257;
this.tabPage1.Controls.Add(this.groupBox3);
this.tabPage1.Controls.Add(this.groupBox4);
this.tabPage1.Controls.Add(this.groupBox5);
this.tabPage1.Controls.Add(this.groupBox1);
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(1315, 486);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = " IO列表 ";
this.tabPage1.UseVisualStyleBackColor = true;
//
// tabPage3
// groupBox1
//
this.tabPage3.Controls.Add(this.groupBox6);
this.tabPage3.Location = new System.Drawing.Point(4, 26);
this.tabPage3.Name = "tabPage3";
this.tabPage3.Size = new System.Drawing.Size(1315, 486);
this.tabPage3.TabIndex = 2;
this.tabPage3.Text = " 状态信息 ";
this.tabPage3.UseVisualStyleBackColor = true;
this.groupBox1.Controls.Add(this.txtDOIndex);
this.groupBox1.Controls.Add(this.txtDoName);
this.groupBox1.Controls.Add(this.label17);
this.groupBox1.Controls.Add(this.label14);
this.groupBox1.Controls.Add(this.btnOpenDo);
this.groupBox1.Controls.Add(this.btnWriteSingleDO);
this.groupBox1.Controls.Add(this.txtWriteTime);
this.groupBox1.Controls.Add(this.label5);
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, 383);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(812, 97);
this.groupBox1.TabIndex = 105;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "DO写入";
//
// groupBox6
// cmbWriteIO
//
this.groupBox6.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.groupBox6.Controls.Add(this.groupBox7);
this.groupBox6.Controls.Add(this.groupBox2);
this.groupBox6.Controls.Add(this.lblInoutInfo);
this.groupBox6.Controls.Add(this.lblMoveInfo);
this.groupBox6.Controls.Add(this.lblThisSta);
this.groupBox6.Location = new System.Drawing.Point(3, 3);
this.groupBox6.Name = "groupBox6";
this.groupBox6.Size = new System.Drawing.Size(1308, 480);
this.groupBox6.TabIndex = 279;
this.groupBox6.TabStop = false;
this.groupBox6.Text = "消息";
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(10, 19);
this.cmbWriteIO.Name = "cmbWriteIO";
this.cmbWriteIO.Size = new System.Drawing.Size(358, 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);
//
// groupBox7
// txtSlaveId
//
this.groupBox7.Controls.Add(this.btnImage);
this.groupBox7.Controls.Add(this.btnXStart);
this.groupBox7.Controls.Add(this.btnXStop);
this.groupBox7.Location = new System.Drawing.Point(294, 306);
this.groupBox7.Name = "groupBox7";
this.groupBox7.Size = new System.Drawing.Size(337, 168);
this.groupBox7.TabIndex = 283;
this.groupBox7.TabStop = false;
this.groupBox7.Text = "X光测试";
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(375, 24);
this.txtSlaveId.MaxLength = 10;
this.txtSlaveId.Name = "txtSlaveId";
this.txtSlaveId.Size = new System.Drawing.Size(12, 23);
this.txtSlaveId.TabIndex = 255;
this.txtSlaveId.Text = "0";
this.txtSlaveId.Visible = false;
//
// btnXStart
// label5
//
this.btnXStart.BackColor = System.Drawing.Color.White;
this.btnXStart.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnXStart.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnXStart.Location = new System.Drawing.Point(22, 39);
this.btnXStart.Name = "btnXStart";
this.btnXStart.Size = new System.Drawing.Size(130, 35);
this.btnXStart.TabIndex = 286;
this.btnXStart.Text = "打开X光";
this.btnXStart.UseVisualStyleBackColor = false;
this.btnXStart.Click += new System.EventHandler(this.btnXStart_Click);
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(394, 25);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(60, 17);
this.label5.TabIndex = 270;
this.label5.Text = "定时(ms):";
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// btnXStop
// txtWriteTime
//
this.btnXStop.BackColor = System.Drawing.Color.White;
this.btnXStop.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnXStop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnXStop.Location = new System.Drawing.Point(22, 96);
this.btnXStop.Name = "btnXStop";
this.btnXStop.Size = new System.Drawing.Size(130, 35);
this.btnXStop.TabIndex = 285;
this.btnXStop.Text = "关闭X光";
this.btnXStop.UseVisualStyleBackColor = false;
this.btnXStop.Click += new System.EventHandler(this.btnXStop_Click);
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(461, 22);
this.txtWriteTime.MaxLength = 10;
this.txtWriteTime.Name = "txtWriteTime";
this.txtWriteTime.Size = new System.Drawing.Size(66, 23);
this.txtWriteTime.TabIndex = 271;
this.txtWriteTime.Text = "0";
//
// groupBox2
// btnWriteSingleDO
//
this.groupBox2.Controls.Add(this.lblXrOpen);
this.groupBox2.Controls.Add(this.lblLastS);
this.groupBox2.Controls.Add(this.lblData);
this.groupBox2.Controls.Add(this.lblCom);
this.groupBox2.Controls.Add(this.lblDiany);
this.groupBox2.Controls.Add(this.lblDianl);
this.groupBox2.Location = new System.Drawing.Point(12, 306);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(276, 168);
this.groupBox2.TabIndex = 282;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "X光参数/状态信息";
this.groupBox2.Enter += new System.EventHandler(this.groupBox2_Enter);
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(436, 51);
this.btnWriteSingleDO.Name = "btnWriteSingleDO";
this.btnWriteSingleDO.Size = new System.Drawing.Size(140, 34);
this.btnWriteSingleDO.TabIndex = 269;
this.btnWriteSingleDO.Text = "关闭";
this.btnWriteSingleDO.UseVisualStyleBackColor = false;
this.btnWriteSingleDO.Click += new System.EventHandler(this.btnWriteSingleDO_Click);
//
// lblXrOpen
// btnOpenDo
//
this.lblXrOpen.AutoSize = true;
this.lblXrOpen.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblXrOpen.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
this.lblXrOpen.Location = new System.Drawing.Point(12, 144);
this.lblXrOpen.Name = "lblXrOpen";
this.lblXrOpen.Size = new System.Drawing.Size(0, 17);
this.lblXrOpen.TabIndex = 5;
//
// lblLastS
//
this.lblLastS.AutoSize = true;
this.lblLastS.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblLastS.Location = new System.Drawing.Point(12, 120);
this.lblLastS.Name = "lblLastS";
this.lblLastS.Size = new System.Drawing.Size(68, 17);
this.lblLastS.TabIndex = 4;
this.lblLastS.Text = "点料机状态";
//
// lblData
//
this.lblData.AutoSize = true;
this.lblData.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblData.Location = new System.Drawing.Point(12, 96);
this.lblData.Name = "lblData";
this.lblData.Size = new System.Drawing.Size(92, 17);
this.lblData.TabIndex = 3;
this.lblData.Text = "最后使用时间:";
//
// lblCom
//
this.lblCom.AutoSize = true;
this.lblCom.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblCom.Location = new System.Drawing.Point(12, 24);
this.lblCom.Name = "lblCom";
this.lblCom.Size = new System.Drawing.Size(56, 17);
this.lblCom.TabIndex = 2;
this.lblCom.Text = "端口号:";
//
// lblDiany
//
this.lblDiany.AutoSize = true;
this.lblDiany.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblDiany.Location = new System.Drawing.Point(12, 72);
this.lblDiany.Name = "lblDiany";
this.lblDiany.Size = new System.Drawing.Size(68, 17);
this.lblDiany.TabIndex = 1;
this.lblDiany.Text = "电压信息:";
//
// lblDianl
//
this.lblDianl.AutoSize = true;
this.lblDianl.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblDianl.Location = new System.Drawing.Point(12, 48);
this.lblDianl.Name = "lblDianl";
this.lblDianl.Size = new System.Drawing.Size(68, 17);
this.lblDianl.TabIndex = 0;
this.lblDianl.Text = "电流信息:";
//
// lblInoutInfo
//
this.lblInoutInfo.ForeColor = System.Drawing.Color.Green;
this.lblInoutInfo.Location = new System.Drawing.Point(331, 16);
this.lblInoutInfo.Name = "lblInoutInfo";
this.lblInoutInfo.Size = new System.Drawing.Size(962, 22);
this.lblInoutInfo.TabIndex = 281;
this.lblInoutInfo.Text = "当前点料信息:";
//
// 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.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.lblMoveInfo.Location = new System.Drawing.Point(24, 21);
this.lblMoveInfo.Name = "lblMoveInfo";
this.lblMoveInfo.Size = new System.Drawing.Size(68, 17);
this.lblMoveInfo.TabIndex = 280;
this.lblMoveInfo.Text = "运动信息:";
//
// lblThisSta
//
this.lblThisSta.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | 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(327, 41);
this.lblThisSta.Name = "lblThisSta";
this.lblThisSta.Size = new System.Drawing.Size(975, 149);
this.lblThisSta.TabIndex = 246;
this.lblThisSta.Text = "等待启动";
this.lblThisSta.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// tabPage1
//
this.tabPage1.Controls.Add(this.groupBox3);
this.tabPage1.Controls.Add(this.groupBox4);
this.tabPage1.Controls.Add(this.groupBox5);
this.tabPage1.Controls.Add(this.groupBox1);
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(1315, 486);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = " IO列表 ";
this.tabPage1.UseVisualStyleBackColor = true;
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(288, 51);
this.btnOpenDo.Name = "btnOpenDo";
this.btnOpenDo.Size = new System.Drawing.Size(140, 34);
this.btnOpenDo.TabIndex = 272;
this.btnOpenDo.Text = "打开";
this.btnOpenDo.UseVisualStyleBackColor = false;
this.btnOpenDo.Click += new System.EventHandler(this.btnOpenDo_Click);
//
// groupBox3
// label14
//
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, 6);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(240, 474);
this.groupBox3.TabIndex = 103;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "DI列表";
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(190, 60);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(35, 17);
this.label14.TabIndex = 273;
this.label14.Text = "地址:";
this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// tableLayoutPanel1
// label17
//
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(229, 454);
this.tableLayoutPanel1.TabIndex = 102;
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(12, 60);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(46, 17);
this.label17.TabIndex = 274;
this.label17.Text = "设备IP:";
this.label17.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// groupBox4
// txtDoName
//
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(251, 6);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new System.Drawing.Size(240, 474);
this.groupBox4.TabIndex = 104;
this.groupBox4.TabStop = false;
this.groupBox4.Text = "DO列表";
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(66, 57);
this.txtDoName.MaxLength = 10;
this.txtDoName.Name = "txtDoName";
this.txtDoName.Size = new System.Drawing.Size(116, 23);
this.txtDoName.TabIndex = 275;
this.txtDoName.Text = "0";
//
// tableLayoutPanel2
// txtDOIndex
//
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(229, 454);
this.tableLayoutPanel2.TabIndex = 103;
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(233, 57);
this.txtDOIndex.MaxLength = 10;
this.txtDOIndex.Name = "txtDOIndex";
this.txtDOIndex.Size = new System.Drawing.Size(47, 23);
this.txtDOIndex.TabIndex = 276;
this.txtDOIndex.Text = "0";
//
// groupBox5
//
......@@ -458,18 +362,109 @@
this.groupBox5.TabStop = false;
this.groupBox5.Text = "IO操作测试";
//
// X_Lock_On
// X_InDoor_Up
//
this.X_Lock_On.BackColor = System.Drawing.Color.White;
this.X_Lock_On.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.X_Lock_On.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.X_Lock_On.Location = new System.Drawing.Point(386, 27);
this.X_Lock_On.Name = "X_Lock_On";
this.X_Lock_On.Size = new System.Drawing.Size(164, 35);
this.X_Lock_On.TabIndex = 265;
this.X_Lock_On.Text = "Y97_X光机互锁信号ON";
this.X_Lock_On.UseVisualStyleBackColor = false;
this.X_Lock_On.Click += new System.EventHandler(this.X_Lock_On_Click);
this.X_InDoor_Up.BackColor = System.Drawing.Color.White;
this.X_InDoor_Up.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.X_InDoor_Up.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.X_InDoor_Up.Location = new System.Drawing.Point(23, 82);
this.X_InDoor_Up.Name = "X_InDoor_Up";
this.X_InDoor_Up.Size = new System.Drawing.Size(164, 35);
this.X_InDoor_Up.TabIndex = 246;
this.X_InDoor_Up.Text = "入口防护门上升/关闭 ↑";
this.X_InDoor_Up.UseVisualStyleBackColor = false;
this.X_InDoor_Up.Click += new System.EventHandler(this.btnInDoorUp_Click);
//
// X_InLine_Run
//
this.X_InLine_Run.BackColor = System.Drawing.Color.White;
this.X_InLine_Run.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.X_InLine_Run.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.X_InLine_Run.Location = new System.Drawing.Point(23, 27);
this.X_InLine_Run.Name = "X_InLine_Run";
this.X_InLine_Run.Size = new System.Drawing.Size(164, 35);
this.X_InLine_Run.TabIndex = 256;
this.X_InLine_Run.Text = "Y95_入口皮带线正转";
this.X_InLine_Run.UseVisualStyleBackColor = false;
this.X_InLine_Run.Click += new System.EventHandler(this.X_Lock_On_Click);
//
// X_MLine_Run
//
this.X_MLine_Run.BackColor = System.Drawing.Color.White;
this.X_MLine_Run.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.X_MLine_Run.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.X_MLine_Run.Location = new System.Drawing.Point(204, 27);
this.X_MLine_Run.Name = "X_MLine_Run";
this.X_MLine_Run.Size = new System.Drawing.Size(164, 35);
this.X_MLine_Run.TabIndex = 258;
this.X_MLine_Run.Text = "Y96_中间皮带线正转";
this.X_MLine_Run.UseVisualStyleBackColor = false;
this.X_MLine_Run.Click += new System.EventHandler(this.X_Lock_On_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(23, 199);
this.btnCloseAll.Name = "btnCloseAll";
this.btnCloseAll.Size = new System.Drawing.Size(164, 51);
this.btnCloseAll.TabIndex = 259;
this.btnCloseAll.Text = "关闭所有DO";
this.btnCloseAll.UseVisualStyleBackColor = false;
this.btnCloseAll.Click += new System.EventHandler(this.btnCloseAll_Click);
//
// X_InDoor_Down
//
this.X_InDoor_Down.BackColor = System.Drawing.Color.White;
this.X_InDoor_Down.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.X_InDoor_Down.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.X_InDoor_Down.Location = new System.Drawing.Point(23, 121);
this.X_InDoor_Down.Name = "X_InDoor_Down";
this.X_InDoor_Down.Size = new System.Drawing.Size(164, 35);
this.X_InDoor_Down.TabIndex = 260;
this.X_InDoor_Down.Text = "入口防护门下降/打开 ↓";
this.X_InDoor_Down.UseVisualStyleBackColor = false;
this.X_InDoor_Down.Click += new System.EventHandler(this.btnInDoor_Down_Click);
//
// X_OutDoor_Up
//
this.X_OutDoor_Up.BackColor = System.Drawing.Color.White;
this.X_OutDoor_Up.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.X_OutDoor_Up.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.X_OutDoor_Up.Location = new System.Drawing.Point(204, 82);
this.X_OutDoor_Up.Name = "X_OutDoor_Up";
this.X_OutDoor_Up.Size = new System.Drawing.Size(164, 35);
this.X_OutDoor_Up.TabIndex = 261;
this.X_OutDoor_Up.Text = "出口防护门上升/关闭 ↑";
this.X_OutDoor_Up.UseVisualStyleBackColor = false;
this.X_OutDoor_Up.Click += new System.EventHandler(this.btnOutDoor_Up_Click);
//
// X_OutDoor_Down
//
this.X_OutDoor_Down.BackColor = System.Drawing.Color.White;
this.X_OutDoor_Down.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.X_OutDoor_Down.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.X_OutDoor_Down.Location = new System.Drawing.Point(204, 121);
this.X_OutDoor_Down.Name = "X_OutDoor_Down";
this.X_OutDoor_Down.Size = new System.Drawing.Size(164, 35);
this.X_OutDoor_Down.TabIndex = 262;
this.X_OutDoor_Down.Text = "出口防护门下降/打开 ↓";
this.X_OutDoor_Down.UseVisualStyleBackColor = false;
this.X_OutDoor_Down.Click += new System.EventHandler(this.btnOutDoor_Down_Click);
//
// X_StopCylinder_Up
//
this.X_StopCylinder_Up.BackColor = System.Drawing.Color.White;
this.X_StopCylinder_Up.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.X_StopCylinder_Up.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.X_StopCylinder_Up.Location = new System.Drawing.Point(386, 82);
this.X_StopCylinder_Up.Name = "X_StopCylinder_Up";
this.X_StopCylinder_Up.Size = new System.Drawing.Size(164, 35);
this.X_StopCylinder_Up.TabIndex = 263;
this.X_StopCylinder_Up.Text = "阻挡气缸上升/放行 ↑";
this.X_StopCylinder_Up.UseVisualStyleBackColor = false;
this.X_StopCylinder_Up.Click += new System.EventHandler(this.btnStopCylinder_Up_Click);
//
// X_StopCylinder_Down
//
......@@ -484,259 +479,250 @@
this.X_StopCylinder_Down.UseVisualStyleBackColor = false;
this.X_StopCylinder_Down.Click += new System.EventHandler(this.btnStopCylinder_Down_Click);
//
// X_StopCylinder_Up
// X_Lock_On
//
this.X_StopCylinder_Up.BackColor = System.Drawing.Color.White;
this.X_StopCylinder_Up.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.X_StopCylinder_Up.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.X_StopCylinder_Up.Location = new System.Drawing.Point(386, 82);
this.X_StopCylinder_Up.Name = "X_StopCylinder_Up";
this.X_StopCylinder_Up.Size = new System.Drawing.Size(164, 35);
this.X_StopCylinder_Up.TabIndex = 263;
this.X_StopCylinder_Up.Text = "阻挡气缸上升/放行 ↑";
this.X_StopCylinder_Up.UseVisualStyleBackColor = false;
this.X_StopCylinder_Up.Click += new System.EventHandler(this.btnStopCylinder_Up_Click);
this.X_Lock_On.BackColor = System.Drawing.Color.White;
this.X_Lock_On.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.X_Lock_On.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.X_Lock_On.Location = new System.Drawing.Point(386, 27);
this.X_Lock_On.Name = "X_Lock_On";
this.X_Lock_On.Size = new System.Drawing.Size(164, 35);
this.X_Lock_On.TabIndex = 265;
this.X_Lock_On.Text = "Y97_X光机互锁信号ON";
this.X_Lock_On.UseVisualStyleBackColor = false;
this.X_Lock_On.Click += new System.EventHandler(this.X_Lock_On_Click);
//
// X_OutDoor_Down
// groupBox4
//
this.X_OutDoor_Down.BackColor = System.Drawing.Color.White;
this.X_OutDoor_Down.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.X_OutDoor_Down.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.X_OutDoor_Down.Location = new System.Drawing.Point(204, 121);
this.X_OutDoor_Down.Name = "X_OutDoor_Down";
this.X_OutDoor_Down.Size = new System.Drawing.Size(164, 35);
this.X_OutDoor_Down.TabIndex = 262;
this.X_OutDoor_Down.Text = "出口防护门下降/打开 ↓";
this.X_OutDoor_Down.UseVisualStyleBackColor = false;
this.X_OutDoor_Down.Click += new System.EventHandler(this.btnOutDoor_Down_Click);
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(251, 6);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new System.Drawing.Size(240, 474);
this.groupBox4.TabIndex = 104;
this.groupBox4.TabStop = false;
this.groupBox4.Text = "DO列表";
//
// X_OutDoor_Up
// tableLayoutPanel2
//
this.X_OutDoor_Up.BackColor = System.Drawing.Color.White;
this.X_OutDoor_Up.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.X_OutDoor_Up.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.X_OutDoor_Up.Location = new System.Drawing.Point(204, 82);
this.X_OutDoor_Up.Name = "X_OutDoor_Up";
this.X_OutDoor_Up.Size = new System.Drawing.Size(164, 35);
this.X_OutDoor_Up.TabIndex = 261;
this.X_OutDoor_Up.Text = "出口防护门上升/关闭 ↑";
this.X_OutDoor_Up.UseVisualStyleBackColor = false;
this.X_OutDoor_Up.Click += new System.EventHandler(this.btnOutDoor_Up_Click);
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(229, 454);
this.tableLayoutPanel2.TabIndex = 103;
//
// X_InDoor_Down
// groupBox3
//
this.X_InDoor_Down.BackColor = System.Drawing.Color.White;
this.X_InDoor_Down.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.X_InDoor_Down.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.X_InDoor_Down.Location = new System.Drawing.Point(23, 121);
this.X_InDoor_Down.Name = "X_InDoor_Down";
this.X_InDoor_Down.Size = new System.Drawing.Size(164, 35);
this.X_InDoor_Down.TabIndex = 260;
this.X_InDoor_Down.Text = "入口防护门下降/打开 ↓";
this.X_InDoor_Down.UseVisualStyleBackColor = false;
this.X_InDoor_Down.Click += new System.EventHandler(this.btnInDoor_Down_Click);
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, 6);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(240, 474);
this.groupBox3.TabIndex = 103;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "DI列表";
//
// btnCloseAll
// tableLayoutPanel1
//
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(23, 199);
this.btnCloseAll.Name = "btnCloseAll";
this.btnCloseAll.Size = new System.Drawing.Size(164, 51);
this.btnCloseAll.TabIndex = 259;
this.btnCloseAll.Text = "关闭所有DO";
this.btnCloseAll.UseVisualStyleBackColor = false;
this.btnCloseAll.Click += new System.EventHandler(this.btnCloseAll_Click);
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(229, 454);
this.tableLayoutPanel1.TabIndex = 102;
//
// X_MLine_Run
// tabPage3
//
this.X_MLine_Run.BackColor = System.Drawing.Color.White;
this.X_MLine_Run.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.X_MLine_Run.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.X_MLine_Run.Location = new System.Drawing.Point(204, 27);
this.X_MLine_Run.Name = "X_MLine_Run";
this.X_MLine_Run.Size = new System.Drawing.Size(164, 35);
this.X_MLine_Run.TabIndex = 258;
this.X_MLine_Run.Text = "Y96_中间皮带线正转";
this.X_MLine_Run.UseVisualStyleBackColor = false;
this.X_MLine_Run.Click += new System.EventHandler(this.X_Lock_On_Click);
this.tabPage3.Controls.Add(this.groupBox6);
this.tabPage3.Location = new System.Drawing.Point(4, 26);
this.tabPage3.Name = "tabPage3";
this.tabPage3.Size = new System.Drawing.Size(1315, 486);
this.tabPage3.TabIndex = 2;
this.tabPage3.Text = " 状态信息 ";
this.tabPage3.UseVisualStyleBackColor = true;
//
// X_InLine_Run
// groupBox6
//
this.X_InLine_Run.BackColor = System.Drawing.Color.White;
this.X_InLine_Run.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.X_InLine_Run.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.X_InLine_Run.Location = new System.Drawing.Point(23, 27);
this.X_InLine_Run.Name = "X_InLine_Run";
this.X_InLine_Run.Size = new System.Drawing.Size(164, 35);
this.X_InLine_Run.TabIndex = 256;
this.X_InLine_Run.Text = "Y95_入口皮带线正转";
this.X_InLine_Run.UseVisualStyleBackColor = false;
this.X_InLine_Run.Click += new System.EventHandler(this.X_Lock_On_Click);
this.groupBox6.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.groupBox6.Controls.Add(this.groupBox8);
this.groupBox6.Controls.Add(this.groupBox7);
this.groupBox6.Controls.Add(this.groupBox2);
this.groupBox6.Controls.Add(this.lblInoutInfo);
this.groupBox6.Controls.Add(this.lblMoveInfo);
this.groupBox6.Controls.Add(this.lblThisSta);
this.groupBox6.Location = new System.Drawing.Point(3, 3);
this.groupBox6.Name = "groupBox6";
this.groupBox6.Size = new System.Drawing.Size(1308, 480);
this.groupBox6.TabIndex = 279;
this.groupBox6.TabStop = false;
this.groupBox6.Text = "消息";
//
// X_InDoor_Up
// lblThisSta
//
this.X_InDoor_Up.BackColor = System.Drawing.Color.White;
this.X_InDoor_Up.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.X_InDoor_Up.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.X_InDoor_Up.Location = new System.Drawing.Point(23, 82);
this.X_InDoor_Up.Name = "X_InDoor_Up";
this.X_InDoor_Up.Size = new System.Drawing.Size(164, 35);
this.X_InDoor_Up.TabIndex = 246;
this.X_InDoor_Up.Text = "入口防护门上升/关闭 ↑";
this.X_InDoor_Up.UseVisualStyleBackColor = false;
this.X_InDoor_Up.Click += new System.EventHandler(this.btnInDoorUp_Click);
this.lblThisSta.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | 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(327, 41);
this.lblThisSta.Name = "lblThisSta";
this.lblThisSta.Size = new System.Drawing.Size(975, 149);
this.lblThisSta.TabIndex = 246;
this.lblThisSta.Text = "等待启动";
this.lblThisSta.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// groupBox1
// lblMoveInfo
//
this.groupBox1.Controls.Add(this.txtDOIndex);
this.groupBox1.Controls.Add(this.txtDoName);
this.groupBox1.Controls.Add(this.label17);
this.groupBox1.Controls.Add(this.label14);
this.groupBox1.Controls.Add(this.btnOpenDo);
this.groupBox1.Controls.Add(this.btnWriteSingleDO);
this.groupBox1.Controls.Add(this.txtWriteTime);
this.groupBox1.Controls.Add(this.label5);
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, 383);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(812, 97);
this.groupBox1.TabIndex = 105;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "DO写入";
this.lblMoveInfo.AutoSize = true;
this.lblMoveInfo.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblMoveInfo.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.lblMoveInfo.Location = new System.Drawing.Point(24, 21);
this.lblMoveInfo.Name = "lblMoveInfo";
this.lblMoveInfo.Size = new System.Drawing.Size(68, 17);
this.lblMoveInfo.TabIndex = 280;
this.lblMoveInfo.Text = "运动信息:";
//
// txtDOIndex
// lblInoutInfo
//
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(233, 57);
this.txtDOIndex.MaxLength = 10;
this.txtDOIndex.Name = "txtDOIndex";
this.txtDOIndex.Size = new System.Drawing.Size(47, 23);
this.txtDOIndex.TabIndex = 276;
this.txtDOIndex.Text = "0";
this.lblInoutInfo.ForeColor = System.Drawing.Color.Green;
this.lblInoutInfo.Location = new System.Drawing.Point(331, 16);
this.lblInoutInfo.Name = "lblInoutInfo";
this.lblInoutInfo.Size = new System.Drawing.Size(962, 22);
this.lblInoutInfo.TabIndex = 281;
this.lblInoutInfo.Text = "当前点料信息:";
//
// txtDoName
// groupBox2
//
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(66, 57);
this.txtDoName.MaxLength = 10;
this.txtDoName.Name = "txtDoName";
this.txtDoName.Size = new System.Drawing.Size(116, 23);
this.txtDoName.TabIndex = 275;
this.txtDoName.Text = "0";
this.groupBox2.Controls.Add(this.lblXrOpen);
this.groupBox2.Controls.Add(this.lblLastS);
this.groupBox2.Controls.Add(this.lblData);
this.groupBox2.Controls.Add(this.lblCom);
this.groupBox2.Controls.Add(this.lblDiany);
this.groupBox2.Controls.Add(this.lblDianl);
this.groupBox2.Location = new System.Drawing.Point(12, 306);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(276, 168);
this.groupBox2.TabIndex = 282;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "X光参数/状态信息";
this.groupBox2.Enter += new System.EventHandler(this.groupBox2_Enter);
//
// label17
// lblDianl
//
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(12, 60);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(46, 17);
this.label17.TabIndex = 274;
this.label17.Text = "设备IP:";
this.label17.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.lblDianl.AutoSize = true;
this.lblDianl.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblDianl.Location = new System.Drawing.Point(12, 48);
this.lblDianl.Name = "lblDianl";
this.lblDianl.Size = new System.Drawing.Size(68, 17);
this.lblDianl.TabIndex = 0;
this.lblDianl.Text = "电流信息:";
//
// label14
// lblDiany
//
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(190, 60);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(35, 17);
this.label14.TabIndex = 273;
this.label14.Text = "地址:";
this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.lblDiany.AutoSize = true;
this.lblDiany.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblDiany.Location = new System.Drawing.Point(12, 72);
this.lblDiany.Name = "lblDiany";
this.lblDiany.Size = new System.Drawing.Size(68, 17);
this.lblDiany.TabIndex = 1;
this.lblDiany.Text = "电压信息:";
//
// btnOpenDo
// lblCom
//
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(288, 51);
this.btnOpenDo.Name = "btnOpenDo";
this.btnOpenDo.Size = new System.Drawing.Size(140, 34);
this.btnOpenDo.TabIndex = 272;
this.btnOpenDo.Text = "打开";
this.btnOpenDo.UseVisualStyleBackColor = false;
this.btnOpenDo.Click += new System.EventHandler(this.btnOpenDo_Click);
this.lblCom.AutoSize = true;
this.lblCom.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblCom.Location = new System.Drawing.Point(12, 24);
this.lblCom.Name = "lblCom";
this.lblCom.Size = new System.Drawing.Size(56, 17);
this.lblCom.TabIndex = 2;
this.lblCom.Text = "端口号:";
//
// btnWriteSingleDO
// lblData
//
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(436, 51);
this.btnWriteSingleDO.Name = "btnWriteSingleDO";
this.btnWriteSingleDO.Size = new System.Drawing.Size(140, 34);
this.btnWriteSingleDO.TabIndex = 269;
this.btnWriteSingleDO.Text = "关闭";
this.btnWriteSingleDO.UseVisualStyleBackColor = false;
this.btnWriteSingleDO.Click += new System.EventHandler(this.btnWriteSingleDO_Click);
this.lblData.AutoSize = true;
this.lblData.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblData.Location = new System.Drawing.Point(12, 96);
this.lblData.Name = "lblData";
this.lblData.Size = new System.Drawing.Size(92, 17);
this.lblData.TabIndex = 3;
this.lblData.Text = "最后使用时间:";
//
// txtWriteTime
// lblLastS
//
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(461, 22);
this.txtWriteTime.MaxLength = 10;
this.txtWriteTime.Name = "txtWriteTime";
this.txtWriteTime.Size = new System.Drawing.Size(66, 23);
this.txtWriteTime.TabIndex = 271;
this.txtWriteTime.Text = "0";
this.lblLastS.AutoSize = true;
this.lblLastS.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblLastS.Location = new System.Drawing.Point(12, 120);
this.lblLastS.Name = "lblLastS";
this.lblLastS.Size = new System.Drawing.Size(68, 17);
this.lblLastS.TabIndex = 4;
this.lblLastS.Text = "点料机状态";
//
// label5
// lblXrOpen
//
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(394, 25);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(60, 17);
this.label5.TabIndex = 270;
this.label5.Text = "定时(ms):";
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.lblXrOpen.AutoSize = true;
this.lblXrOpen.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblXrOpen.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
this.lblXrOpen.Location = new System.Drawing.Point(12, 144);
this.lblXrOpen.Name = "lblXrOpen";
this.lblXrOpen.Size = new System.Drawing.Size(0, 17);
this.lblXrOpen.TabIndex = 5;
//
// txtSlaveId
// groupBox7
//
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(375, 24);
this.txtSlaveId.MaxLength = 10;
this.txtSlaveId.Name = "txtSlaveId";
this.txtSlaveId.Size = new System.Drawing.Size(12, 23);
this.txtSlaveId.TabIndex = 255;
this.txtSlaveId.Text = "0";
this.txtSlaveId.Visible = false;
this.groupBox7.Controls.Add(this.btnImage);
this.groupBox7.Controls.Add(this.btnXStart);
this.groupBox7.Controls.Add(this.btnXStop);
this.groupBox7.Location = new System.Drawing.Point(294, 306);
this.groupBox7.Name = "groupBox7";
this.groupBox7.Size = new System.Drawing.Size(337, 168);
this.groupBox7.TabIndex = 283;
this.groupBox7.TabStop = false;
this.groupBox7.Text = "X光测试";
//
// cmbWriteIO
// btnXStop
//
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(10, 19);
this.cmbWriteIO.Name = "cmbWriteIO";
this.cmbWriteIO.Size = new System.Drawing.Size(358, 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);
this.btnXStop.BackColor = System.Drawing.Color.White;
this.btnXStop.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnXStop.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnXStop.Location = new System.Drawing.Point(22, 96);
this.btnXStop.Name = "btnXStop";
this.btnXStop.Size = new System.Drawing.Size(130, 35);
this.btnXStop.TabIndex = 285;
this.btnXStop.Text = "关闭X光";
this.btnXStop.UseVisualStyleBackColor = false;
this.btnXStop.Click += new System.EventHandler(this.btnXStop_Click);
//
// tabPage2
// btnXStart
//
this.tabPage2.Location = new System.Drawing.Point(4, 26);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Size = new System.Drawing.Size(1315, 486);
this.tabPage2.TabIndex = 3;
this.tabPage2.Text = " X光射线 ";
this.tabPage2.UseVisualStyleBackColor = true;
this.btnXStart.BackColor = System.Drawing.Color.White;
this.btnXStart.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnXStart.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnXStart.Location = new System.Drawing.Point(22, 39);
this.btnXStart.Name = "btnXStart";
this.btnXStart.Size = new System.Drawing.Size(130, 35);
this.btnXStart.TabIndex = 286;
this.btnXStart.Text = "打开X光";
this.btnXStart.UseVisualStyleBackColor = false;
this.btnXStart.Click += new System.EventHandler(this.btnXStart_Click);
//
// btnImage
//
......@@ -751,6 +737,99 @@
this.btnImage.UseVisualStyleBackColor = false;
this.btnImage.Click += new System.EventHandler(this.btnImage_Click);
//
// groupBox8
//
this.groupBox8.Controls.Add(this.numTh);
this.groupBox8.Controls.Add(this.btnSaveTh);
this.groupBox8.Controls.Add(this.txtResult);
this.groupBox8.Controls.Add(this.label2);
this.groupBox8.Controls.Add(this.label1);
this.groupBox8.Controls.Add(this.btnWorkTest);
this.groupBox8.Location = new System.Drawing.Point(637, 306);
this.groupBox8.Name = "groupBox8";
this.groupBox8.Size = new System.Drawing.Size(337, 168);
this.groupBox8.TabIndex = 288;
this.groupBox8.TabStop = false;
this.groupBox8.Text = "点料测试";
//
// btnWorkTest
//
this.btnWorkTest.BackColor = System.Drawing.Color.White;
this.btnWorkTest.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnWorkTest.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnWorkTest.Location = new System.Drawing.Point(154, 87);
this.btnWorkTest.Name = "btnWorkTest";
this.btnWorkTest.Size = new System.Drawing.Size(130, 35);
this.btnWorkTest.TabIndex = 285;
this.btnWorkTest.Text = "点料测试";
this.btnWorkTest.UseVisualStyleBackColor = false;
this.btnWorkTest.Click += new System.EventHandler(this.btnWorkTest_Click);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(14, 42);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(44, 17);
this.label1.TabIndex = 286;
this.label1.Text = "阈值:";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(14, 96);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(44, 17);
this.label2.TabIndex = 288;
this.label2.Text = "结果:";
//
// txtResult
//
this.txtResult.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtResult.Location = new System.Drawing.Point(60, 91);
this.txtResult.Name = "txtResult";
this.txtResult.Size = new System.Drawing.Size(82, 26);
this.txtResult.TabIndex = 289;
//
// btnSaveTh
//
this.btnSaveTh.BackColor = System.Drawing.Color.White;
this.btnSaveTh.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSaveTh.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSaveTh.Location = new System.Drawing.Point(154, 33);
this.btnSaveTh.Name = "btnSaveTh";
this.btnSaveTh.Size = new System.Drawing.Size(130, 35);
this.btnSaveTh.TabIndex = 290;
this.btnSaveTh.Text = "保存为默认阈值";
this.btnSaveTh.UseVisualStyleBackColor = false;
this.btnSaveTh.Click += new System.EventHandler(this.btnSaveTh_Click);
//
// numTh
//
this.numTh.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.numTh.Location = new System.Drawing.Point(60, 37);
this.numTh.Name = "numTh";
this.numTh.Size = new System.Drawing.Size(82, 26);
this.numTh.TabIndex = 291;
this.numTh.Value = new decimal(new int[] {
30,
0,
0,
0});
//
// tabControl1
//
this.tabControl1.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.tabControl1.Controls.Add(this.tabPage3);
this.tabControl1.Controls.Add(this.tabPage1);
this.tabControl1.Location = new System.Drawing.Point(5, 51);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(1323, 516);
this.tabControl1.TabIndex = 257;
//
// FrmXRay
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
......@@ -768,19 +847,22 @@
this.Shown += new System.EventHandler(this.FrmIOStatus_Shown);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.tabControl1.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.groupBox5.ResumeLayout(false);
this.groupBox4.ResumeLayout(false);
this.groupBox3.ResumeLayout(false);
this.tabPage3.ResumeLayout(false);
this.groupBox6.ResumeLayout(false);
this.groupBox6.PerformLayout();
this.groupBox7.ResumeLayout(false);
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
this.tabPage1.ResumeLayout(false);
this.groupBox3.ResumeLayout(false);
this.groupBox4.ResumeLayout(false);
this.groupBox5.ResumeLayout(false);
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.groupBox7.ResumeLayout(false);
this.groupBox8.ResumeLayout(false);
this.groupBox8.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.numTh)).EndInit();
this.tabControl1.ResumeLayout(false);
this.ResumeLayout(false);
}
......@@ -788,25 +870,30 @@
#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.ComboBox cmbWriteIO;
private System.Windows.Forms.TextBox txtSlaveId;
private System.Windows.Forms.GroupBox groupBox5;
private System.Windows.Forms.Button X_InDoor_Up;
private System.Windows.Forms.Label lblStoreStatus;
private System.Windows.Forms.Button btnStart;
private System.Windows.Forms.Button btnStop;
private System.Windows.Forms.CheckBox chbDebug;
private System.Windows.Forms.Button X_MLine_Run;
private System.Windows.Forms.Button X_InLine_Run;
private System.Windows.Forms.TabControl tabControl1;
private System.Windows.Forms.TabPage tabPage1;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Label lblName;
private System.Windows.Forms.CheckBox chbMoveStop;
private System.Windows.Forms.TabPage tabPage1;
private System.Windows.Forms.GroupBox groupBox3;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private System.Windows.Forms.GroupBox groupBox4;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
private System.Windows.Forms.GroupBox groupBox5;
private System.Windows.Forms.Button X_Lock_On;
private System.Windows.Forms.Button X_StopCylinder_Down;
private System.Windows.Forms.Button X_StopCylinder_Up;
private System.Windows.Forms.Button X_OutDoor_Down;
private System.Windows.Forms.Button X_OutDoor_Up;
private System.Windows.Forms.Button X_InDoor_Down;
private System.Windows.Forms.Button btnCloseAll;
private System.Windows.Forms.Button X_MLine_Run;
private System.Windows.Forms.Button X_InLine_Run;
private System.Windows.Forms.Button X_InDoor_Up;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.TextBox txtDOIndex;
private System.Windows.Forms.TextBox txtDoName;
private System.Windows.Forms.Label label17;
......@@ -815,31 +902,32 @@
private System.Windows.Forms.Button btnWriteSingleDO;
private System.Windows.Forms.TextBox txtWriteTime;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label lblName;
private System.Windows.Forms.TextBox txtSlaveId;
private System.Windows.Forms.ComboBox cmbWriteIO;
private System.Windows.Forms.TabPage tabPage3;
private System.Windows.Forms.GroupBox groupBox6;
private System.Windows.Forms.Label lblInoutInfo;
private System.Windows.Forms.Label lblMoveInfo;
private System.Windows.Forms.Label lblThisSta;
private System.Windows.Forms.Button X_OutDoor_Down;
private System.Windows.Forms.Button X_OutDoor_Up;
private System.Windows.Forms.Button X_InDoor_Down;
private System.Windows.Forms.Button X_StopCylinder_Down;
private System.Windows.Forms.Button X_StopCylinder_Up;
private System.Windows.Forms.Button X_Lock_On;
private System.Windows.Forms.CheckBox chbMoveStop;
private System.Windows.Forms.TabPage tabPage2;
private System.Windows.Forms.GroupBox groupBox8;
private System.Windows.Forms.NumericUpDown numTh;
private System.Windows.Forms.Button btnSaveTh;
private System.Windows.Forms.TextBox txtResult;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button btnWorkTest;
private System.Windows.Forms.GroupBox groupBox7;
private System.Windows.Forms.Button btnImage;
private System.Windows.Forms.Button btnXStart;
private System.Windows.Forms.Button btnXStop;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.Label lblXrOpen;
private System.Windows.Forms.Label lblLastS;
private System.Windows.Forms.Label lblData;
private System.Windows.Forms.Label lblCom;
private System.Windows.Forms.Label lblDiany;
private System.Windows.Forms.Label lblDianl;
private System.Windows.Forms.Label lblLastS;
private System.Windows.Forms.Label lblXrOpen;
private System.Windows.Forms.GroupBox groupBox7;
private System.Windows.Forms.Button btnXStart;
private System.Windows.Forms.Button btnXStop;
private System.Windows.Forms.Button btnImage;
private System.Windows.Forms.Label lblInoutInfo;
private System.Windows.Forms.Label lblMoveInfo;
private System.Windows.Forms.Label lblThisSta;
private System.Windows.Forms.TabControl tabControl1;
}
}
......@@ -43,6 +43,7 @@ namespace OnlineStore.AutoCountClient
lblData.Text = "最后使用时间:" + ConfigAppSettings.GetValue(Setting_Init.XRay_Data);
lblLastS.Text = equipBean.LastXRayState;
lblName.Text = equipBean.Name;
numTh.Value = equipBean.ThresholdValue;
IsLoad = true;
}
......@@ -415,6 +416,35 @@ namespace OnlineStore.AutoCountClient
string fileName = equipBean.CapImage();
MessageBox.Show("获取图片完成:" + fileName);
}
private void btnWorkTest_Click(object sender, EventArgs e)
{
LogUtil.info(equipBean.Name + "用户点击 点料测试 ");
btnWorkTest.Enabled = false;
try
{
txtResult.Text = "点料中...";
int th =(int) numTh.Value;
int outCount = 0;
equipBean.countImage.GetCount(th, out outCount);
txtResult.Text = outCount.ToString();
LogUtil.info(equipBean.Name + "用户点击 点料测试["+ th + "] 结果:"+outCount);
}
catch (Exception ex)
{
LogUtil.error("点料测试出错:" + ex.ToString());
}
btnWorkTest.Enabled = true;
}
private void btnSaveTh_Click(object sender, EventArgs e)
{
int th = (int)numTh.Value;
ConfigAppSettings.SaveValue(Setting_Init.ThresholdValue, th);
equipBean.ThresholdValue = th;
MessageBox.Show("保存阈值["+th+"]成功!");
LogUtil.info( "用户点击:保存阈值[" + th + "]成功!");
}
}
}
......
......@@ -81,5 +81,7 @@ namespace OnlineStore.Common
public static string NeedPrintLabel = "NeedPrintLabel";
public static string XRay_Data = "XRay_Data";
public static string ThresholdValue = "ThresholdValue";
}
}
......@@ -209,7 +209,7 @@ namespace OnlineStore.DeviceLibrary
else if (MoveInfo.IsStep(StepEnum.IB22_LocationDown))
{
MoveInfo.NextMoveStep(StepEnum.IB23_ShelfOut);
MoveInfo.TimeOutSeconds = 30;
MoveInfo.TimeOutSeconds = 40;
MoveInfo.OneWaitCanEndStep = true;
WorkLog("上料完成 :通知agv来取料串,等待料串离开");
AgvClient.NeedLeave(AgvName, CurrShelfId, ClientLevel.High);
......
......@@ -31,6 +31,8 @@ namespace OnlineStore.DeviceLibrary
public string LastXRayState = "未知";
public bool InXWork = false;
public int ThresholdValue = ConfigAppSettings.GetIntValue(Setting_Init.ThresholdValue);
private string path_XRAY = Application.StartupPath + @"\XRAY\";
private string path1_tif = Application.StartupPath + @"\XRAY\tif";
private string path2_png = Application.StartupPath + @"\XRAY\png";
......
......@@ -335,9 +335,9 @@ namespace OnlineStore.DeviceLibrary
xRay.Stop();
}
int count = 99999;
countImage.GetCount(out count);
countImage.GetCount(ThresholdValue, out count);
InXWork = false;
WorkLog("点料:获取点料结果【" + count + "】,保存并上传结果");
WorkLog("点料:获取点料结果["+ThresholdValue+"]=【" + count + "】,保存并上传结果");
if (Work_ReelInfo.WareCount <= 0)
{
MoveInfo.MoveParam.WareCount = count;
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!