public void Reset() { eSendingCmd = vc.None; iCycleStep = 0; iPreCycleStep = 0; sErrMsg = ""; Log.Trace(Para.Id.ToString() + " Reset"); }
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()); }
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; } }