runtime/PLCObject.py
changeset 411 8261c8f1e365
parent 400 2c786431fe72
child 446 1edde533db19
equal deleted inserted replaced
410:092e33606e51 411:8261c8f1e365
   254         PLCprint("PythonThreadProc interrupted")
   254         PLCprint("PythonThreadProc interrupted")
   255     
   255     
   256     def StartPLC(self, debug=False):
   256     def StartPLC(self, debug=False):
   257         PLCprint("StartPLC")
   257         PLCprint("StartPLC")
   258         if self.CurrentPLCFilename is not None:
   258         if self.CurrentPLCFilename is not None:
       
   259             self.PLCStatus = "Starting"
   259             self.PythonThread = Thread(target=self.PythonThreadProc, args=[debug])
   260             self.PythonThread = Thread(target=self.PythonThreadProc, args=[debug])
   260             self.PythonThread.start()
   261             self.PythonThread.start()
   261             
   262             
   262     def StopPLC(self):
   263     def StopPLC(self):
   263         PLCprint("StopPLC")
   264         PLCprint("StopPLC")