equal
deleted
inserted
replaced
255 PLCprint("StartPLC") |
255 PLCprint("StartPLC") |
256 if self.CurrentPLCFilename is not None and self.PLCStatus == "Stopped": |
256 if self.CurrentPLCFilename is not None and self.PLCStatus == "Stopped": |
257 c_argv = ctypes.c_char_p * len(self.argv) |
257 c_argv = ctypes.c_char_p * len(self.argv) |
258 if self._LoadNewPLC() and self._startPLC(len(self.argv),c_argv(*self.argv)) == 0: |
258 if self._LoadNewPLC() and self._startPLC(len(self.argv),c_argv(*self.argv)) == 0: |
259 if debug: |
259 if debug: |
|
260 for idx in self._Idxs: |
|
261 self._RegisterDebugVariable(idx) |
260 self._resumeDebug() |
262 self._resumeDebug() |
261 self.PLCStatus = "Started" |
263 self.PLCStatus = "Started" |
262 self.StatusChange() |
264 self.StatusChange() |
263 self.evaluator(self.PrepareRuntimePy) |
265 self.evaluator(self.PrepareRuntimePy) |
264 self.PythonThread = Thread(target=self.PythonThreadProc) |
266 self.PythonThread = Thread(target=self.PythonThreadProc) |