Пример #1
0
 public ModbusServer(string IP, int Port)
 {
     m_ModbusServerData = new ModbusServerData();
     m_SyncEvents       = new SyncEvents();
     m_Server           = new ModbusServerThread(m_SyncEvents, IP, Port, m_ModbusServerData);
     m_ServerThread     = new Thread(m_Server.ThreadRun);
 }
Пример #2
0
 public ModbusServerThread(SyncEvents e, string IP, int Port, ModbusServerData IO)
 {
     m_SyncEvents       = e;
     m_IP               = IP;
     m_Port             = Port;
     m_LastState        = State.Unknown;
     m_NextState        = m_LastState;
     m_ModbusServerData = IO;
 }