修改了读取版本寄存器的顺序显示
This commit is contained in:
6
C-Windows-1/Form1.Designer.cs
generated
6
C-Windows-1/Form1.Designer.cs
generated
@@ -883,7 +883,7 @@
|
||||
//
|
||||
// button2
|
||||
//
|
||||
this.button2.Location = new System.Drawing.Point(925, 351);
|
||||
this.button2.Location = new System.Drawing.Point(926, 457);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new System.Drawing.Size(84, 38);
|
||||
this.button2.TabIndex = 147;
|
||||
@@ -893,7 +893,7 @@
|
||||
//
|
||||
// zhanhao
|
||||
//
|
||||
this.zhanhao.Location = new System.Drawing.Point(909, 319);
|
||||
this.zhanhao.Location = new System.Drawing.Point(920, 408);
|
||||
this.zhanhao.Name = "zhanhao";
|
||||
this.zhanhao.Size = new System.Drawing.Size(113, 21);
|
||||
this.zhanhao.TabIndex = 148;
|
||||
@@ -902,7 +902,7 @@
|
||||
//
|
||||
this.groupBox2.Controls.Add(this.labelyinjian);
|
||||
this.groupBox2.Controls.Add(this.labelruanjian);
|
||||
this.groupBox2.Location = new System.Drawing.Point(816, 108);
|
||||
this.groupBox2.Location = new System.Drawing.Point(859, 105);
|
||||
this.groupBox2.Name = "groupBox2";
|
||||
this.groupBox2.Size = new System.Drawing.Size(174, 184);
|
||||
this.groupBox2.TabIndex = 149;
|
||||
|
||||
@@ -3133,8 +3133,8 @@ namespace C_Windows_1
|
||||
station2 = Convert.ToUInt16(stationIP);
|
||||
station = station2.ToString("X2");
|
||||
Modbusread(360, 4, ReadData);
|
||||
labelruanjian.Text = "软件版本号:" + ReadData[360].ToString("X4") + ReadData[361].ToString("X4");
|
||||
labelyinjian.Text = "硬件版本号:" + ReadData[362].ToString("X4") + ReadData[363].ToString("X4");
|
||||
labelruanjian.Text = "软件版本号:" + ReadData[361].ToString("X4")+ReadData[360].ToString("X4") ;
|
||||
labelyinjian.Text = "硬件版本号:" + ReadData[363].ToString("X4")+ ReadData[362].ToString("X4") ;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user