Adding support for updating PLC status when stopping
authorgreg
Mon, 04 May 2009 09:29:24 +0200
changeset 339 6dbde4a0c31d
parent 338 e19c78831d41
child 340 651b8fb572e7
Adding support for updating PLC status when stopping
runtime/PLCObject.py
--- a/runtime/PLCObject.py	Mon May 04 09:27:33 2009 +0200
+++ b/runtime/PLCObject.py	Mon May 04 09:29:24 2009 +0200
@@ -274,6 +274,7 @@
 
     def _DoStopPLC(self):
         self.PLCStatus = "Stopped"
+        self.StatusChange()
         self._stopPLC()
         if self._FreePLC():
             self.PLCStatus = "Dirty"
@@ -393,7 +394,7 @@
                            
     def GetTraceVariables(self):
         """
-        Return a list of variables, corresponding to the list of requiered idx
+        Return a list of variables, corresponding to the list of required idx
         """
         if self.PLCStatus == "Started":
             tick = self._WaitDebugData()