Esempio n. 1
0
 public PLC() {
   instance = this;
   enabled = true;
   _blocks = new List<PiBlock>();
   _vars = new Dictionary<Topic, PiVar>();
   _tcQueue = new ConcurrentQueue<Perform>();
   _knownTypes = new Dictionary<string, Func<JSValue, Topic, Topic, JSValue>>();
   _rLayerVars = new List<PiVar>();
   _prOp = new List<Perform>(128);
   _busyFlag = 1;
 }
Esempio n. 2
0
 static void Main(string[] args)
 {
     _plc = PLC.PLC.instance;
     _srv = new Server.Server();
     _plc.Init();
     _plc.Start();
     _plc.Tick();
     _plc.Tick();
     _srv.Start();
     while (!Console.KeyAvailable)
     {
         Thread.Sleep(100);
         _plc.Tick();
     }
     _srv.Stop();
     _plc.Stop();
 }
Esempio n. 3
0
 public PLC() {
   Engine = new ScriptEngine();
   instance=this;
 }
Esempio n. 4
0
 static void Main(string[] args) {
   X13.PLC.PLC plc=new PLC.PLC();
   plc.Test();
 }