public ModbusUI()
 {
     InitializeComponent();
     MyModbus = new ModbusCore();
     MyModbus.EventMBusException += new Modbus.ModbusCore.MBusException(MyModbus_EventMBusException);
 }
 public ModbusClientDemo()
 {
     InitializeComponent();
     m_Client = new ModbusCore();
     modbusLog1.SetClientToLog(m_Client);
 }
Esempio n. 3
0
 public void SetClientToLog(ModbusCore ClientToLog)
 {
     ClientToLog.ConnectToEvent(new ModbusCore.OnRequestReceivedHandler(OnReceiveClient));
     ClientToLog.ConnectToEvent(new ModbusCore.OnRequestSendHandler(OnSendClient));
 }