--- a/LPCManager.py Mon Jan 29 15:15:59 2018 +0100
+++ b/LPCManager.py Mon Jan 29 15:39:56 2018 +0100
@@ -27,6 +27,7 @@
# Path of directory containing current python file
_lpcmanager_path = os.path.split(__file__)[0]
PLC_GOT_module = ['GOT', 'GOT_111', 'GOT_131']
PLC_module = [PLC_MC9_module, PLC_GOT_module]
@@ -1264,7 +1265,11 @@
def SetProjectName(self, name):
return self.Project.setname(name)
- def _SetOnlineMode(self, mode, path=None):
+ def SetOnlineMode(self, mode, path=None): + # SetOnlineMode is only for MC8 if self.OnlineMode != mode:
if mode not in ["OFF", ""]:
@@ -1289,7 +1294,6 @@
- SetOnlineMode = lambda *x: None if arch in PLC_module else _SetOnlineMode
def ApplyOnlineMode(self):
if self.CurrentMode != SIMULATION_MODE: