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; }
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(); }
public PLC() { Engine = new ScriptEngine(); instance=this; }
static void Main(string[] args) { X13.PLC.PLC plc=new PLC.PLC(); plc.Test(); }