更新
This commit is contained in:
2
WindowsFormsApp6/MainForm.Designer.cs
generated
2
WindowsFormsApp6/MainForm.Designer.cs
generated
@@ -379,7 +379,7 @@ namespace WindowsFormsApp6
|
||||
this.button5.TabIndex = 3;
|
||||
this.button5.Text = "🎲 模拟数据";
|
||||
this.button5.UseVisualStyleBackColor = false;
|
||||
this.button5.Visible = true;
|
||||
this.button5.Visible = false;
|
||||
this.button5.Click += new System.EventHandler(this.Button5_Click);
|
||||
//
|
||||
// buttonExport
|
||||
|
||||
@@ -520,7 +520,7 @@ namespace WindowsFormsApp6
|
||||
int hangTime = ConvertSingleRegisterToInt(hangTimeReg[0]);
|
||||
|
||||
// 读取运行速度(D410,1个寄存器,整数,单位:mm/min)
|
||||
ushort[] runSpeedReg = _modbusMaster.ReadHoldingRegisters(slaveId, 410, 5);
|
||||
ushort[] runSpeedReg = _modbusMaster.ReadHoldingRegisters(slaveId, 410, 1);
|
||||
int runSpeed = ConvertSingleRegisterToInt(runSpeedReg[0]);
|
||||
|
||||
// 使用反射获取Form2的私有字段
|
||||
|
||||
Reference in New Issue
Block a user