Пример #1
0
        public DataConcentratorManager()
        {
            plcSimulatorManager = new PLCSimulatorManager();
            plcSimulatorManager.StartPLCSimulator();

            Tags          = new Dictionary <string, Tag>();
            Alarms        = new Dictionary <string, bool>();
            CurrentValues = new Dictionary <string, double>();
            threads       = new Dictionary <string, Thread>();

            LoadData();
        }
Пример #2
0
        public DataConcentratorManager()
        {
            plcSimulatorManager = new PLCSimulatorManager();

            alarms     = new List <Alarm>();
            analogs_i  = new List <AnalogInput>();
            analogs_o  = new List <AnalogOutput>();
            digitals_i = new List <DigitalInput>();
            digitals_o = new List <DigitalOutput>();

            //OnTagValueChanged();

            loadXML();

            ALARM = new KeyValuePair <string, bool>();

            plcSimulatorManager.loadAlarms(alarms);
            plcSimulatorManager.loadTags(analogs_i);

            plcSimulatorManager.StartPLCSimulator();
            plcSimulatorManager.t5.Start();
        }