public static void Init() { SML.TPara Para; Para.sParaFolderPath = Directory.GetCurrentDirectory() + "\\Util\\"; Para.iWidth = 1280; Para.iHeight = 863; Para.bTabHides = new bool[6]; Para.bUseErrPic = true; Para.iCntErr = 60; Para.iCntDIn = 32; Para.iCntDOut = 32; Para.iCntCylinder = 9; Para.iCntMotr = 3; Para.eLanSel = EN_LAN_SEL.English; Para.eDio = EN_DIO_SEL.AXL; Para.eMotors = new EN_MOTR_SEL[Para.iCntMotr]; Para.eMotors[0] = EN_MOTR_SEL.AXL; Para.eMotors[1] = EN_MOTR_SEL.AXL; Para.eMotors[2] = EN_MOTR_SEL.AXL; SML.Init(Para); DM.Init(); OM.Init(); LOT.Init(); SPC.Init(); PM.Init(PM.PstnCnt); MainThread.Priority = ThreadPriority.Highest; //MainThread.Priority = ThreadPriority.Normal; MainThread.Start(); m_tmToStop = new CDelayTimer(); m_tmToStrt = new CDelayTimer(); m_tmFlickOn = new CDelayTimer(); m_tmFlickOff = new CDelayTimer(); m_tmCloseDoor = new CDelayTimer(); m_tmTemp = new CDelayTimer(); m_bBtnReset = false; m_bBtnStart = false; m_bBtnStop = false; m_bBtnAir = false; m_bRun = false; m_bRunEdge = false; m_bFlick = false; m_iStep = EN_SEQ_STEP.Idle; m_iSeqStat = EN_SEQ_STAT.Stop; //Run End Buzzer. m_bRunEnd = false; m_Part[(int)pi.IDX] = IDX; }
public static void Init() { SML.TPara Para; Para.sParaFolderPath = Directory.GetCurrentDirectory() + "\\Util\\"; Para.iWidth = 1280; Para.iHeight = 863; Para.bTabHides = new bool[6]; Para.bUseErrPic = true; Para.iCntErr = 60; Para.iCntDIn = 96; Para.iCntDOut = 64; Para.iCntCylinder = (int)ci.MAX_ACTR; Para.iCntMotr = (int)mi.MAX_MOTR; Para.eLanSel = EN_LAN_SEL.English; Para.eDio = EN_DIO_SEL.AXL; Para.eMotors = new EN_MOTR_SEL[Para.iCntMotr]; Para.eMotors[0] = EN_MOTR_SEL.AXL; Para.eMotors[1] = EN_MOTR_SEL.AXL; Para.eMotors[2] = EN_MOTR_SEL.AXL; Para.eMotors[3] = EN_MOTR_SEL.AXL; Para.eMotors[4] = EN_MOTR_SEL.AXL; Para.eMotors[5] = EN_MOTR_SEL.AXL; Para.eMotors[6] = EN_MOTR_SEL.AXL; Para.eMotors[7] = EN_MOTR_SEL.AXL; Para.eMotors[8] = EN_MOTR_SEL.AXL; Para.eMotors[9] = EN_MOTR_SEL.AXL; SML.Init(Para); OM.Init(); DM.Init(); LOT.Init(); SPC.Init(); PM.Init(PM.PstnCnt); VisnCom.TPara VisnPara = new VisnCom.TPara(); VisnPara.sVisnPcName = "Visn"; //파일저장시에 파일명에 삽입. VisnPara.sVisnFolder = "c:\\Data"; //파일저장 하는 폴더. Visn.Init(ref VisnPara); MainThread.Priority = ThreadPriority.Highest; MainThread.Start(); m_tmToStop = new CDelayTimer(); m_tmToStrt = new CDelayTimer(); m_tmFlickOn = new CDelayTimer(); m_tmFlickOff = new CDelayTimer(); m_tmCloseDoor = new CDelayTimer(); m_tmTemp = new CDelayTimer(); m_cyTrayWorktime = new CCycleTimer(); m_bBtnReset = false; m_bBtnStart = false; m_bBtnStop = false; m_bBtnAir = false; m_bRun = false; m_bRunEdge = false; m_bFlick = false; m_iStep = EN_SEQ_STEP.Idle; m_iSeqStat = EN_SEQ_STAT.Stop; //Run End Buzzer. m_bRunEnd = false; m_Part[(int)pi.LODR] = LODR; m_Part[(int)pi.IDXR] = IDXR; m_Part[(int)pi.IDXF] = IDXF; m_Part[(int)pi.TOOL] = TOOL; m_Part[(int)pi.STCK] = STCK; m_Part[(int)pi.BARZ] = BARZ; BarcordLODR.PortOpen(); BarcordBARZ.PortOpen(); DateTime Time = DateTime.Now; bool bConnect = SEQ.Oracle.Init(OM.CmnOptn.sOracleIP, OM.CmnOptn.sOraclePort, OM.CmnOptn.sOracleID, OM.CmnOptn.sOraclePassword, OM.CmnOptn.sOracleSID); //SEQ.Oracle.OpenDB();//"192.168.1.77" , "1521" , "hr","hr" if (!bConnect) { Log.ShowMessage("Oracle Open Failed!", SEQ.Oracle.GetLastMsg()); } TimeSpan Span = DateTime.Now - Time; double dVal = Span.TotalMilliseconds; }