plcopen/plcopen.py
changeset 27 dae55dd9ee14
parent 6 c8cf918ee7ea
child 46 4379e98a30aa
--- a/plcopen/plcopen.py	Sat Jul 07 11:35:17 2007 +0200
+++ b/plcopen/plcopen.py	Mon Jul 09 11:10:14 2007 +0200
@@ -966,6 +966,17 @@
         return None
     setattr(cls, "getConnectionPoints", getConnectionPoints)
 
+    def setConnectionParameter(self, idx, parameter):
+        if self.content:
+            self.content["value"][idx].setFormalParameter(parameter)
+    setattr(cls, "setConnectionParameter", setConnectionParameter)
+    
+    def getConnectionParameter(self, idx):
+        if self.content:
+            return self.content["value"][idx].getFormalParameter()
+        return None
+    setattr(cls, "getConnectionParameter", getConnectionParameter)
+
 if "connectionPointOut" in PLCOpenClasses:
     cls = PLCOpenClasses["connectionPointOut"]