Exemplo n.º 1
0
 public WagoBKBase()
 {
     m_Channels   = CreateChannels();
     m_SyncEvents = new SyncEvents();
     m_BKSetup    = new BKSetup();
     m_BKConfig   = new BKConfiguration();
     m_BKIn       = new BKIn(m_Channels);
     m_BKOut      = new BKOut(m_Channels);
     //create the Communication-Thread
     m_WagoSocket = new WagoSocketBase(m_SyncEvents,
                                       m_BKSetup, m_BKConfig, m_BKIn, m_BKOut);
     m_WagoSocketThread = new Thread(m_WagoSocket.ThreadRun);
 }
Exemplo n.º 2
0
 public WagoSocketBase(SyncEvents e, BKSetup Setup, BKConfiguration Config,
                       BKIn Inputs, BKOut Outputs) //??output obsolete
 {
     m_NextState = State.Unknown;
     m_LastState = State.Unknown;
     //
     m_SyncEvents     = e;
     m_BKSetup        = Setup;
     m_BKConfig       = Config;
     m_BKIn           = Inputs;
     m_Modbus         = new Modbus.ModbusCore();
     m_InstalledCards = new CardManager();
     m_BKConfig.SetState(WagoBKState.Unknown);
 }