示例#1
0
 private void bReadHoldingRegisters_Click(object sender, EventArgs e)
 {
     service.Modbus_ReadHoldingRegisters(ushort.Parse(tbStartAddress.Text), ushort.Parse(tbRegisterCount.Text));
     service.Modbus_HandleFrame(tbRegisterCount);
     tbLog.Text = File.ReadAllText("Temperaturi.txt");
 }