Example #1
0
        public static BaseDCTDriver CreateDCTDriver(string ip, int port)
        {
            BaseDCTDriver driver = null;

            if (frmDCTServer.IsRS485 == true)
            {
                driver = new DSC19DCTDriver();
            }
            else if (port == 55962)
            {
                driver = new GW28DCTDriver();
            }
            else if (port == 4660)
            {
                driver = new DT4000DCTDriver();
            }
            else if (port == 12345)
            {
                driver = new PCDriver();
            }

            // Added by Icyer 2006/12/29 @ YHI	设置切换指令时的Action
            BenQGuru.eMES.Common.DCT.Action.ActionRCard arCard = new BenQGuru.eMES.Common.DCT.Action.ActionRCard();
            arCard.Status           = ActionStatus.Working;
            driver.defaultDCTAction = arCard;
            // Added end

            return(driver);
        }
Example #2
0
        public static void RunThread()
        {
            GW28DCTDriver driver = new GW28DCTDriver();

            //GW28Client client = new GW28Client("10.89.58.160",iCount);
//			driver = new GW28DCTDriver();
            //
            //				client.ClientAddress = "10.89.58.161";
            //				client.ClientID = 1;
            //				client.ClientPort  = 55962;
            //				client.ClientDesc  = "测试";

            driver.DCTListen(null);
        }
Example #3
0
        public static void RunThread()
        {
            GW28DCTDriver driver = new GW28DCTDriver();

            driver.DCTListen(null);
        }