Example #1
0
 public virtual void InitDevice(UHFReaderType readerType, bool connectBarcode)
 {
     reader = new UHFReader(readerType);
     plc    = new PLCController(SysConfig.Port);
     if (connectBarcode)
     {
         barcode1 = new BarcodeDevice(SysConfig.ScannerPort_1);
         barcode2 = new BarcodeDevice(SysConfig.ScannerPort_2);
     }
 }
Example #2
0
        public virtual void InitDevice(UHFReaderType readerType, bool connectBarcode)
        {
            //reader = new UHFReader(readerType);
            Reader.SetSerialTransport("tcp", SerialTransportTCP.CreateSerialReader);
            reader = Reader.Create(string.Format("tcp://{0}", readerIp));

            plc = new PLCController(SysConfig.Port);
            if (connectBarcode)
            {
                barcode1 = new BarcodeDevice(SysConfig.ScannerPort_1);
                barcode2 = new BarcodeDevice(SysConfig.ScannerPort_2);
            }
        }