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