예제 #1
0
        public PLC()
        {
            instance = this;
            Q        = _Q.instance;
            I        = _I.instance;

            client           = new TcpClient("127.0.0.1", 0xfa57);
            writer           = new StreamWriter(client.GetStream());
            reader           = new StreamReader(client.GetStream());
            writer.AutoFlush = true;
        }
예제 #2
0
 static _Q()
 {
     instance = new _Q();
 }