修改了读取版本寄存器的顺序显示

This commit is contained in:
RD001
2024-08-17 08:50:42 +08:00
parent af20267f32
commit 712b0b46ab
5 changed files with 5 additions and 5 deletions

View File

@@ -883,7 +883,7 @@
// //
// button2 // 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.Name = "button2";
this.button2.Size = new System.Drawing.Size(84, 38); this.button2.Size = new System.Drawing.Size(84, 38);
this.button2.TabIndex = 147; this.button2.TabIndex = 147;
@@ -893,7 +893,7 @@
// //
// zhanhao // 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.Name = "zhanhao";
this.zhanhao.Size = new System.Drawing.Size(113, 21); this.zhanhao.Size = new System.Drawing.Size(113, 21);
this.zhanhao.TabIndex = 148; this.zhanhao.TabIndex = 148;
@@ -902,7 +902,7 @@
// //
this.groupBox2.Controls.Add(this.labelyinjian); this.groupBox2.Controls.Add(this.labelyinjian);
this.groupBox2.Controls.Add(this.labelruanjian); 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.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(174, 184); this.groupBox2.Size = new System.Drawing.Size(174, 184);
this.groupBox2.TabIndex = 149; this.groupBox2.TabIndex = 149;

View File

@@ -3133,8 +3133,8 @@ namespace C_Windows_1
station2 = Convert.ToUInt16(stationIP); station2 = Convert.ToUInt16(stationIP);
station = station2.ToString("X2"); station = station2.ToString("X2");
Modbusread(360, 4, ReadData); Modbusread(360, 4, ReadData);
labelruanjian.Text = "软件版本号:" + ReadData[360].ToString("X4") + ReadData[361].ToString("X4"); labelruanjian.Text = "软件版本号:" + ReadData[361].ToString("X4")+ReadData[360].ToString("X4") ;
labelyinjian.Text = "硬件版本号:" + ReadData[362].ToString("X4") + ReadData[363].ToString("X4"); labelyinjian.Text = "硬件版本号:" + ReadData[363].ToString("X4")+ ReadData[362].ToString("X4") ;
} }