Beispiel #1
0
        protected event EventHandler Start_Event; //完成事件



        /// <summary>
        /// 定型专用
        /// </summary>
        public void FormulaStop()
        {
            if (_status == 1)
            {
                PC.OpcSyncWrite(PE, "2"); //异常停止写入
                Golbal.DSStep = 4;
            }
        }
Beispiel #2
0
 //配方结束
 public void FormulaEnd(ParamClass pc)
 {
     pc.OpcSyncWrite(ParamClass.ParamEnum.配方状态, "1");
     Thread.Sleep(500);
     if (pc.配方状态 == "1")
     {
         End_Event(this, null);
     }
     else
     {
         FormulaEnd(pc);
     }
 }
Beispiel #3
0
        public event EventHandler End_Event;   //结束事件
        //配方开始
        public void FormulaStart(ParamClass pc)
        {
            pc.OpcSyncWrite(ParamClass.ParamEnum.水洗配方状态, "0");
            Thread.Sleep(100);

            if (pc.水洗配方状态 == "0")
            {
                Start_Event(this, null);
            }
            else
            {
                FormulaStart(pc);
            }
        }