public bool AsynchReadSettings()
        {
            // add a periodic data callback group and add one item to the group
            OPCDA.NET.RefreshEventHandler dch = new OPCDA.NET.RefreshEventHandler(AsynchReadListenerForPS);
            uGrp = new OPCDA.NET.RefreshGroup(OpcConnection.GetOPCServerConnection(), DAUpdateRate, dch);

            int rtc = 0;

            PSDaoService        objPSDaoService = new PSDaoImp();
            List <Model.PSData> psList          = objPSDaoService.GetPSList();


            try
            {
                foreach (Model.PSData objPSData in psList)
                {
                    rtc = uGrp.Add(objPSData.machineChannel + "." + objPSData.machineCode + "." + OpcTags.PS_Shuttle_Aisle_Position_for_L2);
                    rtc = uGrp.Add(objPSData.machineChannel + "." + objPSData.machineCode + "." + OpcTags.PS_L2_Max_Window_Limit);
                    rtc = uGrp.Add(objPSData.machineChannel + "." + objPSData.machineCode + "." + OpcTags.PS_L2_Min_Window_Limit);
                }
            }
            catch (Exception errMsg)
            {
                rtc = 0;
                Console.WriteLine(errMsg.Message);
            }
            finally
            {
            }

            return(rtc == 0 ? false : true);
        }
        public bool AsynchReadSettings()
        {
            // add a periodic data callback group and add one item to the group
            OPCDA.NET.RefreshEventHandler dch = new OPCDA.NET.RefreshEventHandler(AsynchReadListenerForVLC);
            uGrp = new OPCDA.NET.RefreshGroup(OpcConnection.GetOPCServerConnection(), DAUpdateRate, dch);

            int rtc = 0;

            VLCDaoService  objVLCDaoService = new VLCDaoImp();
            List <VLCData> vlcList          = objVLCDaoService.GetVLCList();


            try
            {
                foreach (VLCData objVLCData in vlcList)
                {
                    rtc = uGrp.Add(objVLCData.machineChannel + "." + objVLCData.machineCode + "." + OpcTags.VLC_Auto_Ready);
                }
            }
            catch (Exception errMsg)
            {
                rtc = 0;
                Console.WriteLine(errMsg.Message);
            }
            finally
            {
            }

            return(rtc == 0 ? false : true);
        }
        public bool AsynchReadSettings()
        {
            // add a periodic data callback group and add one item to the group
            OPCDA.NET.RefreshEventHandler dch = new OPCDA.NET.RefreshEventHandler(AsynchReadListenerForEES);
            uGrp = new OPCDA.NET.RefreshGroup(OpcConnection.GetOPCServerConnection(), DAUpdateRate, dch);

            int rtc = 0;

            EESDaoService  objEESDaoService = new EESDaoImp();
            List <EESData> eesList          = objEESDaoService.GetEESList();


            try
            {
                foreach (EESData objEESData in eesList)
                {
                    // rtc = uGrp.Add(objEESData.machineChannel + "." + objEESData.machineCode + "." + OpcTags.EES_Auto_Mode);
                    rtc = uGrp.Add(objEESData.machineChannel + "." + objEESData.machineCode + "." + OpcTags.EES_Auto_Ready);
                    rtc = uGrp.Add(objEESData.machineChannel + "." + objEESData.machineCode + "." + OpcTags.EES_Mode);


                    rtc = uGrp.Add(objEESData.machineChannel + "." + objEESData.machineCode + "." + OpcTags.EES_Car_Ready_At_Entry);
                    rtc = uGrp.Add(objEESData.machineChannel + "." + objEESData.machineCode + "." + OpcTags.EES_Car_Ready_At_Exit);

                    rtc = uGrp.Add(objEESData.machineChannel + "." + objEESData.machineCode + "." + OpcTags.EES_Car_At_EES);
                    rtc = uGrp.Add(objEESData.machineChannel + "." + objEESData.machineCode + "." + OpcTags.EES_OutDoor_NotClosed_LS);

                    rtc = uGrp.Add(objEESData.machineChannel + "." + objEESData.machineCode + "." + OpcTags.EES_State_EES_HMI);
                    rtc = uGrp.Add(objEESData.machineChannel + "." + objEESData.machineCode + "." + OpcTags.EES_Vehicle_Detector);
                }
            }
            catch (Exception errMsg)
            {
                rtc = 0;
                Console.WriteLine(errMsg.Message);
            }
            finally
            {
            }

            return(rtc == 0 ? false : true);
        }