equal
deleted
inserted
replaced
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() |