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