--- a/PLCControler.py Fri Sep 09 17:19:35 2011 +0200
+++ b/PLCControler.py Tue Sep 13 13:01:04 2011 +0200
@@ -574,6 +574,8 @@
# Add the datatype to project
self.Project.appenddataType(datatype_name)
self.BufferProject()
+ return self.ComputeDataTypeName(datatype_name)
+ return None
# Remove a Data Type from project
def ProjectRemoveDataType(self, datatype_name):
@@ -589,6 +591,8 @@
if pou_type == "function":
self.SetPouInterfaceReturnType(pou_name, "BOOL")
self.BufferProject()
+ return self.ComputePouName(pou_name)
+ return None
def ProjectChangePouType(self, name, pou_type):
if self.Project is not None:
@@ -658,6 +662,8 @@
if self.Project is not None:
self.Project.addconfiguration(config_name)
self.BufferProject()
+ return self.ComputeConfigurationName(config_name)
+ return None
# Remove a configuration from project
def ProjectRemoveConfiguration(self, config_name):
@@ -670,6 +676,8 @@
if self.Project is not None:
self.Project.addconfigurationResource(config_name, resource_name)
self.BufferProject()
+ return self.ComputeConfigurationResourceName(config_name, resource_name)
+ return None
# Remove a resource from a configuration of the project
def ProjectRemoveConfigurationResource(self, config_name, resource_name):
@@ -684,6 +692,8 @@
if pou is not None:
pou.addtransition(transition_name, transition_type)
self.BufferProject()
+ return self.ComputePouTransitionName(pou_name, transition_name)
+ return None
# Remove a Transition from a Project Pou
def ProjectRemovePouTransition(self, pou_name, transition_name):
@@ -701,6 +711,8 @@
if pou is not None:
pou.addaction(action_name, action_type)
self.BufferProject()
+ return self.ComputePouActionName(pou_name, action_name)
+ return None
# Remove an Action from a Project Pou
def ProjectRemovePouAction(self, pou_name, action_name):