Esempio n. 1
0
        /// <summary>
        /// 信号灯1红灯
        /// </summary>
        public void RedLight1()
        {
#if DEBUG
            FrmDebugOutputer.GetInstance().Output("信号灯1红灯");
#endif
            this.Iocer.Output(commonDAO.GetAppletConfigInt32("IO控制器_信号灯1端口"), false);
            Thread.Sleep(500);

            commonDAO.SetSignalDataValue(CommonAppConfig.GetInstance().AppIdentifier, eSignalDataName.信号灯1.ToString(), "1");
        }
Esempio n. 2
0
        /// <summary>
        /// 道闸2降杆
        /// </summary>
        public void Gate2Down()
        {
#if DEBUG
            FrmDebugOutputer.GetInstance().Output("道闸2降杆");
#endif
            int port = commonDAO.GetAppletConfigInt32("IO控制器_道闸2降杆端口");

            this.Iocer.Output(port, true);
            Thread.Sleep(100);
            this.Iocer.Output(port, false);
            Thread.Sleep(500);

            commonDAO.SetSignalDataValue(CommonAppConfig.GetInstance().AppIdentifier, eSignalDataName.道闸2升杆.ToString(), "0");
        }