PLC报警灯地址已修改

This commit is contained in:
820689062 2024-07-09 21:59:38 +08:00
parent 08ab697a02
commit 756d23229c
2 changed files with 116 additions and 228 deletions

View File

@ -29,11 +29,6 @@
private void InitializeComponent() private void InitializeComponent()
{ {
components = new System.ComponentModel.Container(); components = new System.ComponentModel.Container();
OpenCvSharp.Mat mat4 = new OpenCvSharp.Mat();
OpenCvSharp.Mat mat3 = new OpenCvSharp.Mat();
OpenCvSharp.Mat mat2 = new OpenCvSharp.Mat();
OpenCvSharp.Mat mat1 = new OpenCvSharp.Mat();
OpenCvSharp.Mat mat5 = new OpenCvSharp.Mat();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
tabPage2 = new TabPage(); tabPage2 = new TabPage();
panel1 = new Panel(); panel1 = new Panel();
@ -189,11 +184,6 @@
richTextBox1 = new RichTextBox(); richTextBox1 = new RichTextBox();
contextMenuStrip1 = new ContextMenuStrip(components); contextMenuStrip1 = new ContextMenuStrip(components);
backgroundWorker1 = new System.ComponentModel.BackgroundWorker(); backgroundWorker1 = new System.ComponentModel.BackgroundWorker();
canvas1 = new XKRS.UI.Canvas();
canvas2 = new XKRS.UI.Canvas();
canvas3 = new XKRS.UI.Canvas();
canvas4 = new XKRS.UI.Canvas();
canvas5 = new XKRS.UI.Canvas();
tabPage2.SuspendLayout(); tabPage2.SuspendLayout();
panel1.SuspendLayout(); panel1.SuspendLayout();
groupBox5.SuspendLayout(); groupBox5.SuspendLayout();
@ -219,11 +209,11 @@
// tabPage2 // tabPage2
// //
tabPage2.Controls.Add(panel1); tabPage2.Controls.Add(panel1);
tabPage2.Location = new Point(4, 26); tabPage2.Location = new Point(4, 33);
tabPage2.Margin = new Padding(4, 2, 4, 2); tabPage2.Margin = new Padding(4, 2, 4, 2);
tabPage2.Name = "tabPage2"; tabPage2.Name = "tabPage2";
tabPage2.Padding = new Padding(4, 2, 4, 2); tabPage2.Padding = new Padding(4, 2, 4, 2);
tabPage2.Size = new Size(1276, 719); tabPage2.Size = new Size(1276, 712);
tabPage2.TabIndex = 1; tabPage2.TabIndex = 1;
tabPage2.Text = "PLC"; tabPage2.Text = "PLC";
tabPage2.UseVisualStyleBackColor = true; tabPage2.UseVisualStyleBackColor = true;
@ -271,7 +261,7 @@
DistanceShow.Margin = new Padding(4, 2, 4, 2); DistanceShow.Margin = new Padding(4, 2, 4, 2);
DistanceShow.Name = "DistanceShow"; DistanceShow.Name = "DistanceShow";
DistanceShow.ReadOnly = true; DistanceShow.ReadOnly = true;
DistanceShow.Size = new Size(127, 23); DistanceShow.Size = new Size(127, 31);
DistanceShow.TabIndex = 10; DistanceShow.TabIndex = 10;
// //
// label21 // label21
@ -280,7 +270,7 @@
label21.Location = new Point(36, 31); label21.Location = new Point(36, 31);
label21.Margin = new Padding(4, 0, 4, 0); label21.Margin = new Padding(4, 0, 4, 0);
label21.Name = "label21"; label21.Name = "label21";
label21.Size = new Size(36, 17); label21.Size = new Size(54, 25);
label21.TabIndex = 0; label21.TabIndex = 0;
label21.Text = "测距"; label21.Text = "测距";
// //
@ -289,7 +279,7 @@
txtSetValue.Location = new Point(738, 73); txtSetValue.Location = new Point(738, 73);
txtSetValue.Margin = new Padding(4, 2, 4, 2); txtSetValue.Margin = new Padding(4, 2, 4, 2);
txtSetValue.Name = "txtSetValue"; txtSetValue.Name = "txtSetValue";
txtSetValue.Size = new Size(251, 23); txtSetValue.Size = new Size(251, 31);
txtSetValue.TabIndex = 14; txtSetValue.TabIndex = 14;
// //
// groupBox4 // groupBox4
@ -358,7 +348,7 @@
SetlnEditmiZOP.Location = new Point(526, 296); SetlnEditmiZOP.Location = new Point(526, 296);
SetlnEditmiZOP.Margin = new Padding(4, 2, 4, 2); SetlnEditmiZOP.Margin = new Padding(4, 2, 4, 2);
SetlnEditmiZOP.Name = "SetlnEditmiZOP"; SetlnEditmiZOP.Name = "SetlnEditmiZOP";
SetlnEditmiZOP.Size = new Size(127, 23); SetlnEditmiZOP.Size = new Size(127, 31);
SetlnEditmiZOP.TabIndex = 27; SetlnEditmiZOP.TabIndex = 27;
// //
// SetlnEditmiYOP // SetlnEditmiYOP
@ -366,7 +356,7 @@
SetlnEditmiYOP.Location = new Point(329, 296); SetlnEditmiYOP.Location = new Point(329, 296);
SetlnEditmiYOP.Margin = new Padding(4, 2, 4, 2); SetlnEditmiYOP.Margin = new Padding(4, 2, 4, 2);
SetlnEditmiYOP.Name = "SetlnEditmiYOP"; SetlnEditmiYOP.Name = "SetlnEditmiYOP";
SetlnEditmiYOP.Size = new Size(127, 23); SetlnEditmiYOP.Size = new Size(127, 31);
SetlnEditmiYOP.TabIndex = 26; SetlnEditmiYOP.TabIndex = 26;
// //
// SetlnEditmiXOP // SetlnEditmiXOP
@ -374,7 +364,7 @@
SetlnEditmiXOP.Location = new Point(138, 296); SetlnEditmiXOP.Location = new Point(138, 296);
SetlnEditmiXOP.Margin = new Padding(4, 2, 4, 2); SetlnEditmiXOP.Margin = new Padding(4, 2, 4, 2);
SetlnEditmiXOP.Name = "SetlnEditmiXOP"; SetlnEditmiXOP.Name = "SetlnEditmiXOP";
SetlnEditmiXOP.Size = new Size(127, 23); SetlnEditmiXOP.Size = new Size(127, 31);
SetlnEditmiXOP.TabIndex = 25; SetlnEditmiXOP.TabIndex = 25;
// //
// SetlnEditmiZH // SetlnEditmiZH
@ -382,7 +372,7 @@
SetlnEditmiZH.Location = new Point(526, 242); SetlnEditmiZH.Location = new Point(526, 242);
SetlnEditmiZH.Margin = new Padding(4, 2, 4, 2); SetlnEditmiZH.Margin = new Padding(4, 2, 4, 2);
SetlnEditmiZH.Name = "SetlnEditmiZH"; SetlnEditmiZH.Name = "SetlnEditmiZH";
SetlnEditmiZH.Size = new Size(127, 23); SetlnEditmiZH.Size = new Size(127, 31);
SetlnEditmiZH.TabIndex = 23; SetlnEditmiZH.TabIndex = 23;
// //
// SetlnEditmiYH // SetlnEditmiYH
@ -390,7 +380,7 @@
SetlnEditmiYH.Location = new Point(329, 242); SetlnEditmiYH.Location = new Point(329, 242);
SetlnEditmiYH.Margin = new Padding(4, 2, 4, 2); SetlnEditmiYH.Margin = new Padding(4, 2, 4, 2);
SetlnEditmiYH.Name = "SetlnEditmiYH"; SetlnEditmiYH.Name = "SetlnEditmiYH";
SetlnEditmiYH.Size = new Size(127, 23); SetlnEditmiYH.Size = new Size(127, 31);
SetlnEditmiYH.TabIndex = 22; SetlnEditmiYH.TabIndex = 22;
// //
// SetlnEditmiXH // SetlnEditmiXH
@ -398,7 +388,7 @@
SetlnEditmiXH.Location = new Point(138, 242); SetlnEditmiXH.Location = new Point(138, 242);
SetlnEditmiXH.Margin = new Padding(4, 2, 4, 2); SetlnEditmiXH.Margin = new Padding(4, 2, 4, 2);
SetlnEditmiXH.Name = "SetlnEditmiXH"; SetlnEditmiXH.Name = "SetlnEditmiXH";
SetlnEditmiXH.Size = new Size(127, 23); SetlnEditmiXH.Size = new Size(127, 31);
SetlnEditmiXH.TabIndex = 21; SetlnEditmiXH.TabIndex = 21;
// //
// lnEditmiZOP // lnEditmiZOP
@ -406,7 +396,7 @@
lnEditmiZOP.Location = new Point(526, 189); lnEditmiZOP.Location = new Point(526, 189);
lnEditmiZOP.Margin = new Padding(4, 2, 4, 2); lnEditmiZOP.Margin = new Padding(4, 2, 4, 2);
lnEditmiZOP.Name = "lnEditmiZOP"; lnEditmiZOP.Name = "lnEditmiZOP";
lnEditmiZOP.Size = new Size(127, 23); lnEditmiZOP.Size = new Size(127, 31);
lnEditmiZOP.TabIndex = 19; lnEditmiZOP.TabIndex = 19;
// //
// lnEditmiYOP // lnEditmiYOP
@ -414,7 +404,7 @@
lnEditmiYOP.Location = new Point(329, 189); lnEditmiYOP.Location = new Point(329, 189);
lnEditmiYOP.Margin = new Padding(4, 2, 4, 2); lnEditmiYOP.Margin = new Padding(4, 2, 4, 2);
lnEditmiYOP.Name = "lnEditmiYOP"; lnEditmiYOP.Name = "lnEditmiYOP";
lnEditmiYOP.Size = new Size(127, 23); lnEditmiYOP.Size = new Size(127, 31);
lnEditmiYOP.TabIndex = 18; lnEditmiYOP.TabIndex = 18;
// //
// lnEditmiXOP // lnEditmiXOP
@ -422,7 +412,7 @@
lnEditmiXOP.Location = new Point(138, 189); lnEditmiXOP.Location = new Point(138, 189);
lnEditmiXOP.Margin = new Padding(4, 2, 4, 2); lnEditmiXOP.Margin = new Padding(4, 2, 4, 2);
lnEditmiXOP.Name = "lnEditmiXOP"; lnEditmiXOP.Name = "lnEditmiXOP";
lnEditmiXOP.Size = new Size(127, 23); lnEditmiXOP.Size = new Size(127, 31);
lnEditmiXOP.TabIndex = 17; lnEditmiXOP.TabIndex = 17;
// //
// label17 // label17
@ -431,7 +421,7 @@
label17.Location = new Point(41, 191); label17.Location = new Point(41, 191);
label17.Margin = new Padding(4, 0, 4, 0); label17.Margin = new Padding(4, 0, 4, 0);
label17.Name = "label17"; label17.Name = "label17";
label17.Size = new Size(64, 17); label17.Size = new Size(96, 25);
label17.TabIndex = 16; label17.TabIndex = 16;
label17.Text = "定位位置"; label17.Text = "定位位置";
// //
@ -441,7 +431,7 @@
lnEditmiZS.Margin = new Padding(4, 2, 4, 2); lnEditmiZS.Margin = new Padding(4, 2, 4, 2);
lnEditmiZS.Name = "lnEditmiZS"; lnEditmiZS.Name = "lnEditmiZS";
lnEditmiZS.ReadOnly = true; lnEditmiZS.ReadOnly = true;
lnEditmiZS.Size = new Size(127, 23); lnEditmiZS.Size = new Size(127, 31);
lnEditmiZS.TabIndex = 15; lnEditmiZS.TabIndex = 15;
// //
// lnEditmiYS // lnEditmiYS
@ -450,7 +440,7 @@
lnEditmiYS.Margin = new Padding(4, 2, 4, 2); lnEditmiYS.Margin = new Padding(4, 2, 4, 2);
lnEditmiYS.Name = "lnEditmiYS"; lnEditmiYS.Name = "lnEditmiYS";
lnEditmiYS.ReadOnly = true; lnEditmiYS.ReadOnly = true;
lnEditmiYS.Size = new Size(127, 23); lnEditmiYS.Size = new Size(127, 31);
lnEditmiYS.TabIndex = 14; lnEditmiYS.TabIndex = 14;
// //
// lnEditmiXS // lnEditmiXS
@ -459,7 +449,7 @@
lnEditmiXS.Margin = new Padding(4, 2, 4, 2); lnEditmiXS.Margin = new Padding(4, 2, 4, 2);
lnEditmiXS.Name = "lnEditmiXS"; lnEditmiXS.Name = "lnEditmiXS";
lnEditmiXS.ReadOnly = true; lnEditmiXS.ReadOnly = true;
lnEditmiXS.Size = new Size(127, 23); lnEditmiXS.Size = new Size(127, 31);
lnEditmiXS.TabIndex = 13; lnEditmiXS.TabIndex = 13;
// //
// label16 // label16
@ -468,7 +458,7 @@
label16.Location = new Point(10, 138); label16.Location = new Point(10, 138);
label16.Margin = new Padding(4, 0, 4, 0); label16.Margin = new Padding(4, 0, 4, 0);
label16.Name = "label16"; label16.Name = "label16";
label16.Size = new Size(92, 17); label16.Size = new Size(138, 25);
label16.TabIndex = 12; label16.TabIndex = 12;
label16.Text = "当前定位速度"; label16.Text = "当前定位速度";
// //
@ -478,7 +468,7 @@
lnEditmiZHS.Margin = new Padding(4, 2, 4, 2); lnEditmiZHS.Margin = new Padding(4, 2, 4, 2);
lnEditmiZHS.Name = "lnEditmiZHS"; lnEditmiZHS.Name = "lnEditmiZHS";
lnEditmiZHS.ReadOnly = true; lnEditmiZHS.ReadOnly = true;
lnEditmiZHS.Size = new Size(127, 23); lnEditmiZHS.Size = new Size(127, 31);
lnEditmiZHS.TabIndex = 11; lnEditmiZHS.TabIndex = 11;
// //
// lnEditmiYHS // lnEditmiYHS
@ -487,7 +477,7 @@
lnEditmiYHS.Margin = new Padding(4, 2, 4, 2); lnEditmiYHS.Margin = new Padding(4, 2, 4, 2);
lnEditmiYHS.Name = "lnEditmiYHS"; lnEditmiYHS.Name = "lnEditmiYHS";
lnEditmiYHS.ReadOnly = true; lnEditmiYHS.ReadOnly = true;
lnEditmiYHS.Size = new Size(127, 23); lnEditmiYHS.Size = new Size(127, 31);
lnEditmiYHS.TabIndex = 10; lnEditmiYHS.TabIndex = 10;
// //
// lnEditmiXHS // lnEditmiXHS
@ -496,7 +486,7 @@
lnEditmiXHS.Margin = new Padding(4, 2, 4, 2); lnEditmiXHS.Margin = new Padding(4, 2, 4, 2);
lnEditmiXHS.Name = "lnEditmiXHS"; lnEditmiXHS.Name = "lnEditmiXHS";
lnEditmiXHS.ReadOnly = true; lnEditmiXHS.ReadOnly = true;
lnEditmiXHS.Size = new Size(127, 23); lnEditmiXHS.Size = new Size(127, 31);
lnEditmiXHS.TabIndex = 9; lnEditmiXHS.TabIndex = 9;
// //
// label15 // label15
@ -505,7 +495,7 @@
label15.Location = new Point(10, 85); label15.Location = new Point(10, 85);
label15.Margin = new Padding(4, 0, 4, 0); label15.Margin = new Padding(4, 0, 4, 0);
label15.Name = "label15"; label15.Name = "label15";
label15.Size = new Size(92, 17); label15.Size = new Size(138, 25);
label15.TabIndex = 8; label15.TabIndex = 8;
label15.Text = "当前手动速度"; label15.Text = "当前手动速度";
// //
@ -515,7 +505,7 @@
ZPostion.Location = new Point(580, 42); ZPostion.Location = new Point(580, 42);
ZPostion.Margin = new Padding(4, 0, 4, 0); ZPostion.Margin = new Padding(4, 0, 4, 0);
ZPostion.Name = "ZPostion"; ZPostion.Name = "ZPostion";
ZPostion.Size = new Size(16, 17); ZPostion.Size = new Size(24, 25);
ZPostion.TabIndex = 7; ZPostion.TabIndex = 7;
ZPostion.Text = "0"; ZPostion.Text = "0";
// //
@ -525,7 +515,7 @@
YPostion.Location = new Point(386, 42); YPostion.Location = new Point(386, 42);
YPostion.Margin = new Padding(4, 0, 4, 0); YPostion.Margin = new Padding(4, 0, 4, 0);
YPostion.Name = "YPostion"; YPostion.Name = "YPostion";
YPostion.Size = new Size(16, 17); YPostion.Size = new Size(24, 25);
YPostion.TabIndex = 6; YPostion.TabIndex = 6;
YPostion.Text = "0"; YPostion.Text = "0";
// //
@ -535,7 +525,7 @@
XPostion.Location = new Point(185, 42); XPostion.Location = new Point(185, 42);
XPostion.Margin = new Padding(4, 0, 4, 0); XPostion.Margin = new Padding(4, 0, 4, 0);
XPostion.Name = "XPostion"; XPostion.Name = "XPostion";
XPostion.Size = new Size(16, 17); XPostion.Size = new Size(24, 25);
XPostion.TabIndex = 5; XPostion.TabIndex = 5;
XPostion.Text = "0"; XPostion.Text = "0";
// //
@ -545,7 +535,7 @@
XCurrentPostion.Location = new Point(170, 42); XCurrentPostion.Location = new Point(170, 42);
XCurrentPostion.Margin = new Padding(4, 0, 4, 0); XCurrentPostion.Margin = new Padding(4, 0, 4, 0);
XCurrentPostion.Name = "XCurrentPostion"; XCurrentPostion.Name = "XCurrentPostion";
XCurrentPostion.Size = new Size(0, 17); XCurrentPostion.Size = new Size(0, 25);
XCurrentPostion.TabIndex = 4; XCurrentPostion.TabIndex = 4;
// //
// label14 // label14
@ -554,7 +544,7 @@
label14.Location = new Point(580, 21); label14.Location = new Point(580, 21);
label14.Margin = new Padding(4, 0, 4, 0); label14.Margin = new Padding(4, 0, 4, 0);
label14.Name = "label14"; label14.Name = "label14";
label14.Size = new Size(17, 17); label14.Size = new Size(25, 25);
label14.TabIndex = 3; label14.TabIndex = 3;
label14.Text = "Z"; label14.Text = "Z";
// //
@ -564,7 +554,7 @@
label13.Location = new Point(386, 18); label13.Location = new Point(386, 18);
label13.Margin = new Padding(4, 0, 4, 0); label13.Margin = new Padding(4, 0, 4, 0);
label13.Name = "label13"; label13.Name = "label13";
label13.Size = new Size(17, 17); label13.Size = new Size(27, 25);
label13.TabIndex = 2; label13.TabIndex = 2;
label13.Text = "Y"; label13.Text = "Y";
// //
@ -574,7 +564,7 @@
label12.Location = new Point(184, 18); label12.Location = new Point(184, 18);
label12.Margin = new Padding(4, 0, 4, 0); label12.Margin = new Padding(4, 0, 4, 0);
label12.Name = "label12"; label12.Name = "label12";
label12.Size = new Size(17, 17); label12.Size = new Size(26, 25);
label12.TabIndex = 1; label12.TabIndex = 1;
label12.Text = "X"; label12.Text = "X";
// //
@ -584,7 +574,7 @@
label11.Location = new Point(41, 42); label11.Location = new Point(41, 42);
label11.Margin = new Padding(4, 0, 4, 0); label11.Margin = new Padding(4, 0, 4, 0);
label11.Name = "label11"; label11.Name = "label11";
label11.Size = new Size(64, 17); label11.Size = new Size(96, 25);
label11.TabIndex = 0; label11.TabIndex = 0;
label11.Text = "当前位置"; label11.Text = "当前位置";
// //
@ -790,7 +780,7 @@
writePLCValue.Location = new Point(861, 9); writePLCValue.Location = new Point(861, 9);
writePLCValue.Margin = new Padding(4, 2, 4, 2); writePLCValue.Margin = new Padding(4, 2, 4, 2);
writePLCValue.Name = "writePLCValue"; writePLCValue.Name = "writePLCValue";
writePLCValue.Size = new Size(127, 23); writePLCValue.Size = new Size(127, 31);
writePLCValue.TabIndex = 11; writePLCValue.TabIndex = 11;
// //
// label9 // label9
@ -799,7 +789,7 @@
label9.Location = new Point(514, 49); label9.Location = new Point(514, 49);
label9.Margin = new Padding(4, 0, 4, 0); label9.Margin = new Padding(4, 0, 4, 0);
label9.Name = "label9"; label9.Name = "label9";
label9.Size = new Size(22, 17); label9.Size = new Size(33, 25);
label9.TabIndex = 10; label9.TabIndex = 10;
label9.Text = "值"; label9.Text = "值";
// //
@ -809,7 +799,7 @@
label10.Location = new Point(514, 15); label10.Location = new Point(514, 15);
label10.Margin = new Padding(4, 0, 4, 0); label10.Margin = new Padding(4, 0, 4, 0);
label10.Name = "label10"; label10.Name = "label10";
label10.Size = new Size(36, 17); label10.Size = new Size(54, 25);
label10.TabIndex = 9; label10.TabIndex = 9;
label10.Text = "地址"; label10.Text = "地址";
// //
@ -829,7 +819,7 @@
PLCValue.Location = new Point(577, 43); PLCValue.Location = new Point(577, 43);
PLCValue.Margin = new Padding(4, 2, 4, 2); PLCValue.Margin = new Padding(4, 2, 4, 2);
PLCValue.Name = "PLCValue"; PLCValue.Name = "PLCValue";
PLCValue.Size = new Size(127, 23); PLCValue.Size = new Size(127, 31);
PLCValue.TabIndex = 8; PLCValue.TabIndex = 8;
// //
// WriteAdress // WriteAdress
@ -837,7 +827,7 @@
WriteAdress.Location = new Point(577, 13); WriteAdress.Location = new Point(577, 13);
WriteAdress.Margin = new Padding(4, 2, 4, 2); WriteAdress.Margin = new Padding(4, 2, 4, 2);
WriteAdress.Name = "WriteAdress"; WriteAdress.Name = "WriteAdress";
WriteAdress.Size = new Size(127, 23); WriteAdress.Size = new Size(127, 31);
WriteAdress.TabIndex = 6; WriteAdress.TabIndex = 6;
// //
// label6 // label6
@ -846,7 +836,7 @@
label6.Location = new Point(162, 51); label6.Location = new Point(162, 51);
label6.Margin = new Padding(4, 0, 4, 0); label6.Margin = new Padding(4, 0, 4, 0);
label6.Name = "label6"; label6.Name = "label6";
label6.Size = new Size(22, 17); label6.Size = new Size(33, 25);
label6.TabIndex = 5; label6.TabIndex = 5;
label6.Text = "值"; label6.Text = "值";
// //
@ -856,7 +846,7 @@
label3.Location = new Point(162, 18); label3.Location = new Point(162, 18);
label3.Margin = new Padding(4, 0, 4, 0); label3.Margin = new Padding(4, 0, 4, 0);
label3.Name = "label3"; label3.Name = "label3";
label3.Size = new Size(36, 17); label3.Size = new Size(54, 25);
label3.TabIndex = 4; label3.TabIndex = 4;
label3.Text = "地址"; label3.Text = "地址";
// //
@ -887,7 +877,7 @@
showPLC.Location = new Point(225, 46); showPLC.Location = new Point(225, 46);
showPLC.Margin = new Padding(4, 2, 4, 2); showPLC.Margin = new Padding(4, 2, 4, 2);
showPLC.Name = "showPLC"; showPLC.Name = "showPLC";
showPLC.Size = new Size(127, 23); showPLC.Size = new Size(127, 31);
showPLC.TabIndex = 3; showPLC.TabIndex = 3;
// //
// readPLc // readPLc
@ -895,18 +885,18 @@
readPLc.Location = new Point(225, 15); readPLc.Location = new Point(225, 15);
readPLc.Margin = new Padding(4, 2, 4, 2); readPLc.Margin = new Padding(4, 2, 4, 2);
readPLc.Name = "readPLc"; readPLc.Name = "readPLc";
readPLc.Size = new Size(127, 23); readPLc.Size = new Size(127, 31);
readPLc.TabIndex = 1; readPLc.TabIndex = 1;
// //
// tabPage1 // tabPage1
// //
tabPage1.Controls.Add(groupBox3); tabPage1.Controls.Add(groupBox3);
tabPage1.Controls.Add(groupBox1); tabPage1.Controls.Add(groupBox1);
tabPage1.Location = new Point(4, 26); tabPage1.Location = new Point(4, 34);
tabPage1.Margin = new Padding(4, 2, 4, 2); tabPage1.Margin = new Padding(4, 2, 4, 2);
tabPage1.Name = "tabPage1"; tabPage1.Name = "tabPage1";
tabPage1.Padding = new Padding(4, 2, 4, 2); tabPage1.Padding = new Padding(4, 2, 4, 2);
tabPage1.Size = new Size(1276, 719); tabPage1.Size = new Size(1276, 711);
tabPage1.TabIndex = 0; tabPage1.TabIndex = 0;
tabPage1.Text = "相机"; tabPage1.Text = "相机";
tabPage1.UseVisualStyleBackColor = true; tabPage1.UseVisualStyleBackColor = true;
@ -970,7 +960,7 @@
label5.Location = new Point(257, 18); label5.Location = new Point(257, 18);
label5.Margin = new Padding(4, 0, 4, 0); label5.Margin = new Padding(4, 0, 4, 0);
label5.Name = "label5"; label5.Name = "label5";
label5.Size = new Size(64, 17); label5.Size = new Size(96, 25);
label5.TabIndex = 2; label5.TabIndex = 2;
label5.Text = "链接相机"; label5.Text = "链接相机";
// //
@ -1001,7 +991,7 @@
tbGain2.Location = new Point(93, 54); tbGain2.Location = new Point(93, 54);
tbGain2.Margin = new Padding(4, 2, 4, 2); tbGain2.Margin = new Padding(4, 2, 4, 2);
tbGain2.Name = "tbGain2"; tbGain2.Name = "tbGain2";
tbGain2.Size = new Size(127, 23); tbGain2.Size = new Size(127, 31);
tbGain2.TabIndex = 4; tbGain2.TabIndex = 4;
// //
// tbExposure2 // tbExposure2
@ -1009,7 +999,7 @@
tbExposure2.Location = new Point(93, 22); tbExposure2.Location = new Point(93, 22);
tbExposure2.Margin = new Padding(4, 2, 4, 2); tbExposure2.Margin = new Padding(4, 2, 4, 2);
tbExposure2.Name = "tbExposure2"; tbExposure2.Name = "tbExposure2";
tbExposure2.Size = new Size(127, 23); tbExposure2.Size = new Size(127, 31);
tbExposure2.TabIndex = 3; tbExposure2.TabIndex = 3;
// //
// label7 // label7
@ -1018,7 +1008,7 @@
label7.Location = new Point(15, 56); label7.Location = new Point(15, 56);
label7.Margin = new Padding(4, 0, 4, 0); label7.Margin = new Padding(4, 0, 4, 0);
label7.Name = "label7"; label7.Name = "label7";
label7.Size = new Size(36, 17); label7.Size = new Size(54, 25);
label7.TabIndex = 1; label7.TabIndex = 1;
label7.Text = "增益"; label7.Text = "增益";
// //
@ -1028,7 +1018,7 @@
label8.Location = new Point(15, 24); label8.Location = new Point(15, 24);
label8.Margin = new Padding(4, 0, 4, 0); label8.Margin = new Padding(4, 0, 4, 0);
label8.Name = "label8"; label8.Name = "label8";
label8.Size = new Size(36, 17); label8.Size = new Size(54, 25);
label8.TabIndex = 0; label8.TabIndex = 0;
label8.Text = "曝光"; label8.Text = "曝光";
// //
@ -1093,7 +1083,7 @@
label1.Location = new Point(257, 18); label1.Location = new Point(257, 18);
label1.Margin = new Padding(4, 0, 4, 0); label1.Margin = new Padding(4, 0, 4, 0);
label1.Name = "label1"; label1.Name = "label1";
label1.Size = new Size(64, 17); label1.Size = new Size(96, 25);
label1.TabIndex = 2; label1.TabIndex = 2;
label1.Text = "链接相机"; label1.Text = "链接相机";
// //
@ -1124,7 +1114,7 @@
tbGain.Location = new Point(93, 54); tbGain.Location = new Point(93, 54);
tbGain.Margin = new Padding(4, 2, 4, 2); tbGain.Margin = new Padding(4, 2, 4, 2);
tbGain.Name = "tbGain"; tbGain.Name = "tbGain";
tbGain.Size = new Size(127, 23); tbGain.Size = new Size(127, 31);
tbGain.TabIndex = 4; tbGain.TabIndex = 4;
// //
// tbExposure // tbExposure
@ -1132,7 +1122,7 @@
tbExposure.Location = new Point(93, 22); tbExposure.Location = new Point(93, 22);
tbExposure.Margin = new Padding(4, 2, 4, 2); tbExposure.Margin = new Padding(4, 2, 4, 2);
tbExposure.Name = "tbExposure"; tbExposure.Name = "tbExposure";
tbExposure.Size = new Size(127, 23); tbExposure.Size = new Size(127, 31);
tbExposure.TabIndex = 3; tbExposure.TabIndex = 3;
// //
// label2 // label2
@ -1141,7 +1131,7 @@
label2.Location = new Point(15, 56); label2.Location = new Point(15, 56);
label2.Margin = new Padding(4, 0, 4, 0); label2.Margin = new Padding(4, 0, 4, 0);
label2.Name = "label2"; label2.Name = "label2";
label2.Size = new Size(36, 17); label2.Size = new Size(54, 25);
label2.TabIndex = 1; label2.TabIndex = 1;
label2.Text = "增益"; label2.Text = "增益";
// //
@ -1151,7 +1141,7 @@
label4.Location = new Point(15, 24); label4.Location = new Point(15, 24);
label4.Margin = new Padding(4, 0, 4, 0); label4.Margin = new Padding(4, 0, 4, 0);
label4.Name = "label4"; label4.Name = "label4";
label4.Size = new Size(36, 17); label4.Size = new Size(54, 25);
label4.TabIndex = 0; label4.TabIndex = 0;
label4.Text = "曝光"; label4.Text = "曝光";
// //
@ -1172,10 +1162,10 @@
// tabPage5 // tabPage5
// //
tabPage5.Controls.Add(panel4); tabPage5.Controls.Add(panel4);
tabPage5.Location = new Point(4, 26); tabPage5.Location = new Point(4, 34);
tabPage5.Margin = new Padding(4, 2, 4, 2); tabPage5.Margin = new Padding(4, 2, 4, 2);
tabPage5.Name = "tabPage5"; tabPage5.Name = "tabPage5";
tabPage5.Size = new Size(1276, 719); tabPage5.Size = new Size(1276, 711);
tabPage5.TabIndex = 3; tabPage5.TabIndex = 3;
tabPage5.Text = "流程"; tabPage5.Text = "流程";
tabPage5.UseVisualStyleBackColor = true; tabPage5.UseVisualStyleBackColor = true;
@ -1187,7 +1177,7 @@
panel4.Location = new Point(0, 0); panel4.Location = new Point(0, 0);
panel4.Margin = new Padding(4, 2, 4, 2); panel4.Margin = new Padding(4, 2, 4, 2);
panel4.Name = "panel4"; panel4.Name = "panel4";
panel4.Size = new Size(1276, 719); panel4.Size = new Size(1276, 711);
panel4.TabIndex = 0; panel4.TabIndex = 0;
// //
// panel5 // panel5
@ -1204,10 +1194,6 @@
// groupBox2 // groupBox2
// //
groupBox2.AutoSize = true; groupBox2.AutoSize = true;
groupBox2.Controls.Add(canvas4);
groupBox2.Controls.Add(canvas3);
groupBox2.Controls.Add(canvas2);
groupBox2.Controls.Add(canvas1);
groupBox2.Controls.Add(originMatShow); groupBox2.Controls.Add(originMatShow);
groupBox2.Controls.Add(ResultMatShow); groupBox2.Controls.Add(ResultMatShow);
groupBox2.Location = new Point(0, 0); groupBox2.Location = new Point(0, 0);
@ -1242,7 +1228,6 @@
// //
// panel8 // panel8
// //
panel8.Controls.Add(canvas5);
panel8.Controls.Add(textBox2); panel8.Controls.Add(textBox2);
panel8.Controls.Add(label36); panel8.Controls.Add(label36);
panel8.Controls.Add(textBox1); panel8.Controls.Add(textBox1);
@ -1272,7 +1257,7 @@
textBox2.Margin = new Padding(4, 2, 4, 2); textBox2.Margin = new Padding(4, 2, 4, 2);
textBox2.Name = "textBox2"; textBox2.Name = "textBox2";
textBox2.ReadOnly = true; textBox2.ReadOnly = true;
textBox2.Size = new Size(82, 23); textBox2.Size = new Size(82, 31);
textBox2.TabIndex = 17; textBox2.TabIndex = 17;
// //
// label36 // label36
@ -1280,7 +1265,7 @@
label36.AutoSize = true; label36.AutoSize = true;
label36.Location = new Point(353, 290); label36.Location = new Point(353, 290);
label36.Name = "label36"; label36.Name = "label36";
label36.Size = new Size(64, 17); label36.Size = new Size(96, 25);
label36.TabIndex = 16; label36.TabIndex = 16;
label36.Text = "日误检率"; label36.Text = "日误检率";
// //
@ -1290,7 +1275,7 @@
textBox1.Margin = new Padding(4, 2, 4, 2); textBox1.Margin = new Padding(4, 2, 4, 2);
textBox1.Name = "textBox1"; textBox1.Name = "textBox1";
textBox1.ReadOnly = true; textBox1.ReadOnly = true;
textBox1.Size = new Size(82, 23); textBox1.Size = new Size(82, 31);
textBox1.TabIndex = 15; textBox1.TabIndex = 15;
// //
// label35 // label35
@ -1298,7 +1283,7 @@
label35.AutoSize = true; label35.AutoSize = true;
label35.Location = new Point(353, 240); label35.Location = new Point(353, 240);
label35.Name = "label35"; label35.Name = "label35";
label35.Size = new Size(50, 17); label35.Size = new Size(75, 25);
label35.TabIndex = 14; label35.TabIndex = 14;
label35.Text = "误检率"; label35.Text = "误检率";
// //
@ -1308,7 +1293,7 @@
.Location = new Point(427, 24); .Location = new Point(427, 24);
.Margin = new Padding(4, 0, 4, 0); .Margin = new Padding(4, 0, 4, 0);
.Name = "实时显示"; .Name = "实时显示";
.Size = new Size(64, 17); .Size = new Size(96, 25);
.TabIndex = 12; .TabIndex = 12;
.Text = "实时显示"; .Text = "实时显示";
// //
@ -1328,7 +1313,7 @@
OKDNum.Margin = new Padding(4, 2, 4, 2); OKDNum.Margin = new Padding(4, 2, 4, 2);
OKDNum.Name = "OKDNum"; OKDNum.Name = "OKDNum";
OKDNum.ReadOnly = true; OKDNum.ReadOnly = true;
OKDNum.Size = new Size(127, 23); OKDNum.Size = new Size(127, 31);
OKDNum.TabIndex = 10; OKDNum.TabIndex = 10;
// //
// label20 // label20
@ -1337,7 +1322,7 @@
label20.Location = new Point(32, 201); label20.Location = new Point(32, 201);
label20.Margin = new Padding(4, 0, 4, 0); label20.Margin = new Padding(4, 0, 4, 0);
label20.Name = "label20"; label20.Name = "label20";
label20.Size = new Size(56, 17); label20.Size = new Size(84, 25);
label20.TabIndex = 9; label20.TabIndex = 9;
label20.Text = "OK个数"; label20.Text = "OK个数";
// //
@ -1347,7 +1332,7 @@
NGDNum.Margin = new Padding(4, 2, 4, 2); NGDNum.Margin = new Padding(4, 2, 4, 2);
NGDNum.Name = "NGDNum"; NGDNum.Name = "NGDNum";
NGDNum.ReadOnly = true; NGDNum.ReadOnly = true;
NGDNum.Size = new Size(127, 23); NGDNum.Size = new Size(127, 31);
NGDNum.TabIndex = 8; NGDNum.TabIndex = 8;
// //
// label19 // label19
@ -1356,7 +1341,7 @@
label19.Location = new Point(32, 156); label19.Location = new Point(32, 156);
label19.Margin = new Padding(4, 0, 4, 0); label19.Margin = new Padding(4, 0, 4, 0);
label19.Name = "label19"; label19.Name = "label19";
label19.Size = new Size(57, 17); label19.Size = new Size(85, 25);
label19.TabIndex = 7; label19.TabIndex = 7;
label19.Text = "NG个数"; label19.Text = "NG个数";
// //
@ -1366,7 +1351,7 @@
AllDSum.Margin = new Padding(4, 2, 4, 2); AllDSum.Margin = new Padding(4, 2, 4, 2);
AllDSum.Name = "AllDSum"; AllDSum.Name = "AllDSum";
AllDSum.ReadOnly = true; AllDSum.ReadOnly = true;
AllDSum.Size = new Size(127, 23); AllDSum.Size = new Size(127, 31);
AllDSum.TabIndex = 6; AllDSum.TabIndex = 6;
// //
// label18 // label18
@ -1375,7 +1360,7 @@
label18.Location = new Point(32, 114); label18.Location = new Point(32, 114);
label18.Margin = new Padding(4, 0, 4, 0); label18.Margin = new Padding(4, 0, 4, 0);
label18.Name = "label18"; label18.Name = "label18";
label18.Size = new Size(50, 17); label18.Size = new Size(75, 25);
label18.TabIndex = 5; label18.TabIndex = 5;
label18.Text = "总个数"; label18.Text = "总个数";
// //
@ -1407,7 +1392,7 @@
DevNameCombo.Location = new Point(32, 22); DevNameCombo.Location = new Point(32, 22);
DevNameCombo.Margin = new Padding(4, 2, 4, 2); DevNameCombo.Margin = new Padding(4, 2, 4, 2);
DevNameCombo.Name = "DevNameCombo"; DevNameCombo.Name = "DevNameCombo";
DevNameCombo.Size = new Size(256, 25); DevNameCombo.Size = new Size(256, 33);
DevNameCombo.TabIndex = 1; DevNameCombo.TabIndex = 1;
// //
// InitMachine // InitMachine
@ -1424,10 +1409,10 @@
// tabPage3 // tabPage3
// //
tabPage3.Controls.Add(panel2); tabPage3.Controls.Add(panel2);
tabPage3.Location = new Point(4, 26); tabPage3.Location = new Point(4, 33);
tabPage3.Margin = new Padding(4, 2, 4, 2); tabPage3.Margin = new Padding(4, 2, 4, 2);
tabPage3.Name = "tabPage3"; tabPage3.Name = "tabPage3";
tabPage3.Size = new Size(1276, 719); tabPage3.Size = new Size(1276, 712);
tabPage3.TabIndex = 4; tabPage3.TabIndex = 4;
tabPage3.Text = "录入新型号"; tabPage3.Text = "录入新型号";
tabPage3.UseVisualStyleBackColor = true; tabPage3.UseVisualStyleBackColor = true;
@ -1483,7 +1468,7 @@
WhiteBanCbx.Location = new Point(742, 231); WhiteBanCbx.Location = new Point(742, 231);
WhiteBanCbx.Margin = new Padding(4, 2, 4, 2); WhiteBanCbx.Margin = new Padding(4, 2, 4, 2);
WhiteBanCbx.Name = "WhiteBanCbx"; WhiteBanCbx.Name = "WhiteBanCbx";
WhiteBanCbx.Size = new Size(41, 21); WhiteBanCbx.Size = new Size(59, 29);
WhiteBanCbx.TabIndex = 40; WhiteBanCbx.TabIndex = 40;
WhiteBanCbx.Text = "是"; WhiteBanCbx.Text = "是";
WhiteBanCbx.UseVisualStyleBackColor = true; WhiteBanCbx.UseVisualStyleBackColor = true;
@ -1494,7 +1479,7 @@
label33.Location = new Point(471, 232); label33.Location = new Point(471, 232);
label33.Margin = new Padding(4, 0, 4, 0); label33.Margin = new Padding(4, 0, 4, 0);
label33.Name = "label33"; label33.Name = "label33";
label33.Size = new Size(162, 17); label33.Size = new Size(243, 25);
label33.TabIndex = 39; label33.TabIndex = 39;
label33.Text = "面板第二块区域是白板吗"; label33.Text = "面板第二块区域是白板吗";
// //
@ -1504,7 +1489,7 @@
label28.Location = new Point(23, 187); label28.Location = new Point(23, 187);
label28.Margin = new Padding(4, 0, 4, 0); label28.Margin = new Padding(4, 0, 4, 0);
label28.Name = "label28"; label28.Name = "label28";
label28.Size = new Size(101, 17); label28.Size = new Size(151, 25);
label28.TabIndex = 14; label28.TabIndex = 14;
label28.Text = "第一次拍照Z轴"; label28.Text = "第一次拍照Z轴";
// //
@ -1524,7 +1509,7 @@
modelChangeCbx.Location = new Point(1059, 14); modelChangeCbx.Location = new Point(1059, 14);
modelChangeCbx.Margin = new Padding(4, 2, 4, 2); modelChangeCbx.Margin = new Padding(4, 2, 4, 2);
modelChangeCbx.Name = "modelChangeCbx"; modelChangeCbx.Name = "modelChangeCbx";
modelChangeCbx.Size = new Size(241, 23); modelChangeCbx.Size = new Size(241, 31);
modelChangeCbx.TabIndex = 34; modelChangeCbx.TabIndex = 34;
modelChangeCbx.Text = "D:\\Hisence\\config\\chinese.json"; modelChangeCbx.Text = "D:\\Hisence\\config\\chinese.json";
// //
@ -1534,7 +1519,7 @@
label34.Location = new Point(923, 19); label34.Location = new Point(923, 19);
label34.Margin = new Padding(4, 0, 4, 0); label34.Margin = new Padding(4, 0, 4, 0);
label34.Name = "label34"; label34.Name = "label34";
label34.Size = new Size(92, 17); label34.Size = new Size(138, 25);
label34.TabIndex = 33; label34.TabIndex = 33;
label34.Text = "面板语言选择"; label34.Text = "面板语言选择";
// //
@ -1576,7 +1561,7 @@
Cam2MatCbx.Location = new Point(608, 190); Cam2MatCbx.Location = new Point(608, 190);
Cam2MatCbx.Margin = new Padding(4, 2, 4, 2); Cam2MatCbx.Margin = new Padding(4, 2, 4, 2);
Cam2MatCbx.Name = "Cam2MatCbx"; Cam2MatCbx.Name = "Cam2MatCbx";
Cam2MatCbx.Size = new Size(279, 23); Cam2MatCbx.Size = new Size(279, 31);
Cam2MatCbx.TabIndex = 29; Cam2MatCbx.TabIndex = 29;
Cam2MatCbx.Text = "D:\\Hisence\\类型\\Lp\\002jpg"; Cam2MatCbx.Text = "D:\\Hisence\\类型\\Lp\\002jpg";
// //
@ -1586,7 +1571,7 @@
label22.Location = new Point(471, 190); label22.Location = new Point(471, 190);
label22.Margin = new Padding(4, 0, 4, 0); label22.Margin = new Padding(4, 0, 4, 0);
label22.Name = "label22"; label22.Name = "label22";
label22.Size = new Size(92, 17); label22.Size = new Size(138, 25);
label22.TabIndex = 28; label22.TabIndex = 28;
label22.Text = "面板第二张图"; label22.Text = "面板第二张图";
// //
@ -1595,7 +1580,7 @@
Cam1MatCbx.Location = new Point(608, 142); Cam1MatCbx.Location = new Point(608, 142);
Cam1MatCbx.Margin = new Padding(4, 2, 4, 2); Cam1MatCbx.Margin = new Padding(4, 2, 4, 2);
Cam1MatCbx.Name = "Cam1MatCbx"; Cam1MatCbx.Name = "Cam1MatCbx";
Cam1MatCbx.Size = new Size(279, 23); Cam1MatCbx.Size = new Size(279, 31);
Cam1MatCbx.TabIndex = 27; Cam1MatCbx.TabIndex = 27;
Cam1MatCbx.Text = "D:\\Hisence\\类型\\Lp\\001.jpg"; Cam1MatCbx.Text = "D:\\Hisence\\类型\\Lp\\001.jpg";
// //
@ -1605,7 +1590,7 @@
label23.Location = new Point(472, 147); label23.Location = new Point(472, 147);
label23.Margin = new Padding(4, 0, 4, 0); label23.Margin = new Padding(4, 0, 4, 0);
label23.Name = "label23"; label23.Name = "label23";
label23.Size = new Size(92, 17); label23.Size = new Size(138, 25);
label23.TabIndex = 26; label23.TabIndex = 26;
label23.Text = "面板第一张图"; label23.Text = "面板第一张图";
// //
@ -1625,7 +1610,7 @@
DetectBArMatbox.Location = new Point(607, 104); DetectBArMatbox.Location = new Point(607, 104);
DetectBArMatbox.Margin = new Padding(4, 2, 4, 2); DetectBArMatbox.Margin = new Padding(4, 2, 4, 2);
DetectBArMatbox.Name = "DetectBArMatbox"; DetectBArMatbox.Name = "DetectBArMatbox";
DetectBArMatbox.Size = new Size(280, 23); DetectBArMatbox.Size = new Size(280, 31);
DetectBArMatbox.TabIndex = 24; DetectBArMatbox.TabIndex = 24;
DetectBArMatbox.Text = "D:\\Hisence\\类型\\Lp202452414231.jpg"; DetectBArMatbox.Text = "D:\\Hisence\\类型\\Lp202452414231.jpg";
// //
@ -1635,7 +1620,7 @@
label24.Location = new Point(471, 110); label24.Location = new Point(471, 110);
label24.Margin = new Padding(4, 0, 4, 0); label24.Margin = new Padding(4, 0, 4, 0);
label24.Name = "label24"; label24.Name = "label24";
label24.Size = new Size(64, 17); label24.Size = new Size(96, 25);
label24.TabIndex = 23; label24.TabIndex = 23;
label24.Text = "条码录入"; label24.Text = "条码录入";
// //
@ -1655,7 +1640,7 @@
moveTwoZbox.Location = new Point(607, 56); moveTwoZbox.Location = new Point(607, 56);
moveTwoZbox.Margin = new Padding(4, 2, 4, 2); moveTwoZbox.Margin = new Padding(4, 2, 4, 2);
moveTwoZbox.Name = "moveTwoZbox"; moveTwoZbox.Name = "moveTwoZbox";
moveTwoZbox.Size = new Size(280, 23); moveTwoZbox.Size = new Size(280, 31);
moveTwoZbox.TabIndex = 21; moveTwoZbox.TabIndex = 21;
moveTwoZbox.Text = "0"; moveTwoZbox.Text = "0";
// //
@ -1665,7 +1650,7 @@
label25.Location = new Point(471, 62); label25.Location = new Point(471, 62);
label25.Margin = new Padding(4, 0, 4, 0); label25.Margin = new Padding(4, 0, 4, 0);
label25.Name = "label25"; label25.Name = "label25";
label25.Size = new Size(101, 17); label25.Size = new Size(151, 25);
label25.TabIndex = 20; label25.TabIndex = 20;
label25.Text = "第二次拍照Z轴"; label25.Text = "第二次拍照Z轴";
// //
@ -1674,7 +1659,7 @@
moveTwoYbox.Location = new Point(607, 11); moveTwoYbox.Location = new Point(607, 11);
moveTwoYbox.Margin = new Padding(4, 2, 4, 2); moveTwoYbox.Margin = new Padding(4, 2, 4, 2);
moveTwoYbox.Name = "moveTwoYbox"; moveTwoYbox.Name = "moveTwoYbox";
moveTwoYbox.Size = new Size(280, 23); moveTwoYbox.Size = new Size(280, 31);
moveTwoYbox.TabIndex = 19; moveTwoYbox.TabIndex = 19;
moveTwoYbox.Text = "0"; moveTwoYbox.Text = "0";
// //
@ -1684,7 +1669,7 @@
label26.Location = new Point(471, 17); label26.Location = new Point(471, 17);
label26.Margin = new Padding(4, 0, 4, 0); label26.Margin = new Padding(4, 0, 4, 0);
label26.Name = "label26"; label26.Name = "label26";
label26.Size = new Size(101, 17); label26.Size = new Size(153, 25);
label26.TabIndex = 18; label26.TabIndex = 18;
label26.Text = "第二次拍照Y轴"; label26.Text = "第二次拍照Y轴";
// //
@ -1693,7 +1678,7 @@
moveTwoXbox.Location = new Point(143, 229); moveTwoXbox.Location = new Point(143, 229);
moveTwoXbox.Margin = new Padding(4, 2, 4, 2); moveTwoXbox.Margin = new Padding(4, 2, 4, 2);
moveTwoXbox.Name = "moveTwoXbox"; moveTwoXbox.Name = "moveTwoXbox";
moveTwoXbox.Size = new Size(287, 23); moveTwoXbox.Size = new Size(287, 31);
moveTwoXbox.TabIndex = 17; moveTwoXbox.TabIndex = 17;
moveTwoXbox.Text = "54964"; moveTwoXbox.Text = "54964";
// //
@ -1703,7 +1688,7 @@
label27.Location = new Point(21, 233); label27.Location = new Point(21, 233);
label27.Margin = new Padding(4, 0, 4, 0); label27.Margin = new Padding(4, 0, 4, 0);
label27.Name = "label27"; label27.Name = "label27";
label27.Size = new Size(101, 17); label27.Size = new Size(152, 25);
label27.TabIndex = 16; label27.TabIndex = 16;
label27.Text = "第二次拍照X轴"; label27.Text = "第二次拍照X轴";
// //
@ -1712,7 +1697,7 @@
moveZbox.Location = new Point(143, 182); moveZbox.Location = new Point(143, 182);
moveZbox.Margin = new Padding(4, 2, 4, 2); moveZbox.Margin = new Padding(4, 2, 4, 2);
moveZbox.Name = "moveZbox"; moveZbox.Name = "moveZbox";
moveZbox.Size = new Size(287, 23); moveZbox.Size = new Size(287, 31);
moveZbox.TabIndex = 15; moveZbox.TabIndex = 15;
moveZbox.Text = "0"; moveZbox.Text = "0";
// //
@ -1721,7 +1706,7 @@
moveYbox.Location = new Point(143, 137); moveYbox.Location = new Point(143, 137);
moveYbox.Margin = new Padding(4, 2, 4, 2); moveYbox.Margin = new Padding(4, 2, 4, 2);
moveYbox.Name = "moveYbox"; moveYbox.Name = "moveYbox";
moveYbox.Size = new Size(287, 23); moveYbox.Size = new Size(287, 31);
moveYbox.TabIndex = 13; moveYbox.TabIndex = 13;
moveYbox.Text = "0"; moveYbox.Text = "0";
// //
@ -1731,7 +1716,7 @@
label29.Location = new Point(22, 143); label29.Location = new Point(22, 143);
label29.Margin = new Padding(4, 0, 4, 0); label29.Margin = new Padding(4, 0, 4, 0);
label29.Name = "label29"; label29.Name = "label29";
label29.Size = new Size(101, 17); label29.Size = new Size(153, 25);
label29.TabIndex = 12; label29.TabIndex = 12;
label29.Text = "第一次拍照Y轴"; label29.Text = "第一次拍照Y轴";
// //
@ -1740,7 +1725,7 @@
moveXbox.Location = new Point(143, 98); moveXbox.Location = new Point(143, 98);
moveXbox.Margin = new Padding(4, 2, 4, 2); moveXbox.Margin = new Padding(4, 2, 4, 2);
moveXbox.Name = "moveXbox"; moveXbox.Name = "moveXbox";
moveXbox.Size = new Size(287, 23); moveXbox.Size = new Size(287, 31);
moveXbox.TabIndex = 11; moveXbox.TabIndex = 11;
moveXbox.Text = "8974"; moveXbox.Text = "8974";
// //
@ -1750,7 +1735,7 @@
label30.Location = new Point(22, 104); label30.Location = new Point(22, 104);
label30.Margin = new Padding(4, 0, 4, 0); label30.Margin = new Padding(4, 0, 4, 0);
label30.Name = "label30"; label30.Name = "label30";
label30.Size = new Size(101, 17); label30.Size = new Size(152, 25);
label30.TabIndex = 10; label30.TabIndex = 10;
label30.Text = "第一次拍照X轴"; label30.Text = "第一次拍照X轴";
// //
@ -1759,7 +1744,7 @@
OcrBarBox.Location = new Point(143, 50); OcrBarBox.Location = new Point(143, 50);
OcrBarBox.Margin = new Padding(4, 2, 4, 2); OcrBarBox.Margin = new Padding(4, 2, 4, 2);
OcrBarBox.Name = "OcrBarBox"; OcrBarBox.Name = "OcrBarBox";
OcrBarBox.Size = new Size(287, 23); OcrBarBox.Size = new Size(287, 31);
OcrBarBox.TabIndex = 5; OcrBarBox.TabIndex = 5;
OcrBarBox.Text = "1234567890"; OcrBarBox.Text = "1234567890";
// //
@ -1769,7 +1754,7 @@
label31.Location = new Point(18, 56); label31.Location = new Point(18, 56);
label31.Margin = new Padding(4, 0, 4, 0); label31.Margin = new Padding(4, 0, 4, 0);
label31.Name = "label31"; label31.Name = "label31";
label31.Size = new Size(36, 17); label31.Size = new Size(54, 25);
label31.TabIndex = 4; label31.TabIndex = 4;
label31.Text = "条码"; label31.Text = "条码";
// //
@ -1778,7 +1763,7 @@
TypeBox.Location = new Point(143, 11); TypeBox.Location = new Point(143, 11);
TypeBox.Margin = new Padding(4, 2, 4, 2); TypeBox.Margin = new Padding(4, 2, 4, 2);
TypeBox.Name = "TypeBox"; TypeBox.Name = "TypeBox";
TypeBox.Size = new Size(287, 23); TypeBox.Size = new Size(287, 31);
TypeBox.TabIndex = 3; TypeBox.TabIndex = 3;
TypeBox.Text = "1"; TypeBox.Text = "1";
// //
@ -1799,7 +1784,7 @@
label32.Location = new Point(18, 17); label32.Location = new Point(18, 17);
label32.Margin = new Padding(4, 0, 4, 0); label32.Margin = new Padding(4, 0, 4, 0);
label32.Name = "label32"; label32.Name = "label32";
label32.Size = new Size(36, 17); label32.Size = new Size(54, 25);
label32.TabIndex = 1; label32.TabIndex = 1;
label32.Text = "类型"; label32.Text = "类型";
// //
@ -1809,6 +1794,7 @@
InsertDataDgv.Location = new Point(15, 264); InsertDataDgv.Location = new Point(15, 264);
InsertDataDgv.Margin = new Padding(4, 2, 4, 2); InsertDataDgv.Margin = new Padding(4, 2, 4, 2);
InsertDataDgv.Name = "InsertDataDgv"; InsertDataDgv.Name = "InsertDataDgv";
InsertDataDgv.RowHeadersWidth = 62;
InsertDataDgv.RowTemplate.Height = 25; InsertDataDgv.RowTemplate.Height = 25;
InsertDataDgv.Size = new Size(1601, 206); InsertDataDgv.Size = new Size(1601, 206);
InsertDataDgv.TabIndex = 0; InsertDataDgv.TabIndex = 0;
@ -1825,117 +1811,13 @@
// //
// contextMenuStrip1 // contextMenuStrip1
// //
contextMenuStrip1.ImageScalingSize = new Size(24, 24);
contextMenuStrip1.Name = "contextMenuStrip1"; contextMenuStrip1.Name = "contextMenuStrip1";
contextMenuStrip1.Size = new Size(61, 4); contextMenuStrip1.Size = new Size(61, 4);
// //
// canvas1
//
canvas1.AllowSelectDefect = true;
canvas1.BrushColor = null;
canvas1.ImagePath = "";
mat4.IsEnabledDispose = true;
canvas1.ImaMAt = mat4;
canvas1.ImgData = null;
canvas1.Location = new Point(8, 237);
canvas1.MoveStep = 5F;
canvas1.Name = "canvas1";
canvas1.Route = 0D;
canvas1.Scale = 1D;
canvas1.Size = new Size(351, 198);
canvas1.TabIndex = 4;
canvas1.WholeScale = 0F;
canvas1.XMove = 0F;
canvas1.XScale = 0F;
canvas1.YMove = 0F;
canvas1.YScale = 0F;
//
// canvas2
//
canvas2.AllowSelectDefect = true;
canvas2.BrushColor = null;
canvas2.ImagePath = "";
mat3.IsEnabledDispose = true;
canvas2.ImaMAt = mat3;
canvas2.ImgData = null;
canvas2.Location = new Point(367, 237);
canvas2.MoveStep = 5F;
canvas2.Name = "canvas2";
canvas2.Route = 0D;
canvas2.Scale = 1D;
canvas2.Size = new Size(351, 198);
canvas2.TabIndex = 5;
canvas2.WholeScale = 0F;
canvas2.XMove = 0F;
canvas2.XScale = 0F;
canvas2.YMove = 0F;
canvas2.YScale = 0F;
//
// canvas3
//
canvas3.AllowSelectDefect = true;
canvas3.BrushColor = null;
canvas3.ImagePath = "";
mat2.IsEnabledDispose = true;
canvas3.ImaMAt = mat2;
canvas3.ImgData = null;
canvas3.Location = new Point(0, 515);
canvas3.MoveStep = 5F;
canvas3.Name = "canvas3";
canvas3.Route = 0D;
canvas3.Scale = 1D;
canvas3.Size = new Size(351, 198);
canvas3.TabIndex = 6;
canvas3.WholeScale = 0F;
canvas3.XMove = 0F;
canvas3.XScale = 0F;
canvas3.YMove = 0F;
canvas3.YScale = 0F;
//
// canvas4
//
canvas4.AllowSelectDefect = true;
canvas4.BrushColor = null;
canvas4.ImagePath = "";
mat1.IsEnabledDispose = true;
canvas4.ImaMAt = mat1;
canvas4.ImgData = null;
canvas4.Location = new Point(367, 517);
canvas4.MoveStep = 5F;
canvas4.Name = "canvas4";
canvas4.Route = 0D;
canvas4.Scale = 1D;
canvas4.Size = new Size(351, 198);
canvas4.TabIndex = 7;
canvas4.WholeScale = 0F;
canvas4.XMove = 0F;
canvas4.XScale = 0F;
canvas4.YMove = 0F;
canvas4.YScale = 0F;
//
// canvas5
//
canvas5.AllowSelectDefect = true;
canvas5.BrushColor = null;
canvas5.ImagePath = "";
mat5.IsEnabledDispose = true;
canvas5.ImaMAt = mat5;
canvas5.ImgData = null;
canvas5.Location = new Point(7, 515);
canvas5.MoveStep = 5F;
canvas5.Name = "canvas5";
canvas5.Route = 0D;
canvas5.Scale = 1D;
canvas5.Size = new Size(351, 198);
canvas5.TabIndex = 18;
canvas5.WholeScale = 0F;
canvas5.XMove = 0F;
canvas5.XScale = 0F;
canvas5.YMove = 0F;
canvas5.YScale = 0F;
//
// MainForm // MainForm
// //
AutoScaleDimensions = new SizeF(8F, 17F); AutoScaleDimensions = new SizeF(12F, 25F);
AutoScaleMode = AutoScaleMode.Font; AutoScaleMode = AutoScaleMode.Font;
BackColor = SystemColors.ActiveCaption; BackColor = SystemColors.ActiveCaption;
ClientSize = new Size(1284, 920); ClientSize = new Size(1284, 920);

View File

@ -350,7 +350,7 @@ namespace HisenceYoloDetection
//string startTime = starttime; //string startTime = starttime;
//string EndTime = starttime; //string EndTime = starttime;
//string lineBody = "ZZ-P"; //string lineBody = "BZ-PC";
//string MaterialDescripts = "制冷器"; //string MaterialDescripts = "制冷器";
//string MaterialDescripts2 = "工艺管"; //string MaterialDescripts2 = "工艺管";
//JObject patientinfo = new JObject(); //JObject patientinfo = new JObject();
@ -459,8 +459,9 @@ namespace HisenceYoloDetection
OnSpeedShow();//线程开启将速度显示在界面上 OnSpeedShow();//线程开启将速度显示在界面上
OnPostionShow();//线程开启将位置显示在界面上 OnPostionShow();//线程开启将位置显示在界面上
melsecPLCTCPDriver.WriteInt(YellowLightingAdress, 1);//黄灯 melsecPLCTCPDriver.WriteInt("554", 1);//黄灯亮
melsecPLCTCPDriver.WriteInt("552", 0);//其他灯处于灭状态
melsecPLCTCPDriver.WriteInt("556", 0);
//t = new System.Timers.Timer(10000);//实例化Timer类设置间隔时间为10000毫秒 //t = new System.Timers.Timer(10000);//实例化Timer类设置间隔时间为10000毫秒
//t.Elapsed += new System.Timers.ElapsedEventHandler(Execute);//到达时间的时候执行事件; //t.Elapsed += new System.Timers.ElapsedEventHandler(Execute);//到达时间的时候执行事件;
//t.AutoReset = true;//设置是执行一次false还是一直执行(true) //t.AutoReset = true;//设置是执行一次false还是一直执行(true)
@ -1885,15 +1886,18 @@ namespace HisenceYoloDetection
} }
else else
{ {
melsecPLCTCPDriver.WriteInt(RedLightingAdress, 1);//红灯 melsecPLCTCPDriver.WriteInt("552", 1);//红灯亮
melsecPLCTCPDriver.WriteInt(WaringAdress, 1);//报警 melsecPLCTCPDriver.WriteInt("554", 0);//其他灯灭
melsecPLCTCPDriver.WriteInt("556", 0);
melsecPLCTCPDriver.WriteInt("558", 1);//报警
//加上人为判断是否是NG洗衣机 //加上人为判断是否是NG洗衣机
DialogResult dr = MessageBox.Show("是否误检?", "是否误检", MessageBoxButtons.OKCancel, MessageBoxIcon.Question); DialogResult dr = MessageBox.Show("是否误检?", "是否误检", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
if (dr == DialogResult.OK) if (dr == DialogResult.OK)
{ {
melsecPLCTCPDriver.WriteInt(RedLightingAdress, 0);//红灯 melsecPLCTCPDriver.WriteInt("552", 0);//红灯灭
melsecPLCTCPDriver.WriteInt(WaringAdress, 0);//报警 melsecPLCTCPDriver.WriteInt("554", 1);//黄灯亮
melsecPLCTCPDriver.WriteInt("558", 0);//报警
OKDsums++; OKDsums++;
WUsums++; WUsums++;
this.Invoke(new Action(() => this.Invoke(new Action(() =>
@ -1908,8 +1912,9 @@ namespace HisenceYoloDetection
else else
{ {
NGDsums++; NGDsums++;
melsecPLCTCPDriver.WriteInt(WaringAdress, 0);//报警 melsecPLCTCPDriver.WriteInt("558", 0);//报警
melsecPLCTCPDriver.WriteInt(RedLightingAdress, 0);//红灯 melsecPLCTCPDriver.WriteInt("552", 0);//红灯灭
melsecPLCTCPDriver.WriteInt("554", 1);//黄灯亮
this.Invoke(new Action(() => this.Invoke(new Action(() =>
{ {
@ -2207,7 +2212,8 @@ namespace HisenceYoloDetection
*/ */
// OnGetBar(); // OnGetBar();
melsecPLCTCPDriver.WriteInt(GreenLightingAdress, 1);//黄灯 melsecPLCTCPDriver.WriteInt("556", 1);//绿灯亮
melsecPLCTCPDriver.WriteInt("554", 0);//黄灯灭
TriggerCameral2(); TriggerCameral2();
ReadyDetect(); ReadyDetect();
myLog("开启流程成功", DateTime.Now); myLog("开启流程成功", DateTime.Now);