equal
deleted
inserted
replaced
1777 This thread waid PLC debug data, and dispatch them to subscribers |
1777 This thread waid PLC debug data, and dispatch them to subscribers |
1778 """ |
1778 """ |
1779 self.debug_break = False |
1779 self.debug_break = False |
1780 debug_getvar_retry = 0 |
1780 debug_getvar_retry = 0 |
1781 while (not self.debug_break) and (self._connector is not None): |
1781 while (not self.debug_break) and (self._connector is not None): |
1782 plc_status, debug_tick, debug_vars = self._connector.GetTraceVariables() |
1782 Trace = self._connector.GetTraceVariables() |
|
1783 if(Trace): |
|
1784 plc_status, debug_tick, debug_vars = Trace |
|
1785 else: |
|
1786 plc_status = None |
1783 debug_getvar_retry += 1 |
1787 debug_getvar_retry += 1 |
1784 #print debug_tick, debug_vars |
1788 #print debug_tick, debug_vars |
1785 if plc_status == "Started": |
1789 if plc_status == "Started": |
1786 self.IECdebug_lock.acquire() |
1790 self.IECdebug_lock.acquire() |
1787 if len(debug_vars) == len(self.TracedIECPath): |
1791 if len(debug_vars) == len(self.TracedIECPath): |