Esempio n. 1
0
 public static PLCConnection getInstance(string beckhoffAddress, int port)
 {
     if (instance == null)
     {
         instance = new PLCConnection(beckhoffAddress, port);
     }
     return(instance);
 }
Esempio n. 2
0
 public MyController(string beckhoffAddress, int port)
 {
     _connection = PLCConnection.getInstance(beckhoffAddress, port); //new PLCConnection(beckhoffAddress, port, bufferSize);
     CommonInitialize();
 }