Beispiel #1
0
        private void button10_Click(object sender, EventArgs e)
        {
            // Read Button
            var registers = ModbusRtuMaster.ReadRegisters(btSerialPort, (byte)int.Parse(textBox16.Text), (ushort)int.Parse(textBox15.Text), (ushort)int.Parse(textBox14.Text));

            this.ReadOutput("[Bluetooth Mode]", Modbus.Data.DataStore.LastResponse, Modbus.Data.DataStore.LastRequest, registers);
        }
Beispiel #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            // Read Button
            var registers = ModbusRtuMaster.ReadRegisters(mport, (byte)int.Parse(textBox8.Text), (ushort)int.Parse(textBox7.Text), (ushort)int.Parse(textBox6.Text));

            this.ReadOutput("[Serial Mode]", Modbus.Data.DataStore.LastResponse, Modbus.Data.DataStore.LastRequest, registers);
        }