Browse Source

增加产品条码读取。

Dail 1 year ago
parent
commit
805d3db402

BIN
.vs/MOTINOVA_MC_Test/v17/.suo


+ 73 - 45
MOTINOVA_MC_Test/Form1.Designer.cs

@@ -90,6 +90,8 @@
             this.richTextBox_Rev = new System.Windows.Forms.RichTextBox();
             this.label5 = new System.Windows.Forms.Label();
             this.pictureBox1 = new System.Windows.Forms.PictureBox();
+            this.button_CDL_ReadTag = new System.Windows.Forms.Button();
+            this.button_CDL_WriteTag = new System.Windows.Forms.Button();
             this.groupBox1.SuspendLayout();
             this.groupBox2.SuspendLayout();
             this.groupBox3.SuspendLayout();
@@ -219,7 +221,7 @@
             this.groupBox2.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.groupBox2.Location = new System.Drawing.Point(12, 153);
             this.groupBox2.Name = "groupBox2";
-            this.groupBox2.Size = new System.Drawing.Size(133, 428);
+            this.groupBox2.Size = new System.Drawing.Size(133, 455);
             this.groupBox2.TabIndex = 1;
             this.groupBox2.TabStop = false;
             this.groupBox2.Text = "模拟MC";
@@ -227,7 +229,7 @@
             // button_MC_Check
             // 
             this.button_MC_Check.Font = new System.Drawing.Font("微软雅黑", 10.5F);
-            this.button_MC_Check.Location = new System.Drawing.Point(6, 73);
+            this.button_MC_Check.Location = new System.Drawing.Point(6, 61);
             this.button_MC_Check.Name = "button_MC_Check";
             this.button_MC_Check.Size = new System.Drawing.Size(120, 30);
             this.button_MC_Check.TabIndex = 4;
@@ -238,7 +240,7 @@
             // button_MC_Ready
             // 
             this.button_MC_Ready.Font = new System.Drawing.Font("微软雅黑", 10.5F);
-            this.button_MC_Ready.Location = new System.Drawing.Point(6, 38);
+            this.button_MC_Ready.Location = new System.Drawing.Point(6, 26);
             this.button_MC_Ready.Name = "button_MC_Ready";
             this.button_MC_Ready.Size = new System.Drawing.Size(120, 30);
             this.button_MC_Ready.TabIndex = 5;
@@ -249,7 +251,7 @@
             // button_MC_ReadDesignInfo
             // 
             this.button_MC_ReadDesignInfo.Font = new System.Drawing.Font("微软雅黑", 10.5F);
-            this.button_MC_ReadDesignInfo.Location = new System.Drawing.Point(6, 178);
+            this.button_MC_ReadDesignInfo.Location = new System.Drawing.Point(6, 166);
             this.button_MC_ReadDesignInfo.Name = "button_MC_ReadDesignInfo";
             this.button_MC_ReadDesignInfo.Size = new System.Drawing.Size(120, 30);
             this.button_MC_ReadDesignInfo.TabIndex = 3;
@@ -260,7 +262,7 @@
             // button_MC_ReadCheckNum
             // 
             this.button_MC_ReadCheckNum.Font = new System.Drawing.Font("微软雅黑", 10.5F);
-            this.button_MC_ReadCheckNum.Location = new System.Drawing.Point(6, 143);
+            this.button_MC_ReadCheckNum.Location = new System.Drawing.Point(6, 131);
             this.button_MC_ReadCheckNum.Name = "button_MC_ReadCheckNum";
             this.button_MC_ReadCheckNum.Size = new System.Drawing.Size(120, 30);
             this.button_MC_ReadCheckNum.TabIndex = 3;
@@ -271,7 +273,7 @@
             // button_MC_ReadID
             // 
             this.button_MC_ReadID.Font = new System.Drawing.Font("微软雅黑", 10.5F);
-            this.button_MC_ReadID.Location = new System.Drawing.Point(6, 108);
+            this.button_MC_ReadID.Location = new System.Drawing.Point(6, 96);
             this.button_MC_ReadID.Name = "button_MC_ReadID";
             this.button_MC_ReadID.Size = new System.Drawing.Size(120, 30);
             this.button_MC_ReadID.TabIndex = 3;
@@ -298,14 +300,14 @@
             this.groupBox3.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.groupBox3.Location = new System.Drawing.Point(151, 153);
             this.groupBox3.Name = "groupBox3";
-            this.groupBox3.Size = new System.Drawing.Size(133, 428);
+            this.groupBox3.Size = new System.Drawing.Size(133, 455);
             this.groupBox3.TabIndex = 1;
             this.groupBox3.TabStop = false;
             this.groupBox3.Text = "模拟PBU/OBC";
             // 
             // button_OBC_ReadCell
             // 
-            this.button_OBC_ReadCell.Location = new System.Drawing.Point(6, 178);
+            this.button_OBC_ReadCell.Location = new System.Drawing.Point(6, 166);
             this.button_OBC_ReadCell.Name = "button_OBC_ReadCell";
             this.button_OBC_ReadCell.Size = new System.Drawing.Size(120, 30);
             this.button_OBC_ReadCell.TabIndex = 9;
@@ -315,7 +317,7 @@
             // 
             // button_OBC_ReadDesign
             // 
-            this.button_OBC_ReadDesign.Location = new System.Drawing.Point(6, 143);
+            this.button_OBC_ReadDesign.Location = new System.Drawing.Point(6, 131);
             this.button_OBC_ReadDesign.Name = "button_OBC_ReadDesign";
             this.button_OBC_ReadDesign.Size = new System.Drawing.Size(120, 30);
             this.button_OBC_ReadDesign.TabIndex = 8;
@@ -325,7 +327,7 @@
             // 
             // button_OBC_ReadVer
             // 
-            this.button_OBC_ReadVer.Location = new System.Drawing.Point(6, 108);
+            this.button_OBC_ReadVer.Location = new System.Drawing.Point(6, 96);
             this.button_OBC_ReadVer.Name = "button_OBC_ReadVer";
             this.button_OBC_ReadVer.Size = new System.Drawing.Size(120, 30);
             this.button_OBC_ReadVer.TabIndex = 7;
@@ -336,7 +338,7 @@
             // button_OBC_Ready
             // 
             this.button_OBC_Ready.Font = new System.Drawing.Font("微软雅黑", 10.5F);
-            this.button_OBC_Ready.Location = new System.Drawing.Point(6, 38);
+            this.button_OBC_Ready.Location = new System.Drawing.Point(6, 26);
             this.button_OBC_Ready.Name = "button_OBC_Ready";
             this.button_OBC_Ready.Size = new System.Drawing.Size(120, 30);
             this.button_OBC_Ready.TabIndex = 6;
@@ -346,7 +348,7 @@
             // 
             // button_OBC_ReadRunInfo
             // 
-            this.button_OBC_ReadRunInfo.Location = new System.Drawing.Point(6, 73);
+            this.button_OBC_ReadRunInfo.Location = new System.Drawing.Point(6, 61);
             this.button_OBC_ReadRunInfo.Name = "button_OBC_ReadRunInfo";
             this.button_OBC_ReadRunInfo.Size = new System.Drawing.Size(120, 30);
             this.button_OBC_ReadRunInfo.TabIndex = 3;
@@ -372,14 +374,14 @@
             this.groupBox4.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.groupBox4.Location = new System.Drawing.Point(290, 153);
             this.groupBox4.Name = "groupBox4";
-            this.groupBox4.Size = new System.Drawing.Size(133, 428);
+            this.groupBox4.Size = new System.Drawing.Size(133, 455);
             this.groupBox4.TabIndex = 1;
             this.groupBox4.TabStop = false;
             this.groupBox4.Text = "模拟HMI";
             // 
             // button_HMI_ReadCell
             // 
-            this.button_HMI_ReadCell.Location = new System.Drawing.Point(7, 143);
+            this.button_HMI_ReadCell.Location = new System.Drawing.Point(7, 131);
             this.button_HMI_ReadCell.Name = "button_HMI_ReadCell";
             this.button_HMI_ReadCell.Size = new System.Drawing.Size(120, 30);
             this.button_HMI_ReadCell.TabIndex = 10;
@@ -390,7 +392,7 @@
             // button_HMI_Ready
             // 
             this.button_HMI_Ready.Font = new System.Drawing.Font("微软雅黑", 10.5F);
-            this.button_HMI_Ready.Location = new System.Drawing.Point(7, 38);
+            this.button_HMI_Ready.Location = new System.Drawing.Point(7, 26);
             this.button_HMI_Ready.Name = "button_HMI_Ready";
             this.button_HMI_Ready.Size = new System.Drawing.Size(120, 30);
             this.button_HMI_Ready.TabIndex = 10;
@@ -400,7 +402,7 @@
             // 
             // button_HMI_ReadDesignInfo
             // 
-            this.button_HMI_ReadDesignInfo.Location = new System.Drawing.Point(7, 108);
+            this.button_HMI_ReadDesignInfo.Location = new System.Drawing.Point(7, 96);
             this.button_HMI_ReadDesignInfo.Name = "button_HMI_ReadDesignInfo";
             this.button_HMI_ReadDesignInfo.Size = new System.Drawing.Size(120, 30);
             this.button_HMI_ReadDesignInfo.TabIndex = 3;
@@ -410,7 +412,7 @@
             // 
             // button_HMI_ReadVerInfo
             // 
-            this.button_HMI_ReadVerInfo.Location = new System.Drawing.Point(7, 73);
+            this.button_HMI_ReadVerInfo.Location = new System.Drawing.Point(7, 61);
             this.button_HMI_ReadVerInfo.Name = "button_HMI_ReadVerInfo";
             this.button_HMI_ReadVerInfo.Size = new System.Drawing.Size(120, 30);
             this.button_HMI_ReadVerInfo.TabIndex = 3;
@@ -431,7 +433,7 @@
             this.richTextBox_Data.Location = new System.Drawing.Point(8, 28);
             this.richTextBox_Data.Name = "richTextBox_Data";
             this.richTextBox_Data.ReadOnly = true;
-            this.richTextBox_Data.Size = new System.Drawing.Size(238, 527);
+            this.richTextBox_Data.Size = new System.Drawing.Size(238, 562);
             this.richTextBox_Data.TabIndex = 5;
             this.richTextBox_Data.Text = "";
             // 
@@ -441,7 +443,7 @@
             this.groupBox5.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.groupBox5.Location = new System.Drawing.Point(700, 12);
             this.groupBox5.Name = "groupBox5";
-            this.groupBox5.Size = new System.Drawing.Size(254, 569);
+            this.groupBox5.Size = new System.Drawing.Size(254, 596);
             this.groupBox5.TabIndex = 6;
             this.groupBox5.TabStop = false;
             this.groupBox5.Text = "数据解析";
@@ -449,7 +451,9 @@
             // groupBox6
             // 
             this.groupBox6.Controls.Add(this.textBox_SendData);
+            this.groupBox6.Controls.Add(this.button_CDL_WriteTag);
             this.groupBox6.Controls.Add(this.button_CDL_ReadLog);
+            this.groupBox6.Controls.Add(this.button_CDL_ReadTag);
             this.groupBox6.Controls.Add(this.button_CDL_Reset);
             this.groupBox6.Controls.Add(this.button_CDL_WriteSN);
             this.groupBox6.Controls.Add(this.button_CDL_WriteModel);
@@ -473,14 +477,14 @@
             this.groupBox6.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.groupBox6.Location = new System.Drawing.Point(429, 153);
             this.groupBox6.Name = "groupBox6";
-            this.groupBox6.Size = new System.Drawing.Size(265, 428);
+            this.groupBox6.Size = new System.Drawing.Size(265, 455);
             this.groupBox6.TabIndex = 4;
             this.groupBox6.TabStop = false;
             this.groupBox6.Text = "模拟CDL";
             // 
             // textBox_SendData
             // 
-            this.textBox_SendData.Location = new System.Drawing.Point(6, 396);
+            this.textBox_SendData.Location = new System.Drawing.Point(6, 423);
             this.textBox_SendData.Name = "textBox_SendData";
             this.textBox_SendData.Size = new System.Drawing.Size(246, 26);
             this.textBox_SendData.TabIndex = 31;
@@ -488,7 +492,7 @@
             // button_CDL_ReadLog
             // 
             this.button_CDL_ReadLog.Font = new System.Drawing.Font("微软雅黑", 10.5F);
-            this.button_CDL_ReadLog.Location = new System.Drawing.Point(132, 362);
+            this.button_CDL_ReadLog.Location = new System.Drawing.Point(132, 350);
             this.button_CDL_ReadLog.Name = "button_CDL_ReadLog";
             this.button_CDL_ReadLog.Size = new System.Drawing.Size(120, 30);
             this.button_CDL_ReadLog.TabIndex = 30;
@@ -499,7 +503,7 @@
             // button_CDL_Reset
             // 
             this.button_CDL_Reset.Font = new System.Drawing.Font("微软雅黑", 10.5F);
-            this.button_CDL_Reset.Location = new System.Drawing.Point(6, 362);
+            this.button_CDL_Reset.Location = new System.Drawing.Point(6, 350);
             this.button_CDL_Reset.Name = "button_CDL_Reset";
             this.button_CDL_Reset.Size = new System.Drawing.Size(120, 30);
             this.button_CDL_Reset.TabIndex = 29;
@@ -510,7 +514,7 @@
             // button_CDL_WriteSN
             // 
             this.button_CDL_WriteSN.Font = new System.Drawing.Font("微软雅黑", 10.5F);
-            this.button_CDL_WriteSN.Location = new System.Drawing.Point(132, 326);
+            this.button_CDL_WriteSN.Location = new System.Drawing.Point(132, 314);
             this.button_CDL_WriteSN.Name = "button_CDL_WriteSN";
             this.button_CDL_WriteSN.Size = new System.Drawing.Size(120, 30);
             this.button_CDL_WriteSN.TabIndex = 28;
@@ -521,7 +525,7 @@
             // button_CDL_WriteModel
             // 
             this.button_CDL_WriteModel.Font = new System.Drawing.Font("微软雅黑", 10.5F);
-            this.button_CDL_WriteModel.Location = new System.Drawing.Point(6, 326);
+            this.button_CDL_WriteModel.Location = new System.Drawing.Point(6, 314);
             this.button_CDL_WriteModel.Name = "button_CDL_WriteModel";
             this.button_CDL_WriteModel.Size = new System.Drawing.Size(120, 30);
             this.button_CDL_WriteModel.TabIndex = 27;
@@ -532,7 +536,7 @@
             // button_CDL_WriteFac
             // 
             this.button_CDL_WriteFac.Font = new System.Drawing.Font("微软雅黑", 10.5F);
-            this.button_CDL_WriteFac.Location = new System.Drawing.Point(132, 290);
+            this.button_CDL_WriteFac.Location = new System.Drawing.Point(132, 278);
             this.button_CDL_WriteFac.Name = "button_CDL_WriteFac";
             this.button_CDL_WriteFac.Size = new System.Drawing.Size(120, 30);
             this.button_CDL_WriteFac.TabIndex = 26;
@@ -543,7 +547,7 @@
             // button_CDL_Write_User3
             // 
             this.button_CDL_Write_User3.Font = new System.Drawing.Font("微软雅黑", 10.5F);
-            this.button_CDL_Write_User3.Location = new System.Drawing.Point(6, 290);
+            this.button_CDL_Write_User3.Location = new System.Drawing.Point(6, 278);
             this.button_CDL_Write_User3.Name = "button_CDL_Write_User3";
             this.button_CDL_Write_User3.Size = new System.Drawing.Size(120, 30);
             this.button_CDL_Write_User3.TabIndex = 25;
@@ -554,7 +558,7 @@
             // button_CDL_ReadUser3
             // 
             this.button_CDL_ReadUser3.Font = new System.Drawing.Font("微软雅黑", 10.5F);
-            this.button_CDL_ReadUser3.Location = new System.Drawing.Point(132, 254);
+            this.button_CDL_ReadUser3.Location = new System.Drawing.Point(132, 242);
             this.button_CDL_ReadUser3.Name = "button_CDL_ReadUser3";
             this.button_CDL_ReadUser3.Size = new System.Drawing.Size(120, 30);
             this.button_CDL_ReadUser3.TabIndex = 24;
@@ -565,7 +569,7 @@
             // button_CDL_Write_User2
             // 
             this.button_CDL_Write_User2.Font = new System.Drawing.Font("微软雅黑", 10.5F);
-            this.button_CDL_Write_User2.Location = new System.Drawing.Point(6, 254);
+            this.button_CDL_Write_User2.Location = new System.Drawing.Point(6, 242);
             this.button_CDL_Write_User2.Name = "button_CDL_Write_User2";
             this.button_CDL_Write_User2.Size = new System.Drawing.Size(120, 30);
             this.button_CDL_Write_User2.TabIndex = 23;
@@ -576,7 +580,7 @@
             // button_CDL_ReadUser2
             // 
             this.button_CDL_ReadUser2.Font = new System.Drawing.Font("微软雅黑", 10.5F);
-            this.button_CDL_ReadUser2.Location = new System.Drawing.Point(132, 218);
+            this.button_CDL_ReadUser2.Location = new System.Drawing.Point(132, 206);
             this.button_CDL_ReadUser2.Name = "button_CDL_ReadUser2";
             this.button_CDL_ReadUser2.Size = new System.Drawing.Size(120, 30);
             this.button_CDL_ReadUser2.TabIndex = 22;
@@ -587,7 +591,7 @@
             // button_CDL_Write_User1
             // 
             this.button_CDL_Write_User1.Font = new System.Drawing.Font("微软雅黑", 10.5F);
-            this.button_CDL_Write_User1.Location = new System.Drawing.Point(6, 218);
+            this.button_CDL_Write_User1.Location = new System.Drawing.Point(6, 206);
             this.button_CDL_Write_User1.Name = "button_CDL_Write_User1";
             this.button_CDL_Write_User1.Size = new System.Drawing.Size(120, 30);
             this.button_CDL_Write_User1.TabIndex = 21;
@@ -598,7 +602,7 @@
             // button_CDL_ReadUser1
             // 
             this.button_CDL_ReadUser1.Font = new System.Drawing.Font("微软雅黑", 10.5F);
-            this.button_CDL_ReadUser1.Location = new System.Drawing.Point(132, 182);
+            this.button_CDL_ReadUser1.Location = new System.Drawing.Point(132, 170);
             this.button_CDL_ReadUser1.Name = "button_CDL_ReadUser1";
             this.button_CDL_ReadUser1.Size = new System.Drawing.Size(120, 30);
             this.button_CDL_ReadUser1.TabIndex = 20;
@@ -609,7 +613,7 @@
             // button_CDL_ReadHistory
             // 
             this.button_CDL_ReadHistory.Font = new System.Drawing.Font("微软雅黑", 10.5F);
-            this.button_CDL_ReadHistory.Location = new System.Drawing.Point(6, 182);
+            this.button_CDL_ReadHistory.Location = new System.Drawing.Point(6, 170);
             this.button_CDL_ReadHistory.Name = "button_CDL_ReadHistory";
             this.button_CDL_ReadHistory.Size = new System.Drawing.Size(120, 30);
             this.button_CDL_ReadHistory.TabIndex = 19;
@@ -620,7 +624,7 @@
             // button_CDL_ReadFac
             // 
             this.button_CDL_ReadFac.Font = new System.Drawing.Font("微软雅黑", 10.5F);
-            this.button_CDL_ReadFac.Location = new System.Drawing.Point(132, 146);
+            this.button_CDL_ReadFac.Location = new System.Drawing.Point(132, 134);
             this.button_CDL_ReadFac.Name = "button_CDL_ReadFac";
             this.button_CDL_ReadFac.Size = new System.Drawing.Size(120, 30);
             this.button_CDL_ReadFac.TabIndex = 18;
@@ -631,7 +635,7 @@
             // button_CDL_ReadDesign
             // 
             this.button_CDL_ReadDesign.Font = new System.Drawing.Font("微软雅黑", 10.5F);
-            this.button_CDL_ReadDesign.Location = new System.Drawing.Point(6, 146);
+            this.button_CDL_ReadDesign.Location = new System.Drawing.Point(6, 134);
             this.button_CDL_ReadDesign.Name = "button_CDL_ReadDesign";
             this.button_CDL_ReadDesign.Size = new System.Drawing.Size(120, 30);
             this.button_CDL_ReadDesign.TabIndex = 17;
@@ -642,7 +646,7 @@
             // button_CDL_ReadCell
             // 
             this.button_CDL_ReadCell.Font = new System.Drawing.Font("微软雅黑", 10.5F);
-            this.button_CDL_ReadCell.Location = new System.Drawing.Point(132, 110);
+            this.button_CDL_ReadCell.Location = new System.Drawing.Point(132, 98);
             this.button_CDL_ReadCell.Name = "button_CDL_ReadCell";
             this.button_CDL_ReadCell.Size = new System.Drawing.Size(120, 30);
             this.button_CDL_ReadCell.TabIndex = 16;
@@ -653,7 +657,7 @@
             // button_CDL_ReadRunInfo
             // 
             this.button_CDL_ReadRunInfo.Font = new System.Drawing.Font("微软雅黑", 10.5F);
-            this.button_CDL_ReadRunInfo.Location = new System.Drawing.Point(6, 110);
+            this.button_CDL_ReadRunInfo.Location = new System.Drawing.Point(6, 98);
             this.button_CDL_ReadRunInfo.Name = "button_CDL_ReadRunInfo";
             this.button_CDL_ReadRunInfo.Size = new System.Drawing.Size(120, 30);
             this.button_CDL_ReadRunInfo.TabIndex = 15;
@@ -664,7 +668,7 @@
             // button_CDL_ReadVer
             // 
             this.button_CDL_ReadVer.Font = new System.Drawing.Font("微软雅黑", 10.5F);
-            this.button_CDL_ReadVer.Location = new System.Drawing.Point(132, 74);
+            this.button_CDL_ReadVer.Location = new System.Drawing.Point(132, 62);
             this.button_CDL_ReadVer.Name = "button_CDL_ReadVer";
             this.button_CDL_ReadVer.Size = new System.Drawing.Size(120, 30);
             this.button_CDL_ReadVer.TabIndex = 14;
@@ -675,7 +679,7 @@
             // button_CDL_WriteCheckNum
             // 
             this.button_CDL_WriteCheckNum.Font = new System.Drawing.Font("微软雅黑", 10.5F);
-            this.button_CDL_WriteCheckNum.Location = new System.Drawing.Point(6, 74);
+            this.button_CDL_WriteCheckNum.Location = new System.Drawing.Point(6, 62);
             this.button_CDL_WriteCheckNum.Name = "button_CDL_WriteCheckNum";
             this.button_CDL_WriteCheckNum.Size = new System.Drawing.Size(120, 30);
             this.button_CDL_WriteCheckNum.TabIndex = 13;
@@ -686,7 +690,7 @@
             // button_CDL_ReadCheckNum
             // 
             this.button_CDL_ReadCheckNum.Font = new System.Drawing.Font("微软雅黑", 10.5F);
-            this.button_CDL_ReadCheckNum.Location = new System.Drawing.Point(132, 38);
+            this.button_CDL_ReadCheckNum.Location = new System.Drawing.Point(132, 26);
             this.button_CDL_ReadCheckNum.Name = "button_CDL_ReadCheckNum";
             this.button_CDL_ReadCheckNum.Size = new System.Drawing.Size(120, 30);
             this.button_CDL_ReadCheckNum.TabIndex = 12;
@@ -697,7 +701,7 @@
             // button_CDL_ReadID
             // 
             this.button_CDL_ReadID.Font = new System.Drawing.Font("微软雅黑", 10.5F);
-            this.button_CDL_ReadID.Location = new System.Drawing.Point(6, 38);
+            this.button_CDL_ReadID.Location = new System.Drawing.Point(6, 26);
             this.button_CDL_ReadID.Name = "button_CDL_ReadID";
             this.button_CDL_ReadID.Size = new System.Drawing.Size(120, 30);
             this.button_CDL_ReadID.TabIndex = 11;
@@ -737,7 +741,7 @@
             // 
             this.label5.AutoSize = true;
             this.label5.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.label5.Location = new System.Drawing.Point(9, 588);
+            this.label5.Location = new System.Drawing.Point(9, 611);
             this.label5.Name = "label5";
             this.label5.Size = new System.Drawing.Size(212, 17);
             this.label5.TabIndex = 8;
@@ -746,19 +750,41 @@
             // pictureBox1
             // 
             this.pictureBox1.Image = global::MOTINOVA_BMS_Test.Properties.Resources.about;
-            this.pictureBox1.Location = new System.Drawing.Point(820, 587);
+            this.pictureBox1.Location = new System.Drawing.Point(820, 610);
             this.pictureBox1.Name = "pictureBox1";
             this.pictureBox1.Size = new System.Drawing.Size(132, 18);
             this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
             this.pictureBox1.TabIndex = 9;
             this.pictureBox1.TabStop = false;
             // 
+            // button_CDL_ReadTag
+            // 
+            this.button_CDL_ReadTag.Font = new System.Drawing.Font("微软雅黑", 10.5F);
+            this.button_CDL_ReadTag.Location = new System.Drawing.Point(6, 386);
+            this.button_CDL_ReadTag.Name = "button_CDL_ReadTag";
+            this.button_CDL_ReadTag.Size = new System.Drawing.Size(120, 30);
+            this.button_CDL_ReadTag.TabIndex = 29;
+            this.button_CDL_ReadTag.Text = "查询产品条码";
+            this.button_CDL_ReadTag.UseVisualStyleBackColor = true;
+            this.button_CDL_ReadTag.Click += new System.EventHandler(this.button_CDL_ReadTag_Click);
+            // 
+            // button_CDL_WriteTag
+            // 
+            this.button_CDL_WriteTag.Font = new System.Drawing.Font("微软雅黑", 10.5F);
+            this.button_CDL_WriteTag.Location = new System.Drawing.Point(132, 386);
+            this.button_CDL_WriteTag.Name = "button_CDL_WriteTag";
+            this.button_CDL_WriteTag.Size = new System.Drawing.Size(120, 30);
+            this.button_CDL_WriteTag.TabIndex = 30;
+            this.button_CDL_WriteTag.Text = "写入产品条码";
+            this.button_CDL_WriteTag.UseVisualStyleBackColor = true;
+            this.button_CDL_WriteTag.Click += new System.EventHandler(this.button_CDL_WriteTag_Click);
+            // 
             // Form1
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
-            this.ClientSize = new System.Drawing.Size(964, 611);
+            this.ClientSize = new System.Drawing.Size(964, 661);
             this.Controls.Add(this.pictureBox1);
             this.Controls.Add(this.label5);
             this.Controls.Add(this.groupBox7);
@@ -773,7 +799,7 @@
             this.MaximizeBox = false;
             this.Name = "Form1";
             this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
-            this.Text = "MOTINOVA_BMS_Test_V1.0.2";
+            this.Text = "MOTINOVA_BMS_Test_V1.0.3";
             this.Load += new System.EventHandler(this.Form1_Load);
             this.groupBox1.ResumeLayout(false);
             this.groupBox1.PerformLayout();
@@ -855,6 +881,8 @@
         private System.Windows.Forms.TextBox textBox_SendData;
         private System.Windows.Forms.Label label5;
         private System.Windows.Forms.PictureBox pictureBox1;
+        private System.Windows.Forms.Button button_CDL_WriteTag;
+        private System.Windows.Forms.Button button_CDL_ReadTag;
     }
 }
 

+ 52 - 0
MOTINOVA_MC_Test/Form1.cs

@@ -685,6 +685,19 @@ namespace MOTINOVA_MC_Test
                         }
                         break;
                     }
+                case 0x5720://产品条码
+                    {
+                        unchecked
+                        {
+                            this.Invoke((EventHandler)(delegate
+                            {
+                                richTextBox_Data.Text += "接收数据:";
+                                for (int i = 0; i < 32; i++)
+                                    richTextBox_Data.Text += ((char)(binary_data_1[2 + i])).ToString();
+                            }));
+                        }
+                        break;
+                    }
                 default: break;
             }
         }
@@ -1342,6 +1355,45 @@ namespace MOTINOVA_MC_Test
             richTextBox_Data.Text = "";
             richTextBox_Rev.Text = "";
         }
+
+        /// <summary>
+        /// CDL读取产品条码
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void button_CDL_ReadTag_Click(object sender, EventArgs e)
+        {
+            SendCmd((ushort)0x752, (byte)0x11, (ushort)0x4400, null);
+
+            richTextBox_Data.Text = "";
+            richTextBox_Rev.Text = "";
+        }
+
+        /// <summary>
+        /// CDL写入产品条码
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void button_CDL_WriteTag_Click(object sender, EventArgs e)
+        {
+            var Code = new byte[32];
+            for (int i = 0; i < 32; i++)
+                Code[i] = 0x00;
+
+            if (textBox_SendData.Text.Length > 32)
+            {
+                MessageBox.Show("Length should be less 32 bytes!", "Notice", MessageBoxButtons.OK);
+                return;
+            }
+            for (ushort i = 0; i < textBox_SendData.Text.Length; i++)
+            {
+                Code[i] = (byte)textBox_SendData.Text[i];
+            }
+            SendCmd((ushort)0x752, (byte)0x16, (ushort)0x4520, Code);
+
+            richTextBox_Data.Text = "";
+            richTextBox_Rev.Text = "";
+        }
     }
 
 

BIN
MOTINOVA_MC_Test/Resources/about.png


BIN
MOTINOVA_MC_Test/bin/Debug/MOTINOVA_BMS_Test.exe


BIN
MOTINOVA_MC_Test/bin/Debug/MOTINOVA_BMS_Test.pdb


BIN
MOTINOVA_MC_Test/bin/Debug/MOTINOVA_BMS_Test_V1.0.3.exe


BIN
MOTINOVA_MC_Test/obj/Debug/DesignTimeResolveAssemblyReferences.cache


BIN
MOTINOVA_MC_Test/obj/Debug/MOTINOVA_BMS_Test.exe


BIN
MOTINOVA_MC_Test/obj/Debug/MOTINOVA_BMS_Test.pdb


BIN
MOTINOVA_MC_Test/obj/Debug/MOTINOVA_MC_Test.csproj.AssemblyReference.cache


BIN
MOTINOVA_MC_Test/obj/Debug/MOTINOVA_MC_Test.csproj.GenerateResource.cache