private void ModbusWorker_DoWork(object sender, DoWorkEventArgs e) { try { ModbusSerialSlave ms = ModbusSerialSlave.CreateRtu(1, modbusCom); ms.DataStore = dataStore; ms.Listen(); } catch { } }