public BrainHeart() { lastSignal = currentSignal = false; config = ConfigString.GetInstance(); config.GetALLNeedDataFromIni(); opcClient = new OPCClient(config.OPC_Read_Address); tcpClient = new TCPCommunication(config.IP); ScanTask = new Task(ScanReadImageSignal); }
public OPCClient(List <string> _readAddress) { config = ConfigString.GetInstance(); opc_address = _readAddress; opcItem = new OPCItem[opc_address.Count]; OPCServerString = config.OPC_Name; opcServer = new OPCServer(); ConnectOPCServer(); CreateReadGroup(); }