--- a/ProjectController.py Tue Jun 16 11:12:36 2020 +0200
+++ b/ProjectController.py Tue Jun 16 15:53:52 2020 +0200
@@ -63,7 +63,8 @@
import targets
from runtime.typemapping import DebugTypesSize, UnpackDebugBuffer
from runtime import PlcStatus
-from ConfigTreeNode import ConfigTreeNode, XSDSchemaErrorMessage, UserAddressedException
+from ConfigTreeNode import ConfigTreeNode, XSDSchemaErrorMessage
+from POULibrary import UserAddressedException
base_folder = paths.AbsParentDir(__file__)
@@ -1441,7 +1442,8 @@
PlcStatus.Stopped: {"_Run": True,
"_Transfer": True,
"_Connect": False,
- "_Disconnect": True},
+ "_Disconnect": True,
+ "_Repair": True},
PlcStatus.Empty: {"_Transfer": True,
"_Connect": False,
"_Disconnect": True},
@@ -1978,6 +1980,13 @@
"shown": False,
},
{
+ "bitmap": "Disconnect",
+ "name": _("Disconnect"),
+ "tooltip": _("Disconnect from PLC"),
+ "method": "_Disconnect",
+ "shown": False,
+ },
+ {
"bitmap": "Repair",
"name": _("Repair"),
"tooltip": _("Repair broken PLC"),
@@ -1985,13 +1994,6 @@
"shown": False,
},
{
- "bitmap": "Disconnect",
- "name": _("Disconnect"),
- "tooltip": _("Disconnect from PLC"),
- "method": "_Disconnect",
- "shown": False,
- },
- {
"bitmap": "IDManager",
"name": _("ID Manager"),
"tooltip": _("Manage secure connection identities"),