This commit is contained in:
GukSang.Jin
2026-01-06 17:02:57 +08:00
parent 027a40e2bf
commit c9a55ecd6f
2 changed files with 2 additions and 2 deletions

View File

@@ -379,7 +379,7 @@ namespace WindowsFormsApp6
this.button5.TabIndex = 3; this.button5.TabIndex = 3;
this.button5.Text = "🎲 模拟数据"; this.button5.Text = "🎲 模拟数据";
this.button5.UseVisualStyleBackColor = false; this.button5.UseVisualStyleBackColor = false;
this.button5.Visible = true; this.button5.Visible = false;
this.button5.Click += new System.EventHandler(this.Button5_Click); this.button5.Click += new System.EventHandler(this.Button5_Click);
// //
// buttonExport // buttonExport

View File

@@ -520,7 +520,7 @@ namespace WindowsFormsApp6
int hangTime = ConvertSingleRegisterToInt(hangTimeReg[0]); int hangTime = ConvertSingleRegisterToInt(hangTimeReg[0]);
// 读取运行速度D4101个寄存器整数单位mm/min // 读取运行速度D4101个寄存器整数单位mm/min
ushort[] runSpeedReg = _modbusMaster.ReadHoldingRegisters(slaveId, 410, 5); ushort[] runSpeedReg = _modbusMaster.ReadHoldingRegisters(slaveId, 410, 1);
int runSpeed = ConvertSingleRegisterToInt(runSpeedReg[0]); int runSpeed = ConvertSingleRegisterToInt(runSpeedReg[0]);
// 使用反射获取Form2的私有字段 // 使用反射获取Form2的私有字段