コード例 #1
0
 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);
 }
コード例 #2
0
        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();
        }