Ejemplo n.º 1
0
        public int run()
        {
            if (!m_bRuns && !m_bPause)
            {
                CPUCycle.RunWorkerAsync(m_bPause);
                m_bRuns = true;
                m_CurError = eCPUError.NONE;
                return 0;
            }

            return 1;
        }
Ejemplo n.º 2
0
 void CPUCycle_ProgressChanged(object sender, ProgressChangedEventArgs e)
 {
     PLC_Basic.CPUBasic.SCPUResult res = (PLC_Basic.CPUBasic.SCPUResult)e.UserState;
     if (e.ProgressPercentage > 0)
     {
         m_CurError = (eCPUError)e.ProgressPercentage;
         m_CurErrorInstr = res.Instr;
         m_bRunError = true;
     }
     m_CycleTime = res.CycleTime;
 }