LPCManager.py
changeset 51 8a4783508ea9
parent 50 ed1f9752f929
child 52 7fc0928030b6
equal deleted inserted replaced
50:ed1f9752f929 51:8a4783508ea9
   914             self.RefreshConfNodesBlockLists()
   914             self.RefreshConfNodesBlockLists()
   915         else:
   915         else:
   916             wx.CallAfter(self.RefreshConfNodesBlockLists)
   916             wx.CallAfter(self.RefreshConfNodesBlockLists)
   917 
   917 
   918         return None
   918         return None
   919 
   919     
       
   920     def IsPLCStarted(self):
       
   921         return self.previous_plcstate == "Started" or self.previous_mode == SIMULATION_MODE
       
   922     
   920     def UpdateMethodsFromPLCStatus(self):
   923     def UpdateMethodsFromPLCStatus(self):
   921         simulating = self.CurrentMode == SIMULATION_MODE
   924         simulating = self.CurrentMode == SIMULATION_MODE
   922         if self.OnlineMode == "OFF":
   925         if self.OnlineMode == "OFF":
   923             if simulating:
   926             if simulating:
   924                 status, log_count = self._connector.GetPLCstatus()
   927                 status, log_count = self._connector.GetPLCstatus()