예제 #1
0
파일: VisnComm.cs 프로젝트: zoro-008/Works
 public void Reset()
 {
     eSendingCmd   = vc.None;
     iCycleStep    = 0;
     iPreCycleStep = 0;
     sErrMsg       = "";
     Log.Trace(Para.Id.ToString() + " Reset");
 }
예제 #2
0
파일: VisnComm.cs 프로젝트: zoro-008/Works
 public void SendCmd(vc _eCmd, string _sPara = "")
 {
     eSendingCmd   = _eCmd;
     iCycleStep    = 10;
     iPreCycleStep = 0;
     sPara         = _sPara;
     sErrMsg       = "";
     Log.Trace(Para.Id.ToString() + " Start Cycle - " + _eCmd.ToString());
 }
예제 #3
0
파일: VisnComm.cs 프로젝트: zoro-008/Works
        public void Update()
        {
            bool bRet = false;

            if (eSendingCmd == vc.Reset)
            {
                if (CycleReset())
                {
                    bRet = true;
                }
            }
            else if (eSendingCmd == vc.LotStart)
            {
                if (CycleLotStart())
                {
                    bRet = true;
                }
            }
            else if (eSendingCmd == vc.JobChange)
            {
                if (CycleJobChange())
                {
                    bRet = true;
                }
            }

            if (bRet)
            {
                string sTemp = Para.Id.ToString() + " End Cycle - " + eSendingCmd.ToString();
                if (sErrMsg != "")
                {
                    sTemp += " with err : " + sErrMsg;
                }
                Log.Trace(sTemp);
                eSendingCmd = vc.None;
                iCycleStep  = 0;
            }
        }