Bug with FBD_Variable with return value fixed
authorlbessard
Sun, 07 Sep 2008 19:23:00 +0200
changeset 256 42dd57b23e36
parent 255 068935254b28
child 257 d0a0ffbbd61c
Bug with FBD_Variable with return value fixed
PLCControler.py
--- a/PLCControler.py	Sun Sep 07 19:22:10 2008 +0200
+++ b/PLCControler.py	Sun Sep 07 19:23:00 2008 +0200
@@ -1791,6 +1791,10 @@
             if words[0] in ["P","T","A"]:
                 pou = self.Project.getpou(words[1])
                 if pou is not None:
+                    if words[0] == "T" and varname == words[2]:
+                        return "BOOL"
+                    if words[1] == varname:
+                        return self.GetPouInterfaceReturnType(pou)
                     for type, varlist in pou.getvars():
                         for var in varlist.getvariable():
                             if var.getname() == varname: